📄 other.jsp
字号:
<%@ page language="java" import="java.sql.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<base href="<%=basePath%>">
<title>其他基本信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<jsp:include page="inc/head.html"/>
<body>
<%
try
{
String type1=(String)session.getValue("type");
int t=Integer.parseInt(type1);
if (t<1) response.sendRedirect("Login.jsp");
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
%>
<jsp:useBean id="other" class="Beans.OtherBean">
</jsp:useBean>
<table width="100%" height="100%">
<tr>
<td width="25%"> </td>
<td width="75%">
<table width="100%">
<!-- MSTableType="layout" -->
<%
ResultSet rs=null;
try
{
String id=(String)session.getValue("id");
rs=other.getrs(id);
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
rs.next();
%>
<tr height="30">
<td valign="top" align="right" width="30%" >权限有:</td><td valign="top"><%
String str="";
int t=rs.getInt("Users_type");
if (t%2==1) str+="学生、";
t/=2;
if (t%2==1) str+="教师、";
t/=2;
if (t%2==1) str+="辅导员、";
t/=2;
if (t%2==1) str+="班主任、";
t/=2;
if (t%2==1) str+="医生、";
t/=2;
if (t%2==1) str+="管理员、";
t/=2;
out.print(str);
%></td>
</tr>
<tr height="30">
<td valign="top" align="right" width="30%">所属班级:</td><td valign="top"><%=rs.getString("Std_ClsID")%></td>
</tr>
<tr height="30">
<td valign="top" align="right" width="30%">毕业去向:</td><td valign="top"><%=rs.getString("Std_Goto")%></td>
</tr>
<tr height="30">
<td valign="top" align="right" width="30%">体检信息:</td><td valign="top"><%=rs.getString("Std_HealInfo")%></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -