本文整理汇总了PHP中TbHtml::activeLabelEx方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::activeLabelEx方法的具体用法?PHP TbHtml::activeLabelEx怎么用?PHP TbHtml::activeLabelEx使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::activeLabelEx方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array(Yii::t('main', 'Tag') => Yii::app()->createUrl('tag'), Yii::t('main', 'Create'))));
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'tag-form', 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'focus' => array($model, 'title')));
?>
<div class="control-group">
<?php
echo Yii::t('main', 'Fields with <span class="required">*</span> are required.');
?>
</div>
<?php
echo $form->errorSummary(array($model));
?>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, 'title', array('class' => 'control-label'));
?>
<div class="controls">
<?php
echo TbHtml::activeTextField($model, 'title', array('style' => 'width:600px;'));
?>
</div>
</div>
<div class="buttons">
<?php
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('main', 'Create') : Yii::t('main', 'Save'), array('class' => 'fl-r'));
?>
</div>
示例2: array
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, 'link', array('class' => 'control-label'));
?>
<div class="controls">
<?php
echo TbHtml::activeTextField($model, 'link', array());
?>
</div>
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, Yii::t('main', 'Portfolio'), array('for' => 'Posting_portfolio', 'class' => 'control-label'));
?>
<div class="controls">
<?php
$this->widget('application.modules.portfolio.widgets.PhotoPortfolio.PhotoPortfolioWidget', array('portfolio' => $portfolio, 'portfolioType' => 1, 'uploadAction' => Yii::app()->createUrl('portfolio/default/uploadMagazine'), 'photoCountMax' => 1, 'allowedExtensions' => array('jpg', 'png', 'swf', 'jpeg'), 'checkBoxClass' => 'hide', 'radiobuttonClass' => 'hide'));
?>
</div>
</div>
</fieldset>
<div class="buttons">
<?php
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('main', 'Create') : Yii::t('main', 'Save'), array('class' => 'fl-r'));
?>
</div>
示例3: array
<p class="hint">
<?php
echo TbHtml::link(UserModule::t("Register"), Yii::app()->getModule('user')->registrationUrl);
?>
<br/><?php
echo TbHtml::link(UserModule::t("Lost Password?"), Yii::app()->getModule('user')->recoveryUrl);
?>
</p>
</div>
<!--
<div class="row-fluid rememberMe">
<?php
echo TbHtml::activeCheckBox($model, 'rememberMe');
?>
<?php
echo TbHtml::activeLabelEx($model, 'rememberMe');
?>
</div> -->
<div class="row-fluid submit">
<?php
echo TbHtml::submitButton(UserModule::t("Login"), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'submit' => ''));
?>
</div>
<?php
echo TbHtml::endForm();
?>
</div><!-- form -->
示例4: array
<?php
echo TbHtml::activeLabelEx($form, 'password');
?>
<?php
echo TbHtml::activePasswordField($form, 'password');
?>
<p class="hint">
<?php
echo UserModule::t("Minimal password length 4 symbols.");
?>
</p>
</div>
<div class="row-fluid">
<?php
echo TbHtml::activeLabelEx($form, 'verifyPassword');
?>
<?php
echo TbHtml::activePasswordField($form, 'verifyPassword');
?>
</div>
<div class="row-fluid submit">
<?php
echo TbHtml::button(UserModule::t('Save'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'submit' => ''));
?>
</div>
<?php
echo TbHtml::endForm();
示例5: array
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, 'newPassword', array('class' => 'fl-l w-200'));
?>
<div class="controls">
<?php
echo TbHtml::activeTextField($model, 'newPassword', array('size' => 60, 'maxlength' => 128, 'style' => 'width:400px'));
?>
</div>
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, 'verifyPassword', array('class' => 'fl-l w-200'));
?>
<div class="controls">
<?php
echo TbHtml::activeTextField($model, 'verifyPassword', array('size' => 60, 'maxlength' => 128, 'style' => 'width:400px'));
?>
</div>
</div>
<div class="buttons">
<?php
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('main', 'Create') : Yii::t('main', 'Save'), array('class' => 'fl-r'));
?>
</div>
<?php
示例6: array
<?php
//echo TbHtml::activeLabelEx($model, 'description', array('class'=>'fl-l w-100', 'title' => $sDescMaxLength, 'alt' => $sDescMaxLength));
?>
<div class="controls" style="margin-left: 100px;">
<?php
//echo TbHtml::activeTextField($model, 'description', array('name' => $baseName . '[description]', 'span' => 8, 'placeholder'=>'portfolio description'));
?>
</div>
</div>-->
<div class="<?php
echo $checkBoxClass;
?>
">
<?php
echo TbHtml::activeLabelEx($model, 'is_active', array('class' => 'fl-l w-100', 'style' => 'margin-right: 10px;'));
echo TbHtml::activeCheckBox($model, 'is_active', array('name' => $baseName . '[is_active]', 'placeholder' => 'portfolio is_active'));
?>
</div>
</div>
<div class="qq-uploader" style="margin-bottom: 20px;">
<div class="qq-upload-drop-area">
<span>{dragZoneText}</span>
</div>
<div class="qq-upload-button btn" id="btnSelectFiles" style="width: 140px;">
<span>{uploadButtonText}</span>
</div>
示例7: array
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, Yii::t('main', 'Portfolio'), array('for' => 'Posting_portfolio', 'class' => 'control-label'));
?>
<div class="controls">
<?php
$this->widget('application.modules.portfolio.widgets.PhotoPortfolio.PhotoPortfolioWidget', array('portfolio' => $portfolio, 'uploadAction' => Yii::app()->createUrl('portfolio/default/uploadfile'), 'photoCountMax' => 2, 'allowedExtensions' => array('gif', 'jpg', 'jpeg', 'png')));
?>
</div>
</div>
<div class="control-group">
<?php
echo TbHtml::activeLabelEx($model, 'order_nr', array('class' => 'control-label'));
?>
<div class="controls">
<?php
echo TbHtml::activeTextField($model, 'order_nr', array());
?>
</div>
</div>
</fieldset>
<div class="buttons">
<?php
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('main', 'Create') : Yii::t('main', 'Save'), array('class' => 'fl-r'));
?>
</div>
示例8: array
?>
<?php
echo TbHtml::activeTextField($model, 'position');
?>
<?php
echo TbHtml::error($model, 'position');
?>
<p class="hint"><?php
echo UserModule::t('Display order of fields.');
?>
</p>
</div>
<div class="row visible">
<?php
echo TbHtml::activeLabelEx($model, 'visible');
?>
<?php
echo TbHtml::activeDropDownList($model, 'visible', ProfileField::itemAlias('visible'));
?>
<?php
echo TbHtml::error($model, 'visible');
?>
</div>
<div class="row buttons">
<?php
echo TbHtml::button($model->isNewRecord ? UserModule::t('Create') : UserModule::t('Save'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'submit' => ''));
?>
</div>