update.cmp.php 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php $data['manage/database.page_update']=Dever::load('manage/database.page_update') ?>
  2. <?php $data['manage/database.info']=Dever::load('manage/database.info') ?>
  3. <?php $data['manage/database.update']=Dever::load('manage/database.update') ?>
  4. <?php $data['/database.info']=Dever::load('/database.info') ?>
  5. <?php $data['manage/database.valid']=Dever::load('manage/database.valid') ?>
  6. <?php $data['manage/database.save']=Dever::load('manage/database.save') ?>
  7. <?php $data['manage/database.update_button']=Dever::load('manage/database.update_button') ?>
  8. <?php $data['/database.layui_card']=Dever::load('/database.layui_card') ?>
  9. <?php $data['/database.card']=Dever::load('/database.card') ?>
  10. <!DOCTYPE html>
  11. <!--power by dever--><html>
  12. <head>
  13. <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/head.cmp.php' ?>
  14. <style>
  15. .layui-input
  16. {
  17. width: 50%;
  18. }
  19. </style>
  20. </head>
  21. <body class="theme-<?php echo Dever::load("/auth.config#template") ?>">
  22. <div class="topbar">
  23. <div class="banner dever-layout" style="display:none;">
  24. <a target="_blank"><img src="#"></a>
  25. <span>项目名称</span>
  26. </div>
  27. </div>
  28. <div id="content_1" style="<?php echo $data['manage/database.page_update']['s1'] ?>"><?php echo $data['manage/database.page_update']['content'] ?></div>
  29. <div id="content_2" style="<?php echo $data['manage/database.page_update']['s2'] ?>">
  30. <div class="layui-fluid">
  31. <div style="display:none;"><span id="list-name"><?php echo $data['manage/database.info']['update_header'] ?></span> > <span id="list-project"><?php echo $data['manage/database.info']['project_name'] ?></span></div>
  32. <form method="post" target="f1" class="form1" role="form" autocomplete="off" action="<?php echo $data['manage/database.info']['action'] ?>">
  33. <input type="hidden" name="function" id="function" value="msg"/>
  34. <input type="hidden" name="url" id="url" value="<?php echo $data['manage/database.info']['list'] ?>" />
  35. <input type="hidden" name="project" id="project" value="<?php echo $data['manage/database.info']['project'] ?>" />
  36. <input type="hidden" name="table" id="table" value="<?php echo $data['manage/database.info']['table'] ?>" />
  37. <input type="hidden" name="update_where_id" id="update_where_id" value="<?php echo $data['manage/database.info']['id'] ?>"/>
  38. <input type="hidden" name="copy_num" id="copy_num" value="0"/>
  39. <iframe id="f1" name="f1" style="display:none;"></iframe>
  40. <div class="layui-row layui-col-space15">
  41. <div class="<?php echo $data['/database.card'] ?>">
  42. <div class="layui-card" style="<?php if(!(Dever::load('/database.layui_card'))): ?>display:none;<?php endif; ?>">
  43. <div class="layui-card-header" style="display:none;">响应式组合</div>
  44. <div class="layui-card-body" id="content"><?php if(isset($data['manage/database.update']) && is_array($data['manage/database.update'])): ?><?php $t=count($data['manage/database.update'])-1 ?><?php $i=0 ?><?php foreach($data['manage/database.update'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/database.update'] ?><?php endif; ?></div>
  45. <div class="layui-card-body">
  46. <div class="layui-form-item">
  47. <div id="update_button" submit="<?php echo Dever::submit() ?>"><?php echo $data['manage/database.update_button'] ?></div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div id="valid"><?php echo $data['manage/database.valid'] ?></div>
  54. <div id="struct" style="display:none;" save="<?php echo $data['manage/database.save'] ?>"><?php echo $data['/database.info']['struct'] ?></div>
  55. <script>
  56. $(document).ready(function()
  57. {
  58. init();
  59. });
  60. </script>
  61. </form>
  62. </div>
  63. </div>
  64. <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/script.cmp.php' ?>
  65. <script>
  66. layui.config({
  67. base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
  68. }).extend({
  69. index: 'lib/index' //主入口模块
  70. }).use(['index', 'contlist', 'table', 'form'], function(){
  71. var table = layui.table;
  72. var form = layui.form;
  73. });
  74. </script>
  75. </body>
  76. </html>