Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
- <title>Dashboard Data Loket</title>
- <!-- css -->
- <link href="<?= base_url('assets/style.css');?>" rel="stylesheet"/>
- <link href="<?= base_url('assets/plugins/bootstrap/css/bootstrap.min.css');?>" rel="stylesheet"/>
- <link rel="stylesheet" type="text/css" href="<?= base_url('assets/plugins/font-awesome/css/font-awesome.css');?>">
- </head>
- <body>
- <div id="main">
- <div class="divHeader">
- <div class="title" >
- PDAM TIRTA MULIA <br> DASHBOARD LOKET
- </div>
- </div>
- <div class="container-fluid">
- <div class="row">
- <?php
- $no=1;
- $style = '';
- foreach ($hasil->result() as $data) {
- $style = $data->status == true ? 'style="background-color: green;"':'style="background-color: red;"';
- ?>
- <div class="col-md-2" <?=$style;?> >
- Loket : <?php echo $data->loket;?> <br>
- Jumlah uang : <?php echo $data->jml_uang;?> <br>
- Jumlah Rekening : <?php echo $data->jml_rek;?> <br>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment