jd.php 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('name', 'jd')
  9. ->set('title', '招贤纳士')
  10. ->import('inc/head')
  11. # 定义名称
  12. ->fetch('body@t', '1')
  13. ->loop
  14. (
  15. '.main dl',
  16. 'main/api.zhaopin',
  17. array
  18. (
  19. 'h5' => '$v.name',
  20. 'span|0' => '$v.group_name',
  21. 'span|1' => '$v.type_name',
  22. 'span|2' => '$v.area',
  23. '.times' => '$v.cdate',
  24. 'div|3' => '$v.desc',
  25. 'div|4' => '$v.content',
  26. )
  27. )
  28. ->fetch('#page','<{Dever::page("current")}>')
  29. ->fetch(array('script@src', 1), Dever::assets('global.js'))
  30. ->fetch(array('script@src', 2), Dever::assets('<{(isset($name) ? $name : "index")}>.js', 'js'))
  31. # display
  32. ->display();