本文整理汇总了PHP中Chtml::listBox方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::listBox方法的具体用法?PHP Chtml::listBox怎么用?PHP Chtml::listBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::listBox方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: echo
<div class="control-group">
<div class='control-label'>
<?php
echo Chtml::label('Managers', 'managers');
?>
</div>
<div class='controls'>
<span class="tooltip-wrapper" data-toggle='tooltip' data-placement="right"
title='<?php
echo ($t = Yii::t('D2tasksModule.model', 'tooltip.ttsk_name')) != 'tooltip.ttsk_name' ? $t : '';
?>
'>
<?php
$person = PprsPerson::model()->getSysCompanyPersons();
echo Chtml::listBox('managers', Yii::app()->getModule('user')->user()->profile->person_id, CHtml::listData(PprsPerson::model()->findAll(array('limit' => 1000, 'order' => 'pprs_second_name')), 'pprs_id', 'itemLabel'), array('style' => 'width:300px;', 'size' => 30, 'multiple' => 'multiple'));
?>
</span>
</div>
</div>
<?php
?>
<?php
?>
<div class="control-group">
<div class='control-label'>
<?php
echo $form->labelEx($model, 'ttsk_name');
?>
示例2: array
</p>
<div style="padding: 5px">
<form action="<?php
echo CController::createUrl('article/index');
?>
" method="get" class="search_form">
<input type="text" name="keyword" class="search_input keyword has_adv_search" /><input type="submit" value="submit" class='search_submit'/>
<span class="advanced_search" data="advanced_search_wrap"><?php
echo Yii::t('cp', 'Advanced Search');
?>
</span>
<div class=" advanced_search_wrap">
<p><?php
echo Yii::t('cp', 'Select Node');
echo Chtml::listBox('category_id', 1, $leafs, array('size' => 1, 'default' => 'all', 'class' => 'leaf_id'));
?>
</p>
<p><input type="checkbox" name="is_include" class="is_include" value="1" checked> <?php
echo Yii::t('cp', 'Include Sub Node Content');
?>
</p>
</div>
</form>
</div>
<div class="iform">
<table class='ilist'>
<thead>
<tr>
<th class='w20P taC pr2P pl2P '><input type='checkbox' class="ele_list_all" /></th>
示例3: array
?>
<?php
}
?>
</div>
</div>
<div class="row">
<label class="col-md-5 mt10 text-right">
<?php
echo Yii::t('app', 'Направление операции');
?>
:
</label>
<div class="col-md-7">
<?php
echo Chtml::listBox('directionType', null, array(), array('size' => '1', 'class' => 'form-control'));
?>
</div>
</div>
</div>
<div class="modal-footer">
<span class="btn grey" data-dismiss="modal"><?php
echo Yii::t('app', 'Отмена');
?>
</span>
<?php
echo CHtml::submitButton(Yii::t('app', 'Добавить'), array('class' => 'btn blue', 'name' => 'addOperation'));
?>
</div>
<?php
echo CHtml::endForm();