D:\host\scoreman.in\tldt2025\scoresheet.php
<?php
include('dbconnect.php');
include('jfunctions.php');
include('functions.php');
$configs = include('conf.php');
//phpinfo();
$maxperheat=10000;
$raceid=$_GET["raceid"];
$racetitle=$_GET["racetitle"];
$maxperheat=$_GET["maxperheat"];
$bankacno="";
$bankifsc="";
$bankacname="";
$bankname="";
$eventtitle="";
$eventdate="";
$contact="";
$repdistrict=$_SESSION['teamf'];
if($repdistrict=="")
{
$repdistrict=$_SESSION['currentdistrict'];
}
// $club = $_SESSION["username"];
if ($_SESSION["username"]=="") {
loginbox();
}
?>
<html>
<head>
<title><?php echo $racetitle."-RACE CHART-".$repdistrict."2025"; ?> </title>
<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
$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))
{
$eventtitle=trim($row["championshiptitle"]);
$eventdate=trim($row["dates"]);
}
$feeamt=$fees;
?>
<?php
$team=$_SESSION['teamf'];
$teampr=$team;
if($team=="")
{
$teampr=$_SESSION["username"];
}
// echo "<h5>District / Team : ".$teampr." </h5>";
//echo renderScoresheet(scoresheet($con, "rink2", 6,$repdistrict));
echo '<br/><a href="scoresheet.php?raceid='.$raceid.'&racetitle='.$racetitle.'&maxperheat='.$maxperheat.'" target="_blank" class="noprint ui-btn ui-btn-raised ui-btn ui-btn-inline waves-effect waves-button"><i class="zmdi zmdi-print zmd-2x"></i> Print Scoresheet</a>';
echo '<a href="results.php?raceid='.$raceid.'&racetitle='.$racetitle.'" target="_blank" class="noprint ui-btn ui-btn-raised ui-btn ui-btn-inline waves-effect waves-button"><i class="zmdi zmdi-print zmd-2x"></i> Print Results</a>';
echo renderScoresheet(scoresheet($con, $raceid, $maxperheat,$repdistrict),$con, $racetitle, $raceid,$repdistrict,$eventtitle);
//renderScoresheet(array $rows, $eventTitle = 'Start List', $raceName = '', $repdistrict = '')
?>
</body>
</html>