当前位置: 首页>>代码示例>>PHP>>正文


PHP printSectionTitle函数代码示例

本文整理汇总了PHP中printSectionTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP printSectionTitle函数的具体用法?PHP printSectionTitle怎么用?PHP printSectionTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了printSectionTitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printSectionTitle

		<li>
			<a href="#points">How is the "points" rating calculated?</a><br />
		</li>
		<li>
			<a href="#weaponmods">What are all the weapon points modifiers?</a><br />
		</li>
		<li>
			<a href="#set">How can I set my real name, e-mail address, and homepage?</a><br />
		</li>
		<li>
			<a href="#hideranking">My rank is embarrassing. How can I opt out?</a>
		</li>
	</ol>

	<?php 
printSectionTitle('Answers');
?>

	<div style="margin-left:2%;">
		<h1 class="fTitle" style="padding-top:10px;"><a name="players">1. How are players tracked? Or, why is my name listed more than once?</a></h1><br /><br />
			<?php 
if ($g_options['Mode'] == 'NameTrack') {
    ?>
			Players are tracked by nickname. All statistics for any player using a particular name will be grouped under that name. It is not possible for a name to be listed more than once for each game.<br /><br />
			<?php 
} else {
    if ($g_options['Mode'] == 'LAN') {
        $uniqueid = 'IP Address';
        $uniqueid_plural = 'IP Addresses';
        ?>
			Players are tracked by IP Address. IP addresses are specific to a computer on a network.<br /><br />
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:help.php

示例2: valid_request

if (isset($_GET['minkills'])) {
    $minkills = valid_request($_GET['minkills'], 1);
} else {
    $minkills = 1;
}
pageHeader(array($gamename, 'Player Rankings'), array($gamename => "%s?game={$game}", 'Player Rankings' => ''));
$rank_type = 0;
if (isset($_GET['rank_type'])) {
    $rank_type = valid_request(strval($_GET['rank_type']), 0);
}
// Autocomplete function below implemented by KingJ. Heavy modified to use HTML request instead of JSON.
?>

<div class="block">
	<?php 
printSectionTitle('Player Rankings');
?>
	<div class="subblock">
		<div style="float:left;">
			<script type="text/javascript" src="<?php 
echo INCLUDE_PATH;
?>
/js/Observer.js"></script>
			<script type="text/javascript" src="<?php 
echo INCLUDE_PATH;
?>
/js/Autocompleter.js"></script>
			<script type="text/javascript" src="<?php 
echo INCLUDE_PATH;
?>
/js/Autocompleter.Request.js"></script>
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:players.php

示例3: pageHeader

} else {
    $minkills = 1;
}
pageHeader(array($gamename, 'Last 24h Connected'), array($gamename => "%s?game={$game}", 'Last 24h Connected' => ''));
$table = new Table(array(new TableColumn('lastName', 'Player', 'width=26&flag=1&link=' . urlencode('mode=playerinfo&amp;player=%k')), new TableColumn('con_date', 'Last Connect', 'width=15&align=right'), new TableColumn('skill', 'Points', 'width=6&align=right'), new TableColumn('activity', 'Activity', 'width=10&sort=no&type=bargraph'), new TableColumn('kills', 'Kills', 'width=5&align=right'), new TableColumn('deaths', 'Deaths', 'width=5&align=right'), new TableColumn('headshots', 'Headshots', 'width=7&align=right'), new TableColumn('kpd', 'K:D', 'width=10&align=right'), new TableColumn('hpk', 'HS:K', 'width=5&align=right'), new TableColumn('acc', 'Accuracy', 'width=6&align=right&append=' . urlencode('%'))), 'playerId', 'last_event', 'skill', true);
$day_interval = 28;
#adjusted query to exclude bots that may not have hideRanking = 1
$resultCount = $db->query("\n\t\tSELECT\n\t\t\tCOUNT(*)\n\t\tFROM\n\t\t\thlstats_Players\n\t\tWHERE\n\t\t\thlstats_Players.game = '{$game}'\n\t\t\tAND hlstats_Players.hideranking = 0\n\t\t\tAND hlstats_Players.lastName NOT REGEXP '^BOT|^[(*)]'\n\t\t\tAND hlstats_Players.kills >= {$minkills}\n\t\t\tAND hlstats_Players.last_event >= {$time}\n\t");
list($numitems) = $db->fetch_row($resultCount);
#adjusted query to exclude bots that may not have hideRanking = 1
$result = $db->query("\n\t\tSELECT\n\t\t\thlstats_Players.playerId,\n\t\t\tFROM_UNIXTIME(last_event,'%Y.%m.%d %T') as con_date,\n\t\t\thlstats_Players.flag,\n                        unhex(replace(hex(hlstats_Players.lastName), 'E280AE', '')) as lastName,\n\t\t\thlstats_Players.skill,\n\t\t\thlstats_Players.kills,\n\t\t\thlstats_Players.deaths,\n\t\t\tIFNULL(ROUND(hlstats_Players.kills / IF(hlstats_Players.deaths = 0, 1, hlstats_Players.deaths), 2), '-') AS kpd,\n\t\t\thlstats_Players.headshots,\n\t\t\tIFNULL(ROUND(hlstats_Players.headshots / hlstats_Players.kills, 2), '-') AS hpk,\n\t\t\tIFNULL(ROUND((hlstats_Players.hits / hlstats_Players.shots * 100), 0), 0) AS acc,\n\t\t\tactivity\n\t\tFROM\n\t\t\thlstats_Players\n\t\tWHERE\n\t\t\thlstats_Players.game = '{$game}'\n\t\t\tAND hlstats_Players.hideranking = 0\n\t\t\tAND hlstats_Players.lastName NOT REGEXP '^BOT|^[(*)]'\n\t\t\tAND hlstats_Players.kills >= {$minkills}\n\t\t\tAND hlstats_Players.last_event >= {$time}\n\t\tORDER BY\n\t\t\t{$table->sort} {$table->sortorder},\n\t\t\t{$table->sort2} {$table->sortorder},\n\t\t\thlstats_Players.lastName ASC\n\t\tLIMIT\n\t\t\t{$table->startitem},\n\t\t\t{$table->numperpage}\n\t");
?>

<div class="block">
	<?php 
printSectionTitle('Last 24h Connected');
?>
		<div class="subblock">
			<div style="float:left;">
				<form method="get" action="<?php 
echo $g_options['scripturl'];
?>
">
					<input type="hidden" name="mode" value="search" />
					<input type="hidden" name="game" value="<?php 
echo $game;
?>
" />
					<input type="hidden" name="st" value="player" />
					<strong>&#8226;</strong> Find a player:
					<input type="text" name="q" size="20" maxlength="64" class="textbox" />
开发者ID:rcguy,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:last.php

示例4: pageHeader

pageHeader(array($gamename, 'Chat History', $pl_name), array($gamename => $g_options['scripturl'] . "?game={$game}", 'Player Rankings' => $g_options['scripturl'] . "?mode=players&game={$game}", 'Player Details' => $g_options['scripturl'] . "?mode=playerinfo&player={$player}", 'Chat History' => ''), $playername);
flush();
$table = new Table(array(new TableColumn('eventTime', 'Date', 'width=16'), new TableColumn('message', 'Message', 'width=44&sort=no&append=.&embedlink=yes'), new TableColumn('serverName', 'Server', 'width=24'), new TableColumn('map', 'Map', 'width=16')), 'eventTime', 'eventTime', 'serverName', false, 50, 'page', 'sort', 'sortorder');
$surl = $g_options['scripturl'];
$whereclause = "hlstats_Events_Chat.playerId = {$player} ";
$filter = isset($_REQUEST['filter']) ? $_REQUEST['filter'] : "";
if (!empty($filter)) {
    $whereclause .= "AND MATCH (hlstats_Events_Chat.message) AGAINST ('" . $db->escape($filter) . "' in BOOLEAN MODE)";
}
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Events_Chat.eventTime,\r\n\t\t\tIF(hlstats_Events_Chat.message_mode=2, CONCAT('(Team) ', hlstats_Events_Chat.message), IF(hlstats_Events_Chat.message_mode=3, CONCAT('(Squad) ', hlstats_Events_Chat.message), hlstats_Events_Chat.message)) AS message,\r\n\t\t\thlstats_Servers.name AS serverName,\r\n\t\t\thlstats_Events_Chat.map\r\n\t\tFROM\r\n\t\t\thlstats_Events_Chat\r\n\t\tLEFT JOIN \r\n\t\t\thlstats_Servers\r\n\t\tON\r\n\t\t\thlstats_Events_Chat.serverId = hlstats_Servers.serverId\r\n\t\tWHERE\r\n\t\t\t{$whereclause}\t\r\n\t\tORDER BY\r\n\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\tLIMIT\r\n\t\t\t{$table->startitem},\r\n\t\t\t{$table->numperpage}\r\n\t");
$resultCount = $db->query("\r\n\t\tSELECT\r\n\t\t\tCOUNT(*)\r\n\t\tFROM\r\n\t\t\thlstats_Events_Chat\r\n\t\tLEFT JOIN \r\n\t\t\thlstats_Servers\r\n\t\tON\r\n\t\t\thlstats_Events_Chat.serverId = hlstats_Servers.serverId\r\n\t\tWHERE\r\n\t\t\t{$whereclause}\r\n\t");
list($numitems) = $db->fetch_row($resultCount);
?>
<div class="block">
<?php 
printSectionTitle('Player Chat History (Last ' . $g_options['DeleteDays'] . ' Days)');
?>
	<div class="subblock">
		<div style="float:left;">
			<span>
			<form method="get" action="<?php 
echo $g_options['scripturl'];
?>
" style="margin:0px;padding:0px;">
				<input type="hidden" name="mode" value="chathistory" />
				<input type="hidden" name="player" value="<?php 
echo $player;
?>
" />
				<strong>&#8226;</strong>
				Filter: <input type="text" name="filter" value="<?php 
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:chathistory.php

示例5: error

$db->query("SELECT name FROM hlstats_Games WHERE code='{$game}'");
if ($db->num_rows() < 1) {
    error("No such game '{$game}'.");
}
list($gamename) = $db->fetch_row();
$db->free_result();
pageHeader(array($gamename, 'Ribbon Details', $act_name), array($gamename => $g_options['scripturl'] . "?game={$game}", 'Ribbons' => $g_options['scripturl'] . "mode=awards&game={$game}&tab=ribbons", 'Ribbon Details' => ''), $act_name);
$table = new Table(array(new TableColumn('playerName', 'Player', 'width=45&align=left&flag=1&link=' . urlencode('mode=playerinfo&amp;player=%k')), new TableColumn('numawards', 'Daily awards', 'width=10&align=right&append=' . urlencode(' times')), new TableColumn('awardName', '', 'width=40&align=left')), 'playerId', 'numawards', 'playerName', true, 50);
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\tflag,\r\n\t\t\tlastName AS playerName,\r\n\t\t\thlstats_Players.playerId,\r\n\t\t\thlstats_Awards.name as awardName,\r\n\t\t\tCOUNT(hlstats_Awards.name) AS numawards\r\n\t\tFROM\r\n\t\t\thlstats_Players\r\n\t\tINNER JOIN\r\n\t\t\thlstats_Players_Awards\r\n\t\t\tON (\r\n\t\t\t    hlstats_Players_Awards.playerId=hlstats_Players.playerId AND\r\n\t\t\t    hlstats_Players_Awards.game=hlstats_Players.game\t\t\t    \r\n\t\t\t    )\r\n\t\tINNER JOIN\r\n\t\t\thlstats_Awards \r\n\t\t\tON (\r\n\t\t\t    hlstats_Players_Awards.awardId=hlstats_Awards.awardId AND\r\n\t\t\t    hlstats_Players_Awards.game=hlstats_Awards.game\t\t\t    \r\n\t\t\t    )\r\n\t\tWHERE\r\n\t\t\thlstats_Awards.code = '{$awardcode}' AND\r\n\t\t\thlstats_Players.game = '{$game}' AND\r\n\t\t\thlstats_Players.hideranking<>'1'\r\n\t\tGROUP BY\r\n\t\t\tflag,\r\n\t\t\tlastName,\r\n\t\t\thlstats_Players.playerId\r\n\t\tHAVING\r\n\t\t\tCOUNT(hlstats_Awards.name) >= {$awardmin}  \t\r\n\t\tORDER BY\r\n\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\tLIMIT {$table->startitem},{$table->numperpage}\r\n\t");
$resultCount = $db->query("\r\n\t\tSELECT\r\n\t\t\tflag,\r\n\t\t\tlastName AS playerName,\r\n\t\t\thlstats_Players.playerId,\r\n\t\t\thlstats_Awards.name as awardName,\r\n\t\t\tCOUNT(hlstats_Awards.name) AS numawards\r\n\t\tFROM\r\n\t\t\thlstats_Players\r\n\t\tINNER JOIN\r\n\t\t\thlstats_Players_Awards\r\n\t\t\tON (\r\n\t\t\t    hlstats_Players_Awards.playerId=hlstats_Players.playerId AND\r\n\t\t\t    hlstats_Players_Awards.game=hlstats_Players.game\t\t\t    \r\n\t\t\t    )\r\n\t\tINNER JOIN\r\n\t\t\thlstats_Awards \r\n\t\t\tON (\r\n\t\t\t    hlstats_Players_Awards.awardId=hlstats_Awards.awardId AND\r\n\t\t\t    hlstats_Players_Awards.game=hlstats_Awards.game\t\t\t    \r\n\t\t\t    )\r\n\t\tWHERE\r\n\t\t\thlstats_Awards.code = '{$awardcode}' AND\r\n\t\t\thlstats_Players.game = '{$game}' AND\r\n\t\t\thlstats_Players.hideranking<>'1'\r\n\t\tGROUP BY\r\n\t\t\tflag,\r\n\t\t\tlastName,\r\n\t\t\thlstats_Players.playerId\r\n\t\tHAVING\r\n\t\t\tCOUNT(hlstats_Awards.name) >= {$awardmin}  \t\r\n\t");
$numitems = mysql_num_rows($resultCount);
?>

<div class="block">
	<?php 
printSectionTitle('Ribbon Details');
?>
	<div class="subblock">
		<div style="float:right;">
			Back to <a href="<?php 
echo $g_options['scripturl'] . "?mode=awards&amp;game={$game}&tab=ribbons";
?>
">Ribbons</a>
		</div>
		<div style="clear:both;"></div>
	</div>
	<br /><br />
<?php 
echo '<img src="' . IMAGE_PATH . "/games/{$game}/ribbons/{$image}\" alt=\"\" /> <b>{$act_name}</b>";
$table->draw($result, $numitems, 95, 'center');
?>
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:ribboninfo.php

示例6: printSectionTitle

            echo '-';
        }
        ?>
</td>
				</tr>
<?php 
    }
    ?>
	
				</table>
		
		</div><br /><br />
		<br />
		
<?php 
    printSectionTitle('General Statistics');
    $nonhiddengamestring = preg_replace('/,$/', ')', $nonhiddengamestring);
    $result = $db->query("SELECT COUNT(playerId) FROM hlstats_Players WHERE game IN {$nonhiddengamestring}");
    list($num_players) = $db->fetch_row($result);
    $num_players = number_format($num_players);
    $result = $db->query("SELECT COUNT(clanId) FROM hlstats_Clans WHERE game IN {$nonhiddengamestring}");
    list($num_clans) = $db->fetch_row($result);
    $num_clans = number_format($num_clans);
    $result = $db->query("SELECT COUNT(serverId) FROM hlstats_Servers WHERE game IN {$nonhiddengamestring}");
    list($num_servers) = $db->fetch_row($result);
    $num_servers = number_format($num_servers);
    $result = $db->query("SELECT SUM(kills) FROM hlstats_Servers WHERE game IN {$nonhiddengamestring}");
    list($num_kills) = $db->fetch_row($result);
    $num_kills = number_format($num_kills);
    $result = $db->query("\r\n\t\t\tSELECT \r\n\t\t\t\teventTime\r\n\t\t\tFROM\r\n\t\t\t\thlstats_Events_Frags\r\n\t\t\tORDER BY\r\n\t\t\t\tid DESC\r\n\t\t\tLIMIT 1\r\n\t\t");
    list($lastevent) = $db->fetch_row($result);
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:contents.php

