Current Path : /var/www/html/social/ |
|
Current File : /var/www/html/social/print_schedule.php |
<?php include_once('__includedFiles/header_top_files.php');?>
<?php $obj1=new Social(); $user_id=$_SESSION['userid'];
$turnamentid=$_REQUEST['turnamentid'];
?>
<link rel="stylesheet" type="text/css" href="css/latest.css">
<link href="css/styles2.css" rel="stylesheet" />
<div class="pop_ou1" id="sur_participants" style="display:block; margin:0px !important; background:none !important" >
<table align="center" border="1" width="650">
<tr><td > <div class="pop_text1" style="width:650px !important;">
<h1>Turnament Schedules:
</h1>
<table align="center" width="100%" id="participant_detail_table">
<tr height="25"><th width="20" style="padding-left:5px;" align="left">S.No.</th>
<th width="200" >Title</th>
<th width="30">Venue</th>
<th width="120">Team 1</th>
<th width="150">Team 2</th>
<th width="100">Date</th></tr>
<tr height="2"><td colspan="6"><h1/></td></tr>
<?php $players=$obj1->get_turnament_schedule($turnamentid);
if(count($players)>0)
{ $i=1;
foreach($players as $player){
$team1=$obj1->getteambyid($player['team1_id']);
$team2=$obj1->getteambyid($player['team2_id']);
?>
<tr height="25"><td width="20" style="padding-left:5px;" align="center"><?=$i?></td>
<td width="200" align="center"><?=ucwords($player['title'])?></td>
<td width="30" align="center"><?=$player['venue'] ?></td>
<td width="120" align="center"><?=$team1['team_name']?></td>
<td width="150" align="center"><?=$team2['team_name']?></td>
<td width="100" align="center"><?=date('jS M, Y',strtotime($player['date']))?> at <?=$player['time']?></td>
</tr>
<tr height="2"><td colspan="6"><h1/></td></tr>
<? $i++; }} ?>
</table>
</div> </td></tr></table>
</div>
<script type="text/javascript">
window.onload = function () {
window.print();
}
//window.close();
</script>
,