本文整理匯總了PHP中WC_Challenge::getSolverHREF方法的典型用法代碼示例。如果您正苦於以下問題:PHP WC_Challenge::getSolverHREF方法的具體用法?PHP WC_Challenge::getSolverHREF怎麽用?PHP WC_Challenge::getSolverHREF使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WC_Challenge
的用法示例。
在下文中一共展示了WC_Challenge::getSolverHREF方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$is_admin = GWF_User::isStaffS();
if ($is_admin) {
$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;