本文整理汇总了PHP中WC_HTML::button方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_HTML::button方法的具体用法?PHP WC_HTML::button怎么用?PHP WC_HTML::button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WC_HTML
的用法示例。
在下文中一共展示了WC_HTML::button方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$site instanceof WC_Site;
$is_ranked = $site->isScored();
$siteid = $site->getID();
$boxes = WC_Warbox::getBoxes($site);
echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . PHP_EOL;
$onclick = "wcjsHideJQuery('#wc_profile_slide'); wcjs_last_site = undefined; return false;";
echo GWF_Button::delete('#', $tLang->lang('btn_close'), '', $onclick);
echo GWF_Button::forward($site->getURL(), $site->getSitename());
echo '</div></div>' . PHP_EOL;
echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . PHP_EOL;
echo WC_HTML::button('btn_site_details', $site->hrefDetail());
if (count($boxes) > 0) {
echo WC_HTML::button('btn_warboxes', $site->hrefWarboxes());
}
echo WC_HTML::button('btn_ranking', $site->hrefRanking(true));
echo WC_HTML::button('btn_site_history', $site->hrefHistory());
echo '</div></div>' . PHP_EOL;
?>
<?php
if (false === ($user = GWF_User::getByName(Common::getGet('username', '')))) {
}
if ($user !== false) {
$userid = $user->getID();
if (false !== ($regat = WC_RegAt::getRegatRow($userid, $siteid))) {
$max = $site->getOnsiteScore();
echo GWF_Box::box($tLang->lang('site_detail_uinfo', array($user->displayUsername(), $regat->getOnsiteScore(), $max, $site->displayName(), round($regat->getPercent($max), 2), WC_RegAt::calcExactSiteRank($user, $siteid), $site->calcScore($regat))));
}
}
?>
示例2: wcSiteQJSel
echo $btn_boxes;
echo WC_HTML::button('btn_ranking', $SITE->hrefRanking(true));
break;
default:
echo WC_HTML::button('btn_site_details', $SITE->hrefDetail());
echo $btn_boxes;
echo WC_HTML::button('btn_ranking', $SITE->hrefRanking(true));
echo WC_HTML::button('btn_site_history', $SITE->hrefHistory());
break;
}
echo ' | ' . PHP_EOL;
echo WC_HTML::button('btn_all_sites', GWF_WEB_ROOT . 'all_sites', $which === '5');
echo WC_HTML::button('btn_active_sites', GWF_WEB_ROOT . 'active_sites', $which === '1');
echo WC_HTML::button('btn_graveyard', GWF_WEB_ROOT . 'graveyard', $which === '2');
echo WC_HTML::button('btn_not_ranked', GWF_WEB_ROOT . 'not_ranked', $which === '4');
echo WC_HTML::button('btn_coming_soon', GWF_WEB_ROOT . 'coming_soon', $which === '3');
echo '</div>' . PHP_EOL;
### Helper
# Output 1 select
function wcSiteQJSel($text, $sites, $mode, $nqj)
{
echo '<select name="quickjumps[' . $nqj . ']" onchange="wcSiteQuickqump(this, \'' . $mode . '\', 1);">' . PHP_EOL;
echo '<option value="0">' . $text . '</option>';
foreach ($sites as $site) {
$site instanceof WC_Site;
// switch ($mode)
// {
// case 'detail':
// $href = $site->hrefDetail();
// break;
// case 'ranking':
示例3:
}
$mo = Common::getGet('mo');
$me = Common::getGet('me');
echo '<nav>' . PHP_EOL;
echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo WC_HTML::button('btn_linked_sites', GWF_WEB_ROOT . 'linked_sites', $me === 'LinkedSites');
echo WC_HTML::button('btn_warboxes', GWF_WEB_ROOT . 'warboxes', $me === 'Warbox');
echo WC_HTML::button('btn_view_profile', GWF_WEB_ROOT . 'profile/' . $user->urlencode('user_name'));
echo WC_HTML::button('btn_your_stats', GWF_WEB_ROOT . 'stats/' . $user->urlencode('user_name'));
echo WC_HTML::button('btn_delete_account', GWF_WEB_ROOT . 'account/delete', $mo === 'Account' && $me === 'Delete');
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo WC_HTML::button('btn_wc_settings', GWF_WEB_ROOT . 'wechall_settings', $me === 'WeChallSettings');
echo WC_HTML::button('btn_account', GWF_WEB_ROOT . 'account', $mo === 'Account' && $me === 'Form');
echo WC_HTML::button('btn_pm_settings', GWF_WEB_ROOT . 'pm/options', $mo === 'PM' && $me === 'Options');
echo WC_HTML::button('btn_forum_settings', GWF_WEB_ROOT . 'forum/options', $mo === 'Forum' && $me === 'Options');
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo '<div class="gwf_buttons_outer">' . PHP_EOL;
echo '<div class="gwf_buttons">' . PHP_EOL;
echo WC_HTML::button('btn_edit_profile', GWF_WEB_ROOT . 'profile_settings', $mo === 'Profile' && $me === 'Form');
echo WC_HTML::button('btn_view_groups', GWF_WEB_ROOT . 'my_groups');
echo WC_HTML::button('btn_guestbook', GWF_WEB_ROOT . 'index.php?mo=WeChall&me=CreateGB', $mo === 'Guestbook' || $me === 'CreateGB');
#echo WC_HTML::button('btn_helpdesk', GWF_WEB_ROOT.'helpdesk');
echo WC_HTML::button('btn_hackerspace', GWF_WEB_ROOT . 'places', $mo === 'Profile' && $me === 'Places');
echo '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo '</nav>' . PHP_EOL;