コード例 #1
0
ファイル: Penerimaan.php プロジェクト: AbuMuhammad/ap3
 public function listFilterJenisTransaksi()
 {
     return CHtml::listData(JenisTransaksi::model()->findAll(array('order' => 'nama')), 'id', 'nama');
 }
コード例 #2
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 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;
 }
コード例 #3
0
ファイル: _form.php プロジェクト: AbuMuhammad/ap3
            ));
            ?>
            <?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>
コード例 #4
0
ファイル: ubah.php プロジェクト: AbuMuhammad/ap3
             '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"/>