예제 #1
0
?>
" />


<!-- popup caché de l'ajustement des pondérations -->
<div class="jqmWindowAjustPonderations" id="jqmAjustPonderations">
<div class="jqmdTL"><div class="jqmdTR"><div class="jqmdTC jqDrag">Ajustement des pondérations</div></div></div>
<div class="jqmdBL"><div class="jqmdBR"><div class="jqmdBC">

<div class="jqmdMSG">
<?php 
echo "<TABLE CLASS=\"drafts_stats\" ALIGN=\"center\" border=0 cellspacing=3 cellpadding=3>\n";
echo "<tr>\n";
echo "<TH CLASS=\"tableHeaderRoundCorner4\" colspan=10>Mettre un pourcentage pour chaque catégorie.<br>Le total doit obligatoirement donner 100%.</TH>\n";
echo "</tr>\n";
$revuesA = $pool->getRevues($id_saison);
$ponderationsA = $pool->draftKitPonderationsGerant($id_pool, $gerant, $id_saison);
echo "<input type=\"hidden\" id=\"nbre_revues\" value=\"" . count($revuesA) . "\">\n";
$somme = 0;
//$somme += $predict_pool;
foreach ($revuesA as $revue) {
    $revue_id = $revue["id"];
    $revue_nom = $revue["nom"];
    echo "<tr>\n";
    echo "<td style=\"padding-left:5px;padding-right:5px\" nowrap>Prédictions de la revue '{$revue_nom}'</td>\n";
    if ($ponderationsA["revue{$revue_id}"] != "") {
        $predict_revue = $ponderationsA["revue{$revue_id}"];
    } else {
        $predict_revue = 0;
    }
    echo "<td>" . "<input type=\"text\" id=\"revue{$revue_id}\" name=\"revue{$revue_id}\" value={$predict_revue} " . "maxlength=3 style=\"padding-left:5px;\" " . "onfocus=\"if (this.value==0) this.value='';\" " . "onblur=\"if (this.value=='') this.value=0; else calcul_somme_ponderations();\"/>" . "</td>\n";
예제 #2
0
 echo "<tr>\n";
 echo "<td>";
 echo "<input type=\"button\" class=\"Btn1\" value=\"Efficacité des prédictions des revues\" " . "onclick=\"javascript:document.stats_predictions.choix_stats_predic.value='efficacite';document.stats_predictions.submit();\" /></center>";
 echo "</td>\n";
 echo "<td>";
 echo "<input type=\"button\" class=\"Btn1\" value=\"Classement NHL virtuel\" " . "onclick=\"javascript:document.stats_predictions.choix_stats_predic.value='classement';document.stats_predictions.submit();\" /></center>";
 echo "</td>\n";
 echo "<td>";
 echo "<input type=\"button\" class=\"Btn1\" value=\"Efficacité des gérants\" " . "onclick=\"javascript:document.stats_predictions.choix_stats_predic.value='efficacite_gerant';document.stats_predictions.submit();\" /></center>";
 echo "</td>\n";
 echo "</tr>\n";
 echo "</table>\n";
 echo "</form>\n";
 switch ($choix_stats_predic) {
     case "efficacite":
         $revuesA = $pool->getRevues($id_saison2show);
         if ($id_saison == $id_saison2show) {
             echo "<br><center>Disponible à la fin de la saison...</center>\n";
         } elseif (count($revuesA) == 0) {
             echo "<br><center>Aucune statistique disponible pour cette année-là...</center>\n";
         } else {
             foreach ($revuesA as $revueA) {
                 echo "<div id=\"ajax\">\n";
                 echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
                 echo "<tr>\n";
                 echo "<th CLASS=\"tableHeaderRoundCorner\" colspan=10>% d'efficacité de la revue '{$revueA['nom']}'</th>";
                 echo "</tr>\n";
                 echo "<tr>\n";
                 echo "<th CLASS=\"tableHeader1\">Écart</th>";
                 echo "<th CLASS=\"tableHeader2\">% prédic.<br>dans l'écart</th>";
                 echo "</tr>\n";