<style type="text/css">
.footer{display: none;}
.recommend_info_popover{left: inherit !important;right:0px;top:0 !important;}
#dialog-header{height: 30px;}
</style>
<link type="text/css" rel="stylesheet" href="/js/lyydate/skins/default/laydate.css" id="LayDateSkin">

<div class="container-fluid" style="background:#f8f8f8;">
  <div class="row">
    <div class="col-sm-5 col-md-4 nopadding hidden-xs">
        <div class="well" style="margin-bottom:0;padding: 19px 8px;">
            <ul id="treeDemo" name="treeDemo" class="ztree" style="min-height:685px;overflow-y:scroll;"></ul>
        </div>
    </div>

    <div class="col-sm-19 col-md-20 nopadding">
    	<div class="col-xs-24 well" style="height:60px;background:#f8f8f8;margin-bottom:0;">
          <div class="col-xs-19 nopadding-L">
            <div class="pull-left">
                <a href="<?php echo site_url('thirdparty/advertise/index/index/news'); ?>" class="btn btn-default btn-sm <?php if(isset($sub_nav) && $sub_nav=='news') echo 'active'; ?>">最新编辑广告</a>
                <a href="<?php echo site_url('thirdparty/advertise/index/index/will_expire'); ?>" class="btn btn-default btn-sm <?php if(isset($sub_nav) && $sub_nav=='will_expire') echo 'active'; ?>">将到期的广告</a>
                <a href="<?php echo site_url('thirdparty/advertise/index/index/expired'); ?>" class="btn btn-default btn-sm <?php if(isset($sub_nav) && $sub_nav=='expired') echo 'active'; ?>">已过期的广告</a>
            </div>
          </div>
          <div class="col-xs-5"></div>
        </div>

        <div class="col-sm-24 center-col" style="background:#fff;">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>#</th>
                  <th>标题</th>
                  <th>更新时间</th>
                  <th>过期时间</th>
                </tr>
              </thead>
              <tbody>
                <?php foreach ($list as $key => $a) { ?>
                <tr>
                  <th scope="row"><?php echo $key+1; ?></th>
                  <td><a href="<?php echo site_url('thirdparty/advertise/index/detail/'.$a->ad_is_id); ?>"><?php echo $a->ad_title; ?></a></td>
                  <td><?php echo date('Y-m-d',$a->ad_updatetime); ?></td>
                  <td><?php echo date('Y-m-d',$a->ad_expire); ?></td>
                </tr>
                <?php } ?>
              </tbody>
            </table>
        </div>
      
    </div>

  </div>
</div>

<!-- 生成节点树结构 -->
<script type="text/javascript">
    $(".center-col").css({"min-height":$(document).height()});
    zNodes =<?php echo json_encode($structure_list); ?>;
    var current_node = "<?php echo $ad_is_id; ?>"
    var indexpage= "<?php echo site_url('thirdparty/advertise/index/detail'); ?>"
    var addpage  = "<?php echo site_url('thirdparty/advertise/index/add'); ?>"
    var movepage = "<?php echo site_url('thirdparty/advertise/index/tree_move'); ?>"
    var deletepage="<?php echo site_url('thirdparty/advertise/index/delete'); ?>"
    var form_id = "form_advertise_edit";
</script>
<script type="text/javascript" src="/js/init_ztree.js?v=20150827"></script>
</script>