Révision 57de9303
| b/index.php | ||
|---|---|---|
| 125 | 125 |
<?php if ($saisons) { ?>
|
| 126 | 126 |
<form name="resultats" method="post" action="<?=$_SERVER['PHP_SELF']?>"> |
| 127 | 127 |
<div id="boutons-selection"> |
| 128 |
Saison : |
|
| 129 |
<select name="saison"> |
|
| 128 |
Saison : |
|
| 129 |
<select name="saison"> |
|
| 130 | 130 |
<?php |
| 131 | 131 |
foreach ($saisons as $s) {
|
| 132 |
echo "\t\t\t<option value=\"$s\""; |
|
| 132 |
echo "\t\t\t\t<option value=\"$s\""; |
|
| 133 | 133 |
if ($saison == $s) echo " selected"; |
| 134 | 134 |
echo ">$s/".($s+1)."</option>\n"; |
| 135 | 135 |
} |
| 136 | 136 |
?> |
| 137 |
</select> |
|
| 137 |
</select> |
|
| 138 | 138 |
<?php } ?> |
| 139 | 139 |
<?php if ($divisions) { ?>
|
| 140 |
Division : |
|
| 141 |
<select name="division"> |
|
| 140 |
Division : |
|
| 141 |
<select name="division"> |
|
| 142 | 142 |
<?php |
| 143 | 143 |
foreach ($divisions as $d) {
|
| 144 | 144 |
list($a, $b) = explode($SEP_DIV, $d); |
| 145 |
echo "\t\t\t<option value=\"$d\""; |
|
| 145 |
echo "\t\t\t\t<option value=\"$d\""; |
|
| 146 | 146 |
if ($d == $division) echo " selected"; |
| 147 | 147 |
echo ">".$a.$b."</option>\n"; |
| 148 | 148 |
} |
| 149 | 149 |
?> |
| 150 |
</select> |
|
| 150 |
</select> |
|
| 151 | 151 |
<?php } ?> |
| 152 | 152 |
<?php if ($poule) { ?>
|
| 153 |
Poule : |
|
| 154 |
<select name="poule"> |
|
| 153 |
Poule : |
|
| 154 |
<select name="poule"> |
|
| 155 | 155 |
<?php |
| 156 | 156 |
foreach ($subdivs as $s) {
|
| 157 | 157 |
list($a, $b) = explode($SEP_DIV, $s); |
| 158 |
echo "\t\t\t<option value=\"$a\""; |
|
| 158 |
echo "\t\t\t\t<option value=\"$a\""; |
|
| 159 | 159 |
if ($poule == $a) echo " selected"; |
| 160 | 160 |
echo ">$a</option>\n"; |
| 161 | 161 |
} |
| 162 | 162 |
?> |
| 163 |
</select> |
|
| 163 |
</select> |
|
| 164 | 164 |
<?php } ?> |
| 165 | 165 |
<?php if ($phase) { ?>
|
| 166 |
Phase : |
|
| 167 |
<select name="phase"> |
|
| 166 |
Phase : |
|
| 167 |
<select name="phase"> |
|
| 168 | 168 |
<?php |
| 169 | 169 |
foreach ($subdivs as $s) {
|
| 170 | 170 |
list($a, $b) = explode($SEP_DIV, $s); |
| 171 |
echo "\t\t\t<option value=\"$b\""; |
|
| 171 |
echo "\t\t\t\t<option value=\"$b\""; |
|
| 172 | 172 |
if ($phase == $b) echo " selected"; |
| 173 | 173 |
echo ">$b</option>\n"; |
| 174 | 174 |
} |
| 175 | 175 |
?> |
| 176 |
</select> |
|
| 176 |
</select> |
|
| 177 | 177 |
<?php } ?> |
| 178 | 178 |
<?php if ($saisons) { ?>
|
| 179 |
<input type="submit" name="action" value="sélectionner" /> |
|
| 179 |
<input type="submit" name="action" value="sélectionner" /> |
|
| 180 | 180 |
</div> |
| 181 | 181 |
</form> |
| 182 | 182 |
<?php } ?> |
| ... | ... | |
| 251 | 251 |
arsort($Rang); |
| 252 | 252 |
if ($equipes) {
|
| 253 | 253 |
?> |
| 254 |
<div id="tabClassement"> |
|
| 254 |
<div id="tabClassement"> |
|
| 255 | 255 |
<table> |
| 256 | 256 |
<tr> |
| 257 | 257 |
<th class="colClt">Clt</th> |
| ... | ... | |
| 291 | 291 |
?> |
| 292 | 292 |
<?php if ($equipes) { ?>
|
| 293 | 293 |
</table> |
| 294 |
</div> |
|
| 295 |
<br /> |
|
| 294 |
</div> |
|
| 295 |
<br /> |
|
| 296 | 296 |
<?php } ?> |
| 297 | 297 |
<?php |
| 298 | 298 |
$j = 0; |
| 299 | 299 |
foreach ($rencontres as $j => $rencontre) {
|
| 300 | 300 |
?> |
| 301 | 301 |
<div class="tabJournee"> |
| 302 |
<table> |
|
| 303 |
<tr> |
|
| 304 |
<th class="colJournee" colspan="6">Journée <?=$j?></th> |
|
| 305 |
<tr> |
|
| 302 |
<table> |
|
| 303 |
<tr> |
|
| 304 |
<th class="colJournee" colspan="6">Journée <?=$j?></th> |
|
| 305 |
<tr> |
|
| 306 | 306 |
<?php |
| 307 | 307 |
foreach ($rencontre as $r) {
|
| 308 | 308 |
list($domicile, $visiteur, $ptsDom, $ptsVis) = explode(":", $r);
|
| 309 | 309 |
?> |
| 310 |
<tr> |
|
| 311 |
<td class="colDom"><div<?=($ptsDom != "" && $ptsVis != "" && $ptsDom >= $ptsVis) ? " class=\"vainqueur\"": ""?>><?=$equipes[$domicile]?></div></td> |
|
| 312 |
<td class="colSep"> - </td> |
|
| 313 |
<td class="colVis"><div<?=($ptsDom != "" && $ptsVis != "" && $ptsVis >= $ptsDom) ? " class=\"vainqueur\"": ""?>><?=$equipes[$visiteur]?></div></td> |
|
| 314 |
<td class="colPtsDom"><?=$ptsDom?></td> |
|
| 315 |
<td class="colPtsVis"><?=$ptsVis?></td> |
|
| 310 |
<tr> |
|
| 311 |
<td class="colDom"><div<?=($ptsDom != "" && $ptsVis != "" && $ptsDom >= $ptsVis) ? " class=\"vainqueur\"": ""?>><?=$equipes[$domicile]?></div></td> |
|
| 312 |
<td class="colSep"> - </td> |
|
| 313 |
<td class="colVis"><div<?=($ptsDom != "" && $ptsVis != "" && $ptsVis >= $ptsDom) ? " class=\"vainqueur\"": ""?>><?=$equipes[$visiteur]?></div></td> |
|
| 314 |
<td class="colPtsDom"><?=$ptsDom?></td> |
|
| 315 |
<td class="colPtsVis"><?=$ptsVis?></td> |
|
| 316 | 316 |
<?php if (IamAdmin()) { ?>
|
| 317 |
<td> |
|
| 317 |
<td> |
|
| 318 | 318 |
<?php $value = "$j-$domicile-$visiteur"; ?> |
| 319 |
<input type="submit" name="rencontre-<?=$value?>" value="modifier" /> |
|
| 320 |
<input type="submit" name="rencontre-<?=$value?>" value="supprimer" onClick='return confirm("Voulez-vous vraiment effacer cette rencontre entre\n<?=$equipes[$domicile]?> et <?=$equipes[$visiteur]?> ?")' />
|
|
| 321 |
</td> |
|
| 319 |
<input type="submit" name="rencontre-<?=$value?>" value="modifier" /> |
|
| 320 |
<input type="submit" name="rencontre-<?=$value?>" value="supprimer" onClick='return confirm("Voulez-vous vraiment effacer cette rencontre entre\n<?=$equipes[$domicile]?> et <?=$equipes[$visiteur]?> ?")' />
|
|
| 321 |
</td> |
|
| 322 | 322 |
<?php } ?> |
| 323 |
</tr> |
|
| 323 |
</tr> |
|
| 324 | 324 |
<?php |
| 325 | 325 |
} |
| 326 | 326 |
?> |
| 327 | 327 |
</table> |
| 328 |
</div> |
|
| 329 |
<br /> |
|
| 328 |
</div> |
|
| 329 |
<br /> |
|
| 330 | 330 |
<?php |
| 331 | 331 |
} |
| 332 | 332 |
?> |
| 333 | 333 |
<?php if (IamAdmin()) { ?>
|
| 334 | 334 |
<?php if ($equipes) { ?>
|
| 335 |
<div id="rencontre-ajouter"> |
|
| 336 |
<input type="submit" name="rencontre-ajouter" value="ajouter une rencontre" /> |
|
| 337 |
</div> |
|
| 335 |
<div id="rencontre-ajouter"> |
|
| 336 |
<input type="submit" name="rencontre-ajouter" value="ajouter une rencontre" /> |
|
| 337 |
</div> |
|
| 338 | 338 |
<?php } ?> |
| 339 | 339 |
</form> |
| 340 | 340 |
<?php } ?> |
Formats disponibles : Unified diff