本文整理汇总了PHP中CHtml::resetButton方法的典型用法代码示例。如果您正苦于以下问题:PHP CHtml::resetButton方法的具体用法?PHP CHtml::resetButton怎么用?PHP CHtml::resetButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHtml
的用法示例。
在下文中一共展示了CHtml::resetButton方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php echo $form->error($model,'Account_Number'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Account_Name'); ?>
<?php echo $form->textField($model,'Account_Name',array('class'=>'txtfield')); ?>
<?php echo $form->error($model,'Account_Name'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Bank_Name'); ?>
<?php echo $form->textField($model,'Bank_Name',array('class'=>'txtfield')); ?>
<?php echo $form->error($model,'Bank_Name'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Bank_Routing'); ?>
<?php echo $form->textField($model,'Bank_Routing',array('class'=>'txtfield')); ?>
<?php echo $form->error($model,'Bank_Routing'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Bank_SWIFT'); ?>
<?php echo $form->textField($model,'Bank_SWIFT',array('class'=>'txtfield')); ?>
<?php echo $form->error($model,'Bank_SWIFT'); ?>
</div>
<?php echo CHtml::hiddenField('acct_id', $acctId, array('id' => 'acct_id')); ?>
</div>
<div style="clear: both; height: 10px;"></div>
<div class="center">
<?php echo CHtml::submitButton('Save',array('id'=>'newbankacctbtn','class'=>'button hidemodal')); ?>
<?php echo CHtml::resetButton('Cancel',array('id'=>'cancelbankacctbtn','class'=>'button hidemodal')); ?>
</div>
<?php $this->endWidget(); ?>
</div>
示例2: array
<div class="row">
<?php
echo CHtml::activeLabel($model, 'valokuvaaja');
?>
<br />
<?php
echo CHtml::activeTextField($model, 'valokuvaaja');
?>
</div>
</td>
<td colspan="2" class="withborder">
<div class="row" id="addorreplace">
<?php
echo CHtml::resetButton('Tyhjennä kentät', array('class' => 'buttonlink', 'style' => 'float:right;height:50px;width:150px;'));
echo CHtml::radioButtonList('addOrReplaceKuvateksti', 0, array(true => 'Vaihda kuvateksti', false => 'Lisää kuvatekstin perään'), array('separator' => '<br />'));
?>
<br />
<?php
echo CHtml::textField('kuvateksti', '', array('style' => 'width:500px;'));
?>
</div>
</td>
</tr>
</table>
</div>
<hr />
示例3: array
<?php
echo CHtml::dropDownList('filter', $filter, $filterOptions, array('empty' => ''));
?>
<?php
}
?>
关键词
<?php
echo CHtml::textField('keyword', $keyword);
?>
<?php
echo CHtml::submitButton('搜索');
?>
<?php
echo CHtml::resetButton('重置', array('onclick' => "window.location.href='" . $this->createUrl('index') . "'"));
?>
<?php
echo Helper::fieldTips('如果你已知道数据编号,可用 #编号 来搜索数据,如:#12');
?>
<?php
echo CHtml::endForm();
?>
</div>
<div class="clearfix">
<?php
$this->widget('zii.widgets.grid.CGridView', array('pager' => array('cssFile' => false), 'cssFile' => false, 'htmlOptions' => array('class' => 'list-view'), 'itemsCssClass' => 'list items tree-table', 'loadingCssClass' => 'list-view-loading', 'dataProvider' => $dataProvider, 'selectableRows' => 0, 'columns' => array(array('name' => 'manager_id', 'headerHtmlOptions' => array('class' => 'id-column', 'style' => 'width:80px;'), 'htmlOptions' => array('align' => 'center')), array('name' => 'login_name'), array('name' => 'manager_role_id', 'value' => '$data->manager_role_id > 0 && $data->managerRole ? $data->managerRole->name : null'), array('name' => 'last_login_time', 'value' => 'strtotime($data->last_login_time) > 0 ? Helper::time_since(strtotime($data->last_login_time)) : null'), array('name' => 'last_login_ip'), array('name' => 'login_times', 'htmlOptions' => array('align' => 'right')), array('name' => 'is_allow_login', 'value' => '$data->is_allow_login ? "是" : "<font color=\\"red\\">否</font>"', 'type' => 'raw', 'htmlOptions' => array('align' => 'center')), array('class' => 'CButtonColumn', 'header' => '操作', 'headerHtmlOptions' => array('style' => 'width:100px;'), 'htmlOptions' => array('align' => 'center'), 'template' => '{view} {update} {delete}', 'buttons' => array('view' => array('url' => 'array("view", "id" => $data->primaryKey, "return_url" => Yii::app()->request->url)'), 'update' => array('url' => 'array("update", "id" => $data->primaryKey, "return_url" => Yii::app()->request->url)', 'visible' => 'Yii::app()->user->checkAccess("updateManager")'), 'delete' => array('visible' => '$data->is_admin ? false : Yii::app()->user->checkAccess("deleteManager")'))))));
示例4: array
<span class="beta-help-inline"><?php
echo $form->getError('captcha');
?>
</span>
</div>
<div class="clear"></div>
</div>
<?php
}
?>
<div class="beta-form-actions acenter">
<?php
echo CHtml::submitButton(t('submit'), array('class' => 'beta-btn small'));
?>
<?php
echo CHtml::resetButton(t('reset'), array('class' => 'beta-btn small'));
?>
</div>
<?php
echo CHtml::endForm();
?>
</div>
<div class="beta-sidebar">
<div class="beta-block beta-small beta-radius3px">
<h2>投稿必读</h2>
<ul class="beta-block-content">
<li>欢迎原创及翻译文章,您的独家报料与独特视角是我们的宝贵财富</li>
<li>非原创文章必须填写来源</li>
<li>别忘了署名! 写上您的blog地址,带来意想不到的人气,也可能发现志同道合的网友</li>
<li>编辑也许会对投递进行适当修改, 以适合在本站发表</li>
示例5: testResetButton
/**
* @dataProvider providerResetButton
*
* @param string $label
* @param array $htmlOptions
* @param string $assertion
*/
public function testResetButton($label, $htmlOptions, $assertion)
{
$this->assertEquals($assertion, CHtml::resetButton($label, $htmlOptions));
}
示例6: array
<div class="row" id="email" style="display:none">
<h2>2. Please enter your registration email:</h2>
<?php
echo $form->labelEx($model, 'email');
?>
<?php
echo $form->textField($model, 'email');
?>
<?php
echo $form->error($model, 'email');
?>
</div>
<div class="row buttons">
<?php
echo CHtml::resetButton('Cancel');
?>
<?php
echo CHtml::submitButton('Submit');
?>
</div>
<?php
$this->endWidget();
CHtml::ajaxLink('下一个', array('getQuote'), array('update' => '#quote-of-the-day'));
?>
<script type="text/javascript">
function showCode(){
if ( $("input[name=User[has_code]][value=0]").attr("checked")=="checked" ) {
$("#email").hide();
示例7:
<?php
echo $form->error($model, 'link');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'quelle');
?>
<?php
echo $form->textField($model, 'quelle');
?>
<?php
echo $form->error($model, 'quelle');
?>
</div>
<div class="row buttons">
<?php
echo CHtml::submitButton('Suchen');
echo CHtml::resetButton('Reset');
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例8: array
$form = $this->beginWidget('CActiveForm', array('id' => 'category-edit-form', 'enableAjaxValidation' => false));
?>
<div class="row">
<label for="nest-act">Действие</label>
<select name="nest-act">
<option selected disabled value="null">Выберите действие</option>
<option value="create-parent">Создать подкаталог</option>
<option value="rename">Переименовать каталог</option>
<option value="delete" style="color: red">Удалить каталог</option>
</select>
</div>
<div class="row">
<input id="name_cat" type="text" name="name_cat" size="60" maxlength="255"
style="height: 30px; width: 60%; display: none">
</div>
<div class="row buttons">
<?php
echo CHtml::submitButton();
?>
<?php
echo CHtml::resetButton();
?>
</div>
<?php
$this->endWidget();
?>
</div>
示例9: array
?>
<td>¡Debe escoger un personaje y un equipo!</td>
<?php
}
?>
</tr>-->
<tr>
<td >
<?php
echo CHtml::button('Volver', array('onclick' => 'js:document.location.href="' . $this->createUrl('site/login') . '"', 'class' => "button large black"));
?>
</td>
<td >
<?php
echo CHtml::resetButton('Reiniciar', array('class' => "button large black"));
?>
</td>
<td >
<?php
echo CHtml::submitButton('Siguiente', array('class' => "button large black"));
?>
</td>
</tr>
</table>
</div>
<?php
$this->endWidget();
?>
示例10: createButton
/**
* Creates the button element.
* @return string the created button.
*/
protected function createButton()
{
switch ($this->fn) {
case self::FN_BUTTON:
return CHtml::htmlButton($this->label, $this->htmlOptions);
case self::FN_SUBMIT:
return CHtml::submitButton($this->label, $this->htmlOptions);
case self::FN_RESET:
return CHtml::resetButton($this->label, $this->htmlOptions);
case self::FN_SUBMITLINK:
return CHtml::linkButton($this->label, $this->htmlOptions);
case self::FN_AJAXLINK:
return CHtml::ajaxLink($this->label, $this->url, $this->ajaxOptions, $this->htmlOptions);
case self::FN_AJAXBUTTON:
return CHtml::ajaxButton($this->label, $this->url, $this->ajaxOptions, $this->htmlOptions);
case self::FN_AJAXSUBMIT:
return CHtml::ajaxSubmitButton($this->label, $this->ajaxOptions, $this->htmlOptions);
default:
case self::FN_LINK:
return CHtml::link($this->label, $this->url, $this->htmlOptions);
}
}
示例11: array
});
</script>
<div data-role="collapsible" data-collapsed="true">
<h3><?php
echo Yii::t('mobile', 'Create Message');
?>
</h3>
<p>
<form id="x2chatform">
<div data-role="fieldcontain">
<?php
echo CHtml::textArea('message');
?>
</div>
<?php
echo CHtml::resetButton(Yii::t('mobile', 'Clear'), array('data-inline' => 'true'));
echo CHtml::button(Yii::t('app', 'Send'), array('id' => 'x2chatsubmit', 'data-inline' => 'true'));
?>
</form>
</p>
</div>
<div data-role="collapsible" data-collapsed="false">
<h3><?php
echo Yii::t('mobile', 'Message List');
?>
</h3>
<ul id="x2groupchat" data-role="listview" data-inset="true">
</ul>
</div>
示例12: array
<div class="proper-lft">
<div class="txt-log"><?php
echo $form->labelEx($model, 'retail');
?>
</div>
<div class="txt-box"><?php
echo $form->textField($model, 'retail', array('size' => 60, 'maxlength' => 255));
?>
</div>
<?php
//echo $form->error($model,'first_name');
?>
</div>
<div class="row-right">
<?php
echo CHtml::submitButton('Search', array('class' => 'main-but'));
?>
<?php
echo CHtml::resetButton('Clear', array('class' => 'main-but'));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
示例13: array
">
<p>
<?php
echo CHtml::label('Name', 'search[name]');
?>
<br />
<?php
echo CHtml::textField('search[name]', $search['name'], array('class' => 'small'));
?>
</p>
<?php
echo CHtml::submitButton('Search', array('class' => 'button'));
?>
<?php
echo CHtml::resetButton('Reset', array('class' => 'button'));
?>
</div>
<!-- search form start -->
<table>
<tr>
<th>id</th>
<th>name</th>
<th>quotes</th>
<th>actions</th>
</tr>
<?php
$rowClasses = array('', 'line');
?>
<?php
示例14: array
<?php
// dialog for completing a stage requiring a comment
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'workflowCommentDialog', 'options' => array('title' => Yii::t('workflow', 'Comment Required'), 'autoOpen' => false, 'resizable' => false, 'modal' => true, 'show' => 'fade', 'hide' => 'fade'), 'htmlOptions' => array('class' => 'form no-border')));
?>
<form>
<div class="row"><?php
echo Yii::t('workflow', 'Please summarize how this stage was completed.');
?>
</div>
<div class="row">
<?php
echo CHtml::textArea('workflowComment', '', array('style' => 'width:250px;height:80px;'));
echo CHtml::submitButton(Yii::t('app', 'Submit'), array('id' => 'workflowCommentSubmit', 'class' => 'x2-button highlight left', 'onclick' => 'completeWorkflowStageComment(); return false;'));
echo CHtml::resetButton(Yii::t('app', 'Cancel'), array('class' => 'x2-button left', 'onclick' => '$("#workflowCommentDialog").dialog("close");'));
echo CHtml::hiddenField('workflowCommentWorkflowId', '', array('id' => 'workflowCommentWorkflowId'));
echo CHtml::hiddenField('workflowCommentStageNumber', '', array('id' => 'workflowCommentStageNumber'));
?>
</div>
</form>
<?php
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>
<?php
// dialog to contain Workflow Stage Details
$this->widget('zii.widgets.jui.CJuiDialog', array('id' => 'workflowStageDetails', 'options' => array('title' => Yii::t('workflow', 'Comment Required'), 'autoOpen' => false, 'resizable' => false, 'modal' => false, 'show' => 'fade', 'hide' => 'fade')));
// $this->endWidget('zii.widgets.jui.CJuiDialog');
$workflowList = Workflow::getList();
?>
示例15: array
?>
<?php
echo $form->error($model, 'user_status', array('class' => 'text-red'));
?>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-offset-3 col-sm-9">
<?php
if ($model->isNewRecord) {
echo CHtml::submitButton('Add User', array('class' => 'btn btn-primary btn-square', 'id' => 'btnSave'));
echo ' ';
echo CHtml::resetButton('Reset', array('class' => 'btn btn-orange btn-square', 'id' => 'btnReset'));
} else {
echo CHtml::submitButton('Update User', array('class' => 'btn btn-primary btn-square', 'id' => 'btnSave'));
}
?>
</div>
</div>
</div>
</div>
<?php
$this->endWidget();