当前位置: 首页>>代码示例>>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;未经允许,请勿转载。