⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkstudentthing.jsp

📁 多功能学生宿舍管理系统 分布式体系结构
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@page import="myweb.bean.Studentthing"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/st_template.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<%
response.setHeader("Cache-Control","no-store"); 
response.setHeader("Pragrma","no-cache"); 
response.setDateHeader("Expires",0); 
//session.invalidate();
%>
<!-- InstanceBeginEditable name="doctitle" -->
<title>高校公寓综合管理平台</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.STYLE2 {color: #333333}
.STYLE3 {font-size: 24px;
	font-weight: bold;
	color: #333333;
}
.STYLE4 {font-size: 12px}
.STYLE5 {color: #333333; font-size: 24px;}
.STYLE8 {color: #660000}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
	margin-top: 0px;
	margin-bottom: 0px;
}
#Layer3 {	position:absolute;
	left:798px;
	top:109px;
	width:222px;
	height:15px;
	z-index:2;
}
.STYLE2 {
	font-size: 14px;
	color: #000066;
}
-->
</style></head>
<%@ page import="java.util.Date,java.util.*,java.text.*"%>
<%@page import="myweb.DBContent.DBContent" %>
<body>
<%
if(session.getAttribute("user")==null)
{
 out.print("<script>alert('请先登录!');window.open('../index.jsp','_self')</script>");	 
 }
%>
<jsp:useBean id="db" class="myweb.DBContent.DBContent"></jsp:useBean>
<%
	String dd;
	Date nowdate=new Date();
	int hour=nowdate.getHours();
	if(hour>8&&hour<12)
	{
	dd="上午好,欢迎登陆高校公寓综合管理平台!";
	}
	else
	{
	dd="下午好,欢迎登陆高校公寓综合管理平台!";
	}
	%>
	 <%
String ddate=new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime());
%>
<table width="1024" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" align="center" background="../Templates/image/index_01.jpg"><!-- InstanceBeginEditable name="EditRegion6" -->
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="776" height="120">
        <param name="movie" value="image/xuanjuan1.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <embed src="image/xuanjuan1.swf" width="776" height="120" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
      </object>
    <!-- InstanceEndEditable -->
      <div class="STYLE2" id="Layer3">今天是:
        <%out.println(ddate);%>
    </div></td>
  </tr>
  <tr>
    <td colspan="2"><img src="../Templates/image/index_02.jpg" width="227" height="47" /><img src="../Templates/image/lijianxue11_03.jpg" width="797" height="47" /></td>
  </tr>
  <tr>
    <td width="227" align="left" valign="middle"><span class="STYLE2">
      <marquee scrollAmount=2 onmouseover=stop() onmouseout=start() >
      <%=dd%>
      </marquee>
    </span> </td>
    <td width="797"><!-- InstanceBeginEditable name="EditRegion7" -->
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="../Templates/image/index_056.jpg" width="797" height="25" /></td>
        </tr>
      </table>
    <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td width="227" height="49" background="../Templates/image/index_04.gif">&nbsp;</td>
    <td height="35" rowspan="3" align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion5" -->
      <table width="100%">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr align="center">
          <td><form action="checkstudentthing.jsp" method="post" name="form1" id="form1" onsubmit="return checkForm()">
            <table width="70%" border="1" bgcolor="#D7E8F2">
              <tr>
                <td colspan="4" align="center"><span class="STYLE3">学生重要财物查询</span>(加<font color="#660000">*</font>为必填项)</td>
              </tr>
              <tr>
                <td>学号</td>
                <td align="left"><input name="studentid" type="text" class="titlebar" id="studentid" />
                    <span class="STYLE8">*</span></td>
                <td>楼号</td>
                <td align="left"><input name="buildingid" type="text" class="titlebar" id="buildingid" />
                    <span class="STYLE8">*</span></td>
              </tr>
              <tr>
                <td>房间号</td>
                <td align="left"><input name="houseid" type="text" class="titlebar" id="houseid" />
                    <span class="STYLE8">*</span></td>
                <td colspan="2" align="center"><input name="Submit" type="submit" class="small" value=" 录入" />
                  <input name="sub" type="hidden" id="sub" value="ok" /></td>
                </tr>
            </table>
          </form></td>
        </tr>
        <tr align="center">
          <td>
		  <jsp:useBean id="s" class="myweb.bean.Studentthing" />
           <jsp:setProperty name="s" property="*" />        
              <%
		 	String su=request.getParameter("sub")!=null?request.getParameter("sub"):"";
		 if(su.equals("ok"))
		 	{
		 		String sql1="select * from studentthing where buildingid='"+s.getBuildingid()+"' and houseid='"+s.getHouseid()+"' and studentid='"+s.getStudentid()+"'";
		 		ResultSet rs=db.select(sql1);
		 		if(rs.next())
		 		{
		 	
		 %>
            <table width="70%" border="1" bgcolor="#D7E8F2">
              <tr>
                <td colspan="4" align="center" valign="top"><span class="STYLE3">学生重要财物查询结果</span></td>
              </tr>
              <tr>
                <td>学号</td>
                <td align="left"><input name="studentid2" type="text" class="titlebar" id="studentid2"  value="<%=rs.getString("studentid")%>" readonly=""/></td>
                <td>楼号</td>
                <td align="left"><input name="buildingid2" type="text" class="titlebar" id="buildingid2"  value="<%=rs.getString("buildingid")%>" readonly=""/></td>
              </tr>
              <tr>
                <td>房间号</td>
                <td align="left"><input name="houseid2" type="text" class="titlebar" id="houseid2"  value="<%=rs.getString("houseid")%>" readonly=""/></td>
                <td>计算机</td>
                <td align="left"><input name="computer" type="text" class="titlebar" id="computer" value="<%=rs.getString("computer")%>"  readonly=""/></td>
              </tr>
              <tr>
                <td>手机</td>
                <td align="left"><input name="mobile" type="text" class="titlebar" id="mobile"  value="<%=rs.getString("mobile")%>" readonly=""/></td>
                <td>其它</td>
                <td align="left"><input name="extra" type="text" class="titlebar" id="extra"  value="<%=rs.getString("extra")%>" readonly=""/></td>
              </tr>
            </table>
			
			<%}
		 		else
		 		{
		 			out.println("<script>alert('查询不到,请确认你输入的楼号、房间号和学号是否正确!');</script>");
		 		}
		 	}%>
          </td>
        </tr>
      </table>
    <!-- InstanceEndEditable --></td>
  </tr>
  <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -