view.php 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. $view
  3. ->set('$title', '111')
  4. ->set('Dever::setInput("model_page", 3)')
  5. #->set('$up', 'Dever::load("doc/posts-addView", array("where_id" => Dever::input("id")))')
  6. ->fetch('#top h1', 'doc/data.info#name')
  7. ->fetch('#top p', 'doc/data.info#info')
  8. ->loop
  9. (
  10. '.bs-docs-section',
  11. 'doc/data.data',
  12. array
  13. (
  14. 'h1' => array
  15. (
  16. 'id' => 'show-<{$k}>',
  17. 'span' => array
  18. (
  19. 'html' => '<{$v.title}>',
  20. )
  21. ),
  22. '.anchorjs-link|0' => array
  23. (
  24. 'href' => '#show-<{$k}>',
  25. ),
  26. 'div|0' => array
  27. (
  28. 'html' => '<{$v.content}>',
  29. ),
  30. )
  31. )
  32. ->loop
  33. (
  34. '.bs-docs-sidenav li',
  35. 'doc/data.data',
  36. array
  37. (
  38. 'a' => array
  39. (
  40. 'href' => '#show-<{$k}>',
  41. 'html' => '<{$v.title}>',
  42. ),
  43. )
  44. )
  45. ->display();