本文整理匯總了PHP中Globals::isBetaOpen方法的典型用法代碼示例。如果您正苦於以下問題:PHP Globals::isBetaOpen方法的具體用法?PHP Globals::isBetaOpen怎麽用?PHP Globals::isBetaOpen使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Globals
的用法示例。
在下文中一共展示了Globals::isBetaOpen方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<?php
$template->assign('PageTopic', 'Open/Close Forms');
$container = array();
$container['url'] = 'form_open_processing.php';
$container['type'] = 'BETA';
$container['open'] = Globals::isBetaOpen();
$PHP_OUTPUT .= '<p>Beta Application Status: <span class="';
if (Globals::isBetaOpen()) {
$PHP_OUTPUT .= 'green">OPEN';
} else {
$PHP_OUTPUT .= 'red">CLOSED';
}
$PHP_OUTPUT .= '</span></p>';
$PHP_OUTPUT .= create_link($container, '<b>' . (Globals::isBetaOpen() ? 'Close' : 'Open') . ' Application Form</b>');
$container['type'] = 'FEATURE';
$container['open'] = Globals::isFeatureRequestOpen();
$PHP_OUTPUT .= '<p>Feature Request Status: <span class="';
if (Globals::isFeatureRequestOpen()) {
$PHP_OUTPUT .= 'green">OPEN';
} else {
$PHP_OUTPUT .= 'red">CLOSED';
}
$PHP_OUTPUT .= '</span></p>';
$PHP_OUTPUT .= create_link($container, '<b>' . (Globals::isFeatureRequestOpen() ? 'Close' : 'Open') . ' Application Form</b>');
示例2:
<?php
if (!Globals::isBetaOpen()) {
create_error('Beta Applications are currently not being accepted.');
}
$template->assign('PageTopic', 'Apply for Beta');
$PHP_OUTPUT .= 'The information on this page will be used by the beta team leader in choosing applicants.<br />';
$PHP_OUTPUT .= 'You must fill in all fields for your application to be considered.';
$PHP_OUTPUT .= create_echo_form(create_container('beta_apply_processing.php'));
$PHP_OUTPUT .= '<table>';
$PHP_OUTPUT .= '<tr>';
$PHP_OUTPUT .= '<td class="bold">Login:</td>';
$PHP_OUTPUT .= '<td>' . $account->getLogin() . '</td>';
$PHP_OUTPUT .= '</tr>';
$PHP_OUTPUT .= '<tr>';
$PHP_OUTPUT .= '<td class="bold">eMail:</td>';
$PHP_OUTPUT .= '<td>' . $account->getEmail() . '</td>';
$PHP_OUTPUT .= '</tr>';
$PHP_OUTPUT .= '<tr>';
$PHP_OUTPUT .= '<td class="bold">Account ID:</td>';
$PHP_OUTPUT .= '<td>' . $account->getAccountID() . '</td>';
$PHP_OUTPUT .= '</tr>';
$PHP_OUTPUT .= '<tr>';
$PHP_OUTPUT .= '<td class="bold">WebBoard Name:</td>';
$PHP_OUTPUT .= '<td><input type="text" name="webboard" id="InputFields" style="width:300px;"></td>';
$PHP_OUTPUT .= '</tr>';
$PHP_OUTPUT .= '<tr>';
$PHP_OUTPUT .= '<td class="bold">IRC Nick:</td>';
$PHP_OUTPUT .= '<td><input type="text" name="ircnick" id="InputFields" style="width:300px;"></td>';
$PHP_OUTPUT .= '</tr>';
$PHP_OUTPUT .= '<tr>';