Ejemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new VendorNote('search');
     $model->unsetAttributes();
     if (isset($_GET['VendorNote'])) {
         $model->setAttributes($_GET['VendorNote']);
     }
     $this->render('admin', array('model' => $model));
 }
Ejemplo n.º 2
0
echo $form->error($model, 'deleted_at');
?>
		</div><!-- row -->

		<label><?php 
echo GxHtml::encode($model->getRelationLabel('vendorMobiles'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'vendorMobiles', GxHtml::encodeEx(GxHtml::listDataEx(VendorMobile::model()->findAllAttributes(null, true)), false, true));
?>
		<label><?php 
echo GxHtml::encode($model->getRelationLabel('vendorNotes'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'vendorNotes', GxHtml::encodeEx(GxHtml::listDataEx(VendorNote::model()->findAllAttributes(null, true)), false, true));
?>
		<label><?php 
echo GxHtml::encode($model->getRelationLabel('vouchers'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'vouchers', GxHtml::encodeEx(GxHtml::listDataEx(Voucher::model()->findAllAttributes(null, true)), false, true));
?>

<?php 
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->
Ejemplo n.º 3
0
<?php

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

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

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