當前位置: 首頁>>代碼示例>>PHP>>正文


PHP USER::possible_statuses方法代碼示例

本文整理匯總了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>&nbsp;&nbsp;(if you're already getting email alerts to your address, don't worry about this)</small>
				</div>

				<div class="row">
				<span class="label">&nbsp;</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 
開發者ID:bruno,項目名稱:openaustralia-app,代碼行數:67,代碼來源:index.php


注:本文中的USER::possible_statuses方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。