示例7: die

    die("No player exists with ID #{$id}");
}
$data = $db->fetch_array($result);
echo '<span class="fTitle">';
echo $data['lastName'];
echo '</span>';
echo '<span class="fNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '<a href="' . $g_options['scripturl'] . "?mode=playerinfo&amp;player={$id}&amp;" . strip_tags(SID) . '">' . '(View Player Details)</a></span>';
?>
<br /><br />

<table width="60%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td class="fNormal"><?php 
$proppage->draw($data);
?>
	<center><input type="submit" value="  Apply  " class="submit" /></center></td>
</tr>
</table>
</form>

<?php 
$tblIps = new Table(array(new TableColumn('ipAddress', 'IP Address', 'width=40'), new TableColumn('eventTime', 'Last Used', 'width=60')), 'ipAddress', 'eventTime', 'eventTime');
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\tipAddress,\r\n\t\t\teventTime\r\n\t\tFROM\r\n\t\t\thlstats_Events_Connects\r\n\t\tWHERE\r\n\t\t\tplayerId = {$playerId}\r\n\t\tGROUP BY\r\n\t\t\tipAddress\r\n\t\tORDER BY\r\n\t\t\teventTime DESC\r\n\t");
?>
<div class="block">
<?php 
printSectionTitle('Player IP Addresses');
$tblIps->draw($result, 50, 50);
?>
</div><br /><br />
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:30,代码来源:tools_editdetails_player.php

