本文整理汇总了PHP中USER::possible_statuses方法的典型用法代码示例。如果您正苦于以下问题:PHP USER::possible_statuses方法的具体用法?PHP USER::possible_statuses怎么用?PHP USER::possible_statuses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类USER
的用法示例。
在下文中一共展示了USER::possible_statuses方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_form
//.........这里部分代码省略.........
}
?>
like to receive an email whenever your MP does something in Parliament?
<br /><small> (if you're already getting email alerts to your address, don't worry about this)</small>
</div>
<div class="row">
<span class="label"> </span>
<span class="formw"><input type="radio" name="mp_alert" id="mp_alerttrue" value="true"<?php
if (isset($details["mp_alert"]) && $details["mp_alert"] == true) {
print ' checked';
}
?>
> <label for="mp_alerttrue">Yes</label><br>
<input type="radio" name="mp_alert" id="mp_alertfalse" value="false"<?php
if ($this_page == "userjoin" && get_http_var("submitted") != "true" || isset($details["mp_alert"]) && $details["mp_alert"] == false) {
print ' checked';
}
?>
> <label for="mp_alertfalse">No</label></span>
</div>
<?php
}
if ($this_page == "otheruseredit") {
if (isset($errors["status"])) {
$PAGE->error_message($errors["status"]);
}
?>
<div class="row">
<span class="label">Security status:</span>
<span class="formw"><select name="status">
<?php
$USER = new USER();
$statuses = $USER->possible_statuses();
foreach ($statuses as $n => $status) {
print "\t<option value=\"{$status}\"";
if ($status == $details["status"]) {
print " checked";
}
print ">{$status}</option>\n";
}
?>
</select></span>
</div>
<div class="row">
<span class="label"><label for="confirmed">Confirmed?</label></span>
<span class="formw"><input type="checkbox" name="confirmed[]" id="confirmed" value="true"<?php
if (isset($details["confirmed"]) && $details["confirmed"] == true) {
print " checked";
}
?>
></span>
</div>
<div class="row">
<span class="label"><label for="deleted">"Deleted"?</label></span>
<span class="formw"><input type="checkbox" name="deleted[]" id="deleted" value="true"<?php
if (isset($details["deleted"]) && $details["deleted"] == true) {
print " checked";
}
?>
> <small>(No data will actually be deleted.)</small></span>
</div>
<?php