$aDao = new AttachmentDao(); $type = $_GET['type']; $series = $_GET['series']; if (empty($type)) { // Default display list is 民宿风采 $type = 2; } if (empty($series)) { // Now just "探庐系列 " has submenu. if ($type == 1) { $series = 1; } else { $series = 0; } } $article_rows = $waDao->getByType($type, $series); ?> <header> <?php include_once 'WechatSeriesDao.php'; ?> <nav class="navbar navbar-default"> <!-- logo --> <div class="nav-left"> <a href="#"> <img src="../assets/images/logo.png" alt="logo"> </a> </div> <ul class="nav-middle"> <li><a href="">民宿大全</a></li> <li><a href="#recom">民宿推荐</a></li>
<span class="glyphicon glyphicon-list" aria-hidden="true"></span>主题民宿 </a> <a href="wechat_article_list.php?deleted=1"> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>回收站 </a> </div> <table class="table table-hover"> <tr> <th>序号</th> <th>标题</th> <th>简介</th> <th>操作</th> </tr> <?php $dao = new WechatArticleDao(); $article_rows = $dao->getByType($_GET['type']); if ($_GET['deleted']) { $article_rows = $dao->getAll($_GET['deleted']); } $number = 1; while ($row = mysql_fetch_array($article_rows)) { ?> <tr> <td><?php echo $number++; ?> </td> <td><?php echo $row['title']; ?> </td>