示例8: error

$db->query("SELECT name FROM hlstats_Games WHERE code='{$game}'");
if ($db->num_rows() < 1) {
    error("No such game '{$game}'.");
}
list($gamename) = $db->fetch_row();
$db->free_result();
pageHeader(array($gamename, 'Award Details', $awardname), array($gamename => $g_options['scripturl'] . "?game={$game}", 'Awards Statistics' => $g_options['scripturl'] . "?mode=awards&game={$game}", 'Awards Details' => ''), $awardname);
$table = new Table(array(new TableColumn('awardTime', 'Day', 'width=20&align=left'), new TableColumn('lastName', 'Player', 'width=40&align=left&flag=1&link=' . urlencode('mode=playerinfo&amp;player=%k')), new TableColumn('count', 'Count for the Day', 'width=35&align=right&append=' . urlencode(" {$awardverb}"))), 'playerId', 'awardTime', 'lastName', true, 30);
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Players_Awards.playerId,\r\n\t\t\tawardTime,\r\n\t\t\tlastName,\r\n\t\t\tflag,\r\n\t\t\tcount\r\n\t\tFROM\r\n\t\t\thlstats_Players_Awards\r\n\t\tLEFT JOIN\r\n\t\t\thlstats_Players\r\n\t\tON\r\n\t\t\thlstats_Players_Awards.playerId = hlstats_Players.playerId\r\n\t\tWHERE\r\n\t\t\tawardid={$award}\r\n\t\tORDER BY\r\n\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\tLIMIT {$table->startitem},{$table->numperpage}\r\n\t");
$resultCount = $db->query("\r\n\t\tSELECT\r\n\t\t\tawardTime\r\n\t\tFROM\r\n\t\t\thlstats_Players_Awards\r\n\t\tWHERE\r\n\t\t\tawardid={$award}\t\r\n\t");
$numitems = mysql_num_rows($resultCount);
?>

<div class="block">
	<?php 
printSectionTitle('Daily Award Details');
?>
	<div class="subblock">
		<div style="float:right;">
			Back to <a href="<?php 
echo $g_options['scripturl'] . "?mode=awards&amp;game={$game}";
?>
">Daily Awards</a>
		</div>
		<div style="clear:both;"></div>
	</div>
	<br /><br />
	<?php 
