content.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('.layui-fluid@test', '公告')
  9. ->fetch('#url', 'var url="<{Dever::url("collection/lib/manage.updateContent")}>"')
  10. ->loop
  11. (
  12. '.layui-col-md2',
  13. 'collection/lib/manage.content',
  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. '.data_edit' => array
  45. (
  46. 'href' => '<{$v.data_editurl}>',
  47. 'button' => array
  48. (
  49. 'html' => '<{$v.data_name}>',
  50. )
  51. ),
  52. '.oper_delete' => array
  53. (
  54. 'href' => '<{$v.delete}>',
  55. ),
  56. '.text' => array
  57. (
  58. 'html' => '<{$v.text}>',
  59. ),
  60. 'b' => array
  61. (
  62. 'html' => '<{$v.type_name}>',
  63. ),
  64. )
  65. )
  66. # display
  67. ->display();