本文整理汇总了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;
示例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]";
}
示例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>
示例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";