<%@page import="bdqn.newsManageServlet.Service.Impl.categoryTBServiceImpl"%> <%@page import="bdqn.newsManageServlet.Service.categoryTBService"%> <%@page import="bdqn.newsManageServlet.entity.categoryTB"%> <%@page import="bdqn.newsManageServlet.Dao.categoryTBDao"%> <%@page import="bdqn.newsManageServlet.Dao.Impl.categoryTBDaoImpl"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>新闻类别</title> <link href="../CSS/admin.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function clickdel(){ if(confirm("是否要删除?")==true){ return rrue; }else{ return false; } } </script> </head> <body> <ul class="classlist"> <% categoryTBService cgService=new categoryTBServiceImpl(); List<categoryTB> cateList=cgService.getCategoryTBAll(); for(int i=0;i<cateList.size();i++){ categoryTB cate=cateList.get(i); //categoryTBDao cdao=new categoryTBDaoImpl(); %> <li>编号:<%=cate.getCategoryID() %> <span> 类别:<%=cate.getCategoryName() %> sport <a href='modifyCategory.jsp?cgid=<%=cate.getCategoryID() %>'>修改</a> <a href='../doDelCategoryServlet?cgid=<%=cate.getCategoryID() %>' onclick='return clickdel()'>删除</a> </span> </li> <li class='space'></li> <%} %> <p align="right"> 当前页数:[1/3] <a href="#">下一页</a> <a href="#">末页</a> </p> </ul> </body> </html>