update.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 更新页
  5. |--------------------------------------------------------------------------
  6. */
  7. $method = 'update';
  8. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
  9. $view
  10. ->fetch('#load_style', 'manage/database.res#css')
  11. //->fetch('#list-desc', 'manage/database.info#update_desc')
  12. # form表单
  13. ->fetch('.form1@action', 'manage/database.info#action')
  14. # 基本配置
  15. ->fetch('#project@value', 'manage/database.info#project')
  16. ->fetch('#table@value', 'manage/database.info#table')
  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('#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. ->fetch(array('.layui-card@style', 0), '/database.layui_card', 'none')
  36. ->fetch('.layui-col-md12@class', '/database.card')
  37. # display
  38. ->display();