当前位置: 首页>>代码示例>>PHP>>正文


PHP CHtml::activeRadioButtonList方法代码示例

本文整理汇总了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);
开发者ID:kasdf9001,项目名称:yii-image-archive,代码行数:31,代码来源:_tagGrid.php

示例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');
?>
开发者ID:Glaciar88,项目名称:journal_siem,代码行数:30,代码来源:_form.php

示例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 
开发者ID:kuzmina-mariya,项目名称:unizaro-kamin,代码行数:31,代码来源:count.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' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
							<?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'));
?>
开发者ID:qhyabdoel,项目名称:hris_mujigae,代码行数:31,代码来源:_form.php

示例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' => ' &nbsp; &nbsp; &nbsp; &nbsp; '));
?>
						<?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'));
?>
开发者ID:qhyabdoel,项目名称:hris_mujigae,代码行数:31,代码来源:_form.php

示例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>
开发者ID:hikaram,项目名称:utitheme,代码行数:31,代码来源:tab_birthday.php

示例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>&nbsp;</td>
        </tr>
    </table>


    <table class="formtable">
        <tr>
            <th style="width: 150px;"><?php 
echo CHtml::activeLabel($settings, 'mail__sender_address');
?>
</th>
            <td>
                <?php 
开发者ID:anton-itscript,项目名称:WM-Web,代码行数:30,代码来源:mailsetup.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 
开发者ID:Romandre90,项目名称:vectortraveler,代码行数:31,代码来源:view.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;'));
?>
  &nbsp;&nbsp;<span>Send messages together</span>
                </td>

            </tr>
        </table>

        <table class="formtable station_table">
            <?php 
开发者ID:anton-itscript,项目名称:WM-Web,代码行数:31,代码来源:schedule_report.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' => '&nbsp;&nbsp;&nbsp;&nbsp;'));
?>
    </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;'));
?>
开发者ID:wanyos2005,项目名称:hsbf,代码行数:31,代码来源:_form_fields.php

示例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>
开发者ID:cebe,项目名称:chive,代码行数:31,代码来源:formBody.php

示例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>
开发者ID:stanhelen87,项目名称:mysite,代码行数:31,代码来源:MakeCart.php

示例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>
开发者ID:andi98,项目名称:antragsgruen,代码行数:31,代码来源:neu_anlegen.php

示例14: array

                    &nbsp;&nbsp;
                    <?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/>
开发者ID:anton-itscript,项目名称:WM,代码行数:31,代码来源:messages_history.php

示例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');
开发者ID:smoothcoder,项目名称:DISCARDEDYiiblog,代码行数:31,代码来源:_form.php


注:本文中的CHtml::activeRadioButtonList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。