Exemple #1
0
        <td style="width:30%;padding-bottom:10px;white-space:nowrap;">
        <?php 
echo $ladder;
?>
position
        </td>
          <td class="td_profile" style="padding-bottom:10px;">
          <b><?php 
echo $position;
?>
</b>
        </td>
          <td style="width:5%;">
        </td>
          <td colspan="2" style="text-align:right;padding-bottom:10px;">
          <? echo getImgForRank($position, "top"); ?>
        </td>
        <td></td>   
     </tr>
     <tr>
          <td style="width:30%;">
        Points
        </td>
          <td class="td_profile">
          <?php 
echo $points;
?>
        </td>
          <td style="width:5%;">
        </td>
          <td style="width:30%;">
Exemple #2
0
	        </tr>
	    <tr><td width="50%">
	        <table class="layouttable">
	        	
	<?
		$count = 0;
		$rows = mysql_num_rows($result);
	    while ($row = mysql_fetch_array($result)) {
	        $count++;
	        $position = $row['position'];
	        $name = $row['player_name'];
	        $points = $row['points'];
	        $player_sql = "SELECT approved from $playerstable where name = '$name'";
	        $player_row = mysql_fetch_array(mysql_query($player_sql));
	        $nameClass = colorNameClass($name, $player_row['approved']);
	        $imgRank = getImgForRank($position, "");
	        $cup_points = 7 - $position;
	        if (array_key_exists($name, $overall)) {
	            $overall_player = $overall[$name];
	            $overall_player['points'] += $cup_points;
	            $overall_player['seasonpos'] = addSeasonAndPos($overall_player['seasonpos'], $cur, $position);
	            $overall[$name] = $overall_player;
	        }
	        else {
	            $overall_player = array();
	            $overall_player['points'] = $cup_points;
	            $overall_player['seasonpos'] = addSeasonAndPos(array(), $cur, $position);
	            $overall[$name] = $overall_player;
	        }
	
	        echo "<tr style='height:19px;'>".