本文整理汇总了PHP中toggleRowClass函数的典型用法代码示例。如果您正苦于以下问题:PHP toggleRowClass函数的具体用法?PHP toggleRowClass怎么用?PHP toggleRowClass使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了toggleRowClass函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: toggleRowClass
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;
开发者ID:beporter,项目名称:hlstats,代码行数:31,代码来源:awardsActions.inc.php
示例2: toggleRowClass
}
echo ' <a href="index.php?mode=playerinfo&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]";
}
开发者ID:beporter,项目名称:hlstats,代码行数:31,代码来源:players.inc.php
示例3: l
<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>
开发者ID:BlackMajic,项目名称:HLStats,代码行数:31,代码来源:playerinfo.inc.php
示例4: foreach
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";
开发者ID:beporter,项目名称:hlstats,代码行数:31,代码来源:playerchathistory.inc.php
注:本文中的toggleRowClass函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论