Example #1
0
        echo $rcol;
        ?>
">
					<input type="checkbox" name="del[<?php 
        echo $a['awardId'];
        ?>
]" value="1" />
				</td>
			</tr>
		<?php 
    }
}
?>
			<tr>
				<td class="<?php 
echo toggleRowClass($rcol);
?>
">
					<?php 
echo l('new');
?>
 <input type="text" name="newcode" value="" />
				</td>
				<td class="<?php 
echo $rcol;
?>
">
					<input type="text" name="newname" value="" />
				</td>
				<td colspan="2" class="<?php 
echo $rcol;
Example #2
0
     }
     echo '&nbsp;<a href="index.php?mode=playerinfo&amp;player=', $entry['playerId'], '">', $entry['lastName'], '</a></td>', "\n";
     echo '<td class="', toggleRowClass($rcol), '">';
     echo '<img width="16" height="16" ';
     if ($entry['skill'] > $entry['oldSkill']) {
         echo 'src="hlstatsimg/skill_up.gif" alt="Up" title="Up"';
     } elseif ($entry['skill'] < $entry['oldSkill']) {
         echo 'src="hlstatsimg/skill_down.gif" alt="Down" title="Down"';
     } else {
         echo 'src="hlstatsimg/skill_stay.gif" alt="Stay" title="Stay"';
     }
     echo ' />';
     echo $entry['skill'], '</td>', "\n";
     echo '<td class="', toggleRowClass($rcol), '">', $entry['kills'], '</td>', "\n";
     echo '<td class="', toggleRowClass($rcol), '">', $entry['deaths'], '</td>', "\n";
     echo '<td class="', toggleRowClass($rcol), '">', $entry['kpd'], '</td>', "\n";
     echo '</tr>', "\n";
     $x++;
 }
 echo '<tr><td colspan="6" align="right">';
 if ($pData['pages'] > 1) {
     for ($i = 1; $i <= $pData['pages']; $i++) {
         if ($playersObj->getOption('page') == $i) {
             echo "[", $i, "]";
         } else {
             echo "<a href='index.php?", makeQueryString(array('page' => $i)), "'>[", $i, "]</a> ";
         }
     }
 } else {
     echo "[1]";
 }
Example #3
0
			<th><?php 
    echo l('Times Killed');
    ?>
</th>
			<th><?php 
    echo l('Deaths by');
    ?>
</th>
			<th><?php 
    echo l('Kills per Death');
    ?>
</th>
		</tr>
		<?php 
    foreach ($playerKillStats as $entry) {
        echo '<tr class="', toggleRowClass($rcol), '">';
        echo '<td>';
        if ($entry['active'] == "1") {
            echo '<img src="hlstatsimg/player.gif" width="16" height="16" alt="', l('Player'), '" alt="', l('Player'), '" />';
        } else {
            echo '<img src="hlstatsimg/player_inactive.gif" width="16" height="16" alt="', l('Player'), '" alt="', l('Player'), '" />';
        }
        echo '<a href="index.php?mode=playerinfo&player=', $entry['playerId'], '">', makeSavePlayerName($entry['name']), '</a>';
        echo '</td>';
        echo '<td>', $entry['kills'], '</td>';
        echo '<td>', $entry['deaths'], '</td>';
        echo '<td>', number_format((int) $entry['kpd'], 1), '</td>';
        echo '</tr>';
    }
    ?>
	</table>
        echo $playerObj->getOption('sortorder');
        ?>
.gif" alt="Sorting" width="7" height="7" />
				<?php 
    }
    ?>
			</th>
		</tr>
<?php 
    foreach ($history['data'] as $entry) {
        $rcol = "row-dark";
        echo '<tr>';
        echo '<td class="', toggleRowClass($rcol), '">', $entry['eventTime'], '</td>';
        echo '<td class="', toggleRowClass($rcol), '">', $entry['message'], '</td>';
        echo '<td class="', toggleRowClass($rcol), '">', $entry['serverName'], '</td>';
        echo '<td class="', toggleRowClass($rcol), '">', $entry['map'], '</td>';
        echo '</tr>';
    }
    echo '<tr><td colspan="5" align="right">';
    if ($history['pages'] > 1) {
        for ($i = 1; $i <= $history['pages']; $i++) {
            if ($playerObj->getOption('page') == $i) {
                echo "[", $i, "]";
            } else {
                echo "<a href='index.php?", makeQueryString(array('page' => $i)), "'>[", $i, "]</a> ";
            }
        }
    } else {
        echo "[1]";
    }
    echo '</td></tr></table>', "\n";