本文整理汇总了PHP中CHtml::activeRadioButtonList方法的典型用法代码示例。如果您正苦于以下问题:PHP CHtml::activeRadioButtonList方法的具体用法?PHP CHtml::activeRadioButtonList怎么用?PHP CHtml::activeRadioButtonList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHtml
的用法示例。
在下文中一共展示了CHtml::activeRadioButtonList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
*/
$tags = Image::model()->tags();
/**
* Prints all the radio button list -> radio labels -> list label -systems
* Nested in a table.
*/
echo "<table class=\"tagGrid\" id=\"tagGrid\"><tr><td>";
foreach ($tags as $tag) {
if ($tag == 'aikavarma') {
continue;
}
echo "<div class='row'>";
if ($styleContext == "search") {
echo CHtml::activeLabel($model, $tag, array('class' => 'properlabel'));
// label for the radio button list
echo CHtml::activeRadioButtonList($model, $tag, $model->getTypeOptions(), $htmlOptions);
}
if ($styleContext == "metadatabox") {
if ($dataProvider->{$tag} == 'k') {
echo '<b>';
echo CHtml::activeLabel($model, $tag);
echo '</b>';
} else {
echo CHtml::activeLabel($model, $tag, array('style' => 'color:#888888;'));
}
}
if ($styleContext == "metadataboxedit") {
if ($dataProvider->{$tag} == 'k') {
echo CHtml::activeCheckBox($model, $tag, array('checked' => 'checked'));
} else {
echo CHtml::activeCheckBox($model, $tag);
示例2: array
<?php
echo $form->error($model, 'user_id_instal');
?>
</div>
</div>
<div class="mtitle">АОИ YesTech</div>
<div class="mash_item _fclear">
<div class="row col">
<?php
echo $form->labelEx($model, 'job_aoi', array('label' => 'Статус:'));
?>
</br>
<?php
echo CHtml::activeRadioButtonList($model, 'job_aoi', array(0 => 'Не требуется', 1 => 'Не сделано', 2 => 'Сделано'), array('onclick' => 'togglePrint(this)'));
?>
<?php
echo $form->error($model, 'job_aoi');
?>
</div>
<div class="row col">
<?php
echo $form->labelEx($model, 'date_aoi', array('label' => 'Дата выполнения'));
?>
<?php
echo CHtml::activeDateField($model, 'date_aoi');
?>
<?php
echo $form->error($model, 'date_aoi');
?>
示例3: array
?>
<span class="help-block">
<?php
echo CHtml::error($model, 'safe', array('class' => 'label label-danger'));
?>
</span>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabel($model, 'skipOnError', array('class' => 'col-md-3 control-label'));
?>
<div class="col-md-5">
<?php
echo CHtml::activeRadioButtonList($model, 'skipOnError', array('true' => Yii::t('EavModule.eavactiverecord', 'Enabled'), 'false' => Yii::t('EavModule.eavactiverecord', 'Disabled')), array('container' => 'div', 'separator' => '', 'template' => '{beginLabel}{input}{labelTitle}{endLabel}', 'labelOptions' => array('class' => 'radio-inline')));
?>
<span class="help-block">
<?php
echo CHtml::error($model, 'skipOnError', array('class' => 'label label-danger'));
?>
</span>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabel($model, 'max', array('class' => 'col-md-3 control-label'));
?>
<div class="col-md-5">
<?php
示例4: array
echo CHtml::activeTextField($model, 'nickname', array('size' => 50, 'maxlength' => 50, 'class' => 'validate[required] form-control'));
?>
</div>
<?php
echo CHtml::error($model, 'nickname');
?>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabelEx($model, 'gender', array('class' => $label_class));
?>
<div class="col-md-6 col-xs-12">
<?php
echo CHtml::activeRadioButtonList($model, 'gender', ReferenceEmployeeStatuses::model()->getGender(), array('class' => 'validate[required] form-control iradio', 'separator' => ' '));
?>
<?php
echo CHtml::error($model, 'gender');
?>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabelEx($model, 'religion_id', array('class' => $label_class));
?>
<div class="col-md-6 col-xs-12">
<?php
echo CHtml::activeDropDownList($model, 'religion_id', CHtml::listData(ReferenceReligions::model()->findAll(), 'id', 'name'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'class' => 'validate[required] form-control select'));
?>
示例5: array
<?php
echo CHtml::activeTextArea($model, 'alergy', array('size' => 50, 'maxlength' => 50, 'class' => 'validate[required] form-control'));
?>
<?php
echo CHtml::error($model, 'alergy');
?>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabelEx($model, 'mcu_status', array('class' => $label_class));
?>
<div class="col-md-6 col-xs-12">
<?php
echo CHtml::activeRadioButtonList($model, 'mcu_status', MastersEmployeeMcu::model()->getStatuses(), array('class' => 'validate[required] form-control iradio', 'separator' => ' '));
?>
<?php
echo CHtml::error($model, 'mcu_status');
?>
</div>
</div>
</div>
<div class="panel-footer">
<?php
/*echo CHtml::button('Clear Form', array('class'=>'btn btn-default'));*/
?>
<?php
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn btn-primary pull-right'));
?>
示例6: array
</label>
<div class="col-md-7">
<?php
echo CHtml::checkBox('is_filter_' . SettingsControllerBase::ReportAliasBirthday, $params->is_filter, array('onClick' => 'changeFilter("' . SettingsControllerBase::ReportAliasBirthday . '")'));
?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="title"><?php
echo CHtml::activeLabel($params, 'datefilter_type');
?>
</label>
<div class="col-md-7">
<?php
echo CHtml::activeRadioButtonList($params, 'datefilter_type', array(OfficeStatsReportsParams::dateFilterTypeBetween => Yii::t('app', 'Фильтровать в интервале двух дат'), OfficeStatsReportsParams::dateFilterTypeMonthSelect => Yii::t('app', 'Фильтровать выбором конкретного месяца')));
?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="title"><?php
echo CHtml::activeLabel($params->lang, 'title');
?>
</label>
<div class="col-md-7">
<?php
echo CHtml::activeTextField($params->lang, 'title', array('class' => "form-control"));
?>
</div>
</div>
示例7: array
<div class="middlenarrow">
<h1>Mail Settings</h1>
<?php
echo CHtml::beginForm($this->createUrl('admin/mailsetup'), 'post', array('id' => 'formMailSettings'));
?>
<table class="formtable">
<tr>
<td><?php
echo CHtml::activeRadioButtonList($settings, 'mail__use_fake_sendmail', array(0 => 'This PC has Sendmail Software', 1 => 'PC doesn\'t have a sendmail program. Please use an alternative mail program.'));
?>
</td>
<td><?php
echo CHtml::error($settings, 'mail__use_fake_sendmail');
?>
</td>
<td> </td>
</tr>
</table>
<table class="formtable">
<tr>
<th style="width: 150px;"><?php
echo CHtml::activeLabel($settings, 'mail__sender_address');
?>
</th>
<td>
<?php
示例8: array
echo $model->getDateFormat($model->importanceTime);
?>
</div>
<?php
}
?>
</div>
<div class="wrapper">
<div class="title"><?php
echo CHtml::encode($model->getAttributeLabel('disposition'));
?>
</div>
<div class="content" style='text-align: center'>
<?php
echo CHtml::activeRadioButtonList($model, 'disposition', $model->getDispositionOptions(), array('disabled' => true, 'separator' => ' '));
?>
</div>
<?php
if ($model->dispositionDescription) {
?>
<div class='description'>
<b><?php
echo CHtml::encode($model->dispositionDescription);
?>
</b>
</div>
<?php
}
?>
<?php
示例9: array
</td>
<td>
<?php
echo CHtml::activeDropDownList($form, 'period', Yii::app()->params['schedule_generation_period'], array('style' => 'width: 50px;'));
?>
</td>
<td>
<?php
echo CHtml::activeDropDownList($form, 'report_format', Yii::app()->params['schedule_report_format'], array('style' => 'width: 50px;'));
?>
</td>
</tr>
<tr>
<td colspan="2" >
<?php
echo CHtml::activeRadioButtonList($form, 'send_like_attach', array('1' => 'attachments to the report', '0' => 'write to the message body'), array('style' => 'width: 50px;'));
?>
</td>
<td >
<?php
echo CHtml::activeCheckbox($form, 'send_email_together', array('style' => 'width: 50px;'));
?>
<span>Send messages together</span>
</td>
</tr>
</table>
<table class="formtable station_table">
<?php
示例10: array
<?php
echo CHtml::error($model, 'idno');
?>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabelEx($model, 'gender', array('class' => $label_class));
?>
<div class="<?php
echo $input_class;
?>
" style="padding-top: 4px;">
<?php
echo CHtml::activeRadioButtonList($model, 'gender', Person::genderOptions(), array('separator' => ' '));
?>
</div>
</div>
<div class="form-group">
<?php
echo CHtml::activeLabelEx($model, 'birthdate', array('class' => $label_class));
?>
<div class="<?php
echo $input_class;
?>
">
<?php
echo CHtml::activeDropDownList($model, 'birthdate_month', Person::birthDateMonthOptions(), array('style' => 'width:80px;'));
?>
示例11: explode
<td>
<?php
echo CHtml::activeCheckBox($column, 'autoIncrement');
?>
<?php
echo CHtml::activeLabel($column, 'autoIncrement');
?>
</td>
</tr>
<tr>
<td>
<?php
echo Yii::t('core', 'attribute');
?>
<?php
$radio_options = explode('|', CHtml::activeRadioButtonList($column, 'attribute', array('' => Yii::t('core', 'noAttribute'), 'unsigned' => Yii::t('core', 'unsigned'), 'unsigned zerofill' => Yii::t('core', 'unsignedZerofill'), 'on update current_timestamp' => Yii::t('core', 'onUpdateCurrentTimestamp')), array('template' => '{input} {label}', 'separator' => '|')));
?>
</td>
<td colspan="2">
<?php
echo $radio_options[0];
?>
<!---
<?php
echo CHtml::activeRadioButton($column, 'attribute', array('value' => '', 'id' => CHtml::$idPrefix . 'Column_attribute_'));
?>
<?php
echo CHtml::label(Yii::t('core', 'noAttribute'), 'Column_attribute_', array('style' => 'font-style: italic'));
?>
--->
</td>
示例12: array
</p></br>
<?php
echo CHtml::beginForm($url);
?>
<div class="row">
<?php
//var_dump($cart);
//echo CHtml::errorSummary($cart,'Ошибка ввода:',null,array('style'=>"color: red"));
?>
</br> <h3>Введите адрес доставки: </h3></br>
<?php
echo CHtml::activeTextField($cart, 'address');
?>
<?php
echo CHtml::error($cart, 'address', array('style' => "color: red"));
?>
</br></br><h3>Укажите желаемое время доставки:</h3>
<?php
echo CHtml::activeRadioButtonList($cart, 'hours', array('C 8 00 до 12 00' => 'С 8 00 до 12 00', 'C 12 00 до 18 00' => 'C 12 00 до 18 00', 'C 18 00 до 22 00' => 'C 18 00 до 22 00'));
?>
</br>
<?php
echo CHtml::SubmitButton('Отправить');
?>
</div>
<?php
echo CHtml::endForm();
?>
</div>
<div id="MakeCartFooter"></div>
</div>
示例13: array
<div class="step-pane" id="step3">
<br>
<div class="kontakt">
<?php
echo CHtml::activeLabelEx($anlegenformmodel, 'kontakt', array("label" => "<strong>Kontaktadresse:</strong> (postalisch + E-Mail; wird standardmäßig im Impressum genannt)"));
?>
<?php
echo CHtml::activeTextArea($anlegenformmodel, 'kontakt');
?>
</div>
<br><br>
<div class="zahlung">
<strong>Wärest du bereit, einen freiwilligen Beitrag über 20€ an die Netzbegrünung zu leisten?</strong><br>(Wenn ja, schicken wir dir eine Rechnung an die oben eingegebene Adresse)<br>
<?php
echo CHtml::activeRadioButtonList($anlegenformmodel, "zahlung", VeranstaltungsreihenEinstellungen::$BEREIT_ZU_ZAHLEN);
?>
</div>
<br>
<div class="weiter">
<?php
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => 'Anlegen', 'icon' => 'icon-ok', 'htmlOptions' => array('name' => AntiXSS::createToken('anlegen'))));
?>
</div>
</div>
</div>
<script>
$(function() { instanz_neu_anlegen_init(); });
</script>
示例14: array
<?php
if (Yii::app()->user->isSuperAdmin()) {
?>
<?php
echo CHtml::submitButton(It::t('site_label', 'do_delete_checked'), array('name' => 'delete_checked', 'onclick' => "return confirm('" . It::t('site_label', 'msg_history__confirm_delete') . "');"));
?>
<?php
}
?>
</td>
</tr>
<tr>
<td colspan="3">
<?php
echo CHtml::activeRadioButtonList($form, 'date_type_selected', $form->date_type);
?>
</td>
</tr>
</table>
</div>
<div class='clear'></div>
</div>
</div>
<div class="middlenarrow">
<br/><br/>
示例15: array
?>
<div class='row'>
<?php
echo CHtml::activeLabel($model, 'status');
?>
<?php
echo CHtml::activeDropDownList($model, 'status', User::model()->statusOptions);
?>
</div>
<div class='row'>
<?php
echo CHtml::activeLabel($model, 'banned');
?>
<?php
$result = CHtml::activeRadioButtonList($model, 'banned', User::model()->bannedOptions, array('separator' => ''));
?>
<?php
echo str_replace('label', 'span', $result);
?>
</div>
<?php
}
?>
<div class='row'>
<?php
echo CHtml::activeLabel($model, 'avatar');
?>
<?php
echo CHtml::activeFileField($model, 'avatar');