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


PHP TbHtml::beginFormTb方法代码示例

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


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

示例1: init

 /**
  * Initializes the widget.
  */
 public function init()
 {
     $this->attachBehavior('TbWidget', new TbWidget());
     $this->copyId();
     if ($this->stateful) {
         echo TbHtml::statefulFormTb($this->layout, $this->action, $this->method, $this->htmlOptions);
     } else {
         echo TbHtml::beginFormTb($this->layout, $this->action, $this->method, $this->htmlOptions);
     }
 }
开发者ID:zwq,项目名称:unpei,代码行数:13,代码来源:TbActiveForm.php

示例2: array

    } else {
        if (Yii::app()->user->hasFlash('remove')) {
            echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('remove'));
        }
    }
}
$data = Profile::model()->crearArrayStudentsEssay($model->id_essays);
if (empty($data)) {
    echo TbHtml::muted('No hay Estudiantes disponibles para asignar,' . TbHtml::b(' ya todos los Estudiantes activos se encuentran asignados al Essay.'));
    echo "<br />";
} else {
    ?>

        <!-- Form agregar Students a Essay -->
            <?php 
    echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_INLINE);
    ?>
        <fieldset>

            <?php 
    /* $this->widget('CAutoComplete',
       array(
       'name'=>'studentsEssay',
       'url'=>CHtml::normalizeUrl(array('/essays/essays/buscarStudents')),
       'extraParams'=>array('id'=>$model->id_essays),
       'htmlOptions'=>array(
       'size'=>50,
       'maxlength'=>50,
       'span'=>5,
       ),
       'methodChain'=>'.result(function(event,item){
开发者ID:argenis1763,项目名称:vc,代码行数:31,代码来源:view.php

示例3:

<fieldset>
    <legend>Reset Password</legend>
<?php echo TbHtml::beginFormTb()?>
      <?php echo TbHtml::label('<b>Email</b>','email');?>
      <?php echo TbHtml::textField('email','',array('placeholder'=>'Enter your email here...','span'=>5)); ?>
      <div class="form-actions">
        <?php echo TbHtml::submitButton('Submit',array(
		    'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
      </div>
 

<?php echo TbHtml::endForm();?>
</fieldset>
开发者ID:robertgunze,项目名称:eams,代码行数:15,代码来源:_password_reset_form.php

示例4: array

    <h3>Disabled inputs</h3>

    <div class="bs-docs-example form-inline">
        <?php 
echo TbHtml::textField('text', '', array('placeholder' => 'Disabled input here...', 'disabled' => true));
?>
    </div>
    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::textField('text', '', array('placeholder' => 'Disabled input here...', 'disabled' => true)); ?></pre>

    <h3>Validation states</h3>

    <div class="bs-docs-example">
        <?php 
echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_HORIZONTAL);
?>
            <?php 
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with warning', 'help' => 'Something may have gone wrong', 'color' => TbHtml::INPUT_COLOR_WARNING));
?>
            <?php 
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with error', 'help' => 'Please correct the error', 'color' => TbHtml::INPUT_COLOR_ERROR));
?>
            <?php 
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with info', 'help' => 'Username is taken', 'color' => TbHtml::INPUT_COLOR_INFO));
?>
            <?php 
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with success', 'help' => 'Woohoo!', 'color' => TbHtml::INPUT_COLOR_SUCCESS));
?>
        <?php 
TbHtml::endForm();
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:30,代码来源:basics.php

示例5: if

<?php

/* @var $this ViewMemberPointController */
// Javascipt untuk fungsi pencarian ditable gridview
// @parameter1 ID Script
// @paramerer2 Javascript snippet
Yii::app()->clientScript->registerScript('search', "\n\n\$('.search-form form').submit(function(e){\n   e.preventDefault();\n   var strcategory = '';\n  var nilai = \$('#member').val();\n\nif (\$('#id_member').is(':checked')) {\n\n  strcategory = 'id_member';\n\n}else if (\$('#member_name').is(':checked')) {\n\n  strcategory = 'member_name';\n\n}else{\n\n  errorMsgBox('Please select criteria');\n  return false;\n}\n\n\$('#member-grid').yiiGridView('update', {\n\t\t  data: {keyword:nilai,category:strcategory,ajax:'member-grid'},\n\t});\n\n});\n");
?>

<div class="search-form">
<legend>Search Data Member</legend>
<?php 
echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_SEARCH, Yii::app()->createUrl($this->route), 'get', array('autocomplete' => 'off'));
echo TbHtml::textField('member', '', array('style' => 'width:50%', 'class' => 'search-query'));
echo "&nbsp;&nbsp;&nbsp;";
echo TbHtml::submitButton('<i class="icon-fa-search icon-fa-large" style="margin-top:5px;"></i> Search', array('color' => TbHtml::BUTTON_COLOR_INVERSE));
echo "<br/><br/>";
echo TbHtml::radioButton('criteria', '', array('label' => 'By ID Member', 'id' => 'id_member'));
echo "&nbsp;&nbsp;&nbsp;";
echo TbHtml::radioButton('criteria', '', array('label' => 'By Name', 'id' => 'member_name'));
echo TbHtml::endForm();
?>
</div>
<hr/>

<script>

function cetakStruk(paramurl){
  var xurl = paramurl;
  
  bootbox.confirm('<h4 style=\'text-align:center\'>Are you sure want to print ?</h4>', function(result) {
开发者ID:nicovicz,项目名称:reward-point,代码行数:31,代码来源:index.php

示例6: testBeginForm

 public function testBeginForm()
 {
     $I = $this->codeGuy;
     $html = TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_VERTICAL, '#');
     $form = $I->createNode($html, 'form');
     $I->seeNodeCssClass($form, 'form-vertical');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:7,代码来源:TbHtmlTest.php

示例7: array

<?php

echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_SEARCH);
?>
    <?php 
echo TbHtml::searchQueryField('keyword', '', array('placeholder' => '请输入产品名称或编号', 'span' => 5));
?>
    <?php 
echo TbHtml::submitButton('搜索');
echo TbHtml::endForm();
开发者ID:jackycgq,项目名称:advanced,代码行数:10,代码来源:search.php


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