log.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 设备记录
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('Maze::setInput("menu", "4")')
  9. ->set('Maze::setInput("title", "no")')
  10. ->fetch(array('.log-title', 1), '设备日志')
  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');