コード例 #1
0
ファイル: trade.php プロジェクト: jfanctil/lamoria
echo "<TR class=\"tr_title\">\n";
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">Grand Club</th>\n";
echo "</tr>\n";
echo "</table>\n";
$compteur = 0;
foreach (array('TM', 'G', 'D', 'F') as $pos_en_trait) {
    if ($gerant_logged == $gerant_sel) {
        echo "<div id=\"equipeGerant_{$pos_en_trait}\" class=\"trade_prop_gerant_{$pos_en_trait}\" style=\"margin-left:10px;\">\n";
        // pour que le 'outer' div ait une certaine hauteur:
        echo "<p>&nbsp;</p>\n";
    } else {
        echo "<div id=\"equipeAdv_{$pos_en_trait}\" class=\"trade_prop_adv_{$pos_en_trait}\" style=\"margin-left:10px;\">\n";
        // pour que le 'outer' div ait une certaine hauteur:
        echo "<p>&nbsp;</p>\n";
    }
    $playersGCgerant1 = $pool->getPlayersTradeGrandClub($id_pool, $gerant_sel, $periode, $id_saison, $can_trade_teams, $trade_howto_switch_players, $pos_en_trait);
    $last_pos = "";
    foreach ($playersGCgerant1 as $value) {
        $valueA = split(":", $value);
        $rank = $valueA[0];
        $id_player = $valueA[1];
        $first_name = $valueA[2];
        $last_name = $valueA[3];
        $pos = $valueA[4];
        $team_abbr = $valueA[5];
        $total_pts = $valueA[6];
        $pj_pool = $valueA[7];
        $trading_block = $valueA[8];
        $team_logo = $valueA[9];
        $team_logo2 = $valueA[10];
        $url_photo = $valueA[11];
コード例 #2
0
ファイル: trade.php プロジェクト: jfanctil/lamoria
               <FORM NAME="form_trading_block" METHOD="post" ACTION="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
               <center>


          	<TABLE ALIGN="center" 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, $ballotage_liste_IR);
            $last_pos = "";
            foreach ($playersGC as $value) {
                $valueA = split(":", $value);
                $rank = $valueA[0];
                $id_player = $valueA[1];
                $first_name = $valueA[2];
                $last_name = $valueA[3];
                $pos = $valueA[4];
                $team_abbr = $valueA[5];
                $total_pts = $valueA[6];
                $pj_pool = $valueA[7];
                $trading_block = $valueA[8];
                if ($pj_pool == "") {
                    $pj_pool = 0;
                }