当前位置: 首页>>代码示例>>PHP>>正文


PHP FormHelper::cancelButton方法代码示例

本文整理汇总了PHP中FormHelper::cancelButton方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHelper::cancelButton方法的具体用法?PHP FormHelper::cancelButton怎么用?PHP FormHelper::cancelButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormHelper的用法示例。


在下文中一共展示了FormHelper::cancelButton方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

/* @var $form TbActiveForm */
/* @var $model Backend */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
echo $form->textFieldControlGroup($model, 'name');
echo $form->checkBoxControlGroup($model, 'default');
echo '<hr />';
echo $form->textFieldControlGroup($model, 'hostname');
echo $form->textFieldControlGroup($model, 'port', array('span' => 1));
echo $form->textFieldControlGroup($model, 'username');
echo $form->passwordFieldControlGroup($model, 'password');
echo '<hr />';
$readmeUrl = 'https://github.com/Jalle19/xbmc-video-server/wiki/Configuring-a-reverse-proxy';
echo $form->textFieldControlGroup($model, 'proxyLocation', array('help' => Yii::t('Backend', 'See {readmeUrl} for how to configure this', array('{readmeUrl}' => CHtml::link($readmeUrl, $readmeUrl, array('target' => '_blank'))))));
echo '<hr />';
echo FormHelper::helpBlock(Yii::t('Backend', 'The following items are only required if you want the backend to me woken using Wake on LAN'));
echo $form->textFieldControlGroup($model, 'macAddress', array('help' => Yii::t('Backend', 'If a MAC address is entered a Wake-on-LAN packet will be sent to it whenever someone logs in')));
echo $form->textFieldControlGroup($model, 'subnetMask', array('help' => Yii::t('Backend', "If you don't know what this, leave it empty. Otherwise enter the subnet mask, e.g. 255.255.0.0")));
echo '<hr />';
echo FormHelper::helpBlock(Yii::t('Backend', "The following item must only be changed if you've changed the port through advancedsettings.xml"));
echo $form->textFieldControlGroup($model, 'tcp_port', array('span' => 1, 'help' => Yii::t('Backend', 'If the backend allows TCP connections from other machines, XBMC Video Server will use it to determine when triggered library updates are finished')));
?>
<div class="form-actions">
	<?php 
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('Forms', 'Create') : Yii::t('Forms', 'Save changes'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
	<?php 
echo FormHelper::cancelButton(array('backend/admin'));
?>
</div>
<?php 
$this->endWidget();
开发者ID:Tebro,项目名称:xbmc-video-server,代码行数:31,代码来源:_form.php

示例2: array

<?php

/* @var $this UserController */
/* @var $model User */
/* @var $form TbActiveForm */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
echo $form->dropDownListControlGroup($model, 'role', $model->getRoles());
echo $form->textFieldControlGroup($model, 'username');
echo $form->passwordFieldControlGroup($model, 'password');
?>
<div class="form-actions">
	<?php 
echo TbHtml::submitButton($model->isNewRecord ? Yii::t('Forms', 'Create') : Yii::t('Forms', 'Update'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
	<?php 
echo FormHelper::cancelButton(array('user/admin'));
?>
</div>

<?php 
$this->endWidget();
开发者ID:pweisenburger,项目名称:xbmc-video-server,代码行数:21,代码来源:_form.php

示例3: array

<?php

/* @var $this UserController */
/* @var $model User */
/* @var $form TbActiveForm */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
echo $form->passwordFieldControlGroup($model, 'currentPassword');
echo $form->passwordFieldControlGroup($model, 'newPassword');
echo $form->passwordFieldControlGroup($model, 'newPasswordRepeat');
?>
<div class="form-actions">
	<?php 
echo TbHtml::submitButton(Yii::t('User', 'Change password'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
	<?php 
echo FormHelper::cancelButton(array('movie/index'));
?>
</div>

<?php 
$this->endWidget();
开发者ID:pweisenburger,项目名称:xbmc-video-server,代码行数:21,代码来源:_changePasswordForm.php


注:本文中的FormHelper::cancelButton方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。