Viewing file: VerCorredor.php (6.51 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ver Datos Corredor</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="favicon.ico">
<script>
function goBack2()
{
//window.history.go(-2);
window.location.replace("Participantes.php");
}
function goBack1()
{
window.history.back();
}
</script>
<style>
.Etiqueta {
font-family: "Times New Roman", Times, serif;
font-size: 20px;
font-weight: bold;
color: #369;
}
.Valor {
font-family: "Times New Roman", Times, serif;
font-size: 20px;
font-weight: bold;
color: #333;
}
.UpdateKO {
font-family: "Times New Roman", Times, serif;
font-size: 40px;
font-weight: bold;
color: #C00;
}
.UpdateOK {
font-family: "Times New Roman", Times, serif;
font-size: 40px;
font-weight: bold;
color: #093;
}
</style>
</head>
<?php
//print_r($_REQUEST);//die();
include('globals.php');
if(!isset($_REQUEST['Dorsal']))
{ ?>
<body>
<div id="Logo" style="margin-left:20px;">
<a href="./VerCorredor.php"><img src="css/cmmClaroS.jpg" width="75" height="75" /></a><span class="Logo"><?php echo VarTitle;?></span>
</div>
<div id="Contenedor" class="Contenedor">
<form method="get">
<table style="margin-left:15px;">
<tr>
<td width="400"><span class="Texto35 Blue Negrita" >Introduzca el Dorsal:</span></td>
<td width="400"><input name="Dorsal" id="Dorsal" type="text" size="10" maxlength="10" class="Texto35 Black Negrita"/></span></td>
</tr>
</table>
</form>
</div>
<script>
document.getElementById('Dorsal').focus();
</script>
<?php
}
elseif($_REQUEST['Dorsal'] > 500)
{ ?>
<body>
<div id="Logo" style="margin-left:20px;">
<a href="./VerCorredor.php"><img src="css/cmmClaroS.jpg" width="75" height="75" /></a><span class="Logo"><?php echo VarTitle;?></span>
</div>
<br />
<span class="Texto30 Red left20 Negrita">EL DORSAL <?php echo $_REQUEST['Dorsal'];?> NO EXISTE</span>
<form method="get">
<table style="margin-left:15px;">
<tr>
<td width="400"><span class="Texto35 Blue Negrita" >Introduzca el Dorsal:</span></td>
<td width="400"><input name="Dorsal" id="Dorsal" type="text" size="10" maxlength="10" class="Texto35 Black Negrita"/></span></td>
</tr>
</table>
</form>
<script>
document.getElementById('Dorsal').focus();
</script>
<?php
}
elseif($_REQUEST['Dorsal'] <= 500)
{
include('class.MySqliDB.php');
$ConnectionArray= array('Server'=>Server,
'Usser'=>User,
'Pass'=>Pass,
'Db'=>Db);
$ConnMysql= new MysqliDB($ConnectionArray);
//print_r($ConnMysql);
$Sql= ("SET NAMES UTF8");
$ConnMysql->EnviarQuery($Sql);
if(strlen($_REQUEST['Dorsal']) > 3)
{
$Sql= '';
$Sql= sprintf( "SELECT IU.`Dorsal`,IU.`Nombre`,IU.`Apellidos`,IU.`FxNacimiento`,IU.`CATEGORIA`,IU.`EDAD`,C.`ControlSalida`,C.`PC1`,C.`Puesto`,C.`General`,
C.`RFID`,C.`CRONO`,C.`CARRERA`
FROM `".Db."`.`inscripcion_unificada` IU LEFT JOIN `".Db."`.`inscripcion_unificada_mini` C
ON IU.`Dorsal`=C.`Dorsal` WHERE C.`RFID`= '%s'",(int)$_REQUEST['Dorsal']);
//echo $Sql;
}
else
{
$Sql= sprintf( "SELECT IU.`Dorsal`,IU.`Nombre`,IU.`Apellidos`,IU.`FxNacimiento`,IU.`CATEGORIA`,IU.`EDAD`,C.`ControlSalida`,C.`PC1`,C.`Puesto`,C.`General`,
C.`RFID`,C.`CRONO`,C.`CARRERA`
FROM `".Db."`.`inscripcion_unificada` IU LEFT JOIN `".Db."`.`inscripcion_unificada_mini` C
ON IU.`Dorsal`=C.`Dorsal` WHERE IU.`Dorsal`= '%s'",$_REQUEST['Dorsal']);
}
$ConnMysql->EnviarQuery($Sql);//echo "<pre>";print_r($ConnMysql);echo "</pre>";
$ConnMysql->ResultadoObjetoU();
$NumRows= $ConnMysql->MySqliResult->num_rows;
?>
<body>
<div id="Logo" style="margin-left:20px;">
<a href="./VerCorredor.php"><img src="css/cmmClaroS.jpg" width="75" height="75" /></a><span class="Logo"><?php echo VarTitle;?></span>
</div>
<form method="get">
<table style="margin-left:15px;">
<tr>
<td width="400"><span class="Texto35 Blue Negrita" >Introduzca el Dorsal:</span></td>
<td width="400"><input name="Dorsal" id="Dorsal" type="text" size="10" maxlength="10" class="Texto35 Black Negrita"/></span></td>
</tr>
</table>
</form>
<script>
document.getElementById('Dorsal').focus();
</script>
<?php if($NumRows == 1)
{ ?>
<table style="margin-left:15px;">
<tr>
<td width="300"><span class="Etiqueta">Dorsal:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->Dorsal;?></span></td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Nombre:</span></td>
<td width="400">
<span class="Valor"><?php echo $ConnMysql->ArrayResultado->Nombre;?></span>
</td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Apellidos:</span></td>
<td width="400">
<span class="Valor"><?php echo $ConnMysql->ArrayResultado->Apellidos;?></span>
</td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Crono:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->CRONO;?></span></td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Carrera:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->CARRERA;?></span></td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Clasificación General:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->General;?></span></td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Categoría:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->CATEGORIA;?></span></td>
</tr>
<tr>
<td width="300"><span class="Etiqueta">Clasificación Categoría:</span></td>
<td width="400"><span class="Valor"><?php echo $ConnMysql->ArrayResultado->Puesto;?></span></td>
</tr>
</table>
<?php }
else
{ ?>
<span class="Texto30 Red left20 Negrita">DORSAL NO ASIGNADO A NINGUN CORREDOR</span>
<?php } ?>
<?php
} ?>
</body>
</html>
|