update.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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('#menu_id@value', 'manage/database.info#menu_id')
  17. ->fetch('#update_where_id@value', 'manage/database.info#id')
  18. ->fetch('#url@value', 'manage/database.info#list')
  19. ->fetch('#desc', 'manage/database.info#updateDesc', 'none')
  20. ->fetch('.dever_update_add', 'manage/database.info#updateMul', 'none')
  21. # 渲染数据
  22. ->loop('#myTabContent #content','manage/database.update')
  23. # 数据结构
  24. ->fetch('#struct', '/database.info#struct')
  25. # 配置valid
  26. ->fetch('#valid','manage/database.valid')
  27. # 配置save
  28. ->fetch('#struct@save','manage/database.save')
  29. # 配置按钮
  30. ->fetch('#update_button','manage/database.update_button')
  31. # 配置重复提交
  32. ->fetch('#update_button@submit','<{Dever::submit()}>')
  33. #banner
  34. ->call('manage/project/database/list:banner')
  35. # display
  36. ->display();