<div class="options vertical5"> <a href="wechat_series_edit.php"> <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>添加 </a> </div> <table class="table table-hover"> <tr> <th>序号</th> <th>名称</th> <th>父标题</th> <th>操作</th> </tr> <?php $dao = new WechatSeriesDao(); $series_rows = $dao->getAll(); $number = 1; while ($row = mysql_fetch_array($series_rows)) { ?> <tr> <td><?php echo $number++; ?> </td> <td><?php echo $row['name']; ?> </td> <td> <?php echo $row['type'] == 1 ? "探庐系列" : "";
</ul> </div> <div class="navbar"> <div class="navbar-inner"> <ul class="nav nav-justified"> <li role="presentation" class="scenery nav_one"> <a href="wechat_index.php?type=2">民宿风采</a> </li> <li role="presentation" class="series dropdown nav_one"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">探庐系列<span class="caret"></span> </a> <ul class="dropdown-menu"> <?php $seriesDao = new WechatSeriesDao(); $series_list = $seriesDao->getAll(); while ($row = mysql_fetch_array($series_list)) { if ($row['type'] == 1) { ?> <li><a href="wechat_index.php?type=1&series=<?php echo $row['id']; ?> "> <?php echo $row['name']; ?> </a></li> <?php } } ?>
include_once 'WechatArticle.php'; include_once 'WechatArticleDao.php'; include_once 'WechatSeriesDao.php'; $pm = new PropertyManager(); $wa = new WechatArticle(); $dao = new WechatArticleDao(); $aDao = new AttachmentDao(); $seriesDao = new WechatSeriesDao(); $filepath = ""; $id = $_GET['id']; if ($id) { $wa = new WechatArticle($dao->getById($id)); $a_row = $aDao->getById($wa->attachment_id); $filepath = $a_row['filepath']; } $series_rows = $seriesDao->getAll(); ?> <div id="container"> <!-- nav bar start --> <?php include '../backstage/navigator.php'; ?> <input type="hidden" id="page" value="wechat"/> <!-- nav bar end --> <div class="col-lg-12"> <div class="dropdown col-lg-12 vertical5"> <div id="" style="float:left;"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="type_text">一级标题</span> <span class="caret"></span>