<table border="1"> <?php require_once 'tools/db/DbUtils.php'; require_once 'tools/service/tools.php'; $dbUtils = new DbUtils(); $dbUtils->connect(); $tools = new Tool($dbUtils); $tab = $dbUtils->executeQuery("select * from runnerdata order by nom, prenom"); $tabIdentique = array(); $previous = ""; $cpttab = 0; for ($i = 0; $i < sizeof($tab); $i++) { $current = $tab[$i]['nom'] . "_" . $tab[$i]['prenom']; ?> <tr class="list"> <td class="listing"><?php echo $i + 1; ?> </td> <td class="listing"><?php echo $tab[$i]['nom']; ?> </td> <td class="listing"><?php echo $tab[$i]['prenom']; ?> </td> <td class="listing"><?php echo $tab[$i]['club']; ?>
<br> <?php require_once 'tools/db/DbUtils.php'; require_once 'tools/service/tools.php'; $obj_utils = new DbUtils(); $tools = new Tool($dbUtils); $obj_utils->connect(); $tabRunners = $obj_utils->getAllTeams(); if ($tabRunners != 0) { ?> <table class="principale"> <tr><th colspan="5"><h2>Inscriptions Précédentes</h2></th></tr> <tr><th>Ordre d'inscription</th><th><?php if (Config::team) { echo "Formation"; } else { echo "Nom prénom"; } ?> </th><th>Dossard</th></tr> <?php $cptF = 1; for ($i = 0; $i < sizeof($tabRunners); $i++) { ?> <tr class="list"> <td class="listing" style="text-align:center; "><?php echo $i + 1; ?> </td> <td class="listing"><?php