<?php $data['manage/database.page_list']=Dever::load('manage/database.page_list') ?>
<?php $data['manage/database.cookie']=Dever::load('manage/database.cookie') ?>
<?php $data['manage/top.get']=Dever::load('manage/top.get') ?>
<?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']=Dever::load('manage/database.list_thead') ?>
<?php $data['manage/database.list_tbody']=Dever::load('manage/database.list_tbody') ?>
<?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/database.banner']=Dever::load('manage/database.banner') ?>
<!DOCTYPE html>
<?php if(isset($_SERVER["HTTP_X_PJAX"])): ?><?php else: ?><!--power by dever--><html lang="zh-CN">
<head>
  
  <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/head.cmp.php' ?>

</head>
  
<body class="theme-<?php  echo Dever::load("/auth.config#template") ?>">

<div id="wrapper" class="<?php echo $data['manage/database.cookie']['wrapper'] ?>">
    <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/nav.cmp.php' ?>
    
    <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/menu.cmp.php' ?>

    
    
    
    <div class="content-page">
        
        <div class="content"><?php endif; ?>
<style>
.container_list .form-control
{
    width:80%;
    display: inline;
}
.container_list .panel-heading .form-control,#mul .form-control,#page .form-control
{
    display:inline;
    width:15%;
    margin-top: 10px;
}

.container_list .table
{
    margin-bottom: 0px;
}

.container_list td
{
    vertical-align: middle;
}

.container_list th,.container_list td
{
    white-space: nowrap;
    /*white-space: none;*/
}
.container_list .table-responsive[data-pattern="priority-columns"]
{
    position:inherit;
    margin-top:20px;
    overflow-x: auto;
    overflow-y: hidden;
}
</style>
<style id="addstyle"><?php echo $data['manage/database.listStyle'] ?></style>
<div class="topbar" style="<?php if($data['manage/database.banner']): ?><?php else: ?>none<?php endif; ?>">
    <div class="banner dever-layout" style="<?php if(!(Dever::load('manage/database.banner'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/database.banner'] ?></div>
</div>
            <div class="container container_list" id="content_1" style="<?php echo $data['manage/database.page_list']['s1'] ?>"><?php echo $data['manage/database.page_list']['content'] ?></div>
            <div class="container container_list" id="content_2" style="<?php echo $data['manage/database.page_list']['s2'] ?>">
                
                <div class="row">
                    <div class="col-sm-12">
                        <?php if(isset($data['manage/top.get']) && is_array($data['manage/top.get'])): ?><?php $t=count($data['manage/top.get'])-1 ?><?php $i=0 ?><?php foreach($data['manage/top.get'] as $k => $v): ?><ul class="nav navbar-nav navbar-left data-auth-top">
                            <li class="dropdown">
                                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                                    <span><?php  echo $v['name'] ?></span>
                                </a>

                              <ul class="dropdown-menu" style="overflow: auto;max-height: 350px;">
                                <?php if(isset($v['child']) && $v['child'] && is_array($v['child'])):foreach($v['child'] as $k1 => $v1):if($v1): ?><li><a href="javascript:;" data-id="<?php  echo $v1['id'] ?>" onclick="topMenu($(this))"><a href="javascript:;" data-id="<?php  echo $v1['id'] ?>" onclick="topMenu($(this))"><?php  echo $v1['name'] ?></a></li><?php endif;endforeach;endif; ?>
                              </ul>
                            </li>
                        </ul><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/top.get'] ?><?php endif; ?>
                        <h4 class="pull-left page-title" id="list-name"><?php echo $data['manage/database.info']['list_header'] ?></h4>
                        <ol class="breadcrumb pull-right">
                            <li><a href="#dever_modal" data-toggle="modal" onclick="showMsg('数据结构', $(this), '#struct')" id="list-project"><?php echo $data['manage/database.info']['project_name'] ?></a></li>
                            <li class="active" id="list-desc"><?php  echo Dever::load("manage/database.info#list_desc") ?>(共<?php  echo Dever::total("current") ?>条)</li>
                        </ol>
                    </div>
                </div>

                <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="row">
                        <div class="col-lg-12">
                            <div class="panel panel-border panel-primary">
                                <div class="panel-heading"> 
                                    <div class="btn-toolbar list-toolbar">

 
                                        <a class="btn btn-primary" type="button" id="list-parent" style="<?php echo $data['manage/database.info']['parent_state'] ?>" href="<?php echo $data['manage/database.info']['parent'] ?>"><i class="fa fa-chevron-left"></i> 返回上一页</a>
                                        
                                        <a class="btn btn-primary" type="button" id="list-add" href="<?php echo $data['manage/database.info']['add'] ?>" style="<?php echo $data['manage/database.info']['add_state'] ?>"><i class="fa fa-plus"></i> 新增</a>
                                       
                                        
                                        <span id="list-button"><?php echo $data['manage/database.list_button'] ?></span>
                                        <div id="search"><?php echo $data['manage/database.list_search'] ?></div>
                                    </div>
                                </div> 
                                <div id="table_1" style="<?php echo $data['manage/database.page_list_table']['s1'] ?>" class="panel-body table-rep-plugin"><?php echo $data['manage/database.page_list_table']['content'] ?></div>
                                <div id="table_2" class="panel-body table-rep-plugin" style="<?php echo $data['manage/database.page_list_table']['s2'] ?>"> 

                                    <div class="table-responsive" data-pattern="priority-columns">
                                        <div>
                                            <table id="tech-companies-1" class="table table-small-font table-bordered table-striped table-tool">
                                                <thead id="list-thead">
                                                    <tr><?php if(isset($data['manage/database.list_thead']) && is_array($data['manage/database.list_thead'])): ?><?php $t=count($data['manage/database.list_thead'])-1 ?><?php $i=0 ?><?php foreach($data['manage/database.list_thead'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/database.list_thead'] ?><?php endif; ?></tr>
                                                </thead>
                                                <tbody id="list-tbody"><?php if(isset($data['manage/database.list_tbody']) && is_array($data['manage/database.list_tbody'])): ?><?php $t=count($data['manage/database.list_tbody'])-1 ?><?php $i=0 ?><?php foreach($data['manage/database.list_tbody'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['manage/database.list_tbody'] ?><?php endif; ?></tbody>
                                            </table>
                                        </div>
                                    </div>  
                                    <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;"><?php echo $data['manage/database.info']['struct'] ?></div>
                <script>
                    $(document).ready(function()
                    {
                      init();
                    });
                </script>
            </div>
        <?php if(isset($_SERVER["HTTP_X_PJAX"])): ?><?php else: ?></div>
        

        <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/foot.cmp.php' ?>
        
        </div>
        
        
        

        <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/chat.cmp.php' ?>
        
    </div>

    <?php require Dever::config("base")->data . 'compile/sg/manage/moltran/inc/script.cmp.php' ?>

</body>
</html><?php endif; ?>
