session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . '/lavender/admin/common/checklogin.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/lavender/model/Paging.class.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/lavender/model/ArticleService.class.php'; //此处应当加是否来自可信站点获取数据 //以免造成数据泄露 //****** checklogin(); if (isset($_GET['pagenow'])) { $pagenow = $_GET['pagenow']; } $paging = new Paging(); $articleService = new ArticleService(); $paging->pagenow = $pagenow; $paging->pagesize = 12; $res_class = $articleService->getArticle_paging($paging); $arr = $res_class->res_arr; for ($i = 0; $i < count($arr); $i++) { $arr[$i]['content'] = mb_substr($arr[$i]['content'], 0, 27, 'UTF-8') . "..."; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link rel="stylesheet" href="./css/manageArticle.css" /> <script type="text/javascript" src="./js/jquery-2.2.0.min.js"></script> <script type="text/javascript" src="./js/manageArticle.js"></script> <script type="text/javascript"> $().ready(function(){ $('#select_all').bind('click',function(){