$img = IMAGE_PATH . "/games/{$game}/dawards/" . strtolower($awardtype) . '_' . strtolower($awardcode) . '.png';
if (!is_file($img)) {
    $img = IMAGE_PATH . '/award.png';
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:dailyawardinfo.php

示例9: Table

">Action Statistics</a>
		</div>
	</div>
	<div style="clear:both;padding:2px;"></div>
</div>
<?php 
$table->draw($result, $numitems, 95, 'center');
if ($actiondata['for_PlayerPlayerActions'] == 1) {
    $table = new Table(array(new TableColumn('playerName', 'Player', 'width=45&align=left&flag=1&link=' . urlencode('mode=playerinfo&amp;player=%k')), new TableColumn('obj_count', 'Times Victimized', 'width=25&align=right'), new TableColumn('obj_bonus', 'Skill Bonus Total', 'width=25&align=right&sort=no')), 'victimId', 'obj_count', 'playerName', true, 40, 'vpage');
    $result = $db->query("\r\n\t\t\tSELECT\r\n\t\t\t\thlstats_Events_PlayerPlayerActions.victimId,\r\n\t\t\t\thlstats_Players.lastName AS playerName,\r\n\t\t\t\thlstats_Players.flag as flag,\r\n\t\t\t\tCOUNT(hlstats_Events_PlayerPlayerActions.id) AS obj_count,\r\n\t\t\t\tCOUNT(hlstats_Events_PlayerPlayerActions.id) * hlstats_Actions.reward_player * -1 AS obj_bonus\r\n\t\t\tFROM\r\n\t\t\t\thlstats_Events_PlayerPlayerActions, hlstats_Players, hlstats_Actions\r\n\t\t\tWHERE\r\n\t\t\t\thlstats_Actions.code = '{$action_escaped}' AND\r\n\t\t\t\thlstats_Players.game = '{$game_escaped}' AND\r\n\t\t\t\thlstats_Players.playerId = hlstats_Events_PlayerPlayerActions.victimId AND\r\n\t\t\t\thlstats_Events_PlayerPlayerActions.actionId = hlstats_Actions.id AND\r\n\t\t\t\thlstats_Players.hideranking = '0'\r\n\t\t\tGROUP BY\r\n\t\t\t\thlstats_Events_PlayerPlayerActions.victimId\r\n\t\t\tORDER BY\r\n\t\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\t\tLIMIT {$table->startitem},{$table->numperpage}\r\n\t\t");
    $resultCount = $db->query("\r\n\t\t\tSELECT\r\n\t\t\t\tCOUNT(DISTINCT hlstats_Events_PlayerPlayerActions.victimId),\r\n\t\t\t\tCOUNT(hlstats_Events_PlayerPlayerActions.Id)\r\n\t\t\tFROM\r\n\t\t\t\thlstats_Events_PlayerPlayerActions, hlstats_Players, hlstats_Actions\r\n\t\t\tWHERE\r\n\t\t\t\thlstats_Actions.code = '{$action_escaped}' AND\r\n\t\t\t\thlstats_Players.game = '{$game_escaped}' AND\r\n\t\t\t\thlstats_Players.playerId = hlstats_Events_PlayerPlayerActions.victimId AND\r\n\t\t\t\thlstats_Events_PlayerPlayerActions.actionId = hlstats_Actions.id AND\r\n\t\t\t\thlstats_Players.hideranking = '0'\r\n\t\t");
    list($numitems, $totalact) = $db->fetch_row($resultCount);
    ?>
<div class="block">
	<a name="victims"><?php 
    printSectionTitle("Action Victim Details");
    ?>
</a>
	<div class="subblock">
		<div style="float:left;">
			<strong>Victims of <?php 
    echo $act_name;
    ?>
</strong> (Last <?php 
    echo $g_options['DeleteDays'];
    ?>
 Days)
		</div>
	</div>
	<div style="clear:both;padding:2px;"></div>
</div>
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:actioninfo.php

示例10: ucfirst

    $gamename = ucfirst($game);
} else {
    list($gamename) = $db->fetch_row();
}
pageHeader(array($gamename, 'Session History', $pl_name), array($gamename => $g_options['scripturl'] . "?game={$game}", 'Player Rankings' => $g_options['scripturl'] . "?mode=players&game={$game}", 'Player Details' => $g_options['scripturl'] . "?mode=playerinfo&player={$player}", 'Session History' => ''), $playername);
flush();
$table = new Table(array(new TableColumn('eventTime', 'Date', 'width=11'), new TableColumn('skill_change', 'Skill Change', 'width=10&align=right&skill_change=1'), new TableColumn('skill', 'Points', 'width=10&align=right'), new TableColumn('connection_time', 'Time', 'width=13&align=right&type=timestamp'), new TableColumn('kills', 'Kills', 'width=7&align=right'), new TableColumn('deaths', 'Deaths', 'width=7&align=right'), new TableColumn('kpd', 'K:D', 'width=7&align=right'), new TableColumn('headshots', 'HS', 'width=7&align=right'), new TableColumn('hpk', 'HS:K', 'width=7&align=right'), new TableColumn('suicides', 'Suicides', 'width=7&align=right'), new TableColumn('teamkills', 'TKs', 'width=7&align=right'), new TableColumn('kill_streak', 'Kill Strk', 'width=7&align=right')), 'eventTime', 'eventTime', 'skill_change', false, 50, 'page', 'sort', 'sortorder');
$surl = $g_options['scripturl'];
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Players_History.eventTime,\r\n\t\t\thlstats_Players_History.skill_change,\r\n\t\t\thlstats_Players_History.skill,\r\n\t\t\thlstats_Players_History.kills,\r\n\t\t\thlstats_Players_History.deaths,\r\n\t\t\thlstats_Players_History.headshots,\r\n\t\t\thlstats_Players_History.suicides,\r\n\t\t\thlstats_Players_History.connection_time,\r\n\t\t\tROUND(hlstats_Players_History.kills/(IF(hlstats_Players_History.deaths = 0, 1, hlstats_Players_History.deaths)), 2) AS kpd,\n\t\t\tROUND(hlstats_Players_History.headshots/(IF(hlstats_Players_History.kills = 0, 1, hlstats_Players_History.kills)), 2) AS hpk,\r\n\t\t\thlstats_Players_History.teamkills,\r\n\t\t\thlstats_Players_History.kill_streak,\r\n\t\t\thlstats_Players_History.death_streak,\r\n\t\t\thlstats_Players_History.skill_change AS last_skill_change\r\n\t\tFROM\r\n\t\t\thlstats_Players_History\r\n\t\tWHERE\r\n\t\t\thlstats_Players_History.playerId = {$player}\r\n\t\tORDER BY\r\n\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\tLIMIT\r\n\t\t\t{$table->startitem},\r\n\t\t\t{$table->numperpage}\r\n\t");
$resultCount = $db->query("\r\n\t\tSELECT\r\n\t\t\tCOUNT(*)\r\n\t\tFROM\r\n\t\t\thlstats_Players_History\r\n\t\tWHERE\r\n\t\t\thlstats_Players_History.playerId = {$player}\r\n\t");
list($numitems) = $db->fetch_row($resultCount);
?>

<div class="block">
<?php 
printSectionTitle('Player Session History');
if ($numitems > 0) {
    $table->draw($result, $numitems, 95);
}
?>
<br /><br />
	<div class="subblock">
		<div style="float:left;">
			Items above are generated from the last <?php 
echo $g_options['DeleteDays'];
?>
 days.
		</div>
		<div style="float:right;">
<?php 
$db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Players.lastName\r\n\t\tFROM\r\n\t\t\thlstats_Players\r\n\t\tWHERE\r\n\t\t\thlstats_Players.playerId = '{$player}'\r\n\t");
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:playersessions.php

示例11: die

    die('Do not access this file directly.');
}
flush();
$tblPlayerActions = new Table(array(new TableColumn('description', 'Action', 'width=45&link=' . urlencode("mode=actioninfo&amp;action=%k&amp;game={$game}")), new TableColumn('obj_count', 'Earned', 'width=25&align=right&append=+times'), new TableColumn('obj_bonus', 'Accumulated Points', 'width=25&align=right')), 'code', 'obj_count', 'description', true, 9999, 'obj_page', 'obj_sort', 'obj_sortorder', 'tabteams', 'desc', true);
$result = $db->query("\r\n\t\t(\r\n\t\tSELECT\r\n\t\t\thlstats_Actions.code,\r\n\t\t\thlstats_Actions.description,\r\n\t\t\tCOUNT(hlstats_Events_PlayerActions.id) AS obj_count,\r\n\t\t\tSUM(hlstats_Events_PlayerActions.bonus) AS obj_bonus\r\n\t\tFROM\r\n\t\t\thlstats_Actions\r\n\t\tLEFT JOIN\r\n\t\t\thlstats_Events_PlayerActions\r\n\t\tON\r\n\t\t\thlstats_Events_PlayerActions.actionId = hlstats_Actions.id\r\n\t\tWHERE\r\n\t\t\thlstats_Events_PlayerActions.playerId = {$player}\r\n\t\tGROUP BY\r\n\t\t\thlstats_Actions.id\r\n\t\t)\r\n\t\tUNION ALL\r\n\t\t(\r\n\t\tSELECT\r\n\t\t\thlstats_Actions.code,\r\n\t\t\thlstats_Actions.description,\r\n\t\t\tCOUNT(hlstats_Events_PlayerPlayerActions.id) AS obj_count,\r\n\t\t\tSUM(hlstats_Events_PlayerPlayerActions.bonus) AS obj_bonus\r\n\t\tFROM\r\n\t\t\thlstats_Actions\r\n\t\tLEFT JOIN\r\n\t\t\thlstats_Events_PlayerPlayerActions\r\n\t\tON\r\n\t\t\thlstats_Events_PlayerPlayerActions.actionId = hlstats_Actions.id\r\n\t\tWHERE\r\n\t\t\thlstats_Events_PlayerPlayerActions.playerId = {$player}\r\n\t\tGROUP BY\r\n\t\t\thlstats_Actions.id\r\n\t\t)\r\n\t\tORDER BY\r\n\t\t\t{$tblPlayerActions->sort} {$tblPlayerActions->sortorder},\r\n\t\t\t{$tblPlayerActions->sort2} {$tblPlayerActions->sortorder}\r\n\t");
$numitems = $db->num_rows($result);
if ($numitems > 0) {
    ?>
		<div style="clear:both;padding-top:20px;"></div>
<?php 
    printSectionTitle('Player Actions *');
    $tblPlayerActions->draw($result, $numitems, 95);
    ?>
		<br /><br />
<?php 
}
$tblPlayerPlayerActionsV = new Table(array(new TableColumn('description', 'Action', 'width=45&link=' . urlencode("mode=actioninfo&amp;action=%k&amp;game={$game}#victims")), new TableColumn('obj_count', 'Earned Against', 'width=25&align=right&append=+times'), new TableColumn('obj_bonus', 'Accumulated Points', 'width=25&align=right')), 'code', 'obj_count', 'description', true, 9999, 'ppa_page', 'ppa_sort', 'ppa_sortorder', 'tabteams', 'desc', true);
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Actions.code,\r\n\t\t\thlstats_Actions.description,\r\n\t\t\tCOUNT(hlstats_Events_PlayerPlayerActions.id) AS obj_count,\r\n\t\t\tSUM(hlstats_Events_PlayerPlayerActions.bonus) * -1 AS obj_bonus\r\n\t\tFROM\r\n\t\t\thlstats_Actions\r\n\t\tLEFT JOIN\r\n\t\t\thlstats_Events_PlayerPlayerActions\r\n\t\tON\r\n\t\t\thlstats_Events_PlayerPlayerActions.actionId = hlstats_Actions.id\r\n\t\tWHERE\r\n\t\t\thlstats_Events_PlayerPlayerActions.victimId = {$player}\r\n\t\tGROUP BY\r\n\t\t\thlstats_Actions.id\r\n\t\tORDER BY\r\n\t\t\t{$tblPlayerPlayerActionsV->sort} {$tblPlayerPlayerActionsV->sortorder},\r\n\t\t\t{$tblPlayerPlayerActionsV->sort2} {$tblPlayerPlayerActionsV->sortorder}\r\n\t");
$numitemsv = $db->num_rows($result);
if ($numitemsv > 0) {
    if ($numitems == 0) {
        ?>
		<div style="clear:both;padding-top:20px;"></div>
<?php 
    }
    printSectionTitle('Victims of Player-Player Actions *');
    $tblPlayerPlayerActionsV->draw($result, $numitems, 95);
    ?>
		<br /><br />
<?php 
}
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:playerinfo_playeractions.php

示例12: error

$db->query("SELECT name FROM hlstats_Games WHERE code='{$game}'");
if ($db->num_rows() != 1) {
    error('Invalid or no game specified.');
} else {
    list($gamename) = $db->fetch_row();
}
pageHeader(array($gamename, 'Weapon Details', htmlspecialchars($wep_name)), array($gamename => $g_options['scripturl'] . "?game={$game}", 'Weapon Statistics' => $g_options['scripturl'] . "?mode=weapons&game={$game}", 'Weapon Details' => ''), $wep_name);
$table = new Table(array(new TableColumn('killerName', 'Player', 'width=60&align=left&flag=1&link=' . urlencode('mode=playerinfo&amp;player=%k')), new TableColumn('frags', ucfirst($weapon) . ' kills', 'width=15&align=right'), new TableColumn('headshots', 'Headshots', 'width=15&align=right'), new TableColumn('hpk', 'Hpk', 'width=5&align=right')), 'killerId', 'frags', 'killerName', true, 50);
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Events_Frags.killerId,\r\n\t\t\thlstats_Players.lastName AS killerName,\r\n\t\t\thlstats_Players.flag as flag,\r\n\t\t\tCOUNT(hlstats_Events_Frags.weapon) AS frags,\r\n\t\t\tSUM(hlstats_Events_Frags.headshot=1) as headshots,\r\n\t\t\tIFNULL(SUM(hlstats_Events_Frags.headshot=1) / Count(hlstats_Events_Frags.weapon), '-') AS hpk\r\n\t\tFROM\r\n\t\t\thlstats_Events_Frags,\r\n\t\t\thlstats_Players\r\n\t\tWHERE\r\n\t\t\thlstats_Players.playerId = hlstats_Events_Frags.killerId\r\n\t\t\tAND hlstats_Events_Frags.weapon='{$weapon}'\r\n\t\t\tAND hlstats_Players.game='{$game}'\r\n\t\t\tAND hlstats_Players.hideranking = 0\r\n\t\tGROUP BY\r\n\t\t\thlstats_Events_Frags.killerId\r\n\t\tORDER BY\r\n\t\t\t{$table->sort} {$table->sortorder},\r\n\t\t\t{$table->sort2} {$table->sortorder}\r\n\t\tLIMIT {$table->startitem},{$table->numperpage}\r\n\t");
$resultCount = $db->query("\r\n\t\tSELECT\r\n\t\t\tCOUNT(DISTINCT hlstats_Events_Frags.killerId),\r\n\t\t\tSUM(hlstats_Events_Frags.weapon='{$weapon}'),\r\n\t\t\tSUM(hlstats_Events_Frags.weapon='{$weapon}' AND hlstats_Events_Frags.headshot=1)\r\n\t\tFROM\r\n\t\t\thlstats_Events_Frags,\r\n\t\t\thlstats_Servers\r\n\t\tWHERE\r\n\t\t\thlstats_Servers.serverId = hlstats_Events_Frags.serverId\r\n\t\t\tAND hlstats_Events_Frags.weapon='{$weapon}'\r\n\t\t\tAND hlstats_Servers.game='{$game}'\r\n\t");
list($numitems, $totalkills, $totalheadshots) = $db->fetch_row($resultCount);
?>

