public function actionAdmin()
 {
     $model = new BeneficiaryAttribute('search');
     $model->unsetAttributes();
     if (isset($_GET['BeneficiaryAttribute'])) {
         $model->setAttributes($_GET['BeneficiaryAttribute']);
     }
     $this->render('admin', array('model' => $model));
 }
예제 #2
0
파일: _form.php 프로젝트: hanihh/vvs_v2
		<?php 
echo $form->labelEx($model, 'combine_household');
?>
		<?php 
echo $form->textField($model, 'combine_household', array('maxlength' => 22));
?>
		<?php 
echo $form->error($model, 'combine_household');
?>
		</div><!-- row -->

		<label><?php 
echo GxHtml::encode($model->getRelationLabel('beneficiaryAttributes'));
?>
</label>
		<?php 
echo $form->checkBoxList($model, 'beneficiaryAttributes', GxHtml::encodeEx(GxHtml::listDataEx(BeneficiaryAttribute::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 -->
예제 #3
0
파일: index.php 프로젝트: hanihh/vvs_v2
<?php

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

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

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