Example #1
0
" />

<?php 
if ($periode > $last_periode_trades) {
    echo "\n          <BR>\n               <CENTER>\n                    <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période limite des transactions est passée.</FONT>\n               </CENTER>\n     ";
    return;
}
//if ($gerant != 1) {
if ($trade_before_draft == "Y") {
    if ($pool->today < $trade_before_draft_dateBegin) {
        $_mydate = Datetime::createFromFormat('Y-m-d', $trade_before_draft_dateBegin, $pool->timeZone);
        $dateBeginMonth = $_mydate->format('m');
        $dateBeginMonth = $pool->conv_mois_numeric_to_text($dateBeginMonth);
        $dateBeginDay = $_mydate->format('j');
        $dateBeginDayText = $_mydate->format('l');
        $dateBeginDayText = $pool->date_getJour($dateBeginDayText);
        $dateBeginText = "{$dateBeginDayText}, {$dateBeginDay} {$dateBeginMonth}";
        $_mydate = Datetime::createFromFormat('Y-m-d', $trade_before_draft_dateEnd, $pool->timeZone);
        $dateEndMonth = $_mydate->format('m');
        $dateEndMonth = $pool->conv_mois_numeric_to_text($dateEndMonth);
        $dateEndDay = $_mydate->format('j');
        $dateEndDayText = $_mydate->format('l');
        $dateEndDayText = $pool->date_getJour($dateEndDayText);
        $dateEndText = "{$dateEndDayText}, {$dateEndDay} {$dateEndMonth}";
        echo "\n               <BR>\n                    <CENTER>\n                         <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période de transaction 'avant repêchage' aura lieu du <font style=\"color:red;\">{$dateBeginText}.</font> au <font style=\"color:red;\">{$dateEndText}.</font></FONT>\n                    </CENTER>\n          ";
        return;
    }
    if ($pool->today > $trade_before_draft_dateEnd && $pool->today < $trade_date_debut) {
        echo "\n               <BR>\n                    <CENTER>\n                         <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">TradeCenter sera disponible à compter du début de la saison.</FONT>\n                    </CENTER>\n          ";
        return;
    }
Example #2
0
     echo "<TR style=\"background-color:#FFFF33;\" " . "onmouseover=\"setPointer3(this,'over','#266494','#FFFF33','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','#FFFF33','black');\">\n";
 } else {
     echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black');\">\n";
 }
 $item = $dataSchedulePoolA[$i];
 $item1A = explode("?", $item);
 $item2A = explode(";", $item1A[1]);
 $infoPeriodeA = explode(";", $item1A[0]);
 $_mydate = Datetime::createFromFormat('Y-m-d', $infoPeriodeA[0], $pool->timeZone);
 $dateBegin = $_mydate->format('j M Y');
 $dateBeginYear = $_mydate->format('Y');
 $dateBeginMonth = $_mydate->format('m');
 $dateBeginMonth = $pool->conv_mois_numeric_to_text($dateBeginMonth);
 $dateBeginDay = $_mydate->format('j');
 $dateBeginDayText = $_mydate->format('l');
 $dateBeginDayText = substr($pool->date_getJour($dateBeginDayText), 0, 3);
 // DATE END
 $_mydate = Datetime::createFromFormat('Y-m-d', $infoPeriodeA[1], $pool->timeZone);
 $dateEnd = $_mydate->format('j M Y');
 $dateEndYear = $_mydate->format('Y');
 $dateEndMonth = $_mydate->format('m');
 $dateEndMonth = $pool->conv_mois_numeric_to_text($dateEndMonth);
 $dateEndDay = $_mydate->format('j');
 $dateEndDayText = $_mydate->format('l');
 $dateEndDayText = substr($pool->date_getJour($dateEndDayText), 0, 3);
 $hour_max_visitor = $infoPeriodeA[2];
 $hour_max_home = $infoPeriodeA[3];
 $speciale = $infoPeriodeA[4];
 $tip = "Période {$i}<br>Du {$dateBegin} Au {$dateEnd}<br><hr></hr>Visiteur: {$hour_max_visitor}<br>Receveur: {$hour_max_home}";
 #echo ("<TD class=\"tableCellRidge1\" align='center' onmouseover=\"ddrivetip('$tip','250')\" onmouseout=\"hideddrivetip()\">$speciale $i</TD>");
 echo "<TD class=\"tableCellRidge1\" style=\"padding-top:3px;padding-bottom:3px;\">" . "<b>Période {$i} {$speciale}</b><br><hr></hr>Du {$dateBeginDayText}. " . "{$dateBeginDay} {$dateBeginMonth} {$dateEndYear}<br> Au {$dateEndDayText} {$dateEndDay} {$dateEndMonth} {$dateEndYear}" . "<hr></hr>Vis.: {$hour_max_visitor}<br>Loc.: {$hour_max_home}</TD>";
