Beispiel #1
0
<?php

require_once 'tools/db/DbUtils.php';
$dbUtils = new DbUtils();
$dbUtils->connect();
$course = $dbUtils->getCourse();
$dbUtils->close();
?>
<table class="mainSize">
  <tr><th class="bloc_menu" colspan="4"><h1>Runnerz TEAM course <b><?php 
echo $course;
?>
</b></h1></th></tr>
  <tr>
  	
    <th><a href="./index.php?page=inscriptions.php"><div class="button">Inscriptions</div></a></th>
    <th><a href="./index.php?page=timer.php"><div class="button">Timer</div></a></th>
    <th><a href="./index.php?page=result.php&query=general"><div class="button">Résultats</div></a></th>
	<th><a href="./index.php?page=correction/correction_results.php"><div class="button">Corrections</div></a></th>
  
  </tr>
</table>
Beispiel #2
0
</head>

<body onLoad="setFocus()">
<?php 
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
require_once 'tools/db/queries.php';
require_once 'tools/service/tools.php';
$obj_utils = new DbUtils();
$obj_utils->connect();
$saved = false;
if (isset($_POST['dossard'])) {
    $saved = $obj_utils->setRunner($_POST['dossard']);
}
$obj_utils->connect();
$courseToShow = $obj_utils->getCourse();
$query = getQueryForKey("generalLast10", $courseToShow);
$tabRequest = $obj_utils->executeQuery($query);
$tool = new Tool($obj_utils);
?>
<h1>Arrivée</h1>

<form name="form1" method="post" action="./index.php?page=timer.php">
<table class="principale">
	<tr>
		<td width="50%" align="center">
			<table >
				<tr><td style="text-align: center;"><strong>Numéro de dossard:&nbsp;</strong></td></tr>
				<tr>
					<td style="text-align: center;"> 
						<input maxlength="5" size="5" type="text" name="dossard" autocomplete="off" style="font-size: 25px; text-align: right;">
Beispiel #3
0
<?php

require_once 'tools/http/HTTP_REQUEST.php';
require_once 'tools/db/DbUtils.php';
require_once 'tools/service/tools.php';
require_once 'tools/db/queries.php';
if (Config::team) {
    include 'pages/header/result_header.php';
}
$obj_utils = new DbUtils();
$obj_utils->connect();
$queryKey = HTTP_RESQUEST::get('query');
$course = HTTP_RESQUEST::get('course');
if ($queryKey == "general") {
    $course = $obj_utils->getCourse();
}
$courseToShow = $course;
if ($queryKey == "challenge") {
    $courseToShow = "ALL CHALLENGE";
}
$tool = new Tool($obj_utils);
$query = getQueryForKey($queryKey, $course);
$tabRequest = $obj_utils->executeQuery($query);
?>
<h1>Resultats <?php 
echo $courseToShow;
?>
</h1>
<?php 
if ($queryKey == "challenge" && $tabRequest != 0) {
    $results = $tool->buildList($tabRequest);
Beispiel #4
0
</head>

<body>
<br>
	<table class="principale" width="100%" style="border-style: none;">
		<tr>
			<td><h1><?php 
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
if (HTTP_RESQUEST::exist('login') && HTTP_RESQUEST::exist('password')) {
    $login = HTTP_RESQUEST::param('login');
    $password = HTTP_RESQUEST::param('password');
    if ($login == "set" && ($password = "******")) {
        $obj_utils = new DbUtils();
        $obj_utils->connect();
        $obj_utils->setTime();
        $time = $obj_utils->getTime($obj_utils->getCourse());
        $obj_utils->close();
        echo "La valeur du temp de référence est: " . $time;
    }
    ?>
</h1> <?php 
}
?>
			</td>
		</tr>
		
	</table>
</body>
</html>