本文整理匯總了PHP中GxHtml::submitButton方法的典型用法代碼示例。如果您正苦於以下問題:PHP GxHtml::submitButton方法的具體用法?PHP GxHtml::submitButton怎麽用?PHP GxHtml::submitButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GxHtml
的用法示例。
在下文中一共展示了GxHtml::submitButton方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
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 -->
示例2: array
<?php
echo $form->errorSummary($model);
?>
<div class="row">
<?php
echo $form->labelEx($model, 'Number');
?>
<input type="text" name="number" class="row" />
<div/>
<div class="row">
<?php
echo $form->labelEx($model, 'idcredit');
?>
<?php
//echo $form->textField('number');
?>
<?php
echo $form->dropDownList($model, 'idcredit', GxHtml::listDataEx(IguCredit::model()->findAllAttributes(null, true)), array('prompt' => 'Select Credit'));
?>
<?php
echo $form->error($model, 'idcredit');
?>
</div><!-- row -->
<?php
echo GxHtml::submitButton(Yii::t('app', 'Generating voucher'));
$this->endWidget();
?>
</div><!-- form -->
示例3: CArrayDataProvider
}
$rawData = Yii::app()->db->createCommand('select c.id,productname,quantity,creationdate from igu_client_product c,igu_products p where c.idproduct = p.id order by c.id desc limit 10')->queryAll();
// or using: $rawData=User::model()->findAll();
$gridDataProvider = new CArrayDataProvider($rawData, array('id' => 'user', 'sort' => array('attributes' => array('id', 'productname', 'quantity', 'creationdate')), 'pagination' => array('pageSize' => 10)));
$gridDataProvider3 = new CArrayDataProvider(array(array('id' => 1, 'firstName' => 'Mark', 'lastName' => 'Otto', 'language' => '<span class="badge badge-warning">HTML</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>'), array('id' => 2, 'firstName' => 'Jacob', 'lastName' => 'Thornton', 'language' => '<span class="badge badge-important">CSS</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>'), array('id' => 3, 'firstName' => 'Stu', 'lastName' => 'Dent', 'language' => '<span class="badge badge-info">Javascript</span>', 'usage' => '<span class="inlinebar">1,4,4,7,5,9,10</span>')));
?>
<div class="row-fluid">
<div class="span3 ">
<?php
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<center>Shakisha</center>"));
?>
<div class="form">
<?php
$form = $this->beginWidget('GxActiveForm', array('id' => 'user-form', 'enableAjaxValidation' => false));
echo CHtml::dropDownList('searchtext', 'coco', array('1' => 'Intara', '2' => 'Ubwoko'), array('prompt' => '-- Ukurikije --'));
echo ' ' . GxHtml::submitButton(Yii::t('app', 'shakisha'));
$this->endWidget();
?>
</div><!-- form -->
<?php
$this->endWidget();
?>
<div>
<?php
$this->beginWidget('zii.widgets.CPortlet', array('title' => "<center>Ibiherukaho</center>"));
?>
<?php
$this->widget('zii.widgets.grid.CGridView', array('itemsCssClass' => 'table table-bordered', 'dataProvider' => $gridDataProvider, 'template' => "{items}", 'columns' => array(array('name' => 'productname', 'header' => 'Productname'), array('name' => 'quantity', 'header' => 'Ingano'), array('name' => 'creationdate', 'header' => 'Italike'))));
示例4:
<div class="row">
<?php
echo $form->label($model, 'creado');
?>
<?php
echo $form->textField($model, 'creado');
?>
</div>
<div class="row">
<?php
echo $form->label($model, 'modificado');
?>
<?php
echo $form->textField($model, 'modificado');
?>
</div>
<div class="row buttons">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Buscar'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例5: array
<div class="span-8 last">
<?php
echo $form->label($model, 'pah_bank_accounts_id');
?>
<?php
echo $form->dropDownList($model, 'pah_bank_accounts_id', GxHtml::listDataEx(PahBankAccounts::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
</div>
<div class="span-8 last">
<?php
echo $form->label($model, 'users_id');
?>
<?php
echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
</div>
<div class="row buttons">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Search'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例6: array
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
{ name: 'links', items : [ 'Link','Unlink' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
// { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
]
});
}
$(function () {
ckeditor_full("Texte_text");
})
</script>
<?php
}
?>
<br>
<div class="saveholder">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'), array("class" => "btn btn-primary"));
$this->endWidget();
?>
</div>
</div>
示例7: array
<div class="row">
<?php
echo $form->label($model, 'title');
?>
<?php
echo $form->textField($model, 'title', array('maxlength' => 255));
?>
</div>
<div class="row">
<?php
echo $form->label($model, 'description');
?>
<?php
echo $form->textArea($model, 'description');
?>
</div>
<div class="row buttons">
<?php
echo GxHtml::submitButton('Search');
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例8: array
/**
* @var $form GxActiveForm
* @var $model Hopam
*/
$form = $this->beginWidget('GxActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
<div id="radio_hopam">
<?php
echo CHtml::radioButtonList('key_type', 0, array('Tất cả', 'Tên bài hát', 'Ca sĩ/Nhạc sĩ'), array('separator' => ''));
?>
</div>
<div id="sbox_hopam">
<div id="input_sbox_hopam">
<div id="r_input_sbox_hopam">
<?php
echo CHtml::textField('keyword', '', array('id' => 'keyword'));
?>
</div>
</div>
<?php
echo GxHtml::submitButton('', array('id' => 'search_bt'));
?>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
</div>
示例9:
<div class="row">
<?php
/*echo $form->label($model, 'create_time'); */
?>
<?php
/*echo $form->textField($model, 'create_time'); */
?>
</div>
<div class="row">
<?php
/*echo $form->label($model, 'update_time'); */
?>
<?php
/*echo $form->textField($model, 'update_time'); */
?>
</div>
-->
<div class="row buttons">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Tìm kiếm'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例10: array
echo $form->error($model, 'tipo');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'entel');
?>
<?php
echo $form->radioButtonList($model, 'entel', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
<?php
echo $form->error($model, 'entel');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'movistar');
?>
<?php
echo $form->radioButtonList($model, 'movistar', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
<?php
echo $form->error($model, 'movistar');
?>
</div><!-- row -->
<?php
echo GxHtml::submitButton(Yii::t('app', 'CREAR'));
$this->endWidget();
?>
</div><!-- form -->
示例11: array
<td>
<?php
echo $form->label($model, 'nombre1');
?>
<?php
echo $form->textField($model, 'nombre1', array('maxlength' => 255));
?>
</td>
<td>
<?php
echo $form->label($model, 'nombre2');
?>
<?php
echo $form->textField($model, 'nombre2', array('maxlength' => 255));
?>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center;">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Buscar'), array('class' => 'btn btn-primary btn-large'));
?>
</td>
</tr>
</table>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例12: array
<?php
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model->recarga, 'attributes' => array(array('name' => 'id', 'label' => 'OT'), array('name' => 'celular', 'label' => 'celular', 'template' => "<tr class=\"{class}\"><td></td><td><h1>{value}</h1></td></tr>\n"), array('name' => 'compania', 'label' => 'compania'), array('name' => 'monto', 'label' => 'monto'), array('name' => 'comentario', 'label' => 'comentario'))));
?>
<div class="form">
<?php
$form = $this->beginWidget('GxActiveForm', array('id' => 'atencion-form', 'enableAjaxValidation' => true));
echo GxHtml::submitButton(Yii::t('app', 'Guardar'));
echo $form->errorSummary($model);
?>
<div class="row">
<?php
echo $form->labelEx($model, 'Atender');
?>
<?php
echo $form->radioButtonList($model, 'estado', array('LISTA' => 'LISTA', 'RECHAZADA' => 'RECHAZADA', 'RECHAZADA NO PREPAGO' => 'RECHAZADA NO PREPAGO'), array('labelOptions' => array('style' => 'display:inline')));
?>
<?php
echo $form->error($model, 'estado');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'comentario');
?>
<?php
echo $form->textArea($model, 'comentario');
?>
<?php
echo $form->error($model, 'comentario');
示例13:
</div>-->
<!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'term_id');
?>
<?php
echo $form->dropDownList($model, 'term_id', GxHtml::listDataEx(Term::model()->findAllAttributes(null, true, 'vid=2')));
?>
<?php
echo $form->error($model, 'term_id');
?>
</div>
<!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'teacher_id');
?>
<?php
echo $form->dropDownList($model, 'teacher_id', GxHtml::listDataEx(Teacher::model()->findAllAttributes(null, true)));
?>
<?php
echo $form->error($model, 'teacher_id');
?>
</div>
<!-- row -->
<?php
echo GxHtml::submitButton(Yii::t('app', 'Lưu'));
$this->endWidget();
?>
</div><!-- form -->
示例14: array
echo $form->error($model, 'entel');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'movistar');
?>
<?php
echo $form->radioButtonList($model, 'movistar', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
<?php
echo $form->error($model, 'movistar');
?>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'claro');
?>
<?php
echo $form->radioButtonList($model, 'claro', array('SI' => 'SI', 'NO' => 'NO'), array('labelOptions' => array('style' => 'display:inline')));
?>
<?php
echo $form->error($model, 'claro');
?>
</div><!-- row -->
<?php
echo GxHtml::submitButton(Yii::t('app', 'EDITAR'));
$this->endWidget();
?>
</div><!-- form -->
示例15: array
<div class="doc-file">
<?php
if ($model->capacidad_excepcional != '') {
echo '<span>Documento Cargado Actualmente: </span>' . CHtml::link($model->capacidad_excepcional, 'descargas/' . $model->capacidad_excepcional, array('target' => '_blank'));
}
?>
</div>
<?php
echo $form->fileField($model, 'capacidad_excepcional');
?>
<div class="photo-camera" >
<?php
echo CHtml::textField('capacidad_excepcional_H', '', array('class' => 'fotoh', 'readonly' => 'readonly'));
?>
<span control="capacidad_excepcional_H" title="<?php
echo $model->getAttributeLabel('capacidad_excepcional');
?>
" class="photo btn btn-success btn-small">Capturar Foto</span>
</div>
<?php
echo $form->error($model, 'capacidad_excepcional');
?>
</div><!-- row -->
<div class="form-actions" style="text-align: center;">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Guardar'), array('class' => 'btn btn-success btn-large'));
$this->endWidget();
?>
</div>
</div><!-- form -->