Example #3
0
     $gerant1_team_abbr = $data["abbr"];
     $gerant2_team = $gerant2Profil["nhl_team"];
     $query = "SELECT logo,abbr FROM teams WHERE id = {$gerant2_team}";
     $resultID = mysql_query($query, $pool->handle);
     $data = mysql_fetch_array($resultID);
     mysql_free_result($resultID);
     $gerant2_logo = $data["logo"];
     $gerant2_team_abbr = $data["abbr"];
 }
 if ($duree_prop == 99) {
     $str_duree = "valide jusqu'à la fin de la période.";
 } else {
     $str_duree_prop = "+{$duree_prop} days";
     $_mydate = Datetime::createFromFormat('Y-m-d H:i:s', "{$date_prop} {$time_prop}", $pool->timeZone);
     $_mydate->modify('$str_duree_prop');
     $jour_fin_prop = $pool->date_getJour($_mydate->format('l'));
     $str_duree = "valide jusqu'à {$jour_fin_prop} {$time_prop}";
 }
 // Pour chaque joueur de la liste du gérant 1, il faut traiter selon les positions et selon le paramètre
 // trade_howto_switch_players
 $liste_joueurs_gerant1A = explode(":", $liste_joueurs_gerant1);
 $liste_joueurs_prop_gerant1 = 0;
 foreach ($liste_joueurs_gerant1A as $this_id_player) {
     if ($this_id_player != "") {
         $liste_joueurs_prop_gerant1 .= ",{$this_id_player}";
     }
 }
 // Pour chaque joueur de la liste du gérant 2, il faut traiter selon les positions et selon le paramètre
 // trade_howto_switch_players
 $liste_joueurs_gerant2A = explode(":", $liste_joueurs_gerant2);
 $liste_joueurs_prop_gerant2 = 0;
Example #4
0
}
*/
if ($pool->today > $date_fin_protection) {
    echo "\n          <BR>\n               <CENTER>\n                    <FONT STYLE=\"font-family:Tahoma, Verdana;font-size:18px\">La période de protection des joueurs est terminée.</FONT>\n               </CENTER>\n     ";
    return;
}
?>

<div align="center" style="padding-top:10px;">
<input type="button" class="Btn1" value="Gérer ma liste de protection" id="btn_gerer_liste_prot" />
<input type="button" class="Btn1" value="Liste des joueurs non protégés" id="btn_voir_liste_joueurs_non_prot" />
<input type="button" class="Btn1" value="Tableau des masses salariales des gérants" id="btn_voir_masse_salariale_gerants" />
<br>
<?php 
$_mydate = Datetime::createFromFormat('Y-m-d', $date_fin_protection, $pool->timeZone);
$jour = $pool->date_getJour($_mydate->format('l'));
$mois = $pool->date_getMois($_mydate->format('F'));
echo "<font style=\"font-size:15px;\">Date limite pour soumettre votre liste de protection: <strong>{$jour} " . $_mydate->format('d') . " {$mois} " . $_mydate->format('Y') . "</strong></font>\n";
?>

</div>
<hr style="width:80%;margin-top:10px;margin-bottom:10px;">

<?php 
echo "<div id=\"div_gererListeProt\">\n";
// Affichage de la table de sélection du gérant
$pool->affiche_selection_gerant($id_pool, $id_saison, $gerant_sel);
?>

