📄 seesright.jsp
字号:
<%@ page contentType="text/html; charset=GBK" pageEncoding="gb2312"%>
<%@ page import="java.util.*,com.xxfb.hibernate.po.Sortinfor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>
分类查看
</title>
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" media="screen" href="css/style.css" type="text/css" />
<!--[if lt IE 6]>
<link rel="stylesheet" media="screen" href="css/ie5.css" />
<![endif]-->
<title>Deine Seite</title>
<style type="text/css">
<!--
.STYLE2 {font-size: 12px; }
.STYLE3 {font-size: 10px}
.STYLE5 {color: #FF9900}
.STYLE6 {font-size: 16px}
.STYLE7 {color: #ffffff}
-->
</style>
</head>
<body>
<div id="content">
<div class="contentc"><p class="STYLE6">
<table width="525" border="1" bordercolor="#1B1B1B">
<tr bgcolor="#1B1B1B">
<td width="25%" class = "STYLE7">分类名称</td>
<td width="25%" class = "STYLE7">录入时间</td>
<td width="25%" class = "STYLE7">分类描述</td>
<td width="25%" class = "STYLE7">操作</td>
</tr>
<%
int ipage=5; //分页单位
int allpage; //总页数
int pages; //接受的页码变量
int cpage=1; //当前页
int spage; //开始页
//取总文章数
List li = (java.util.List)request.getAttribute("seesortselectname");
List v = new LinkedList();
if(li!=null){
v = li;
}
else{
v = (java.util.List) request.getAttribute("seelist");
}
java.util.List v2 = new java.util.LinkedList();
int allCol = v.size();
//获得总页面数
allpage = (int)(allCol + ipage-1) / ipage;
//判断参数pages是否为空
if (request.getParameter("pages")==null) {
pages=1;
}
else {
pages = new Integer(request.getParameter("pages")).intValue();
}
//判断当前页
if(pages > allpage ||pages == 0){
cpage = 1;
}
else {
cpage = pages;
}
//判断起始页
spage=(cpage-1)*ipage;
int l_num=spage+ipage;
if(l_num>allCol){
l_num=allCol;
}
for(int j=spage;j<l_num;j++)
{
v2.add(v.get(j));
}
java.util.Iterator e=v2.iterator();
while(e.hasNext())
{
Sortinfor si = (Sortinfor)e.next();
%>
<tr>
<input type="hidden" name="id" value="<%=si.getSortid()%>">
<td><%=si.getSortname()%></td>
<td><%=si.getSorttime()%></td>
<td><%=si.getSortdescribe()%></td>
<td><a href="ilist.do?iid=<%=si.getSortid()%>">查看详细</a></td>
</tr>
<%}%>
</table>
<tr>
第<%=cpage%>页 共<%=allpage%>页
<%if(cpage<allpage){%><a href="SE.do?pages=<%=cpage+1%>">下一页</a><%}%>
<%if(cpage>1){%><a href="SE.do?pages=<%=cpage-1%>">上一页</a><%}%>
<a href="SE.do?pages=1">首页 </a>
<a href="SE.do?pages=<%=allpage%>">末页</a>
</tr>
<form action="seesortselectname.do" method="get">
分类名称<INPUT type="text" name="sortname" >
</A><INPUT name="sortselect" type="submit" value="搜索">
</form>
</div></p>
<div class="contentbox logos">
<h2><span class="STYLE3">大众汽车 造车为人</span></a> </h2>
<img src="Frame/images/Motiv3.jpg" alt="Bild: Logos" title="" />
<p class="STYLE2"><a href="index.html">了解更多大众汽车尖端科技成果。</a> </p>
</div>
<div class="contentbox webdesign">
<h2>奥运盛会 大众炫彩</h2>
<img src="Frame/images/h_webdesign.jpg" alt="Bild: Webdesign" title="" />
<p class="STYLE2"><a href="index.html">大众汽车品牌暨大众进口汽车在广州举办了一场别开生面的“奥运盛绘、大众炫彩??大众汽车奥运艺术车展”。</a></span></p>
</div>
<div class="contentbox prindesign">
<h2>新年新喜,贺卡送福 </h2>
<img src="Frame/images/h_printdesign.gif" alt="Bild: Printdesign" title="" />
<p class="STYLE2"><a href="index.html">借音符传递对朋友的祝福,快来制作你的新年电子贺卡吧</a>! </p>
</div>
</div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -