示例#1
0
 public function actionAdmin()
 {
     $model = new IguCredit('search');
     $model->unsetAttributes();
     if (isset($_GET['IguCredit'])) {
         $model->setAttributes($_GET['IguCredit']);
     }
     $this->render('admin', array('model' => $model));
 }
示例#2
0
?>
.
	</p>

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

	    	
		<div class="row">
		<?php 
$model2 = new IguCredit();
echo $form->labelEx($model2, 'Credit');
?>
		<?php 
echo $form->dropDownList($model2, 'id', GxHtml::listDataEx(IguCredit::model()->findAllAttributes(null, true)), array('prompt' => 'Select Credit'));
?>
		<?php 
echo $form->error($model2, 'id');
?>
		</div><!-- row -->
		
		
<?php 
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
<?php 
if (Yii::app()->user->status == 3) {
    if (isset($_GET['id'])) {
示例#3
0
<?php

$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', 'Manage'));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('igu-voucher-management-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Manage', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('adminAgent'), 'active' => true, 'linkOptions' => array()))));
$this->endWidget();
?>

<h3><?php 
echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2));
?>
</h3>


<?php 
echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style='display:none'>
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'igu-voucher-management-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'idvoucher', 'value' => 'GxHtml::valueEx($data->idvoucher0->idcredit0)', 'filter' => GxHtml::listDataEx(IguCredit::model()->findAllAttributes(null, true))), 'givendate')));
示例#4
0
	<div class="row">
		<?php 
echo $form->label($model, 'status');
?>
		<?php 
echo $form->textField($model, 'status');
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'idcredit');
?>
		<?php 
echo $form->dropDownList($model, 'idcredit', GxHtml::listDataEx(IguCredit::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row buttons">
		<?php 
echo GxHtml::submitButton(Yii::t('app', 'Search'));
?>
	</div>

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

</div><!-- search-form -->
示例#5
0
<?php

$this->breadcrumbs = array(IguCredit::label(2), Yii::t('app', 'Index'));
$this->menu = array(array('label' => Yii::t('app', 'Manage') . ' ' . IguCredit::label(2), 'url' => array('admin')));
$this->beginWidget('zii.widgets.CPortlet', array('htmlOptions' => array('class' => '')));
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'pills', 'items' => array(array('label' => 'Create', 'icon' => 'icon-plus', 'url' => Yii::app()->controller->createUrl('create'), 'linkOptions' => array()), array('label' => 'List', 'icon' => 'icon-th-list', 'url' => Yii::app()->controller->createUrl('index'), 'active' => true, 'linkOptions' => array()), array('label' => 'Manage', 'icon' => 'icon-search', 'url' => Yii::app()->controller->createUrl('admin'), 'linkOptions' => array()))));
$this->endWidget();
?>

<h1><?php 
echo GxHtml::encode(IguCredit::label(2));
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));