Ejemplo n.º 1
0
     </FORM>
     <?php 
echo $pmb->end_round();
echo "<br>";
?>
</DIV>
<DIV style="float:left;padding-left:20px;">
     <?php 
if ($gerant_sel == $gerant) {
    ?>
     <CENTER>
     
     <FONT STYLE="font-family:Tahoma, Verdana; font-size:16px; font-weight:bold;">Modifier mon mot de passe</FONT>
     <BR/>
     <?php 
    $pmb = new PhpMyBorder(true);
    echo $pmb->begin_round("400", "", "000000");
    //  (width, fillcolor, edgecolor)
    ?>
     
     <FORM NAME="change_password_form" METHOD="POST" ACTION="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">
          <TABLE cellspacing=5 cellpadding=3 align="center">
               <TR>
                    <TD align="right">Ancien mot de passe:</TD>
                    <TD><INPUT TYPE="PASSWORD" NAME="old_password" SIZE=20/></TD>
               </TR>
               <TR>
                    <TD align="right">Nouveau mot de passe:</TD>
Ejemplo n.º 2
0
 if ($data[d1] == 0) {
     echo "<center><H3>Aucun échange en attente d'approbation.</H3></center>\n";
 } else {
     // On affiche les trades à approuver...
     $query = "select * from trade\n\t                    where id_pool = {$id_pool}\n\t                          and saison_id = {$id_saison}\n\t                          and approuve = 'N'\n\t                    order by id asc";
     $resultID = mysql_query($query, $pool->handle);
     while ($data = mysql_fetch_array($resultID, MYSQL_ASSOC)) {
         $id_trade = $data["id"];
         $id_gerant1 = $data["id_gerant1"];
         $liste_joueurs_gerant1 = $data["liste_joueurs_gerant1"];
         $id_gerant2 = $data["id_gerant2"];
         $liste_joueurs_gerant2 = $data["liste_joueurs_gerant2"];
         $gerant1Profil = $pool->getGerantProfil($id_pool, $id_gerant1, $id_saison);
         $gerant2Profil = $pool->getGerantProfil($id_pool, $id_gerant2, $id_saison);
         echo "<div id=\"ajax\">\n";
         $pmb = new PhpMyBorder(true);
         echo "<FORM NAME=\"trade_{$id_trade}\" ID=\"trade_{$id_trade}\" METHOD=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">\n";
         echo $pmb->begin_round("500", "", "000000");
         //  (width, fillcolor, edgecolor)
         echo "<table cellpadding=0 cellspacing=0 border=0 align=\"center\">\n";
         echo "<tr>\n";
         echo "<th class=\"tableHeaderRoundCorner\" colspan=6 align='center'>{$gerant1Profil['nickname']}";
         echo " a proposé l’échange suivante";
         echo "</th>\n";
         echo "</tr>\n";
         echo "<tr>\n";
         echo "<TH class=\"tableHeader1\">Joueur</TH>\n";
         echo "<TH class=\"tableHeader1\">Pos</TH>\n";
         echo "<TH class=\"tableHeader1\">Équipe</TH>\n";
         echo "<TH class=\"tableHeader2\">Points</TH>\n";
         echo "</tr>\n";
Ejemplo n.º 3
0
 $itemA = explode(":", $item);
 $id_ballotage = $itemA[0];
 $id_gerant_soumetteur = $itemA[1];
 $nickname = $itemA[2];
 $id_player = $itemA[3];
 $player = $itemA[4];
 $team_abbr = $itemA[5];
 $pos = $itemA[6];
 $reponse = $itemA[7];
 $nbre_reponse = $itemA[8];
 $nbre_oui = $itemA[9];
 $nbre_non = $itemA[10];
 $id_periode = $itemA[11];
 $points = $itemA[12];
 echo "<div id=\"ajax\">\n";
 $pmb = new PhpMyBorder(true);
 echo $pmb->begin_round("375", "", "000000");
 //  (width, fillcolor, edgecolor)
 echo "<TABLE CLASS=\"ballotage\" cellspacing=0 cellpadding=0>\n";
 echo "<TR>\n";
 echo "<TD COLSPAN=3 style=\"padding-left:3px;\"><b><u>Pיriode {$id_periode}</u></b></TD>\n";
 echo "</TR>\n";
 echo "<TR>\n";
 echo "<TD COLSPAN=3 style=\"padding-left:3px;padding-top:10px;height:40px;\"><b>{$nickname}</b> soumet <b>{$player}, {$pos} ({$team_abbr}) - {$points} pts</b> au ballotage.</TD>\n";
 echo "</TR>\n";
 echo "<TR>\n";
 echo "<TD COLSPAN=3><hr width=\"98%\"></hr></TD>\n";
 echo "</TR>\n";
 echo "<TR>\n";
 echo "<TD width=50px style=\"padding-left:10px;\"><li>oui&nbsp;&nbsp;&nbsp;</td>";
 echo "<td width=70px>( " . number_format($nbre_oui / $nbre_reponse * 100, 1, ",", " ") . " % )</td>";
Ejemplo n.º 4
0
?>
);">
     <?php 
// CONN SMYTHE
/*
     $dataA = $pool->trophy($id_pool,"conn_smythe");
$first_item = $dataA[0];
$trophy_image = $first_item["image"];
$trophy_def = $first_item["def"];
*/
$query = "select image from trophy_definitions\n\t          where trophee_key = 'conn_smythe'";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID);
mysql_free_result($resultID);
$trophy_image = $data["image"];
$pmb = new PhpMyBorder(true);
echo "<table align=\"center\" cellspacing=10 cellpadding=10>\n";
switch ($ronde) {
    case 1:
        echo "<tr>\n";
        echo "<td align=\"center\">\n";
        echo $pmb->begin_round("475", "", "000000");
        //  (width, fillcolor, edgecolor)
        $pool->playoffs_affichage_ronde($id_pool, $id_saison, $ronde, 1);
        echo $pmb->end_round();
        echo "</td>\n";
        echo "<td align=\"center\" rowspan=2>\n";
        if ($trophy_image != "") {
            echo "<img src=\"{$trophy_image}\" border=0>\n";
        } else {
            echo $trophy_def;
echo "<img src=\"/interPool/images/printer.gif\" border=0 style=\"margin-left:20px;margin-right:10px;\" " . "onmouseover=\"setPointerPrint(this,'over','transparent','transparent','','');\" " . "onmouseout=\"setPointerPrint(this,'out','transparent','transparent','','');\" " . "onmouseup=\"javascript:window.open('draft_ordre_selection_imprimable.php?id_pool={$id_pool}&saison_id={$id_saison}&print=1','','width=950,height=750,resizable=yes,scrollbars=yes,status=no');\"" . "/>Imprimer";
?>
     </center><br/>
     
     
     <?php 
$pmb_width = 525;
$query = "select id,real_name_abrege from accounts\n\t          where id_pool = {$id_pool}\n\t          and saison_id = {$id_saison}\n\t          order by id asc";
$resultID = mysql_query($query, $pool->handle);
while ($data = mysql_fetch_array($resultID)) {
    $gerantsA[$data["id"]] = $data["real_name_abrege"];
}
mysql_free_result($resultID);
for ($i = 1; $i <= $nbre_rondes; $i++) {
    echo "<div style=\"float:left;margin-left:10px;margin-top:5px;\">\n";
    $pmb = new PhpMyBorder(true);
    echo $pmb->begin_round("{$pmb_width}", "", "000000");
    //  (width, fillcolor, edgecolor)
    echo "<table align='center' cellspacing=5 cellpadding=5>\n";
    echo "<tr><th colspan=3><u>Ronde {$i}</u></th></tr>\n";
    $query = "select * from draft_repechage\n\t               where id_pool = {$id_pool}\n\t               and saison_id = {$id_saison}\n\t               and ronde = {$i}\n\t               order by ordre_repechage asc";
    $resultID = mysql_query($query, $pool->handle);
    unset($ordre_draftA);
    while ($data = mysql_fetch_array($resultID)) {
        $ordre_repechage = $data["ordre_repechage"];
        $id_gerant = $data["id_gerant"];
        echo "<tr>\n";
        echo "<td nowrap style=\"align:right;padding-top:12px;padding-bottom:12px;\">{$ordre_repechage}) {$gerantsA[$id_gerant]}</td>\n";
        //echo "<td nowrap style=\"align:left;\">$gerantsA[$id_gerant]</td>";
        echo "<td nowrap style=\"align:left\">_______________________________________________</td>";
        echo "</td>\n";
Ejemplo n.º 6
0
<BODY>

<DIV ID="main_topPool">
     
     <INPUT TYPE="HIDDEN" ID="id_pool" VALUE="<?php 
echo $id_pool;
?>
" />
     <INPUT TYPE="HIDDEN" ID="saison_id" VALUE="<?php 
echo $id_saison;
?>
" />
     
     
     <?php 
$pmb = new PhpMyBorder(true);
echo $pmb->begin_round("{$pmb_width}", "", "000000");
//  (width, fillcolor, edgecolor)
?>
     
     
     <div id="menu_contextuel">
     
     <TABLE CLASS="main" cellspacing=0 cellpadding=0 id="table">
     	<TR>
     		<TD colspan=5 WIDTH="100%" ALIGN="center" style='font-weight: bold'><?php 
echo $label;
?>
</TD>
     	</TR>
     	<TR>
Ejemplo n.º 7
0
     echo "</TR>\n";
     $rang++;
 }
 echo "</TABLE>\n";
 echo $pmb->end_round();
 echo "</td>\n";
 $dataSondagesHistoriqueA = $pool->getSondagesHistorique($id_pool, $periode, $gerant_sel, $id_saison);
 $nbre_sondage_row = 2;
 foreach ($dataSondagesHistoriqueA as $item) {
     if ($nbre_sondage_row > 3) {
         echo "</tr>\n";
         echo "<tr>\n";
         $nbre_sondage_row = 1;
     }
     echo "<td align=\"center\" valign=\"top\">\n";
     $pmb = new PhpMyBorder(true);
     $itemA = explode(";", $item);
     $id_sondage = $itemA[0];
     $question = $itemA[1];
     $choix1 = $itemA[2];
     $choix2 = $itemA[3];
     $choix3 = $itemA[4];
     $choix4 = $itemA[5];
     $choix5 = $itemA[6];
     $choix6 = $itemA[7];
     $reponse = $itemA[8];
     $nbre_choix1 = $itemA[9];
     $nbre_choix2 = $itemA[10];
     $nbre_choix3 = $itemA[11];
     $nbre_choix4 = $itemA[12];
     $nbre_choix5 = $itemA[13];
Ejemplo n.º 8
0
">
          <INPUT TYPE="HIDDEN" NAME="id_team_selected"/>
          <INPUT TYPE="HIDDEN" NAME="id_player_selected"/>
          <INPUT TYPE="HIDDEN" NAME="id_hockeydb_selected"/>
          <INPUT TYPE="HIDDEN" ID="id_pool" VALUE="<?php 
        echo $id_pool;
        ?>
" />
          <INPUT TYPE="HIDDEN" ID="saison_id" VALUE="<?php 
        echo $id_saison;
        ?>
" />
     
          
          <?php 
        $pmb = new PhpMyBorder(true);
        echo $pmb->begin_round("1000", "", "000000");
        //  (width, fillcolor, edgecolor)
        ?>
          
          <br/>
          
          
          <TABLE ALIGN="CENTER" cellpadding=10 cellspacing=10>
               <TR>
          <?php 
        $nhl_conferences = $pool->getNHLConferences();
        foreach ($nhl_conferences as $data_conference) {
            echo "<TD>\n";
            // initialisation de certaines array (et remise à 0).
            $id_teamA = array();
Ejemplo n.º 9
0
               document.getElementById("image_loading").style.height="0px";
            </script>
         <?php 
            return;
        }
        ?>
         
         <br>
         <FORM NAME="form_trading_block" METHOD="post" ACTION="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
         <center>
            
         <?php 
        $pmb = new PhpMyBorder(true);
        echo $pmb->begin_round("600", "", "000000");
        //  (width, fillcolor, edgecolor)
        ?>
      	
      	<TABLE ALIGN="center" WIDTH="98%" cellpadding=0 cellspacing=0>
      	   <TR>
      	      <TD>
      	         <INPUT TYPE="HIDDEN" NAME="tb_action" />
      	         <SELECT ID="tb_joueurs_club" NAME="tb_joueurs_club[]" SIZE=36 multiple >
      		      <OPTGROUP LABEL="Grand Club">
      		      <?php 
        foreach (array('TM', 'G', 'D', 'F') as $pos_en_trait) {
            $playersGC = $pool->getPlayersTradeGrandClub($id_pool, $gerant_sel, $periode, $id_saison, $can_trade_teams, $trade_howto_switch_players, $pos_en_trait);
            $last_pos = "";
            foreach ($playersGC as $value) {