本文整理汇总了PHP中GxHtml::encodeEx方法的典型用法代码示例。如果您正苦于以下问题:PHP GxHtml::encodeEx方法的具体用法?PHP GxHtml::encodeEx怎么用?PHP GxHtml::encodeEx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GxHtml
的用法示例。
在下文中一共展示了GxHtml::encodeEx方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="row">
<?php echo $form->labelEx($model,'fono'); ?>
<?php echo $form->textField($model, 'fono', array('maxlength' => 45)); ?>
<?php echo $form->error($model,'fono'); ?>
</div><!-- row -->
<div class="row">
<?php echo $form->labelEx($model,'mail'); ?>
<?php echo $form->textField($model, 'mail', array('maxlength' => 45)); ?>
<?php echo $form->error($model,'mail'); ?>
</div><!-- row -->
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textField($model, 'username', array('maxlength' => 45)); ?>
<?php echo $form->error($model,'username'); ?>
</div><!-- row -->
<div class="row">
<?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($model, 'password', array('maxlength' => 45)); ?>
<?php echo $form->error($model,'password'); ?>
</div><!-- row -->
<label><?php echo GxHtml::encode($model->getRelationLabel('locals')); ?></label>
<?php echo $form->checkBoxList($model, 'locals', GxHtml::encodeEx(GxHtml::listDataEx(Local::model()->findAllAttributes(null, true)), false, true)); ?>
<label><?php echo GxHtml::encode($model->getRelationLabel('userPlans')); ?></label>
<?php echo $form->checkBoxList($model, 'userPlans', GxHtml::encodeEx(GxHtml::listDataEx(UserPlan::model()->findAllAttributes(null, true)), false, true)); ?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例2:
echo $form->textArea($model, 'slogan_en');
?>
<?php
echo $form->error($model, 'slogan_en');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'slogan_ar');
?>
<?php
echo $form->textArea($model, 'slogan_ar');
?>
<?php
echo $form->error($model, 'slogan_ar');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('distributions'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'distributions', GxHtml::encodeEx(GxHtml::listDataEx(Distribution::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例3: array
?>
<?php
echo $form->error($model, 'body');
?>
</div>
<!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'status');
?>
<?php
echo $form->dropDownList($model, 'status', array(0 => 'Ẩn', 1 => 'Hiện'));
?>
<?php
echo $form->error($model, 'status');
?>
</div>
<label><?php
echo GxHtml::encode($model->getRelationLabel('classGuitars'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'classGuitars', GxHtml::encodeEx(GxHtml::listDataEx(ClassGuitar::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例4:
echo $form->dropDownList($model, 'country_id', GxHtml::listDataEx(Country::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'country_id');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'last_update');
?>
<?php
echo $form->textField($model, 'last_update');
?>
<?php
echo $form->error($model, 'last_update');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('addresses'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'addresses', GxHtml::encodeEx(GxHtml::listDataEx(Address::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton('Save');
$this->endWidget();
?>
</div><!-- form -->
示例5: array
echo $form->textField($model, 'name', array('maxlength' => 20));
?>
<?php
echo $form->error($model, 'name');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'code');
?>
<?php
echo $form->textField($model, 'code', array('maxlength' => 10));
?>
<?php
echo $form->error($model, 'code');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('governorates'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'governorates', GxHtml::encodeEx(GxHtml::listDataEx(Governorate::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例6: array
echo $form->textField($model, 'precio');
?>
<?php
echo $form->error($model, 'precio');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'descripcion');
?>
<?php
echo $form->textField($model, 'descripcion');
?>
<?php
echo $form->error($model, 'descripcion');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('pedidos'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'pedidos', GxHtml::encodeEx(GxHtml::listDataEx(Pedido::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'), array('onClick' => "this.disabled=true;this.value='" . Yii::t('app', 'Enviando') . "';this.form.submit();"));
$this->endWidget();
?>
</div><!-- form -->
示例7:
echo $form->dropDownList($model, 'type_id', GxHtml::listDataEx(CompanyStructureType::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'type_id');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'location_id');
?>
<?php
echo $form->dropDownList($model, 'location_id', GxHtml::listDataEx(Location::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'location_id');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('companyStructures'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'companyStructures', GxHtml::encodeEx(GxHtml::listDataEx(CompanyStructure::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton('Save');
$this->endWidget();
?>
</div><!-- form -->
示例8: array
echo $form->textField($model, 'documento', array('maxlength' => 255));
?>
<?php
echo $form->error($model, 'documento');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'tabla');
?>
<?php
echo $form->textField($model, 'tabla', array('maxlength' => 70));
?>
<?php
echo $form->error($model, 'tabla');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('documentoExistentes'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'documentoExistentes', GxHtml::encodeEx(GxHtml::listDataEx(DocumentoExistente::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例9: array
echo $form->textField($model, 'name', array('maxlength' => 50));
?>
<?php
echo $form->error($model, 'name');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'description');
?>
<?php
echo $form->textField($model, 'description', array('maxlength' => 200));
?>
<?php
echo $form->error($model, 'description');
?>
</div><!-- row -->
<label><?php
echo GxHtml::encode($model->getRelationLabel('assignments'));
?>
</label>
<?php
echo $form->checkBoxList($model, 'assignments', GxHtml::encodeEx(GxHtml::listDataEx(Assignment::model()->findAllAttributes(null, true)), false, true));
?>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->