<?php $data['manage/database.page_update']=Dever::load('manage/database.page_update') ?>
<?php $data['manage/database.info']=Dever::load('manage/database.info') ?>
<?php $data['manage/database.res']=Dever::load('manage/database.res') ?>
<?php $data['manage/database.update']=Dever::load('manage/database.update') ?>
<?php $data['/database.info']=Dever::load('/database.info') ?>
<?php $data['manage/database.valid']=Dever::load('manage/database.valid') ?>
<?php $data['manage/database.save']=Dever::load('manage/database.save') ?>
<?php $data['manage/database.update_button']=Dever::load('manage/database.update_button') ?>
<?php $data['/database.layui_card']=Dever::load('/database.layui_card') ?>
<?php $data['/database.card']=Dever::load('/database.card') ?>
<!DOCTYPE html>
<!--power by dever--><html>
<head>
  <?php require Dever::config("base")->data . 'compile/info/manage/layadmin/inc/head.cmp.php' ?>
<link rel="stylesheet" href="<?php echo Dever::config("host")->script ?>lib/layui/admin/modules/plugin/formselects/formselects.css" media="all" />
  <style>
    .layui-input,.xm-select-parent
    {
      width: 50%;
    }

    textarea{
      padding-top: 5px;
    }

    .dever-color {
      width: 100%;
    }

    .dever_form_add_child {
      padding:15px;
    }
    .dever_form_delete {
      float: right;
      margin-right: 10px;
      color: red;
    }
    .dever_score_child {
      margin: 15px;
    }
    .layui-tab-title {
      height: 100%;
      white-space: inherit;
    }
    </style>
</head>
<body class="theme-<?php  echo Dever::load("/auth.config#template") ?>">
  <div id="load_style" style="display:none;"><?php echo $data['manage/database.res']['css'] ?></div>
<div class="topbar">
    <div class="banner dever-layout" style="display:none;">
        <a target="_blank"><img src="#"></a>
        <span>项目名称</span>
    </div>
</div>
<div id="content_1" style="<?php echo $data['manage/database.page_update']['s1'] ?>"><?php echo $data['manage/database.page_update']['content'] ?></div>
<div id="content_2" style="<?php echo $data['manage/database.page_update']['s2'] ?>">
  <div class="layui-fluid">
    <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>
    <form method="post" target="f1" class="form1" role="form" autocomplete="off" action="<?php echo $data['manage/database.info']['action'] ?>">
    <input type="hidden" name="function" id="function" value="msg"/>
    <input type="hidden" name="url" id="url" value="<?php echo $data['manage/database.info']['list'] ?>" />
    <input type="hidden" name="project" id="project" value="<?php echo $data['manage/database.info']['project'] ?>" />
    <input type="hidden" name="table" id="table" value="<?php echo $data['manage/database.info']['table'] ?>" />
    <input type="hidden" name="update_where_id" id="update_where_id" value="<?php echo $data['manage/database.info']['id'] ?>"/>
    <input type="hidden" name="copy_num" id="copy_num" value="0"/>
    <iframe id="f1" name="f1" style="display:none;"></iframe>

    <div class="layui-row layui-col-space15">
      <div class="<?php echo $data['/database.card'] ?>">
        <div class="layui-card" style="<?php if(!(Dever::load('/database.layui_card'))): ?>display:none;<?php endif; ?>">
          <div class="layui-card-header" style="display:none;">响应式组合</div>
          <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>
          <div class="layui-card-body">
            <div class="layui-form-item">
                <div id="update_button" submit="<?php  echo Dever::submit() ?>"><?php echo $data['manage/database.update_button'] ?></div>
              </div>
            </div>
        </div>
      </div>
    </div>
    <div id="valid"><?php echo $data['manage/database.valid'] ?></div>
    <div id="struct" style="display:none;" save="<?php echo $data['manage/database.save'] ?>"><?php echo $data['/database.info']['struct'] ?></div>
    </form>
  </div>
</div>

  
  <?php require Dever::config("base")->data . 'compile/info/manage/layadmin/inc/script.cmp.php' ?>
  <script id="update_script">
  layui.config({
    base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index', //主入口模块
    formSelects: 'plugin/formselects/formselects'
  }).use(['index', 'contlist', 'table', 'form', 'formSelects'], function(){
    var table = layui.table;
    var form = layui.form; 
    var formSelects = layui.formSelects;

    /*
    $('select').each(function() {
        if ($(this).attr('xm-value')) {
          formSelects.value($(this).attr('xm-select'), $(this).attr('xm-value'));
        }
    });
    */

    init();
  });
  </script>
</body>
</html>