Пример #1
0
 public function listFilterKasBank()
 {
     return CHtml::listData(KasBank::model()->findAll(array('order' => 'nama')), 'id', 'nama');
 }
Пример #2
0
       <?php echo $model->getTotal(); ?>
   </div>
   <div id="kembali">
       0
   </div>
   <div class="row collapse">
       <?php /* Company account */ ?>
       <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">
 <!--         <select accesskey="a">
             <option value="1">Cash</option>
          </select>-->
           <?php
           echo CHtml::dropDownList('account', 1, CHtml::listData(KasBank::model()->findAll(), 'id', 'nama'), array(
               'accesskey' => 'a',
               '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">
Пример #3
0
                    <a class="tiny bigfont button postfix" id="tombol-browse" accesskey="p"><span class="ak">P</span>ilih..</a>
                </div>
            </div>

            <?php echo $form->labelEx($model, 'keterangan'); ?>
            <?php echo $form->textField($model, 'keterangan', array('size' => 60, 'maxlength' => 500, 'autofocus' => 'autofocus')); ?>
            <?php echo $form->error($model, 'keterangan', array('class' => 'error')); ?>
        </div>
        <div class="small-12 medium-4 large-2 columns">
            <?php echo $form->labelEx($model, 'tanggal'); ?>
            <?php echo $form->textField($model, 'tanggal', array('class' => 'tanggalan', 'value' => $model->isNewRecord ? date('d-m-Y') : $model->tanggal)); ?>
            <?php echo $form->error($model, 'tanggal', array('class' => 'error')); ?>

            <?php echo $form->labelEx($model, 'kas_bank_id'); ?>
            <?php
            echo $form->dropDownList($model, 'kas_bank_id', CHtml::listData(KasBank::model()->findAll(array('order' => 'nama')), 'id', 'nama'), array(
                'empty' => 'Pilih satu..',
            ));
            ?>
            <?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'); ?>
Пример #4
0
 /**
  * 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 KasBank the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = KasBank::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }