當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TbHtml::resetButton方法代碼示例

本文整理匯總了PHP中TbHtml::resetButton方法的典型用法代碼示例。如果您正苦於以下問題:PHP TbHtml::resetButton方法的具體用法?PHP TbHtml::resetButton怎麽用?PHP TbHtml::resetButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::resetButton方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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

示例2: errorMsgBox

                        // tampilkan pesan error
                        $("#"+key+"_em_").text(val);
                        $("#"+key+"_em_").show();

                        });
						

                    }
					$("html, body").animate({ scrollTop: 0 }, "slow");   

                 }', 'error' => 'js:function(data) {

                // sembunyikan loader progress
                $("#loader").hide();
				 
                // tampilkan jika status server error
                errorMsgBox("An Error Ocurred Please Try Again");
				$("html, body").animate({ scrollTop: 0 }, "slow");

                }'), array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncommand'));
echo "&nbsp;&nbsp;";
// Tombol untuk batal
echo TbHtml::resetButton('<i class="icon-fa-remove-circle icon-fa-large"></i> Cancel', array('color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncancel'));
?>
        &nbsp;&nbsp;
        <img id="loader" style="display:none" src="<?php 
echo Yii::app()->baseurl;
?>
/images/25.GIF"/>
    </div>
開發者ID:nicovicz,項目名稱:reward-point,代碼行數:30,代碼來源:_command.php

示例3: array

<?php

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'acl-controller-form', 'enableAjaxValidation' => false));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php 
echo $form->errorSummary($model);
echo $form->textFieldControlGroup($model, 'controller', array('class' => 'span5', 'maxlength' => 150));
echo $form->textFieldControlGroup($model, 'title', array('class' => 'span5', 'maxlength' => 150));
echo $form->dropDownListControlGroup($model, 'controller_type', array('1' => 'Backend', '0' => 'Frontend'), array('class' => 'span5'));
echo $form->dropDownListControlGroup($model, 'status', array('1' => 'Active', '0' => 'Inactive'), array('class' => 'span5'));
?>

<div class="form-actions">
    <?php 
echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
    <?php 
echo TbHtml::resetButton('Reset', array('color' => TbHtml::BUTTON_COLOR_INFO));
?>
</div>

<?php 
$this->endWidget();
開發者ID:optimosolution,項目名稱:jasorbd,代碼行數:26,代碼來源:_form.php

示例4: array

/* @var $model Config */
/* @var $form CActiveForm */
?>

<div class="form">

<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'id' => 'config-form', 'enableAjaxValidation' => false));
?>

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

    <?php 
echo $form->textFieldControlGroup($model, 'key', array('size' => 60, 'maxlength' => 100, 'readonly' => $model->isNewRecord ? false : true));
?>

    <?php 
echo $form->textFieldControlGroup($model, 'value');
?>

<?php 
echo TbHtml::formActions(array(TbHtml::submitButton($model->isNewRecord ? '創建' : '保存', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('重填')));
?>

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

</div><!-- form -->
開發者ID:cooltheo,項目名稱:fircms,代碼行數:31,代碼來源:_form.php

示例5: array

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();
?>
    </div>
</div>
開發者ID:optimosolution,項目名稱:jasorbd,代碼行數:31,代碼來源:login.php

示例6: testResetButton

 public function testResetButton()
 {
     $I = $this->codeGuy;
     $html = TbHtml::resetButton('Reset', array('class' => 'button', 'name' => 'button'));
     $button = $I->createNode($html, 'button[type=reset].btn');
     $I->seeNodeCssClass($button, 'button');
     $I->seeNodeAttribute($button, 'name', 'button');
     $I->seeNodeText($button, 'Reset');
 }
開發者ID:AlexanderGrant1,項目名稱:AC41004,代碼行數:9,代碼來源:TbHtmlTest.php

示例7: array

?>
    <fieldset>
        <?php 
echo $form->hiddenField($status, 'cv_id', ['value' => $model->id]);
?>

        <?php 
echo $form->textAreaControlGroup($status, 'message', ['rows' => 5, 'cols' => 100, 'placeholder' => Yii::t('main', 'cv_status.massage.placeholder'), 'style' => 'width: 98%;']);
?>

        <?php 
echo $form->textFieldControlGroup($status, 'vacancyIds', ['placeholder' => Yii::t('main', 'vacancy.ids.placeholder')]);
?>

        <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Додати', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Очистити')));
?>
    </fieldset>

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

<p><?php 
echo TbHtml::submitButton('Редагувати анкету', array('submit' => array('/manage/profiles/update', 'id' => $model->id), 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</p>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('type' => 'bordered condensed', 'data' => $model, 'attributes' => array(array('name' => 'status', 'value' => $model->statusTypes[$model->status]), 'first_name', 'last_name', array('name' => 'gender', 'value' => $model->genderTypes[$model->gender]), array('name' => 'birth_date', 'value' => Yii::app()->dateFormatter->formatDateTime($model->birth_date, "long", false) . " (" . $this->getTimeDiff($model->birth_date) . ")"), 'contact_phone', 'email:email', array('name' => 'residenciesIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesResidence, 'city_index', 'city_name')))), array('name' => 'education', 'value' => $model->educationTypes[$model->education]), 'eduction_info:ntext', 'work_experience:ntext', 'skills:ntext', 'summary:ntext', array('name' => 'categoryIds', 'value' => implode(', ', array_values(CHtml::listData($model->categories, 'id', 'name'))), 'type' => 'html'), 'desired_position', array('name' => 'positionsIds', 'value' => implode(', ', array_values(CHtml::listData($model->positions, 'id', 'name')))), 'salary', array('name' => 'jobLocationsIds', 'value' => implode(', ', array_values(CHtml::listData($model->citiesJobLocations, 'city_index', 'city_name')))), 'documents', array('name' => 'driverLicensesIds', 'value' => implode(', ', array_values(CHtml::listData($model->driverLicensesTypes, 'id', 'name')))), 'applicant_type', 'cv_file:url', array('name' => 'assistanceIds', 'value' => $model->assistances, 'type' => 'html'), array('name' => 'recruiter_id', 'value' => isset($model->recruiter->last_name) ? CHtml::link($model->recruiter->first_name . " " . $model->recruiter->last_name, array('/manage/reqruiter', 'id' => $model->recruiter->id)) : '', 'type' => 'html'), 'recruiter_comments:ntext', 'who_filled', array('name' => 'added_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->added_time, "long"), 'type' => 'html'))));
?>
開發者ID:jerichozis,項目名稱:portal,代碼行數:31,代碼來源:view.php

示例8: array

            <input
                type="checkbox" value="0" name="LoginForm[rememberMe]" id="LoginForm_rememberMe">
            Remember me next time<span style="display: none" id="LoginForm_rememberMe_em_"
                                       class="help-inline error"></span></label></div>
    </div>-->

    <?php 
if ($model->getRequireCaptcha()) {
    ?>
     <?php 
    $this->widget('application.extensions.recaptcha.EReCaptcha', array('model' => $user, 'attribute' => 'verify_code', 'theme' => 'red', 'language' => 'en', 'publicKey' => Yii::app()->params['recaptcha_public_key']));
    ?>
    <?php 
    echo CHtml::error($model, 'verify_code');
    ?>
    <?php 
}
?>

    <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset'), TbHtml::linkButton('Forgot My Password,Dammit!', array('url' => $this->createUrl('site/email_for_reset'), 'icon' => 'exclamation-sign'))));
?>




	<?php 
$this->endWidget();
?>
</div><!-- form -->
</div>
開發者ID:imanifaiz,項目名稱:angular-music-db,代碼行數:31,代碼來源:login.php

示例9: function

              "url"      : "?r=/transaction/TenantInformation/SearchDataTenant",
              "data"     : {term:ui.item.id},
              "dataType" : "json",
              "type"     : "GET",
              "success"  : function(data){
               
                  $("#tenant_name").text(data[0].value);
                  $("#pic").text(data[0].pic);
                  $("#phone").text(data[0].phone);
                  $("#location").text(data[0].location);
                  
               }
            });
       }'), 'htmlOptions' => array('style' => 'width:60%', 'class' => 'search-query clearable')));
echo "&nbsp;&nbsp;";
echo TbHtml::resetButton('<i class="icon-fa-remove-circle icon-fa-large" style="margin-top:5px;"></i> Cancel', array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_DEFAULT, 'id' => 'btncancel'));
?>
 
<?php 
echo TbHtml::endForm();
?>

<fieldset>
  <legend>Data Tenant</legend>
  <?php 
echo TbHtml::formTb(TbHtml::FORM_LAYOUT_HORIZONTAL, $this->createUrl('master/member/carimember'));
?>
  
  <div class="control-group">
   <?php 
echo TbHtml::label('Tenant Name', 'lbltenant_name', array('class' => 'control-label'));
開發者ID:nicovicz,項目名稱:reward-point,代碼行數:31,代碼來源:index.php

示例10: foreach

    if ($profileFields) {
        foreach ($profileFields as $field) {
            if ($field->widgetEdit($profile)) {
                echo $field->widgetEdit($profile);
            } elseif ($field->range) {
                echo $form->dropDownListControlGroup($profile, $field->varname, Profile::range($field->range));
            } elseif ($field->field_type == "TEXT") {
                echo $form->textAreaControlGroup($profile, $field->varname, array('rows' => 6, 'cols' => 50));
            } else {
                echo $form->textFieldControlGroup($profile, $field->varname, array('size' => 60, 'maxlength' => $field->field_size ? $field->field_size : 255));
            }
        }
    }
    ?>

		    <?php 
    if (UserModule::doCaptcha('registration')) {
        ?>

			<?php 
        $this->widget('CCaptcha');
        ?>
			<?php 
        echo $form->textFieldControlGroup($model, 'verifyCode', array('hint' => UserModule::t("Please enter the letters as they are shown in the image above.") . UserModule::t("Letters are not case-sensitive.")));
        ?>

		    <?php 
    }
    ?>
		
		    <?php 
開發者ID:jackycgq,項目名稱:advanced,代碼行數:31,代碼來源:registration.php


注:本文中的TbHtml::resetButton方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。