update.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 更新页
  5. |--------------------------------------------------------------------------
  6. */
  7. $method = 'update';
  8. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
  9. $view
  10. ->fetch('#list-desc', 'manage/database.info#update_desc')
  11. # form表单
  12. ->fetch('.form1@action', 'manage/database.info#action')
  13. # 基本配置
  14. ->fetch('#project@value', 'manage/database.info#project')
  15. ->fetch('#table@value', 'manage/database.info#table')
  16. ->fetch('#update_where_id@value', 'manage/database.info#id')
  17. ->fetch('#url@value', 'manage/database.info#list')
  18. ->fetch('#desc', 'manage/database.info#updateDesc', 'none')
  19. ->fetch('.dever_update_add', 'manage/database.info#updateMul', 'none')
  20. # 渲染数据
  21. ->loop('#myTabContent #content','manage/database.update')
  22. # 数据结构
  23. ->fetch('#struct', '/database.info#struct')
  24. # 配置valid
  25. ->fetch('#valid','manage/database.valid')
  26. # 配置save
  27. ->fetch('#struct@save','manage/database.save')
  28. # 配置按钮
  29. ->fetch('#update_button','manage/database.update_button')
  30. # 配置重复提交
  31. ->fetch('#update_button@submit','<{Dever::submit()}>')
  32. #banner
  33. ->call('manage/project/database/list:banner')
  34. # display
  35. ->display();