course.php 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. $view
  3. ->set('name', 'course')
  4. ->import('inc/head')
  5. ->fetch(array('.product p', 0), '<{Dever::load("main/content.getMenuName", "course")}>')
  6. ->fetch('.product .en', '<{Dever::load("main/content.getMenuEName", "course")}>')
  7. # 课程管理
  8. ->loop
  9. (
  10. '.content',
  11. 'main/content.course?method=getPage',
  12. array
  13. (
  14. 'img' => array
  15. (
  16. 'src' => '$v.pic_cover',
  17. 'title' => '$v.name',
  18. 'alt' => '$v.name',
  19. 'width' => '500px',
  20. ),
  21. '.label' => array
  22. (
  23. 'html' => '$v.name',
  24. ),
  25. '.detail' => array
  26. (
  27. 'html' => '$v.desc',
  28. ),
  29. 'a' => array
  30. (
  31. 'href' => '$v.link',
  32. ),
  33. )
  34. )
  35. ->fetch('#newsPage', 'Dever::page("current")')
  36. ->import('inc/foot')
  37. ->display();