本文整理汇总了PHP中GxHtml::Button方法的典型用法代码示例。如果您正苦于以下问题:PHP GxHtml::Button方法的具体用法?PHP GxHtml::Button怎么用?PHP GxHtml::Button使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GxHtml
的用法示例。
在下文中一共展示了GxHtml::Button方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$form->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'trans_date', 'value' => $model->trans_date, 'options' => array('showButtonPanel' => true, 'changeYear' => true, 'dateFormat' => 'yy-mm-dd')));
?>
<?php
echo $form->error($model, 'trans_date');
?>
</div>
<!-- row -->
<div class="span-8 last">
<?php
echo $form->labelEx($model, 'users_id');
?>
<?php
echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'users_id');
?>
</div>
<!-- row -->
<!-- june -->
<div class="row"></div>
<!-- june -->
<!--label--><!--/label-->
<?php
echo GxHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('peanggaran/admin')));
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例2: array
echo $form->labelEx($model, 'pah_bank_accounts_id');
?>
<?php
echo $form->dropDownList($model, 'pah_bank_accounts_id', GxHtml::listDataEx(PahBankAccounts::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'pah_bank_accounts_id');
?>
</div><!-- row -->
<div class="span-8 last">
<?php
echo $form->labelEx($model, 'users_id');
?>
<?php
echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'users_id');
?>
</div><!-- row -->
<!-- june -->
<div class="row"></div>
<!-- june -->
<!--label--><!--/label-->
<?php
echo GxHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('pahkasmasuk/admin')));
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
示例3: array
echo $form->labelEx($model, 'inactive');
?>
<?php
echo $form->checkBox($model, 'inactive');
?>
<?php
echo $form->error($model, 'inactive');
?>
</div><!-- row -->
<div class="span-8 last">
<?php
echo $form->labelEx($model, 'alamat');
?>
<?php
echo $form->textArea($model, 'alamat');
?>
<?php
echo $form->error($model, 'alamat');
?>
</div><!-- row -->
<!-- june -->
<div class="row"></div>
<!-- june -->
<!--label--><!--/label-->
<?php
echo GxHtml::Button(Yii::t('app', 'Cancel'), array('submit' => array('jemaat/admin')));
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->