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


PHP TbHtml::submitButton方法代码示例

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


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

示例1: renderButtons

 /**
  * Renders the form buttons
  */
 protected function renderButtons()
 {
     echo TbHtml::submitButton(Yii::t('FilterForm', 'Apply filter'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
     $controller = Yii::app()->controller;
     // Disable when no filter is defined
     echo TbHtml::linkButton(Yii::t('FilterForm', 'Clear filter'), array('color' => TbHtml::BUTTON_COLOR_INFO, 'disabled' => $this->model->isEmpty(), 'url' => $controller->createUrl($controller->route)));
 }
开发者ID:pweisenburger,项目名称:xbmc-video-server,代码行数:10,代码来源:VideoFilter.php

示例2: getSubmitButtonRow

 /**
  * @param null $label
  * @param array $options
  * @return string
  */
 public function getSubmitButtonRow($label = null, $options = array())
 {
     if (!isset($options['color'])) {
         $options['color'] = TbHtml::BUTTON_COLOR_PRIMARY;
     }
     return CHtml::tag('div', array('class' => 'form-actions'), TbHtml::submitButton($label, $options));
 }
开发者ID:rizaldi-github,项目名称:yii-menu-module,代码行数:12,代码来源:MenuActiveForm.php

示例3: array

    ?>
    
    <fieldset>
      
            <?php echo $form->textFieldControlGroup($model,'nombre',array('size'=>60,'maxlength'=>100)); ?>
 
          
            <?php echo $form->textFieldControlGroup($model,'extensionarchivo',array('size'=>5,'maxlength'=>5)); ?>
 
          
            <?php echo $form->textFieldControlGroup($model,'longitudregistro'); ?>
 
           </fieldset>
    
    <div class="form-actions">
        <?php
        echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
            'submit' => array('/site/index'),
            'style'=>'margin-left:30px;',
            'color' => TbHtml::BUTTON_COLOR_DANGER,
            'size' => TbHtml::BUTTON_SIZE_SMALL,
            ));
        ?>
    </div>
    <?php
$this->endWidget(); ?>
开发者ID:juankie,项目名称:gestcb9git,代码行数:30,代码来源:_form.php

示例4: array

//echo $form->textFieldControlGroup($model,'address1',array('class'=>'span4','maxlength'=>50));
?>

	<?php 
//echo $form->textFieldControlGroup($model,'address2',array('class'=>'span4','maxlength'=>50));
?>

	<?php 
//echo $form->textFieldControlGroup($model,'city_id',array('class'=>'span4'));
?>

	<?php 
//echo $form->textFieldControlGroup($model,'country_code',array('class'=>'span4','maxlength'=>3));
?>

	<?php 
//echo $form->textFieldControlGroup($model,'email',array('class'=>'span4','maxlength'=>30));
?>

	<?php 
//echo $form->textAreaControlGroup($model,'notes',array('rows'=>6, 'cols'=>50, 'class'=>'span8'));
?>

	<div class="form-actions">
            <?php 
echo TbHtml::submitButton('Search', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
	</div>

<?php 
$this->endWidget();
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:31,代码来源:_search.php

示例5: array

	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'sort_order');
?>
		<?php 
echo $form->textField($model, 'sort_order');
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'name');
?>
		<?php 
echo $form->textField($model, 'name');
?>
	</div>

	<div class="row buttons">
		<?php 
echo TbHtml::submitButton(Yii::t('label', 'Search'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- search-form -->
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_search.php

示例6: array

echo $form->error($model, 'SISA');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'UANG_DIBERIKAN');
?>
		<?php 
echo $form->textField($model, 'UANG_DIBERIKAN', array('size' => 25, 'maxlength' => 25));
?>
		<?php 
echo $form->error($model, 'UANG_DIBERIKAN');
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
?>
	</div>

<?php 
$this->endWidget();
?>

<p>
<?php 
echo TbHtml::submitButton('Kembali', array('submit' => array("create3", "id" => $model->ID_PERJALANAN), 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</p>
开发者ID:aunorafiq,项目名称:jks,代码行数:31,代码来源:create4.php

示例7: array

            <?php 
    echo $form->error($model, 'assistanceIds');
    ?>

            <?php 
    echo $form->checkBox($model, 'personal_data');
    ?>
            <?php 
    echo $form->labelEx($model, 'personal_data', array('class' => 'inline'));
    ?>

            <p><strong>Якщо бажаєте приєднатися до команди волонтерів, <a href="http://bit.ly/czslvlntr"
                                                                          target="_blank">заповніть форму</a>.</strong>
            </p>

            <div class="form-actions">
                <?php 
    echo TbHtml::submitButton($model->isNewRecord ? 'Додати' : 'Зберегти', array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_LARGE));
    ?>
            </div>
            <?php 
    $this->endWidget();
    ?>
        </div>
        <?php 
}
?>
    </div>
</section>
开发者ID:Alex-So,项目名称:portal,代码行数:29,代码来源:applicants.php

示例8: array

?>
        <?php 
echo $form->textFieldControlGroup($model, 'append', array('append' => '.00'));
?>
        <?php 
echo $form->checkBoxControlGroup($model, 'disabledCheckbox', array('disabled' => true));
?>
        <?php 
echo $form->inlineCheckBoxListControlGroup($model, 'inlineCheckboxes', array('1', '2', '3'));
?>
        <?php 
echo $form->checkBoxListControlGroup($model, 'checkboxes', array('Option one is this and that—be sure to include why it\'s great', 'Option two can also be checked and included in form results', 'Option three can—yes, you guessed it—also be checked and included in form results'), array('help' => '<strong>Note:</strong> Labels surround all the options for much larger click areas.'));
?>
        <?php 
echo $form->radioButtonControlGroup($model, 'radioButton');
?>
        <?php 
echo $form->radioButtonListControlGroup($model, 'radioButtons', array('Option one is this and that—be sure to include why it\'s great', 'Option two can is something else and selecting it will deselect option one'));
?>
     
    </fieldset>
     
    <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset')));
?>
     
    <?php 
$this->endWidget();
?>
</div>
    
开发者ID:seventrust,项目名称:jquiroz,代码行数:30,代码来源:_form2.php

示例9: array

				</div>
	    </div>
	    </tr>
			
			
			<?php 
echo $form->hiddenField($model, 'timestamp', array('span' => 5, 'value' => 22 / 06 / 2015));
?>
			

            

          


     </table>
    </div>
            <div style="text-align: center;">
	        <?php 
echo TbHtml::submitButton($model->isNewRecord ? 'Submit' : 'Update', array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_DEFAULT));
?>
			<?php 
echo TbHtml::button('Cancel', array('color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_DEFAULT, 'onclick' => 'history.go(-1)'));
?>
            </div>
            <br/>
    <?php 
$this->endWidget();
?>

</div><!-- form -->
开发者ID:anjanababu,项目名称:Asset-Management,代码行数:31,代码来源:_form.php

示例10: array

<?php

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'eventos-form', 'enableAjaxValidation' => false));
?>
<div class='controles'>
        <h1>Administración De Eventos</h1>
		<div class='col-2'>
		<?php 
echo $form->textFieldControlGroup($model, 'EventoNom', array('append' => TbHtml::submitButton('Buscar', array('class' => 'btn')), 'span' => 3, 'placeholder' => 'Nombre del evento', 'id' => 'filtro-usuario'));
?>
		
<?php 
$this->endWidget();
?>
				<?php 
echo TbHtml::link(' Agregar Evento', array('evento/registro'), array('class' => 'fa fa-plus btn btn-primary'));
?>
		</div>
</div>

