<div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Documents</h3>
                                </div>
                                <div class="panel-body list-group list-group-contacts">
                                    
                                    
                                    <ul style="margin: 0px; padding: 0px">
                                    <?php

$tournament = new Model_Tournament;
			


			$tourn= $tournament->fetchRow("TID ='".$this->TID."'");
			$existingFiles =  json_decode($tourn["Files"],true);
			if(count($existingFiles)>0){
                            $n=1;
				foreach($existingFiles as $file){
					
                                        $href= "#";
					if($file["Type"]!="" ){
                                            $href= $file["Link"];
                                        }
					echo '<li style="height:30px;padding:0px;color:#000;  line-height: 30px; text-decoration: none
                                        ; border-bottom: 1px solid #ccc ; overflow: hidden; list-style: none;"><a style="text-decoration: none;color:#434A54;" target="blank" href="'.$href.'" class="" > 
                                        <span class="contacts-title">'.$n.' - '.$file["Title"].'</span>
                                        ';   
                                        
                                        /*
                                         * $href= "#";
					if($file["Type"]!="" ){
                                            $eplode = explode("/uploads/", $file["Link"]);
                                            $href= '/players/downloadtour/fl/'.$eplode[1];
                                        }
					echo '<a target="blank"  href="'.$href.'" class=""> 
                                        <span class="contacts-title">'.$file["Title"].'</span>
                                        '; 
                                         */
                                                                          
                                   echo' </a></li>';
                                   $n++;
                                }

			}
?>
                                    
                                    </ul>
                                                                   
                                </div>
                            </div>

