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

📄 checkhousething.jsp

📁 多功能学生宿舍管理系统 分布式体系结构
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@page import="myweb.bean.Housething"%>
<!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;
	font-size: 12px;
}
.STYLE3 {	font-size: 24px;
	font-weight: bold;
	color: #333333;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE4 {font-size: 12px}
.STYLE5 {color: #333333; font-size: 24px;}
-->
</style>
<!-- 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 align="center"><form action="checkhousething.jsp" method="post" name="form1" id="form1" onsubmit="return checkForm()">
            <table width="70%" border="1" bordercolor="#9999FF" 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="buildingid" type="text" class="titlebar" id="buildingid" />
                <font color="#660000">*</font></td>
              <td>房号</td>
              <td align="left"><input name="houseid" type="text" class="titlebar" id="houseid" />
                <font color="#660000">*</font></td>
            </tr>
            <tr>
              <td colspan="4" 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" valign="top">
          <td>
	<jsp:useBean id="h" class="myweb.bean.Housething"/>
	<jsp:setProperty name="h" property="*" />
	<%
		//out.println(h.getBuildingid());
	String su=request.getParameter("sub")!=null?request.getParameter("sub"):"";
	if(su.equals("ok")){
		String sql="select * from housethings where buildingid='"+h.getBuildingid()+"' and houseid='"+h.getHouseid()+"'";
		ResultSet rs=db.select(sql);
		if(rs.next())
		{
	%>  
		  <table width="70%" border="1" bordercolor="#9999FF" bgcolor="#D7E8F2">
            <tr>
              <td colspan="4" align="center"><span class="STYLE3">查 询 结 果</span></td>
            </tr>
            <tr>
              <td>楼号</td>
              <td align="left"><input name="buildingid1" type="text" class="titlebar" id="buildingid1"  readonly="" value="<%=rs.getString("buildingid")%>"/></td>
              <td>房号</td>
              <td align="left"><input name="houseid1" type="text" class="titlebar" id="houseid1"  readonly=""value="<%=rs.getString("houseid")%>"/></td>
            </tr>
            <tr>
              <td>门的数量</td>
              <td align="left"><input name="doorcount" type="text" class="titlebar" id="doorcount" readonly=""value="<%=rs.getString("doorcount")%>" /></td>
              <td>现状描述</td>
              <td align="left"><input name="doorstatus" type="text" class="titlebar" id="doorstatus" readonly="" value="<%=rs.getString("doorstatus")%>"/></td>
            </tr>
            <tr>
              <td>床的数量</td>
              <td align="left"><input name="bedcount" type="text" class="titlebar" id="bedcount"  readonly=""value="<%=rs.getString("bedcount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="bedstatus" type="text" class="titlebar" id="bedstatus" readonly="" value="<%=rs.getString("bedstatus")%>"/></td>
            </tr>
            <tr>
              <td>柜子的数量</td>
              <td align="left"><input name="cupboardcount" type="text" class="titlebar" id="cupboardcount"  readonly=""value="<%=rs.getString("cupboardcount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="cupboardstatus" type="text" class="titlebar" id="cupboardstatus" readonly="" value="<%=rs.getString("cupboardstatus")%>"/></td>
            </tr>
            <tr>
              <td>桌子的数量</td>
              <td align="left"><input name="deskcount" type="text" class="titlebar" id="deskcount" readonly="" value="<%=rs.getString("deskcount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="deskstatus" type="text" class="titlebar" id="deskstatus"  readonly=""value="<%=rs.getString("deskstatus")%>"/></td>
            </tr>
            <tr>
              <td>椅子的数量</td>
              <td align="left"><input name="chaircount" type="text" class="titlebar" id="chaircount" readonly="" value="<%=rs.getString("chaircount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="chairstatus" type="text" class="titlebar" id="chairstatus"  readonly=""value="<%=rs.getString("chairstatus")%>"/></td>
            </tr>
            <tr>
              <td>灯的数量</td>
              <td align="left"><input name="lampcount" type="text" class="titlebar" id="lampcount"  readonly=""value="<%=rs.getString("lampcount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="lampstatus" type="text" class="titlebar" id="lampstatus"  readonly=""value="<%=rs.getString("lampstatus")%>"/></td>
            </tr>
            <tr>
              <td>电扇的数量</td>
              <td align="left"><input name="fancount" type="text" class="titlebar" id="fancount"  readonly=""value="<%=rs.getString("fancount")%>"/></td>
              <td>现状描述</td>
              <td align="left"><input name="fanstatus" type="text" class="titlebar" id="fanstatus"  readonly=""value="<%=rs.getString("fanstatus")%>"/></td>
            </tr>
            <tr>
              <td>其它</td>
              <td align="left"><input name="extra" type="text" class="titlebar" id="extra"  readonly=""value="<%=rs.getString("extra")%>"/></td>
              <td colspan="2" align="center">&nbsp;</td>

⌨️ 快捷键说明

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