journal.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('.layui-fluid@test', '公告')
  9. ->fetch('#url', 'var url="<{Dever::url("journal/lib/manage.updateJournalContent")}>"')
  10. ->loop
  11. (
  12. '.layui-col-md2',
  13. 'journal/lib/manage.journalContent',
  14. array
  15. (
  16. 'self' => array
  17. (
  18. 'id' => 'data-<{$v.id}>',
  19. ),
  20. 'b' => array
  21. (
  22. 'html' => '<{date("Y/m/d", $v.cdate)}>',
  23. 'html' => '',
  24. ),
  25. '.img' => array
  26. (
  27. 'style' => '<{$v.height}>',
  28. ),
  29. 'img' => array
  30. (
  31. 'src' => '<{$v.pic}>',
  32. 'width' => '150',
  33. ),
  34. '.info' => array
  35. (
  36. 'html' => '<{Dever::cut($v.name, 20)}>',
  37. 'style' => '<{$v.info_height}>',
  38. ),
  39. '.edit' => array
  40. (
  41. //'onclick' => '<{$v.edit}>',
  42. 'href' => '<{$v.editurl}>',
  43. ),
  44. '.oper_delete' => array
  45. (
  46. 'href' => '<{$v.delete}>',
  47. ),
  48. '.text' => array
  49. (
  50. 'html' => '<{$v.text}>',
  51. ),
  52. 'b' => array
  53. (
  54. 'html' => '<{$v.typename}>',
  55. ),
  56. )
  57. )
  58. # display
  59. ->display();