Advertisement
fahmihilmansyah

tcgh

Dec 5th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.78 KB | None | 0 0
  1. <?php
  2.  
  3. /* @var $this yii\web\View */
  4.  
  5. $this->title = 'My Yii Application';
  6. ?>
  7.  
  8. <div class="site-index">
  9.     <div class="row">
  10.         <div class="col-md-12">
  11.         <div class="card">
  12.             <div class="card-body">
  13.                 <?php echo \yii\helpers\Html::beginForm(\yii\helpers\Url::to(['/site/index'],true),'POST');?>
  14.                 <input type="text" class="form-control" name="cari" value="<?php echo $cari?>"><button class="btn btn-success" type="submit">Cari</button>
  15.                 <?php echo \yii\helpers\Html::endForm(); ?>
  16.             </div>
  17.         </div>
  18.         </div>
  19.         <?php
  20.         if(!empty($ubis)):
  21.         foreach ($ubis as $k=>$v):
  22.             $bpname = $k;
  23.             foreach ($v as $rs):
  24.             ?>
  25.             <div class="card">
  26.                 <div class="card-header">
  27.                    <span class="pull-left btn btn-primary"><?php echo $rs ?></span> <span class="pull-right btn btn-success"><?php echo $bpname ?></span>
  28.                 </div>
  29.                 <div class="card-body table-responsive">
  30.                     <table class="table table-borderless">
  31.                         <thead>
  32.                             <tr>
  33.                                 <th>DIVISI</th>
  34.                                 <th>TOTAL</th>
  35.                                 <th>SALDO 0-3 BULAN</th>
  36.                                 <th>SALDO 4-6 BULAN</th>
  37.                                 <th>SALDO 7-12 BULAN</th>
  38.                                 <th>SALDO 13-24 BULAN</th>
  39.                                 <th>SALDO > 24 BULAN</th>
  40.                             </tr>
  41.                         </thead>
  42.                         <tbody>
  43.                         <?php foreach ($list as $ls):
  44.                             if($ls['UBIS'] == $rs && $ls['BPNAME'] == $bpname ):
  45.                             ?>
  46.                             <tr>
  47.                                 <td><?php echo $ls['DIVISI']?></td>
  48.                                 <td><?php echo number_format($ls['SALDO_IDR_TOTAL'],0,'.',',') ?></td>
  49.                                 <td><?php echo number_format($ls['SALDO_IDR_1'],0,'.',',') ?></td>
  50.                                 <td><?php echo number_format($ls['SALDO_IDR_2'],0,'.',',') ?></td>
  51.                                 <td><?php echo number_format($ls['SALDO_IDR_3'],0,'.',',') ?></td>
  52.                                 <td><?php echo number_format($ls['SALDO_IDR_4'],0,'.',',') ?></td>
  53.                                 <td><?php echo number_format($ls['SALDO_IDR_5'],0,'.',',') ?></td>
  54.                             </tr>
  55.                         <?php endif; endforeach; ?>
  56.                         </tbody>
  57.                     </table>
  58.                 </div>
  59.             </div>
  60.         <?php endforeach;
  61.         endforeach; endif;?>
  62.     </div>
  63. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement