teacher.php 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. $view
  3. ->set('name', 'index')
  4. ->import('inc/head')
  5. ->fetch(array('.banner p', 0), '<{Dever::load("main/content.getMenuName", "teacher")}>')
  6. ->fetch('.banner .en', '<{Dever::load("main/content.getMenuEName", "teacher")}>')
  7. ->loop
  8. (
  9. '.content',
  10. 'main/content.teacher?method=getPage',
  11. array
  12. (
  13. 'self' => array
  14. (
  15. 'class' => '$v.class',
  16. // 'onclick' => 'location.href=\'<{$v.link}>\'',
  17. 'style' => 'cursor:pointer',
  18. ),
  19. 'img' => array
  20. (
  21. 'src' => '$v.pic',
  22. 'title' => '$v.name',
  23. 'alt' => '$v.name',
  24. 'width' => '370px',
  25. ),
  26. '.lable' => array
  27. (
  28. 'html' => '$v.name',
  29. ),
  30. 'p|1' => array
  31. (
  32. 'html' => '$v.desc',
  33. ),
  34. )
  35. )
  36. ->fetch('#newsPage', 'Dever::page("current")')
  37. ->import('inc/foot')
  38. ->display();