<div class="block">
	<?php 
printSectionTitle('Weapon Details');
?>
    <div class="subblock">
	<?php 
// figure out URL and absolute path of image
$image = getImage("/games/{$game}/weapons/{$weapon}");
if ($image) {
    $wep_content = '<img src="' . $image['url'] . "\"  alt=\"{$weapon}\" />";
} else {
    $wep_content = "<strong>{$wep_name}</strong>: ";
}
?>
		<div style="float:left;">
			<?php 
echo $wep_content;
?>
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:weaponinfo.php

示例13: or

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

For support and installation notes visit http://www.hlxcommunity.com
*/
if (!defined('IN_HLSTATS')) {
    die('Do not access this file directly.');
}
flush();
$tblServers = new Table(array(new TableColumn('server', 'Server', 'width=26&align=left'), new TableColumn('kills', 'Kills', 'width=6&align=right'), new TableColumn('kpercent', '%', 'width=5&sort=no&align=right&append=' . urlencode('%')), new TableColumn('kpercent', 'Ratio', 'width=15&sort=no&type=bargraph'), new TableColumn('deaths', 'Deaths', 'width=6&align=right'), new TableColumn('kpd', 'K:D', 'width=5&align=right'), new TableColumn('headshots', 'Headshots', 'width=6&align=right'), new TableColumn('hpercent', 'Percentage of Headshots', 'width=16&sort=no&type=bargraph'), new TableColumn('hpercent', '%', 'width=5&sort=no&align=right&append=' . urlencode('%')), new TableColumn('hpk', 'HS:K', 'width=5&align=right')), 'server', 'kills', 'kills', true, 9999, 'server_page', 'server_sort', 'server_sortorder', 'tabmaps', 'desc', true);
// leave the join on this one, we do groupings..
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Servers.name AS server,\r\n\t\t\tSUM(hlstats_Events_Frags.killerId = {$player}) AS kills,\r\n\t\t\tSUM(hlstats_Events_Frags.victimId = {$player}) AS deaths,\r\n\t\t\tSUM(hlstats_Events_Frags.killerId = {$player}) / IF(SUM(hlstats_Events_Frags.victimId = {$player}) = 0, 1, SUM(hlstats_Events_Frags.victimId = {$player})) AS kpd,\r\n\t\t\tROUND(SUM(hlstats_Events_Frags.killerId = {$player}) / {$realkills} * 100, 2) AS kpercent,\r\n\t\t\tROUND(SUM(hlstats_Events_Frags.victimId = {$player}) / {$realdeaths} * 100, 2) AS dpercent,\r\n\t\t\tSUM(hlstats_Events_Frags.killerId = {$player} AND hlstats_Events_Frags.headshot = 1) AS headshots,\r\n\t\t\tIFNULL(SUM(hlstats_Events_Frags.killerId = {$player} AND hlstats_Events_Frags.headshot = 1) / SUM(hlstats_Events_Frags.killerId = {$player}), '-') AS hpk,\r\n\t\t\tROUND(SUM(hlstats_Events_Frags.killerId = {$player} AND hlstats_Events_Frags.headshot = 1) / {$realheadshots} * 100, 2) AS hpercent\r\n\t\tFROM\r\n\t\t\thlstats_Events_Frags\r\n\t\tLEFT JOIN\r\n\t\t\thlstats_Servers\r\n\t\tON\r\n\t\t\thlstats_Servers.serverId = hlstats_Events_Frags.serverId\r\n\t\tWHERE\r\n\t\t\thlstats_Servers.game = '{$game}'\r\n\t\t\tAND hlstats_Events_Frags.killerId = '{$player}'\r\n\t\t\tOR hlstats_Events_Frags.victimId = '{$player}'\r\n\t\tGROUP BY\r\n\t\t\thlstats_Servers.name\r\n\t\tORDER BY\r\n\t\t\t{$tblServers->sort} {$tblServers->sortorder},\r\n\t\t\t{$tblServers->sort2} {$tblServers->sortorder}\r\n\t");
$numitems = $db->num_rows($result);
if ($numitems > 0) {
    printSectionTitle('Server Activity *');
    $tblServers->draw($result, $numitems, 95);
    ?>
	<br /><br />
<?php 
}
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:playerinfo_servers.php

示例14: die

GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

For support and installation notes visit http://www.hlxcommunity.com
*/
if (!defined('IN_HLSTATS')) {
    die('Do not access this file directly.');
}
pageHeader(array('Admin'), array('Admin' => ''));
?>
<div class="block">
	<?php 
printSectionTitle('Authorization Required');
?>
	<div class="subblock">
	<?php 
if ($this->error) {
    ?>
	<img src="<?php 
    echo IMAGE_PATH;
    ?>
/warning.gif" style="padding-right:5px;">
	<?php 
    echo "<span class=\"fTitle\" style=\"font-weight:bold;\">{$this->error}</span><br /><br />";
}
?>
		<div style="float:left;margin-left:40px;">
		<form method="post" name="auth">
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:adminauth.php

示例15: INT

