Esempio n. 1
0
 public function listFilterJenisTransaksi()
 {
     return CHtml::listData(JenisTransaksi::model()->findAll(array('order' => 'nama')), 'id', 'nama');
 }
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return JenisTransaksi the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = JenisTransaksi::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Esempio n. 3
0
            ));
            ?>
            <?php echo $form->error($model, 'kas_bank_id', array('class' => 'error')); ?>
        </div>
        <div class="small-12 medium-4 large-3 columns">
            <?php echo $form->labelEx($model, 'kategori_id'); ?>
            <?php
            echo $form->dropDownList($model, 'kategori_id', CHtml::listData(KategoriPengeluaran::model()->findAll(array('order' => 'nama')), 'id', 'nama'), array(
                'empty' => 'Pilih satu..',
            ));
            ?>
            <?php echo $form->error($model, 'kategori_id', array('class' => 'error')); ?>

            <?php echo $form->labelEx($model, 'jenis_transaksi_id'); ?>
            <?php
            echo $form->dropDownList($model, 'jenis_transaksi_id', CHtml::listData(JenisTransaksi::model()->findAll(array('order' => 'nama')), 'id', 'nama'), array(
                'empty' => 'Pilih satu..',
            ));
            ?>
            <?php echo $form->error($model, 'jenis_transaksi_id', array('class' => 'error')); ?>
        </div>
        <div class="small-12 medium-4 large-2 columns">
            <?php echo $form->labelEx($model, 'referensi'); ?>
            <?php echo $form->textField($model, 'referensi', array('size' => 45, 'maxlength' => 45)); ?>
            <?php echo $form->error($model, 'referensi', array('class' => 'error')); ?>

            <?php echo $form->labelEx($model, 'tanggal_referensi'); ?>
            <?php echo $form->textField($model, 'tanggal_referensi', array('class' => 'tanggalan', 'value' => $model->isNewRecord ? '' : $model->tanggal_referensi)); ?>
            <?php echo $form->error($model, 'tanggal_referensi', array('class' => 'error')); ?>
        </div>
    </div>
Esempio n. 4
0
             'id' => 'account'
         ));
         ?>
     </div>
     <div class="small-3 large-3 columns">
         <span class="postfix">[A]</span>
     </div>
 </div>
 <div class="row collapse">
     <?php /* Jenis Pembayaran */ ?>
     <div class="small-3 large-2 columns">
         <span class="prefix"><i class="fa fa-2x fa-chevron-right"></i></span>
     </div>
     <div class="small-6 large-7 columns">
         <?php
         echo CHtml::dropDownList('jenisbayar', 1, CHtml::listData(JenisTransaksi::model()->findAll(), 'id', 'nama'), array(
             'accesskey' => 'd',
             'id' => 'jenisbayar'
         ));
         ?>
     </div>
     <div class="small-3 large-3 columns">
         <span class="postfix">[D]</span>
     </div>
 </div>
 <div class="row collapse">
     <div class="small-3 large-2 columns">
         <span class="prefix huruf">IDR</span>
     </div>
     <div class="small-9 large-10 columns">
         <input type="text" id="uang-dibayar" placeholder="[U]ang Dibayar" accesskey="u"/>