?? 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 + -