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


PHP Chtml::submitButton方法代码示例

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


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

示例1: array

?>
    </div>

    <div class="row">
        <?php 
echo CHtml::label('Search Engine', 'ddlSearchEngine');
?>
        
        <?php 
echo CHtml::activeDropDownList($keyword, 'search_engine', array(Keyword::SEARCH_ENGINE_GOOGLE => Keyword::SEARCH_ENGINE_GOOGLE, Keyword::SEARCH_ENGINE_GOOGLE_ES => Keyword::SEARCH_ENGINE_GOOGLE_ES, Keyword::SEARCH_ENGINE_GOOGLE_IT => Keyword::SEARCH_ENGINE_GOOGLE_IT, Keyword::SEARCH_ENGINE_GOOGLE_FR => Keyword::SEARCH_ENGINE_GOOGLE_FR), array('id' => 'ddlSearchEngine', 'selected' => Keyword::SEARCH_ENGINE_GOOGLE_IT));
?>
    </div>
    
    <div class="row">
        <?php 
echo Chtml::submitButton('Save');
?>
    </div>
    
    <?php 
echo CHtml::endForm();
?>
</div>

<?php 
echo CHtml::link('Delete', Yii::app()->createUrl('site/keywordDelete', array('keywordId' => $keyword->id)));
?>

<br /><br /><br />

<h3 title="Shows all tasks for current keyword">All Results</h3>
开发者ID:evgeniys-hyuna,项目名称:leadsite,代码行数:31,代码来源:keyword_details.php

示例2: array

?>
    </div>
    
    <div class="row">
        <?php 
echo CHtml::label('Search Engine', 'ddlSearchEngine');
?>
        
        <?php 
echo CHtml::activeDropDownList($keywordForm, 'searchEngine', array(Keyword::SEARCH_ENGINE_GOOGLE => Keyword::SEARCH_ENGINE_GOOGLE, Keyword::SEARCH_ENGINE_GOOGLE_ES => Keyword::SEARCH_ENGINE_GOOGLE_ES, Keyword::SEARCH_ENGINE_GOOGLE_IT => Keyword::SEARCH_ENGINE_GOOGLE_IT, Keyword::SEARCH_ENGINE_GOOGLE_FR => Keyword::SEARCH_ENGINE_GOOGLE_FR), array('id' => 'ddlSearchEngine'));
?>
    </div>
    
    <div class="row">
        <?php 
echo Chtml::submitButton('Add');
?>
    </div>
    
    <?php 
echo CHtml::endForm();
?>
</div>

<div>
    <?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'grvKeywords', 'dataProvider' => $keyword->search(), 'filter' => $keyword, 'htmlOptions' => array(), 'columns' => array(array('name' => 'name', 'header' => 'Keyword', 'type' => 'raw', 'value' => function ($e) {
    return String::build('<a href="{link}" title="Added on {created_at}">{keyword}</a>', array('link' => Yii::app()->createUrl('site/keywordDetails', array('keywordId' => $e->id)), 'created_at' => Time::toPretty($e->created_at), 'keyword' => $e->name));
}), array('name' => 'search_engine', 'header' => 'Search Engine', 'value' => function ($e) {
    return ucwords($e->search_engine);
}), array('name' => 'status', 'header' => 'Status', 'type' => 'raw', 'value' => function ($e) {
开发者ID:evgeniys-hyuna,项目名称:leadsite,代码行数:31,代码来源:keywords.php

示例3: array_key_exists

					<div class="col-md-3 control-label">
						<label><?php 
echo Users::model()->getAttributeLabel('username');
?>
</label>
					</div>
					<div class="col-md-9">
						<?php 
echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : '', array('class' => 'form-control input-large'));
?>
					</div>
				</div>
			</div>
			<div class="form-actions">
				<?php 
echo Chtml::submitButton(Yii::t('app', 'Найти'), array('name' => 'btn_filter', 'class' => 'btn green'));
?>
				<a href="javascript: void(0)" onClick="location.href=app.createAbsoluteUrl('admin/register/questions/view/id/<?php 
echo $model->id;
?>
')" class="btn red"><?php 
echo Yii::t('app', 'Сбросить фильтр');
?>
</a>
			</div>
		<?php 
echo CHtml::endForm();
?>
	</div>
</div>
<?php 
开发者ID:hikaram,项目名称:utitheme,代码行数:31,代码来源:_filter.php


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