123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?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>
- History
- <small></small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="/"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
- <li class="active"><a href="/history/daily">Daily History</a></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">
- <?= $this->element('Eprosume/dataTableToolbar', [
- "prosumers" => $prosumers,
- "column" => 1,
- "columnTimestamp"=>0
- ]) ?>
- <table id="valueTable" class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>Day</th>
- <th>From</th>
- <th>To</th>
- <th>Asset</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
-
-
- <?php foreach ($blocks as $block) {
- if ($block['asset'] == 'PRS') { ?>
- <tr class="blockRow" name="<?= $block['id']; ?>">
- <td>
- <a href="/web/block/<?= $block['id']; ?>"><?= $block['timestamp']; ?></a>
- </td>
- <td>
- <a href="/web/meter/<?= $block['wallet_from']; ?>"><?= $block['wallet_from']; ?></a>
- </td>
- <td>
- <a href="/web/meter/<?= $block['wallet_to']; ?>"><?= $block['wallet_to']; ?></a>
- </td>
- <td><?= $block['asset']; ?></td>
- <td><?= @number_format($block['amount'], 2, ',', '.'); ?></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <?php } else { ?>
- <tr class="blockRow" name="<?= $block['id']; ?>">
- <td>
- <a href="/web/block/<?= $block['id']; ?>"><?= $block['timestamp']; ?></a>
- </td>
- <td>
- <a href="/web/meter/<?= $block['wallet_from']; ?>"><?= $block['wallet_from']; ?></a>
- </td>
- <td>
- <a href="/web/meter/<?= $block['wallet_to']; ?>"><?= $block['wallet_to']; ?></a>
- </td>
- <td><?= $block['asset']; ?></td>
- <td><?= @number_format($block['amount'], 2, ',', '.'); ?></td>
- <td><?= @number_format($block['memo']['consumedEnergy'], 2, ',', '.'); ?></td>
- <td><?= @number_format($block['memo']['producedEnergy'], 2, ',', '.'); ?></td>
- <td><?= @number_format($block['memo']['soldEnergy'], 2, ',', '.'); ?></td>
- </tr>
- <?php } ?>
- <?php } ?>
-
- </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') ?>
- </body>
- </html>
|