📄 find_classmate.jsp
字号:
<%@page contentType="text/html; charset=gb2312" language="java" errorPage="error.jsp"%>
<%@page import="com.suninformation.*,com.suninformation.user.*,com.suninformation.tools.*,com.suninformation.schoolmate.*"%>
<%request.setCharacterEncoding("gb2312");%>
<%
//String UserName = (String) session.getAttribute("userName");
//boolean errorLogin = false;
//if (UserName == "" || UserName == null) {
// errorLogin = true;
//}
//SMSchool sms = null;
//SMClass[] smcl = null;
//SMClass[] smc = null;
//SMMember smm = null;
//int SchoolId = ParamUtils.getIntParameter(request, "schoolid", 1);
//String ClassName = ParamUtils.getParameter(request, "classname");
//String BeginYear = ParamUtils.getParameter(request, "beginyear");
String SchoolmateName = ParamUtils.getParameter(request,"realname");
int Page = ParamUtils.getIntParameter(request, "page", 1);
int PageCount = 0;
int RecordNo = 0;
int ClassCount = 0;
%>
<html>
<head>
<title>校友录_校友搜索页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Includes/im.css" rel="stylesheet" type="text/css">
<link href="Includes/user.css" rel="stylesheet" type="text/css">
<script language="javascript" src="Includes/functionForUser.js"></script></head>
<body>
<table width="610" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<br>
<script language="javascript" type="text/javascript">
function getSex(iSex)
{
if (iSex == 0)
document.write('男');
else
document.write('女');
}
function InputValidate(obj)
{
if(obj.value.length==0)
{
alert("请输入同学姓名!");
return false;
}
return true;
}
</script>
<%
//sms = new SMSchool(SchoolId);
%>
<TABLE class=td_left_up_down_right cellSpacing=0 cellPadding=0 width=600 border=0>
<TR>
<TD align=center width=43 bgColor=#f4f4f4><IMG height=22 src="Images/pic_01.gif" width=18></TD>
<TD width=557 bgColor=#f4f4f4><A href="sm_main.jsp">校友录首页</A> > <span class="FONT02">同学大搜捕</span></TD>
</TR>
</TABLE>
<table width="600" border="0" cellspacing="0" cellpadding="0" class="td_left_up_down_right" style="margin-top:5px;">
<FORM name="frmFindClassmate" action="find_classmate.jsp" method="get">
<tr bgcolor="DDED71">
<td width="275" height="30"> 继续搜索,请输入同学姓名:
<input name="realname" type="text" size="8" maxlength="20" value="<%=SchoolmateName%>"></td>
<td><input name="image" onclick="return InputValidate(document.frmFindClassmate.realname)" type="image" src="Images/bt_ser.gif" width="49" height="21" border="0"></td>
</tr>
</form>
</table>
<%
//smcl = sms.searchSMClass(BeginYear,ClassName);
//if (smcl != null) {
// ClassCount = smcl.length;
// PageCount = ClassCount / 15;
// if (Page > PageCount || Page < 1) {
// Page = 1;
// RecordNo = 1;
// }
// else {
// RecordNo = Page * 15;
// }
// if(PageCount==0) {
// PageCount = 1;
// }
//}
%>
<%//if (ClassCount > 0) { %>
<SCRIPT language=JavaScript>
function page_validate()
{
if(document.InputPageForm.page.value < 0) {
document.InputPageForm.page.value = 0;
return false;
} else if(document.InputPageForm.page.value > <%//PageCount%>) {
document.InputPageForm.page.value = <%//=PageCount%>;
return false;
}
return true;
}
function gotoPage(type) {
if(type=="prev") {
document.InputPageForm.page.value = <%//=Page-1%>;
}else if(type=="next") {
document.InputPageForm.page.value = <%//=Page+1%>;
}
document.InputPageForm.submit();
}
</SCRIPT>
<TABLE style="MARGIN-TOP: 5px" cellSpacing=0 cellPadding=0 width=600 border=0>
<FORM name=InputPageForm onsubmit="return page_validate();" action="class_search.jsp" method=get>
<input type=hidden value=<%//SchoolId%> name=schoolid>
<input type=hidden value=<%//BeginYear%> name=beginyear>
<input type=hidden value=<%//ClassName%> name=classname>
<TR>
<TD width="553" height=24 align=right background=Images/bg_p_01.gif bgcolor="#999999"><a href="javascript:gotoPage('prev')">上一页</a> <a href="javascript:gotoPage('next')">下一页</a> 第<%//Page%>/<%//PageCount%>页 跳到
<INPUT maxLength=4 size=3 name=page>
页 </TD>
<TD width="47" align=center background=Images/bg_p_01.gif bgcolor="#999999" style="PADDING-TOP: 3px"><INPUT type=image height=17 width=23 src="Images/bt_go.gif" border=0 name=image>
</TD>
</TR>
</FORM>
</TABLE>
<%//}%>
<br>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" height="60" width="610">
<tr>
<td align="center"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" bgcolor="#999999" height="1"></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><font color="#b1b1b1"> <a href="../about_aoke_cn.htm" target="_blank" class="title">关于沈航</a> </font> <font color="#b1b1b1">|</font> <font color="#b1b1b1">服务条款</font> <font color="#b1b1b1">|</font> <font color="#b1b1b1">广告服务</font> <font color="#b1b1b1">|</font> <font color="#b1b1b1">沈航招聘</font> <font color="#b1b1b1">|</font> <font color="#b1b1b1">客服中心</font> <font color="#b1b1b1">|</font> <font color="#b1b1b1">联系我们</font> </td>
</tr>
</table>
<font style="font-size: 12px; line-height: 24px;" color="#b2b2b2"> <br>
沈阳航空工业学院 版权所有 </font> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -