<?php $data['manage/database.page_update']=Dever::load('manage/database.page_update') ?>
<?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.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['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_update #update_button button
            {
              margin-right: 5px;
            }
            .container_update #update_button
            {
              margin-top:20px;
            }
            .container_update .form-control
            {
              width: 50%;
            }
            .simditor img
            {
              width:100%;
            }
            </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_update" id="content_1" style="<?php echo $data['manage/database.page_update']['s1'] ?>"><?php echo $data['manage/database.page_update']['content'] ?></div>
            <div class="container container_update" id="content_2" style="<?php echo $data['manage/database.page_update']['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">
                                <?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']['update_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 $data['manage/database.info']['update_desc'] ?></li>
                        </ol>
                    </div>
                </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'] ?>" />
                <iframe id="f1" name="f1" style="display:none;"></iframe>
                  <div class="row">
                    <div class="col-sm-12">
                        <div class="panel panel-border panel-primary">
                            <div class="panel-heading">
                              <h3 class="panel-title dever_desc" id="desc" style="<?php if(!(Dever::load('manage/database.info#updateDesc'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/database.info']['updateDesc'] ?></h3>
                              <ul class="nav nav-tabs">
                                <li class="active" style="display:none;"><a href="#data-1" data-toggle="tab">更新数据</a></li>
                                <li><a href="javascript:;" class="dever_update_add" style="<?php if(!(Dever::load('manage/database.info#updateMul'))): ?>display:none;<?php endif; ?>"><?php echo $data['manage/database.info']['updateMul'] ?></a></li>
                                <li><a href="javascript:;" class="dever_save" style="display:none;">您有保存到草稿箱的数据</a></li>
                              </ul>
                            </div>
                            <div class="panel-body" id="myTabContent">    
                              <div class="tab-pane active in" id="data-1">     
                                <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"/>                      
                                <div 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>
                              <div class="list-toolbar" id="update_button" submit="<?php  echo Dever::submit() ?>"><?php echo $data['manage/database.update_button'] ?></div>
                            </div> 

                            
                        </div> 
                    </div> 
                  </div> 
                </form>
                
                
                <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>

                <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/script.cmp.php' ?>

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