Viewing file: GeneralLargaPC1.php (2.43 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//echo 'hola';die();
include('class.MySqliDB.php');
include('globals.php');
$Debug= 1;
$ConnectionArray= array('Server'=>Server,
'Usser'=>User,
'Pass'=>Pass,
'Db'=>Db);
$ConnMysql= new MysqliDB($ConnectionArray);
$Sql= ("SET NAMES UTF8");
$ConnMysql->EnviarQuery($Sql);
$Sql= '';
$Title= '';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title>Clasificación General 13 Km</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div id="Logo" style="margin-left:20px;">
<!--img src="css/Escudo.png" width="45" height="79" /><span class="Logo"><?php echo VarTitle;?></span-->
<img src="css/cmmClaroS.jpg" width="75" height="75" /><span class="Logo"><?php echo VarTitle;?></span>
</div>
<div id="Contenedor" class="Contenedor">
<?php
$Sql= "SELECT `Dorsal`,`Nombre`,`Apellidos`,`CATEGORIA`,`PC1`
FROM `".Db."`.`inscripcion_unificada_mini` WHERE `Carrera` = 'LARGA' AND `PC1` IS NOT NULL ORDER BY `PC1` ASC";
$ConnMysql->EnviarQuery($Sql);
$ConnMysql->ResultadoObjeto();
//echo "<pre>";print_r($ConnMysql->ArrayResultado);die();
$Title= 'Tiempo de paso Control Intermedio Carrera 30,3 Km';
if($ConnMysql->MySqliResult->num_rows != 0)
{ ?>
<br />
<span class="Titulo"><?php echo $Title;?></span>
<br />
<!--span class="Texto15 Negrita left10">INICIO DE LA CARRERA: <?php echo $HoraInicio;?></span-->
<table style="margin-left:10px;" width="95%">
<tr>
<th class="TEncabezado">Orden<br />Llegada</th>
<th class="TEncabezado">Dorsal</th>
<th class="TEncabezado">Nombre</th>
<th class="TEncabezado">Apellidos</th>
<th class="TEncabezado">Categoria</th>
<th class="TEncabezado">Crono</th>
</tr>
<?php
$i= 1;
foreach($ConnMysql->ArrayResultado as $FDatos)
{
if($i%2)echo '<tr class="TImpar">';else echo '<tr class="TPar">';
echo sprintf("<td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>",
$i,$FDatos->Dorsal,$FDatos->Nombre,$FDatos->Apellidos,$FDatos->CATEGORIA,$FDatos->PC1);
$i++;
}
?> </table> <?php
}
else{echo '<span>NO HAY CORREDORES FINALIZADOS</span>';}
?>
</div>
</body>
</html>
|