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


PHP Fields::submitBtn方法代碼示例

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


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

示例1:

	<div class="l-row visible">
		<?php 
echo CHtml::activeLabelEx($model, 'visible');
?>
		<?php 
echo CHtml::activeDropDownList($model, 'visible', ProfileField::itemAlias('visible'));
?>
		<?php 
echo CHtml::error($model, 'visible');
?>
	</div>

	<div class = "g-clear_fix"></div>
	
	<?php 
echo Fields::submitBtn($model->isNewRecord ? Yii::t('admin', 'Create') : Yii::t('admin', 'Save'));
?>

<?php 
echo CHtml::endForm();
?>

</div><!-- form -->
<div id="dialog-form" title="<?php 
echo UserModule::t('Widget parametrs');
?>
">
	<form>
	<fieldset>
		<label for="name">Name</label>
		<input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
開發者ID:blrtromax,項目名稱:seobility,代碼行數:31,代碼來源:_form.php

示例2:

		</div>
		
		<div class="l-row">
			<?php 
echo $form->passwordFieldControlGroup($model, 'password');
?>
			
			<p class="l-hint">
				<?php 
echo UserModule::t("Minimal password length 4 symbols.");
?>
			</p>
		</div>
		
		<div class="l-row">
			<?php 
echo $form->passwordFieldControlGroup($model, 'verifyPassword');
?>
		</div>
		
		<div class = "g-clear_fix"></div>
	
		<?php 
echo Fields::submitBtn(Yii::t('admin', 'Save'), BsHtml::GLYPHICON_USER);
?>
		
	<?php 
$this->endWidget();
?>
	</div><!-- form -->
</div>
開發者ID:blrtromax,項目名稱:seobility,代碼行數:31,代碼來源:changepassword.php

示例3: array

            }
            ?>
					</div>	
				<?php 
        }
    }
    ?>
		<?php 
    if (UserModule::doCaptcha('registration')) {
        ?>
			<?php 
        $this->renderPartial('helper_view.parts._captcha', array('model' => $model, 'form' => $form, 'field' => 'verifyCode'));
        ?>
		<?php 
    }
    ?>
		
		<div class = "g-clear_fix"></div>
		
		<?php 
    echo Fields::submitBtn(UserModule::t("Register"), BsHtml::GLYPHICON_REGISTRATION_MARK);
    ?>
		
		<?php 
    $this->endWidget();
    ?>
	</div><!-- l-form -->
	<?php 
}
?>
</div>
開發者ID:blrtromax,項目名稱:seobility,代碼行數:31,代碼來源:registration.php

示例4:

	
		<div class="l-row">
			<?php 
echo $form->emailFieldControlGroup($model, 'email');
?>
		</div>
		
		<div class="l-row l-form_image">
			<?php 
echo $form->labelEx($model, 'image');
?>
			<?php 
echo $form->fileField($model, 'image');
?>
			<br/><?php 
echo Yii::app()->user->avatar();
?>
		</div>
		
		<div class = "g-clear_fix"></div>
		
		<?php 
echo Fields::submitBtn(Yii::t('admin', 'Save'));
?>
	
	<?php 
$this->endWidget();
?>
	
	</div><!-- l-form -->
</div>
開發者ID:blrtromax,項目名稱:seobility,代碼行數:30,代碼來源:edit.php

示例5: array

    $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'b-' . Yii::app()->controller->module->id . '-form', 'enableAjaxValidation' => false));
    ?>
		
			<?php 
    echo $form->errorSummary($model);
    ?>
			
			<div class="l-row">
				<?php 
    echo $form->textFieldControlGroup($model, 'login_or_email');
    ?>
				<p class="l-hint"><?php 
    echo UserModule::t("Please enter your login or email addres.");
    ?>
</p>
			</div>
			
			<div class = "g-clear_fix"></div>
			
			<?php 
    echo Fields::submitBtn(UserModule::t("Restore"), BsHtml::GLYPHICON_REFRESH);
    ?>
		
			<?php 
    $this->endWidget();
    ?>
		</div>
	<?php 
}
?>
</div>
開發者ID:blrtromax,項目名稱:seobility,代碼行數:31,代碼來源:recovery.php

示例6:

echo $form->passwordFieldControlGroup($model, 'password');
?>
		</div>
		
		<div class="l-row">
			<a href = "<?php 
echo Yii::app()->createUrl('user/registration');
?>
"><?php 
echo Yii::t('main', 'Register');
?>
</a>
			<span>|</span>
			<a href = "<?php 
echo Yii::app()->createUrl('user/recovery');
?>
"><?php 
echo Yii::t('main', 'Forgot a password?');
?>
</a>
		</div>
		
		<?php 
echo Fields::submitBtn(Yii::t('main', 'Login'), BsHtml::GLYPHICON_LOG_IN);
?>
		
	<?php 
$this->endWidget();
?>
	</div><!-- form -->
</div>
開發者ID:blrtromax,項目名稱:seobility,代碼行數:31,代碼來源:login.php


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