magazine_list.php 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $view
  3. ->fetch(array('link@href', 0), Dever::assets("global.css"))
  4. ->fetch(array('link@href', 1), Dever::assets('magzine.css', "css"))
  5. ->fetch(array('script@src', 1), Dever::assets('global.js'))
  6. ->fetch(array('script@src', 2), Dever::assets('magzine.js', 'js'))
  7. ->set('title', '电子杂志')
  8. ->import('inc/head')
  9. # 列表
  10. ->loop
  11. (
  12. '.magzines li',
  13. 'main/content.getMagazine',
  14. array
  15. (
  16. 'a' => array
  17. (
  18. 'href' => '$v.link',
  19. 'title' => '$v.name',
  20. 'target' => '_blank',
  21. ),
  22. 'img' => array
  23. (
  24. 'src' => '$v.pic',
  25. 'alt' => '$v.name',
  26. 'width' => '226px',
  27. ),
  28. 'span' => array
  29. (
  30. 'html' => '$v.name',
  31. ),
  32. )
  33. )
  34. ->fetch('.common-pagination', 'Dever::page("current")')
  35. ->import('inc/foot')
  36. ->display();