<TABLE cellpadding=5 cellspacing=3 border=0 width="90%"> <!-- table pour le positionnement des tableaux -->
<tr>
Example #5
0
		
		
		<?php 
        // Affichage de la table de sélection du gérant
        $pool->affiche_selection_gerant($id_pool, $id_saison, $gerant_sel);
        // Affichage de la table de sélection de la période
        $pool->affiche_selection_periode($nbre_periodes, $periode_sel, $id_pool, $id_saison, $id_saison);
        echo "<br>\n";
        // affichage de l'heure limite pour soumettre son alignement.
        $heure_limite = $pool->getHeureLimiteAlignement($id_pool, $id_saison, $gerant_sel, $periode_sel);
        $periode_info = $pool->getPeriodeInfo($id_pool, $periode_sel, $id_saison);
        list($date_begin, $date_end, $var1, $var2, $var3) = split(";", $periode_info);
        list($date_begin_year, $date_begin_month, $date_begin_day) = split("-", $date_begin);
        list($date_end_year, $date_end_month, $date_end_day) = split("-", $date_end);
        $date_begin_day_text = date("l", mktime(12, 12, 12, $date_begin_month, $date_begin_day, $date_begin_year));
        $date_begin_day_text = $pool->date_getJour($date_begin_day_text);
        $date_end_day_text = date("l", mktime(12, 12, 12, $date_end_month, $date_end_day, $date_end_year));
        $date_end_day_text = $pool->date_getJour($date_end_day_text);
        $date_begin_month = $pool->conv_mois_numeric_to_fulltext($date_begin_month);
        $date_end_month = $pool->conv_mois_numeric_to_fulltext($date_end_month);
        if ($pool->isTodayFisrtDayOfAPeriod($id_pool, $id_saison) || $periode_sel > $periode) {
            echo "<center><font size=+2>Du <font style=\"color:red;font-weight:bold;\">" . "{$date_begin_day_text} {$date_begin_day} {$date_begin_month} {$date_begin_year} </font>" . "Au <font style=\"color:red;font-weight:bold;\">" . "{$date_end_day_text} {$date_end_day} {$date_end_month} {$date_begin_year}</font>";
            echo "<br>";
            echo "<center><font size=+2>Heure limite pour soumettre l'alignement: " . "<font style=\"color:red;font-weight:bold;\">{$heure_limite}</font></font></center>";
        } else {
            echo "<center><font size=+1>Du <font style=\"font-weight:bold;\">" . "{$date_begin_day_text} {$date_begin_day} {$date_begin_month} {$date_begin_year} </font>" . "Au <font style=\"font-weight:bold;\">" . "{$date_end_day_text} {$date_end_day} {$date_end_month} {$date_begin_year}</font></font></center>";
        }
        echo "<br>\n";
        ?>
		
		<FORM NAME="alignement" METHOD="POST" ACTION="<?php 
Example #6
0
     $gerant1_team_abbr = $data["abbr"];
     $gerant2_team = $gerant2Profil["nhl_team"];
     $query = "SELECT logo,abbr FROM teams WHERE id = {$gerant2_team}";
     $resultID = mysql_query($query, $pool->handle);
     $data = mysql_fetch_array($resultID);
     mysql_free_result($resultID);
     $gerant2_logo = $data["logo"];
     $gerant2_team_abbr = $data["abbr"];
 }
 if ($duree_prop == 99) {
     $str_duree = "valide jusqu'à la fin de la période.";
 } else {
     $duree_prop_sec = $duree_prop * 60 * 60 * 24;
     $temps_prop = strtotime("{$date_prop} {$time_prop}");
     $temps_fin_prop_sec = $temps_prop + $duree_prop_sec;
     $jour_fin_prop = $pool->date_getJour(date("l", $temps_fin_prop_sec));
     $str_duree = "valide jusqu'à {$jour_fin_prop} {$time_prop}";
 }
 echo "<div id=\"ajax\">\n";
 $pmb = new PhpMyBorder(true);
 echo "<FORM NAME=\"proposition_{$id_tradeProposition}\" ID=\"proposition_{$id_tradeProposition}\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
 echo $pmb->begin_round("500", "", "000000");
 //  (width, fillcolor, edgecolor)
 echo "<p align=\"center\"><FONT STYLE=\"font-family:Tahoma, Verdana; font-size:14px;\">Proposition {$compteur} - {$str_duree}</FONT></p>\n";
 echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
 echo "<tr>\n";
 if ($nhl_team_as_gerant_name == "N") {
     echo "<th class=\"tableHeaderRoundCorner\" colspan=6 align='center'>{$gerant1Profil['nickname']}";
 } else {
     if ($gerant1_team_abbr == "ANA") {
         //$vertical_align = "vertical-align:0%;margin-top:9px;margin-bottom:9px;";