// This would be better done with a UNION query, I think, but MySQL doesn't
// support them yet. (NOTE you need MySQL 3.23 for temporary table support.)
$db->query("\r\n\t\tDROP TABLE IF EXISTS\r\n\t\t\thlstats_Frags_Kills\r\n\t");
$db->query("\r\n\t\tCREATE TEMPORARY TABLE\r\n\t\t\thlstats_Frags_Kills\r\n\t\t\t(\r\n\t\t\t\tplayerId INT(10),\r\n\t\t\t\tkills INT(10),\r\n\t\t\t\tdeaths INT(10),\r\n\t\t\t\theadshot INT(10),\r\n\t\t\t\tcountry varchar(128),\r\n\t\t\t\tflag char(2)\r\n\t\t\t)\r\n\t");
$db->query("\r\n\t\tINSERT INTO\r\n\t\t\thlstats_Frags_Kills\r\n\t\t\t(\r\n\t\t\t\tplayerId,\r\n\t\t\t\tkills,\r\n\t\t\t\theadshot\r\n\t\t\t)\r\n\t\tSELECT\r\n\t\t\thlstats_Events_Frags.victimId,\r\n\t\t\thlstats_Events_Frags.killerId,\r\n\t\t\thlstats_Events_Frags.headshot\r\n\t\tFROM\r\n\t\t\thlstats_Events_Frags\r\n\t\tWHERE\r\n\t\t\thlstats_Events_Frags.killerId = {$player}\r\n\t\tGROUP BY\r\n\t\t\thlstats_Events_Frags.id\r\n\t");
$db->query("\r\n\t\tINSERT INTO\r\n\t\t\thlstats_Frags_Kills\r\n\t\t\t(\r\n\t\t\t\tplayerId,\r\n\t\t\t\tdeaths\r\n\t\t\t)\r\n\t\tSELECT\r\n\t\t\thlstats_Events_Frags.killerId,\r\n\t\t\thlstats_Events_Frags.victimId\r\n\t\tFROM\r\n\t\t\thlstats_Events_Frags\r\n\t\tWHERE\r\n\t\t\thlstats_Events_Frags.victimId = {$player}\r\n\t");
$result = $db->query("\r\n\t\t\tSELECT\r\n\t\t\t\tSUM(hlstats_Frags_Kills.headshot) AS headshots\r\n\t\t\tFROM\r\n\t\t\t\thlstats_Frags_Kills\r\n\t\t\tGROUP BY\r\n\t\t\t\thlstats_Frags_Kills.playerId\r\n\t\t\tHAVING\r\n\t\t\t\tCOUNT(hlstats_Frags_Kills.kills) >= {$killLimit}\r\n\t");
$realheadshots = 0;
while ($rowdata = $db->fetch_array($result)) {
    $realheadshots += $rowdata['headshots'];
}
$db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Players.lastName AS name\r\n\t\tFROM\r\n\t\t\thlstats_Frags_Kills,\r\n\t\t\thlstats_Players\r\n\t\tWHERE\r\n\t\t\thlstats_Frags_Kills.playerId = hlstats_Players.playerId\r\n\t\tGROUP BY\r\n\t\t\thlstats_Frags_Kills.playerId\r\n\t\tHAVING\r\n\t\t\tCOUNT(hlstats_Frags_Kills.kills) >= {$killLimit}\r\n\t");
$numitems = $db->num_rows();
$result = $db->query("\r\n\t\tSELECT\r\n\t\t\thlstats_Players.lastName AS name,\r\n\t\t\thlstats_Players.flag AS flag,\r\n\t\t\thlstats_Players.country AS country,\r\n\t\t\tCOUNT(hlstats_Frags_Kills.kills) AS kills,\r\n\t\t\tCOUNT(hlstats_Frags_Kills.deaths) AS deaths,\r\n\t\t\tROUND(COUNT(hlstats_Frags_Kills.kills) / {$realkills} * 100, 2) AS kpercent,\r\n\t\t\tROUND(COUNT(hlstats_Frags_Kills.deaths) / {$realdeaths} * 100, 2) AS dpercent,\r\n\t\t\thlstats_Frags_Kills.playerId AS victimId,\r\n\t\t\tROUND(COUNT(hlstats_Frags_Kills.kills) / IF(COUNT(hlstats_Frags_Kills.deaths) = 0, 1, COUNT(hlstats_Frags_Kills.deaths)), 2) AS kpd,\r\n\t\t\tSUM(hlstats_Frags_Kills.headshot = 1) AS headshots,\r\n\t\t\tROUND(SUM(hlstats_Frags_Kills.headshot = 1) / IF(COUNT(hlstats_Frags_Kills.kills) = 0, 1, COUNT(hlstats_Frags_Kills.kills)), 2) AS hpk,\r\n\t\t\tROUND(SUM(hlstats_Frags_Kills.headshot = 1) / {$realheadshots} * 100, 2) AS hpercent\r\n\t\tFROM\r\n\t\t\thlstats_Frags_Kills,\r\n\t\t\thlstats_Players\r\n\t\tWHERE\r\n\t\t\thlstats_Frags_Kills.playerId = hlstats_Players.playerId\r\n\t\tGROUP BY\r\n\t\t\thlstats_Frags_Kills.playerId\r\n\t\tHAVING\r\n\t\t\tCount(hlstats_Frags_Kills.kills) >= {$killLimit}\r\n\t\tORDER BY\r\n\t\t\t{$tblPlayerKillStats->sort} {$tblPlayerKillStats->sortorder},\r\n\t\t\t{$tblPlayerKillStats->sort2} {$tblPlayerKillStats->sortorder}\r\n\t\tLIMIT {$tblPlayerKillStats->startitem},{$tblPlayerKillStats->numperpage}\r\n\t");
if ($numitems > 0) {
    printSectionTitle('Player Kill Statistics *');
    $tblPlayerKillStats->draw($result, $numitems, 95);
    ?>
	<br /><br />
	<div class="subblock">
	<form method="get" action="<?php 
    echo $g_options['scripturl'];
    ?>
">
		<strong>&#8226;</strong> Show only victims this person has killed
		<select name="killLimit" onchange="Tabs.refreshTab({'killLimit': this.options[this.selectedIndex].value, 'playerkills_page': 1})">
			<?php 
    for ($j = 0; $j < 16; $j++) {
        echo "<option value=\"{$j}\"";
        if ($killLimit == $j) {
            echo ' selected="selected"';
开发者ID:PitbullOL,项目名称:insurgency-hlstatsx,代码行数:31,代码来源:playerinfo_killstats.php


注:本文中的printSectionTitle函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。