本文整理汇总了PHP中Q_Html::options方法的典型用法代码示例。如果您正苦于以下问题:PHP Q_Html::options方法的具体用法?PHP Q_Html::options怎么用?PHP Q_Html::options使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Q_Html
的用法示例。
在下文中一共展示了Q_Html::options方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="Places_location_container Places_location_checking">
I'm interested in things taking place within
<?php
echo Q_Html::select('miles', array('class' => 'Places_location_miles'));
?>
<?php
echo Q_Html::options($miles, 'miles', $defaultMiles);
?>
</select>
of
<div class="Places_location_whileObtaining">
<?php
echo Q_Html::img($map['prompt'], 'map', array('class' => 'Places_location_set '));
?>
</div>
<div class="Places_location_whileObtained">
<div class="Places_location_map_container">
<div class="Places_location_map"></div>
</div>
<div class="Places_location_update Places_location_whileObtained">
<button class="Places_location_update_button Q_button">
Update my location
</button>
</div>
</div>
</div>
示例2:
<select name="levelForEveryone" class="Streams_access_levelForEveryone">
<?php
echo Q_Html::options($levels, '');
?>
</select>
</div>
<?php
if (count($labels) != 0) {
?>
<div>
Grant additional access to
<select name="levelAddLabel" class="Streams_access_levelAddLabel">
<?php
echo Q_Html::options($labels, '', null, true);
?>
</select>
</div>
<table class="Streams_access_label_array"></table>
<?php
}
?>
<div>Custom access for individual users:</div>
<div class="Q_big_prompt">
<?php
echo Q::tool('Streams/userChooser');
?>
</div>
<table class="Streams_access_user_array"></table>
示例3:
value="<?php
echo Streams::my('Streams/user/gender', 'readLevel');
?>
">
<?php
}
?>
</td>
<td class="Q_field_input">
<select name="gender" class="select" id="<?php
echo $prefix;
?>
gender">
<?php
echo Q_Html::options(array('male' => 'male', 'female' => 'female'), '', Streams::my('Streams/user/gender'), '', "\n\t\t\t\t");
?>
</select>
</td>
</tr>
<tr>
<td class="Q_field_title">
<label for="<?php
echo $prefix;
?>
birthday">Birthday</label>
<?php
if ($showAccess) {
?>
<?php