コード例 #1
0
?>
    </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>
コード例 #2
0
ファイル: keywords.php プロジェクト: evgeniys-hyuna/leadsite
?>
    </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) {
コード例 #3
0
ファイル: _filter.php プロジェクト: hikaram/utitheme
					<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