<div id='tabla-usuarios'>
		<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'eventos-grid', 'emptyText' => 'No se encontraron coincidencias', 'dataProvider' => $model->search(), 'summaryText' => '', 'type' => 'condensed hover striped', 'htmlOptions' => array('class' => 'primario'), 'columns' => array(array('header' => 'Id', 'name' => 'EventoId'), array('header' => 'Nombre', 'name' => 'EventoNom'), array('header' => 'Estatus', 'name' => 'EventoSta'), array('header' => 'Inicia', 'name' => 'EventoFecIni'), array('header' => 'Finaliza', 'name' => 'EventoFecFin'), array('class' => 'CButtonColumn', 'header' => 'Acciones', 'template' => '{editar} {alta}{baja}  ', 'buttons' => array('alta' => array('label' => '<span class="text-success fa fa-arrow-up"> Dar Alta </span>', 'url' => 'Yii::app()->createUrl("evento/conmutarEstatus",array(
													"id"=>$data["EventoId"],
											))', 'visible' => '$data["EventoSta"]!="ALTA"', 'click' => 'function(event)
											{ $.ajax({
													url:$(this).attr("href"),
															success: function(data){
																	$.fn.yiiGridView.update("eventos-grid");
															}		
												 });
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:index.php

示例11: array

?>
    </p>

    <?php 
$form = $this->beginWidget('\\TbActiveForm', array('id' => $this->forgotFormId, 'enableAjaxValidation' => true));
?>

    <fieldset>
        <?php 
echo $form->textFieldControlGroup($model, 'email', array('label' => false, 'placeholder' => $model->getAttributeLabel('email'), 'block' => true));
?>
    </fieldset>

    <div class="row">
        <div class="forgot-submit col-xs-8">
            <?php 
echo TbHtml::submitButton(Helper::t('views', 'Recover Account'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'block' => true));
?>
        </div>
        <div class="forgot-cancel col-xs-4">
            <?php 
echo TbHtml::linkButton(Helper::t('views', 'Cancel'), array('url' => array('/account/authenticate/login'), 'color' => TbHtml::BUTTON_COLOR_LINK, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'block' => true));
?>
        </div>
    </div>

    <?php 
$this->endWidget();
?>

</div>
开发者ID:azamath,项目名称:yii-account,代码行数:31,代码来源:forgot.php

示例12: array

if (!empty($childOptions)) {
    ?>

            <h4><?php 
    echo Yii::t('AuthModule.main', 'Add child');
    ?>
</h4>

            <?php 
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_INLINE));
    ?>

            <?php 
    echo $form->dropDownListControlGroup($formModel, 'items', $childOptions, array('label' => false));
    ?>

            <?php 
    echo TbHtml::submitButton(Yii::t('AuthModule.main', 'Add'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
    ?>

            <?php 
    $this->endWidget();
    ?>

        <?php 
}
?>

    </div>

</div>
开发者ID:ivko,项目名称:yii-auth,代码行数:31,代码来源:view.php

示例13: array

?>
                                    <span class="lbl"> <?php 
echo $form->label($model, 'rememberMe', array('style' => 'display:inline;'));
?>
</span>
                                </label>                                
                            </div>
                            <div class="space-4"></div>
                        </fieldset>                        
                    </div><!-- /widget-main -->
                    <div class="toolbar clearfix">
                        <div class="row-fluid">
                            <div class="span2"></div>
                            <div class="span5">
                                <?php 
echo TbHtml::submitButton('Login', array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_DEFAULT));
?>
                            </div>   
                            <div class="span5">
                                <?php 
echo TbHtml::resetButton('Reset', array('color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_DEFAULT));
?>
                            </div>
                        </div>
                    </div>
                </div><!-- /widget-body -->
            </div><!-- /login-box -->
        </div><!-- /position-relative -->
        <?php 
$this->endWidget();
?>
开发者ID:optimosolution,项目名称:jasorbd,代码行数:31,代码来源:login.php

示例14: array

    }
    ?>
            
            
            <tr>
            <tr>
            	<td colspan="7">
            		<div style="width: 100%; height: 7px; background: #C0C0C0; overflow: hidden;">
            	</td>
        	</tr>

            <?php 
    $j = $j + 1;
}
?>
</table>


        <?php 
echo TbHtml::submitButton($model->isNewRecord ? 'Save' : 'Save', array('name' => 'buttonSave', 'color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>

	    <?php 
echo TbHtml::submitButton('Cancel', array('name' => 'buttonCancel', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>

    <?php 
$this->endWidget();
?>

</div><!-- form -->
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:_form.php

示例15: array

?>
    
    

<?php 
echo $form->errorSummary($model);
?>

    <div class="well-button">

              <?php 
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
            
    <?php 
echo TbHtml::submitButton('<i class="fa fa-check fa-lg"></i> Next', array('class' => 'btn btn-success btn-small pull-right', 'name' => 'confirm', 'style' => 'color: white; margin-left: 4px;', 'title' => 'Next', 'confirm' => 'Are you sure?'));
?>
 
    
            
          
                        <?php 
echo TbHtml::button('<i class="fa fa-times fa-lg"></i> Cancel', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'title' => 'Cancel', 'class' => 'btn pull-right', 'style' => 'color: white;'));
?>
            
                
        </div>
    
<div class="group-div">
<?php 
$this->widget('bootstrap.widgets.BootGroupGridView', array('id' => 'characteristic-quest', 'dataProvider' => $model->searchPlat($idPlat), 'selectableRows' => '500', 'summaryText' => 'Choose', 'extraRowColumns' => array('id_criteria'), 'extraRowExpression' => '"<b style=\\"font-size: 1.0em; color: #696969; aling: center;\\">".$data->idCriteria->name."</b>"', 'columns' => array(array('id' => 'selectedIds', 'class' => 'CCheckBoxColumn', 'value' => '$data->id', 'header' => 'foddo'), array('name' => 'All Characteristics', 'value' => '$data->name'))));
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:lista.php


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