log.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 设备记录
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('Maze::setInput("menu", "4")')
  9. ->fetch(array('.log-title', 1), '设备日志')
  10. ->fetch('.tabs@style', '<{Maze::input("type") == 1 ? "margin-left: 20%;" : ""}>')
  11. ->fetch
  12. (
  13. '#log tr',
  14. 'company/info.device_log',
  15. array
  16. (
  17. 'td|0' => array
  18. (
  19. 'html' => '<{date("Y-m-d", $v.sdate)}>',
  20. ),
  21. 'td|1' => array
  22. (
  23. 'html' => '<{$v.info}>',
  24. ),
  25. 'td|2' => array
  26. (
  27. 'html' => '<{$v.name}>',
  28. ),
  29. 'self' => array
  30. (
  31. 'class' => '<{Maze::lace("bg,", $i+1, 2)}>',
  32. ),
  33. )
  34. )
  35. ->fetch
  36. (
  37. '#list tr',
  38. 'company/info.device_list',
  39. array
  40. (
  41. 'td|0' => array
  42. (
  43. 'html' => '<{$v.name}>',
  44. ),
  45. 'td|1' => array
  46. (
  47. 'html' => '<{$v.device}>',
  48. ),
  49. 'td|2' => array
  50. (
  51. 'html' => '<{date("Y-m-d", $v.sdate)}>',
  52. ),
  53. 'td|3' => array
  54. (
  55. 'html' => '<{$v.info}>',
  56. ),
  57. 'self' => array
  58. (
  59. 'class' => '<{Maze::lace("bg,", $i+1, 2)}>',
  60. ),
  61. )
  62. );
  63. include('inc/device.php');