12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- $this->layout = false;
- ?>
- <!DOCTYPE html>
- <html>
- <?= $this->element('Eprosume/header') ?>
- <body class="hold-transition skin-green sidebar-mini">
- <div class="wrapper">
-
- <?= $this->element('Eprosume/mainHeader') ?>
-
- <!-- Left side column. contains the logo and sidebar -->
- <?= $this->element('Eprosume/leftSideColumn') ?>
-
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- Meter
- <small></small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="/web"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
- <li>meter</li>
- </ol>
- </section>
-
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box">
- <!-- /.box-header -->
- <div class="box-body">
- <table id="tabella" class="table">
- <thead>
- <tr>
- <th>Meter</th>
- <th>Location</th>
- <th>PRS</th>
- <th>TFT</th>
- <th>Buy Price</th>
- <th>Sell Price</th>
- <th><em>last reading</em></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($meterList as $meter_id => $meter) {
- echo '<tr>';
- printf('<td><a href="/web/meter/%s">%s</a></td>',$meter_id,$meter_id);
- printf('<td>%s</td>',$meter['location']);
- printf('<td>%s</td>',$meter['balance']['PRS']);
- printf('<td>%s</td>',$meter['balance']['TFT']);
- @printf('<td>%s</td>',$prices[$meter_id]['buyPrice']);
- @printf('<td>%s</td>',$prices[$meter_id]['sellPrice']);
- printf('<td>%s</td>',$meter['balance']['timestamp']);
- echo '</tr>';
- }
- ?>
- </tbody>
- </table>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- <?= $this->element('Eprosume/footer') ?>
- </div>
- <!-- ./wrapper -->
- <?= $this->element('Eprosume/scripts') ?>
- <script>
- $('tr.blockRow').on('click touch',function () {
- })
- </script>
- </body>
- </html>
|