D:\host\scoreman.in\kleague2026\print.php
<?php
include('dbconnect.php');
include('jfunctions.php');
include('functions.php');
$configs = include('conf.php');
?>
<html>
<head>
<style>
table {
border-collapse: collapse;
}
@media print{@page {size: landscape}}
@media print
{
.noprint, .noprint *
{
display: none !important;
visibility: hidden;
}
table
{
font-size:10px;
max-width:60%;
}
}
tr:nth-child(even) {
background-color:#F1F1F8;
}
table
{
font-size:11px;
max-width:100%;
margin:0px;
}
table, th, td {
border: 1px solid #ccc;
}
th{
text-align: center;
vertical-align: middle;
//height: 110px;
padding-bottom: 3px;
padding-left: 0px;
padding-right: 0px;
background-color:#E6E6E6;
.verticalText1
{
/*font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;*/
font-size:11px;
text-align: left;
vertical-align: bottom;
width: 12px;
margin:0px;
margin-top:120px;
padding: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
white-space: nowrap;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
};
}
</style>
<body onload="window.print()">
<?php
$stype=$_GET["stype"];
$bankacno="";
$bankifsc="";
$bankacname="";
$bankname="";
$eventtitle="";
$eventdate="";
$contact="";
$repdistrict=$_SESSION['currentdistrict'];
$databaseQuery = 'SELECT * FROM `championships` WHERE `district`="'.$con->real_escape_string($repdistrict).'"';
$result3 = mysqli_query($con,$databaseQuery) or die('Query failed: ' . mysqli_error());
while($row = mysqli_fetch_array($result3))
{
$stat=trim($row["status"]);
$bankacno=trim($row["bankacno"]);
$bankifsc=trim($row["bankifsc"]);
$bankacname=trim($row["bankacname"]);
$bankname=trim($row["bankname"]);
$eventtitle=trim($row["championshiptitle"]);
$eventdate=trim($row["dates"]);
$contact=trim($row["contact"]);
}
$feeamt=$fees;
?>
<center><h3><?php echo $eventtitle; ?></H3> </center>
<center><h5><?php echo strtoupper($stype); if($stype=="Other"){echo " DISCIPLINE"; } ?> ENTRY FORM </H5> </center>
<?php
$team=$_SESSION['teamf'];
$teampr=$team;
if($team=="")
{
$teampr=$_SESSION["username"];
}
echo "<h5>District / Team : ".$teampr." </h5>";
listentries($stype,$team);
if($team=="")
{
$team=$_SESSION["username"];
}
//$team=$_SESSION["username"];
$teamtype="";
$ID="";
$teamres="";
$discipline="";
$teammanager="";
$tmphone="";
$ladyteammanager="";
$ladytmphone="";
$coach="";
$coachphone="";
if($stype=="Speed-Quad" || $stype=="Speed-Inline")
{
$teamtype="Speed";
}
else if($stype=="Roller-Hockey" || $stype=="Inline-Hockey")
{
$teamtype="Hockey";
}
else if($stype=="Other")
{
$teamtype="OtherDisciplines";
}
else if($stype=="Inline-Freestyle")
{
$teamtype="InlineFreestyle";
}
else
{
$teamtype=$stype;
}
$databaseQuery = 'SELECT * FROM `teammagers` WHERE `Team`="'.$con->real_escape_string($team).'" and `Discipline`="'.$con->real_escape_string($teamtype).'"';
//echo $databaseQuery;
$result5= mysqli_query($con,$databaseQuery) or die('Query failed: ' . mysqli_error());
while($row = mysqli_fetch_array($result5))
{
$ID=trim($row["ID"]);
$teamres=trim($row["Team"]);
$discipline=trim($row["Discipline"]);
$teammanager=trim($row["TeamManager"]);
$tmphone=trim($row["TMPhone"]);
$ladyteammanager=trim($row["LadyTeamManager"]);
$ladytmphone=trim($row["LadyTMPhone"]);
$coach=trim($row["Coach"]);
$coachphone=trim($row["CoachPhone"]);
}
?>
<center><h5>Declaration</H5> </center>
<center><p style="font-size:10px; text-align:justify;">
<?php echo $configs['declaration2']; ?>
</p></center>
<center>
<table width="945">
<tbody>
<tr>
<td colspan="6" width="483">Name of Lady Manager: <?php echo $ladyteammanager; ?></td>
<td colspan="14" width="462">Mobile No.: <?php echo $ladytmphone; ?></td>
</tr>
<tr>
<td colspan="6">Name of Manager: <?php echo $teammanager; ?></td>
<td colspan="14">Mobile No.: <?php echo $tmphone; ?></td>
</tr>
<tr>
<td colspan="6">Name of Coach: <?php echo $coach; ?></td>
<td colspan="14">Mobile No.: <?php echo $coachphone; ?></td>
</tr>
<tr>
<td colspan="20" rowspan="2">Signature of District Unit's Secretary annexing their Rubber Stamp<br/><br/><br/><br/><br/><br/></td>
</tr>
</tbody>
</table>
</center>
<?php
date_default_timezone_set('Asia/Kolkata');
echo "<p>Printed On :" . date("d-m-Y h:i:sa")."</p>";
?>
</body>
</html>