本文整理汇总了PHP中WC_Challenge::displayDif方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_Challenge::displayDif方法的具体用法?PHP WC_Challenge::displayDif怎么用?PHP WC_Challenge::displayDif使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WC_Challenge
的用法示例。
在下文中一共展示了WC_Challenge::displayDif方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$headers[] = array($tLang->lang('th_csolve_time_taken'), 'csolve_time_taken');
}
echo '<table class="wc_chall_table" id="wc_profile_challenges">' . PHP_EOL;
$raw = '<tr><th colspan="' . count($headers) . '">' . $tVars['table_title'] . '</th></tr>';
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url'], '', '', 'pcby', 'pcdir', $raw);
$chall = new WC_Challenge(false);
foreach ($tVars['data'] as $row) {
$chall->setGDOData($row);
$solved = $row['csolve_date'] !== '' && $row['csolve_date'] !== NULL;
$href_votes = $chall->hrefVotes();
echo GWF_Table::rowStart();
echo '<td class="gwf_num">' . $row['chall_score'] . '</td>' . PHP_EOL;
echo '<td class="nowrap" colspan="2">' . $chall->displayLink($solved) . '</td>' . PHP_EOL;
echo '<td class="gwf_num"><a href="' . $chall->getSolverHREF() . '">' . $row['chall_solvecount'] . '</a></td>' . PHP_EOL;
echo '<td class="gwf_date">' . $chall->displayAge() . '</td>' . PHP_EOL;
echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayDif()) . '</td>' . PHP_EOL;
echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayEdu()) . '</td>' . PHP_EOL;
echo '<td class="gwf_num">' . sprintf('<a href="%s">%s</a>', $href_votes, $chall->displayFun()) . '</td>' . PHP_EOL;
if ($solved) {
echo '<td class="gwf_date">' . GWF_Time::displayDate($row['csolve_date']) . '</td>' . PHP_EOL;
} else {
echo '<td></td>' . PHP_EOL;
}
echo '<td>' . $chall->displayBoardLinks(true, $solved) . '</td>' . PHP_EOL;
if ($is_admin) {
if ($solved) {
$seconds = $row['csolve_time_taken'];
if ($seconds === '0') {
echo '<td class="gwf_date">???</td>' . PHP_EOL;
} else {
echo '<td class="gwf_date">' . GWF_Time::humanDuration($seconds) . '</td>' . PHP_EOL;