Ejemplo n.º 1
0
		<?php 
echo $form->labelEx($model, 'trans_via');
?>
		<?php 
echo $form->textField($model, 'trans_via', array('maxlength' => 45));
?>
		<?php 
echo $form->error($model, 'trans_via');
?>
		</div><!-- row -->
		<div class="span-8 last">
		<?php 
echo $form->labelEx($model, 'pah_donatur_id');
?>
		<?php 
echo $form->dropDownList($model, 'pah_donatur_id', GxHtml::listDataEx(PahDonatur::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'pah_donatur_id');
?>
		</div><!-- row -->
		<div class="span-8 last">
		<?php 
echo $form->labelEx($model, 'pah_bank_accounts_id');
?>
		<?php 
echo $form->dropDownList($model, 'pah_bank_accounts_id', GxHtml::listDataEx(PahBankAccounts::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'pah_bank_accounts_id');
?>
Ejemplo n.º 2
0
	<div class="span-8 last">
		<?php 
echo $form->label($model, 'trans_via');
?>
		<?php 
echo $form->textField($model, 'trans_via', array('maxlength' => 45));
?>
	</div>

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

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

	<div class="span-8 last">
		<?php 
echo $form->label($model, 'users_id');
 public function actionIndex()
 {
     if (isset($_POST['limit'])) {
         $limit = $_POST['limit'];
     } else {
         $limit = 20;
     }
     if (isset($_POST['start'])) {
         $start = $_POST['start'];
     } else {
         $start = 0;
     }
     //$model = new PahDonatur('search');
     //$model->unsetAttributes();
     $criteria = new CDbCriteria();
     //        $criteria->limit = $limit;
     //        $criteria->offset = $start;
     $model = PahDonatur::model()->findAll($criteria);
     $total = PahDonatur::model()->count($criteria);
     if (isset($_GET['PahDonatur'])) {
         $model->attributes = $_GET['PahDonatur'];
     }
     if (isset($_GET['output']) && $_GET['output'] == 'json') {
         $this->renderJson($model, $total);
     } else {
         $model = new PahDonatur('search');
         $model->unsetAttributes();
         $this->render('admin', array('model' => $model));
     }
 }