public function actionAdmin()
 {
     $model = new DistributionStatus('search');
     $model->unsetAttributes();
     if (isset($_GET['DistributionStatus'])) {
         $model->setAttributes($_GET['DistributionStatus']);
     }
     $this->render('admin', array('model' => $model));
 }
Esempio n. 2
0
<?php

$this->breadcrumbs = array(DistributionStatus::label(2), Yii::t('app', 'Index'));
$this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . DistributionStatus::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . DistributionStatus::label(2), 'url' => array('admin')));
?>

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

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Esempio n. 3
0
	<div class="row">
		<?php 
echo $form->label($model, 'distribution_id');
?>
		<?php 
echo $form->dropDownList($model, 'distribution_id', GxHtml::listDataEx(Distribution::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

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

	<div class="row">
		<?php 
echo $form->label($model, 'create_date');
?>
		<?php 
echo $form->textField($model, 'create_date');
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'deleted_at');
Esempio n. 4
0
		<?php 
echo $form->labelEx($model, 'distribution_id');
?>
		<?php 
echo $form->dropDownList($model, 'distribution_id', GxHtml::listDataEx(Distribution::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'distribution_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'status_id');
?>
		<?php 
echo $form->dropDownList($model, 'status_id', GxHtml::listDataEx(DistributionStatus::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'status_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'create_date');
?>
		<?php 
echo $form->textField($model, 'create_date');
?>
		<?php 
echo $form->error($model, 'create_date');
?>