📄 show.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="hm23.BirthJdbc" %>
<%
if(session.getValue("id")==null)
{
%>
<jsp:forward page="jg.jsp"/>
<%
}
else
{
%>
<html>
<head>
<title>浩渺同生人</title>
<style type="text/css">
<!--
.style1 {font-size: 9pt}
a:link {
text-decoration: none;
color: #006699;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
body {
background-image: url(behindingo.gif);
}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<table width="200" border="0" align="center">
<tr>
<td width="696" height="50"><p><img src="tsr.gif" width="700" height="100"></p></td>
</tr>
<tr>
<td height="50"><table width="500" border="1" align="center" cellspacing="0" bordercolor="#666666">
<tr>
<td colspan="7"><div align="center" class="style1">您好:<%= session.getValue("id") %></div></td>
</tr>
<tr>
<td colspan="7"><div align="center"><span class="style1"><a href="show.jsp">最近加入成员</a> <a href="show1.jsp">和您同年同月同日生</a> <a href="show2.jsp">和您同月同日生</a> <a href="http://www.itneau.com">创新基地</a></span></div></td>
</tr>
<tr>
<td><div align="center" class="style1">姓名</div></td>
<td><div align="center" class="style1">出生日期</div></td>
<td><div align="center" class="style1">性别</div></td>
<td><div align="center" class="style1">所在省份</div></td>
<td><div align="center" class="style1">所在城市</div></td>
<td><div align="center" class="style1">QQ</div></td>
<td><div align="center" class="style1">详细</div></td>
</tr>
<jsp:useBean id="birth" class="hm23.BirthJdbc" scope="session"/>
<%
birth.setPagestr(request.getParameter("p"));
//if(request.getParameter("page")!=null)
//{birth.setPagenumber(Integer.parseInt(request.getParameter("page")));}
birth.showNew();
out.print(birth.getNews());
%>
<tr>
<td colspan="7"><form name="form1" method="post" action="show.jsp" >
<div align="center">
<input type="submit" name="p" value="上一页">
<input type="submit" name="p" value="下一页">
<span class="style1">共<%= birth.getTotal() %>页 当前是第<%= birth.getPagenumber() %>页</span></div>
</form>
<form name="form2" method="post" action="">
<div align="center"><span class="style1">跳到第
<input type="text" name="p" size="5" value="1">
页</span>
<input type="submit" name="tiaozhuan" value="确定">
</div>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<% } %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -