style="background:url('http://casarover.oss-cn-hangzhou.aliyuncs.com/tmp/banner-02.jpg') ; background-size:100% 100%; "></li> </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 } }
<?php include_once 'WechatSeriesDao.php'; $id = $_GET['id']; $dao = new WechatSeriesDao(); $success = true; $success = $dao->del($id); if ($success) { header("Location:wechat_series_list.php"); } else { header("Location:../backstage/error.php?info=" . mysql_error()); }
<?php include_once 'WechatSeriesDao.php'; $name = $_POST['name']; $type = $_POST['type']; if (empty($type)) { // 探庐系列 $type = 1; } $dao = new WechatSeriesDao(); $success = true; $success = $dao->addOrUpdate($type, $name); if ($success) { header("Location:wechat_series_list.php"); } else { header("Location:../backstage/error.php?info=" . mysql_error()); }
<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
<script src="../backstage/js/all.js"></script> <script src="js/wechat_article_edit.js?v=1.1"></script> </head> <body> <?php include_once $_SERVER['DOCUMENT_ROOT'] . '/casarover/application/controllers/check_admin_login_action.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/casarover/application/common/PropertyManager.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/casarover/application/models/AttachmentDao.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"/>