D:\host\scoreman.in\klstate2025\print-list.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: portrait}}
@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 $configs['eventtitle']; ?></H3> </center>
<center><h5><?php echo strtoupper($stype); if($stype=="Other"){echo " DISCIPLINE"; } ?> PARTICIPANTS LIST</H5> </center>
<?php
$team=$_SESSION['teamf'];
$teampr=$team;
if($team=="")
{
$teampr=$_SESSION["username"];
}
echo "<h5>Team : ".$teampr." </h5>";
listentries($stype,$team,"hidedelete");
if($team=="")
{
$team=$_SESSION["username"];
}
?>
<?php
date_default_timezone_set('Asia/Kolkata');
echo "<p>Printed On :" . date("d-m-Y h:i:sa")."</p>";
?>
</body>
</html>