<?php $data['manage/database.page_list']=Dever::load('manage/database.page_list') ?>
<?php $data['manage/database.info']=Dever::load('manage/database.info') ?>
<?php $data['manage/database.listStyle']=Dever::load('manage/database.listStyle') ?>
<?php $data['manage/database.list_search']=Dever::load('manage/database.list_search') ?>
<?php $data['manage/database.list_thead_layui']=Dever::load('manage/database.list_thead_layui') ?>
<?php $data['manage/database.list_tbody_layui']=Dever::load('manage/database.list_tbody_layui') ?>
<?php $data['manage/database.page_list_table']=Dever::load('manage/database.page_list_table') ?>
<?php $data['manage/database.list_button']=Dever::load('manage/database.list_button') ?>
<?php $data['manage/database.list_mul']=Dever::load('manage/database.list_mul') ?>
<?php $data['manage/auth.config']=Dever::load('manage/auth.config') ?>


<!DOCTYPE html>
<!--power by dever--><html>
<head>
  <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/head.cmp.php' ?>
</head>
<body class="theme-<?php  echo Dever::load("/auth.config#template") ?>">
<style id="addstyle"><?php echo $data['manage/database.listStyle'] ?></style>
<style>
.layui-table-cell .layui-select,.layui-table-cell .layui-input
{
    height: 25px;
}
</style>
<span id="dever-name" style="display:none;"><?php echo $data['manage/auth.config']['title'] ?></span>
<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_list']['s1'] ?>"><?php echo $data['manage/database.page_list']['content'] ?></div>
<div id="content_2" style="<?php echo $data['manage/database.page_list']['s2'] ?>">
  <div class="layui-fluid">
    <div class="layui-card">
      <form id="form1" name="form1" method="post" target="f1" action="<?php echo $data['manage/database.info']['list'] ?>">
      <input type="hidden" name="function" id="function" value="msg"/>
      <input type="hidden" name="url" id="url" value="<?php echo $data['manage/database.info']['mul'] ?>"/>
      <input type="hidden" name="method" id="method" value="search"/>
      <iframe id="f1" name="f1" style="display:none;"></iframe>
      <div class="layui-card-header" style="display:none;"><span id="list-name"><?php echo $data['manage/database.info']['list_header'] ?></span> > <span id="list-project"><?php echo $data['manage/database.info']['project_name'] ?></span></div>
        <div class="layui-card-body">

          <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
              <div id="search"><?php echo $data['manage/database.list_search'] ?></div>
            </div>
          </div>
        </div>
      <div class="layui-card-body">
        <div style="padding-bottom: 10px;">
          <a class="layui-btn layuiadmin-btn-list" data-type="add" id="list-parent" style="<?php echo $data['manage/database.info']['parent_state'] ?>" href="<?php echo $data['manage/database.info']['parent'] ?>">返回上一页</a>

          <a class="layui-btn layuiadmin-btn-list" data-type="add" id="list-add" href="<?php echo $data['manage/database.info']['add'] ?>" style="<?php echo $data['manage/database.info']['add_state'] ?>">新增</a>

          <span id="list-button"><?php echo $data['manage/database.list_button'] ?></span>
        </div>
        <div id="table_1" style="<?php echo $data['manage/database.page_list_table']['s1'] ?>"><?php echo $data['manage/database.page_list_table']['content'] ?></div>
        <div id="table_2" style="<?php echo $data['manage/database.page_list_table']['s2'] ?>"> 
          <table class="table layui-table" id="table" lay-filter="table" style="display:none;">
          <thead>
              <tr>
                  <th>Company</th>
              </tr>
          </thead>
          <tbody>
              <tr>
                  <th></th>
              </tr>      
              
          </tbody>
      </table>

      <div id="mul"><?php echo $data['manage/database.list_mul'] ?></div>
      <div id="page"><?php  echo Dever::page("current") ?></div>
      <div class="dever_desc" id="desc" style="<?php if(!(Dever::load('manage/database.info#listDesc'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/database.info']['listDesc'] ?></div>
        </div>
      </div>
       </div>
        </div>
      </form>
      <form id="form2" name="form2" method="get" style="display: none;"></form>
      <div id="struct" style="display:none;"></div>
    </div>
  </div>
</div>

  <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/script.cmp.php' ?>
  <script id="list-thead"><?php if(isset($data['manage/database.list_thead_layui']) && is_array($data['manage/database.list_thead_layui'])): ?><?php $t=count($data['manage/database.list_thead_layui'])-1 ?><?php $i=0 ?><?php foreach($data['manage/database.list_thead_layui'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/database.list_thead_layui'] ?><?php endif; ?></script>
  <script id="list-tbody"><?php if(isset($data['manage/database.list_tbody_layui']) && is_array($data['manage/database.list_tbody_layui'])): ?><?php $t=count($data['manage/database.list_tbody_layui'])-1 ?><?php $i=0 ?><?php foreach($data['manage/database.list_tbody_layui'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/database.list_tbody_layui'] ?><?php endif; ?></script>
  <script>
  layui.config({
    base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'contlist', 'table', 'form'], function(){
    var table = layui.table;
    var form = layui.form; 

    table.render({
      elem: '#table'
      ,page: false
      ,cols: config.table.cols
      ,data: config.table.data
    });

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