update.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')
  9. # 对以下的所有数据和展示进行接管
  10. ->fetch('#content_1@style', 'manage/database.page_update#s1')
  11. ->fetch('#content_1', 'manage/database.page_update#content')
  12. ->fetch('#content_2@style', 'manage/database.page_update#s2')
  13. # 小标题
  14. ->fetch('#list-name', '/database.info#update_header')
  15. ->fetch('#list-project', '/database.info#project_name')
  16. ->fetch('#list-desc', '/database.info#update_desc')
  17. # form表单
  18. ->fetch('.form1@action', 'manage/database.info#action')
  19. # 基本配置
  20. ->fetch('#key@value', 'manage/database.info#project')
  21. ->fetch('#table@value', 'manage/database.info#table')
  22. ->fetch('#update_where_id@value', 'manage/database.info#id')
  23. ->fetch('#url@value', 'manage/database.info#list')
  24. ->fetch('#desc', 'manage/database.info#updateDesc', 'none')
  25. ->fetch('.dever_update_add', 'manage/database.info#updateMul', 'none')
  26. # 渲染数据
  27. ->fetch('#myTabContent #content','manage/database.update')
  28. # 数据结构
  29. ->fetch('#struct', '/database.info#struct')
  30. # 配置valid
  31. ->fetch('#valid','manage/database.valid')
  32. # 配置save
  33. ->fetch('#struct@save','manage/database.save')
  34. # 配置按钮
  35. ->fetch('#update_button','manage/database.update_button')
  36. # 配置重复提交
  37. ->fetch('#update_button@submit','<{Dever::submit()}>')
  38. # display
  39. ->display();