categoryManager.jsp 4.7 KB
Newer Older
U
u014427391 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
<%@page import="com.newsService.po.Category"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理</title>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery-1.11.0.js"></script>
    <script src="js/index.js"></script>
    <script src="js/respond.js"></script>
    <script src="js/admin.js"></script>
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
</head>

<body>
<%
	List<Category> list=(ArrayList<Category>)session.getAttribute("categoryInfos");
	
%>
<div class="lefter">
    <div class="logo"><a href="#" target="_blank"><img src="images/logo.png" alt="后台管理系统" /></a></div>
</div>
<div class="righter nav-navicon" id="admin-nav">
    <div class="mainer">
        <div class="admin-navbar">
            <span class="float-right">
            	<a class="button button-little bg-main" href="#">前台首页</a>
                <a class="button button-little bg-yellow" href="login.jsp">注销登录</a>
            </span>
            <ul class="nav nav-inline admin-nav">
                <li><a href="index.jsp" class="icon-home"> 开始</a>
                </li>
                <li><a href="systemManager.jsp" class="icon-cog"> 系统</a>
                <li><a href="<%=basePath %>servlet/GetNewsCategoryServlet"class="icon-file-text"> 新闻类别管理</a>
                </li>
                <li><a href="#" class="icon-file"> 文件</a></li>
                <li><a href="#" class="icon-th-list"> 栏目</a></li>
            </ul>
        </div>
        <div class="admin-bread">
            <span>您好,admin,欢迎您的光临。</span>
            <ul class="bread">
                <li><a href="index.jsp" class="icon-home"> 开始</a></li>
                <li><a href="<%=basePath %>servlet/GetNewsCategoryServlet">类别管理</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="admin">
	<form method="post">
    <div class="panel admin-panel">
    	<div class="panel-head"><strong>新闻种类信息列表</strong></div>
        <div class="padding border-bottom">
            <input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="全选" />
            <a type="button" href="<%=basePath %>addCategory.jsp" class="button button-small border-green">添加频道</a>
            <input type="button" class="button button-small border-yellow" value="批量删除数据" />
            <input type="button" class="button button-small border-blue" value="回收站" />
        </div>
        <table class="table table-hover">
        	<tr>
        		<th width="45">选择</th>
        		<th width="120">ID号</th>
        		<th width="1"></th>
        		<th width="120">频道名称</th>
        		<th width="1"></th>
        		<th width="120">新闻数量</th>
        		<th width="120">顺序</th>
        	</tr>
        	<%
				if(list!=null&&list.size()>0){
					 for(int i=0;i<list.size();i++){
			%>
            <tr>
           	 	<td><input type="checkbox" name="id" value="1" /></td>
            	<td><%=list.get(i).getCid() %></td>
            	<td><input type="hidden" name="cid" value="<%=list.get(i).getCid() %>"/></td>
            	<td><%=list.get(i).getTitle() %></td>
            	<td><input type="hidden" name="title" value="<%=list.get(i).getTitle() %>"/></td>
            	<td><%=list.get(i).getSequnce() %></td>
            	<td>
            		<a type="submit" href="<%=basePath %>servlet/GetCategorysByIdServlet?cid=<%=list.get(i).getCid() %>" class="button border-blue button-little">编辑</a>
				</td>
            </tr>
            <%
            		}
               }
             %>
        </table>
        <div class="panel-foot text-center">
            <ul class="pagination"><li><a href="#">上一页</a></li></ul>
            <ul class="pagination pagination-group">
                <li><a href="#">1</a></li>
                <li class="active"><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
            </ul>
            <ul class="pagination"><li><a href="#">下一页</a></li></ul>
        </div>
    </div>
    </form>
    <br />
</div>

</body>
</html>