本文整理汇总了PHP中WC_HTML::tableRowForm方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_HTML::tableRowForm方法的具体用法?PHP WC_HTML::tableRowForm怎么用?PHP WC_HTML::tableRowForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WC_HTML
的用法示例。
在下文中一共展示了WC_HTML::tableRowForm方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo WC_HTML::tableRowForm($tLang->lang('th_site_language'), GWF_HTML::anchor($href, $site->displayLanguage()));
echo WC_HTML::tableRowForm($tLang->lang('th_site_tags'), $site->displayTags(true));
if ($is_ranked) {
echo WC_HTML::tableRowForm($tLang->lang('th_site_admins'), $site->displaySiteAdmins());
// echo WC_HTML::tableRowForm($tLang->lang('th_site_autoup'), $site->displayAutoUpdate());
// echo WC_HTML::tableRowForm($tLang->lang('th_site_has_osr'), $site->displayOnSiteRank());
if (count($boxes) > 0) {
$warboxes = $tVars['boxcount'] . GWF_Button::forward($site->hrefWarboxes(), 'Show Wargames');
echo WC_HTML::tableRowForm($tLang->lang('btn_warboxes'), $warboxes);
}
// echo WC_HTML::tableRowForm($tLang->lang('th_site_score'), $site->getScore());
// echo WC_HTML::tableRowForm($tLang->lang('th_site_basescore'), $site->getBasescore());
// echo WC_HTML::tableRowForm($tLang->lang('th_site_usercount'), $site->getUsercount());
echo WC_HTML::tableRowForm($tLang->lang('th_site_challcount'), $site->getChallcount());
// echo WC_HTML::tableRowForm($tLang->lang('th_site_linkcount'), $site->getLinkCount());
echo WC_HTML::tableRowForm($tLang->lang('th_site_avg'), $site->displayAvg());
}
# Diff Votes
// $vdif = $site->getVotesDif();
// echo GWF_Table::rowStart().
// '<th>'.$tLang->lang('th_site_dif').'</th>'.PHP_EOL.
// '<td><span id="gwf_vsba_'.$vdif->getID().'">'.$vdif->displayPercent().'</span></td>'.PHP_EOL.
// GWF_Table::rowEnd();
// if ($tVars['can_vote'])
// {
// echo WC_HTML::tableRowForm($tLang->lang('th_site_vote_dif'), $site->getVotesDif()->displayButtons());
// }
// # Fun Votes
// $vfun = $site->getVotesFun();
// echo GWF_Table::rowStart().
// '<th>'.$tLang->lang('th_site_fun').'</th>'.PHP_EOL.
示例2: count
} else {
echo WC_HTML::tableRowForm($tLang->lang('btn_warboxes'), $warboxes);
}
# Diff Votes
$vdif = $site->getVotesDif();
echo GWF_Table::rowStart() . '<th>' . $tLang->lang('th_site_dif') . '</th>' . PHP_EOL . '<td><span id="gwf_vsba_' . $vdif->getID() . '">' . $vdif->displayPercent() . '</span></td>' . PHP_EOL . GWF_Table::rowEnd();
if ($tVars['can_vote']) {
echo WC_HTML::tableRowForm($tLang->lang('th_site_vote_dif'), $site->getVotesDif()->displayButtons());
}
# Fun Votes
$vfun = $site->getVotesFun();
echo GWF_Table::rowStart() . '<th>' . $tLang->lang('th_site_fun') . '</th>' . PHP_EOL . '<td><span id="gwf_vsba_' . $vfun->getID() . '">' . $vfun->displayPercent() . '</span></td>' . PHP_EOL . GWF_Table::rowEnd();
if ($tVars['can_vote']) {
echo WC_HTML::tableRowForm($tLang->lang('th_site_vote_fun'), $site->getVotesFun()->displayButtons());
}
echo WC_HTML::tableRowForm($tLang->lang('th_site_irc'), $site->displayIRC());
?>
</table>
<?php
if ($tVars['jquery']) {
return;
}
?>
<?php
$count = count($tVars['latest_players']);
$cols = 7;
if ($count > 0) {
echo '<table>';
echo sprintf('<tr><th colspan="%d">%s</th></tr>', $cols, $tLang->lang('th_latest_players', array($count, $tVars['latest_players_time'])));