Web Interfaces of PROSUME

block_i_d.ctp 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. Block <?= $block['blocknumber'] ?>
  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 class="active">block <?= $block['blocknumber']; ?></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 width="20%">Parameter</th>
  36. <th>Value</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr>
  41. <tr><td>Block Number</td><td><?= $block['blocknumber'] ?></td></tr>
  42. <tr><td>Wallet Type</td><td><?= $block['wallet_type'] ?></td></tr>
  43. <tr><td>From</td><td><?= $block['wallet_from'] ?></td></tr>
  44. <tr><td>To</td><td><?= $block['wallet_to'] ?></td></tr>
  45. <tr><td>Asset</td><td><?= $block['asset'] ?></td></tr>
  46. <tr><td>Amount</td><td><?= $block['amount'] ?></td></tr>
  47. <?php
  48. foreach($block['memo'] as $key => $value) {
  49. switch($key) {
  50. case 'timestamp':
  51. break;
  52. default:
  53. printf('<tr><td>%s</td><td>%s</td></tr>',$key,$value);
  54. break;
  55. }
  56. }
  57. ?>
  58. <tr><td>Timestamp</td><td><?= $block['timestamp'] ?></td></tr>
  59. </tbody>
  60. </table>
  61. </div>
  62. <!-- /.box-body -->
  63. </div>
  64. <!-- /.box -->
  65. </div>
  66. <!-- /.col -->
  67. </div>
  68. <!-- /.row -->
  69. </section>
  70. <!-- /.content -->
  71. </div>
  72. <!-- /.content-wrapper -->
  73. <?= $this->element('Eprosume/footer') ?>
  74. </div>
  75. <!-- ./wrapper -->
  76. <?= $this->element('Eprosume/scripts') ?>
  77. <script>
  78. $('tr.blockRow').on('click touch',function(){
  79. })
  80. </script>
  81. </body>
  82. </html>