Esempio n. 1
0
<?php

$dateisOn = $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $modelSearch, 'name' => 'Horders[date_first]', 'attribute' => 'date_first', 'language' => 'ru', 'i18nScriptFile' => 'jquery-ui-i18n.min.js', 'value' => $modelSearch->date_first, 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd.mm.yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true), 'htmlOptions' => array('style' => 'height:25px;width:100px;', 'data-date-format' => 'dd.mm.yyyy')), true) . ' - ' . $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $modelSearch, 'name' => 'Horders[date_last]', 'attribute' => 'date_last', 'language' => 'ru', 'i18nScriptFile' => 'jquery-ui-i18n.min.js', 'value' => $modelSearch->date_last, 'options' => array('showOn' => 'focus', 'dateFormat' => 'dd.mm.yy', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true), 'htmlOptions' => array('style' => 'height:25px;width:100px', 'class' => 'datepicker', 'data-date-format' => 'dd.mm.yyyy')), true);
$dataProvider = $modelSearch->search();
$this->widget('zii.widgets.grid.CGridView', array('id' => 'orders-grid', 'dataProvider' => $dataProvider, 'filter' => $modelSearch, 'ajaxUpdate' => true, 'ajaxUrl' => '/admin/store/orders/index', 'afterAjaxUpdate' => 'reinstallDatePicker', 'enableSorting' => array('id', 'num'), 'htmlOptions' => array('class' => 'table table-hover'), 'columns' => array('id', 'num', array('name' => 'searchUsername', 'value' => '($data->user instanceof Users) ? $data->user->username : "******"'), array('name' => 'total_price', 'value' => '$data->total_price'), array('name' => 'total_points', 'value' => '$data->total_points'), array('name' => 'status', 'value' => 'Horders::gridStatusItem($data->status)', 'filter' => Horders::gridStatusItems()), array('name' => 'is_payed', 'value' => 'Horders::gridIsPayedItem($data->is_payed)', 'filter' => Horders::gridIsPayedItems()), array('name' => 'created_at', 'filter' => $dateisOn), array('header' => Yii::t('app', 'Операции'), 'class' => 'CButtonColumn', 'template' => '{view} {update}', 'viewButtonUrl' => 'Yii::app()->createUrl("/admin/store/orders/view", array("id"=>$data->id, "page"=>isset($_GET["Horders_page"]) ? $_GET["Horders_page"] : 1))', 'updateButtonUrl' => 'Yii::app()->createUrl("/admin/store/orders/update", array("id"=>$data->id, "page"=>isset($_GET["Horders_page"]) ? $_GET["Horders_page"] : 1))'))));
Esempio n. 2
0
<?php

$dataProvider = $model->search();
$this->widget('zii.widgets.grid.CGridView', array('id' => 'orders-grid', 'dataProvider' => $dataProvider, 'filter' => $model, 'ajaxUpdate' => true, 'ajaxUrl' => '/store/ownorders/index', 'afterAjaxUpdate' => 'reinstallDatePicker', 'enableSorting' => array('id', 'num'), 'htmlOptions' => array(), 'columns' => array('id', 'num', array('name' => 'total_price', 'value' => 'Horders::getCompiledTotalPrice($data)'), array('name' => 'status', 'value' => 'Horders::gridStatusItem($data->status)', 'filter' => Horders::gridStatusItems()), array('name' => 'is_payed', 'value' => 'Horders::gridIsPayedItem($data->is_payed)', 'filter' => Horders::gridIsPayedItems()), array('name' => 'created_at', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'created_at', 'language' => 'ru', 'i18nScriptFile' => 'jquery-ui-i18n.min.js', 'htmlOptions' => array('class' => 'datepicker_for_due_date', 'size' => '10'), 'defaultOptions' => array('showOn' => 'focus', 'showOtherMonths' => true, 'selectOtherMonths' => true, 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true)), true)), array('header' => 'Операции', 'class' => 'CButtonColumn', 'template' => '{view}'))));
Esempio n. 3
0
?>
</h4>
						<div class="form-group" style="margin-left: 0; margin-right: 0;">
							<?php 
echo CHtml::dropDownList('filterstatus', array_key_exists('filterstatus', $filter) ? $filter['filterstatus'] : (string) FALSE, Horders::gridStatusItems(TRUE), ['class' => 'input-inline input-large form-control']);
?>
						</div>
					</div>
					<div class="col-md-6">
						<h4 class="form-section"> <?php 
echo Yii::t('app', 'Оплата заказа');
?>
</h4>
						<div class="form-group" style="margin-left: 0; margin-right: 0;">
							<?php 
echo CHtml::dropDownList('filteris_payed', array_key_exists('filteris_payed', $filter) ? $filter['filteris_payed'] : (string) FALSE, Horders::gridIsPayedItems(TRUE), ['class' => 'input-inline input-large form-control']);
?>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<h4 class="form-section"><?php 
echo Yii::t('app', 'Сумма');
?>
</h4>
						<div class="form-group" style="margin-left: 0; margin-right: 0;">
							<div id="slider-range" class=""></div>
							<br/>
							<div class="form-group">
								<label class="control-label col-md-3"><?php