Web Interfaces of PROSUME

meter.ctp 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. $this->layout = false;
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <?= $this->element('Eprosume/header') ?>
  7. <body class="hold-transition skin-green sidebar-mini">
  8. <div class="wrapper">
  9. <?= $this->element('Eprosume/mainHeader') ?>
  10. <!-- Left side column. contains the logo and sidebar -->
  11. <?= $this->element('Eprosume/leftSideColumn') ?>
  12. <!-- Content Wrapper. Contains page content -->
  13. <div class="content-wrapper">
  14. <!-- Content Header (Page header) -->
  15. <section class="content-header">
  16. <h1>
  17. Meter
  18. <small></small>
  19. </h1>
  20. <ol class="breadcrumb">
  21. <li><a href="/web"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
  22. <li>meter</li>
  23. </ol>
  24. </section>
  25. <!-- Main content -->
  26. <section class="content">
  27. <div class="row">
  28. <div class="col-xs-12">
  29. <div class="box">
  30. <!-- /.box-header -->
  31. <div class="box-body">
  32. <table id="tabella" class="table">
  33. <thead>
  34. <tr>
  35. <th>Meter</th>
  36. <th>Location</th>
  37. <th>PRS</th>
  38. <th>TFT</th>
  39. <th>Buy Price</th>
  40. <th>Sell Price</th>
  41. <th><em>last reading</em></th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <?php
  46. foreach ($meterList as $meter_id => $meter) {
  47. echo '<tr>';
  48. printf('<td><a href="/web/meter/%s">%s</a></td>',$meter_id,$meter_id);
  49. printf('<td>%s</td>',$meter['location']);
  50. printf('<td>%s</td>',$meter['balance']['PRS']);
  51. printf('<td>%s</td>',$meter['balance']['TFT']);
  52. @printf('<td>%s</td>',$prices[$meter_id]['buyPrice']);
  53. @printf('<td>%s</td>',$prices[$meter_id]['sellPrice']);
  54. printf('<td>%s</td>',$meter['balance']['timestamp']);
  55. echo '</tr>';
  56. }
  57. ?>
  58. </tbody>
  59. </table>
  60. </div>
  61. <!-- /.box-body -->
  62. </div>
  63. <!-- /.box -->
  64. </div>
  65. <!-- /.col -->
  66. </div>
  67. <!-- /.row -->
  68. </section>
  69. <!-- /.content -->
  70. </div>
  71. <!-- /.content-wrapper -->
  72. <?= $this->element('Eprosume/footer') ?>
  73. </div>
  74. <!-- ./wrapper -->
  75. <?= $this->element('Eprosume/scripts') ?>
  76. <script>
  77. $('tr.blockRow').on('click touch',function () {
  78. })
  79. </script>
  80. </body>
  81. </html>