Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $this yii\web\View */
- $this->title = 'My Yii Application';
- ?>
- <div class="site-index">
- <div class="row">
- <div class="col-md-12">
- <div class="card">
- <div class="card-body">
- <?php echo \yii\helpers\Html::beginForm(\yii\helpers\Url::to(['/site/index'],true),'POST');?>
- <input type="text" class="form-control" name="cari" value="<?php echo $cari?>"><button class="btn btn-success" type="submit">Cari</button>
- <?php echo \yii\helpers\Html::endForm(); ?>
- </div>
- </div>
- </div>
- <?php
- if(!empty($ubis)):
- foreach ($ubis as $k=>$v):
- $bpname = $k;
- foreach ($v as $rs):
- ?>
- <div class="card">
- <div class="card-header">
- <span class="pull-left btn btn-primary"><?php echo $rs ?></span> <span class="pull-right btn btn-success"><?php echo $bpname ?></span>
- </div>
- <div class="card-body table-responsive">
- <table class="table table-borderless">
- <thead>
- <tr>
- <th>DIVISI</th>
- <th>TOTAL</th>
- <th>SALDO 0-3 BULAN</th>
- <th>SALDO 4-6 BULAN</th>
- <th>SALDO 7-12 BULAN</th>
- <th>SALDO 13-24 BULAN</th>
- <th>SALDO > 24 BULAN</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($list as $ls):
- if($ls['UBIS'] == $rs && $ls['BPNAME'] == $bpname ):
- ?>
- <tr>
- <td><?php echo $ls['DIVISI']?></td>
- <td><?php echo number_format($ls['SALDO_IDR_TOTAL'],0,'.',',') ?></td>
- <td><?php echo number_format($ls['SALDO_IDR_1'],0,'.',',') ?></td>
- <td><?php echo number_format($ls['SALDO_IDR_2'],0,'.',',') ?></td>
- <td><?php echo number_format($ls['SALDO_IDR_3'],0,'.',',') ?></td>
- <td><?php echo number_format($ls['SALDO_IDR_4'],0,'.',',') ?></td>
- <td><?php echo number_format($ls['SALDO_IDR_5'],0,'.',',') ?></td>
- </tr>
- <?php endif; endforeach; ?>
- </tbody>
- </table>
- </div>
- </div>
- <?php endforeach;
- endforeach; endif;?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement