Web Interfaces of PROSUME

leftSideColumn.ctp 1.6KB

1234567891011121314151617181920212223242526272829303132
  1. <aside class="main-sidebar">
  2. <!-- sidebar: style can be found in sidebar.less -->
  3. <section class="sidebar">
  4. <!-- sidebar menu: : style can be found in sidebar.less -->
  5. <ul class="sidebar-menu" data-widget="tree">
  6. <?php if($role): ?>
  7. <li>
  8. <a href="/web"><i class="fa fa-files-o"></i><span>History</span></a>
  9. <a href="/web/payment"><i class="fa fa-credit-card"></i><span>Payment</span></a>
  10. <a href="/web/meter"><i class="fa fa-balance-scale"></i><span>Balance</span></a>
  11. <a href="/web/history/price"><i class="fa fa-money"></i><span>Price</span></a>
  12. <?php if($role === "admin" && $user_meter_id == 1): ?>
  13. <hr>
  14. <a href="/web/setprice"><i class="fa fa-cogs"></i><span>Set Price</span></a>
  15. <?php endif ?>
  16. <?php if($user_meter_id > 0): ?>
  17. <hr>
  18. <a href="/web/transfer"><i class="fa fa-exchange"></i><span>Transfer</span></a>
  19. <?php endif ?>
  20. <hr>
  21. <?php if($role === "admin"): ?>
  22. <a href="/users"><i class="fa fa-users"></i><span>Users</span></a>
  23. <hr>
  24. <?php endif ?>
  25. <a href="/web/profile"><i class="fa fa-user"></i><span>Profile settings</span></a>
  26. <a href="/users/logout"><i class="fa fa-sign-out"></i><span>Logout</span></a>
  27. </li>
  28. <?php endif ?>
  29. </ul>
  30. </section>
  31. <!-- /.sidebar -->
  32. </aside>