?? weixiu_dengji.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.Date"%>
<%@page import="myweb.DBContent.DBContent,myweb.bean.Repair" %>
<!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/repair_user.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragrma","no-cache");
response.setDateHeader("Expires",0);
//session.invalidate();
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>高校公寓綜合管理平臺</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.STYLE3 {color: #333333}
.STYLE5 {font-size: 18px}
.STYLE6 {color: #660000}
-->
</style>
<link href="../admin/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE8 {font-size: 14px}
-->
</style>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
}
.STYLE1 {
font-size: 14px;
color: #000066;
}
#Layer3 {position:absolute;
left:792px;
top:109px;
width:222px;
height:15px;
z-index:2;
}
-->
</style></head>
<body>
<%@ page import="java.util.*,java.text.*"%>
<%
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 height="128" 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="../admin/image/xuanjuan1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="../admin/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="STYLE1" 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 valign="top">
<td width="227" align="left" valign="middle"><span class="STYLE1">
<marquee scrollAmount=2 onmouseover=stop() onmouseout=start() >
<%=dd%>
</marquee>
</span></td>
<td width="797"><!-- InstanceBeginEditable name="EditRegion7" -->
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" background="../Templates/image/index_05.jpg"> </td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td width="227" height="49" background="../Templates/image/index_04.gif"> </td>
<td height="368" rowspan="3" align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion5" -->
<table width="100%">
<tr>
<td></td>
</tr>
<tr valign="top">
<td height="58"> </td>
</tr>
<tr valign="top">
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<form action="weixiu_dengji.jsp" method="post" name="form1" id="form1">
<table width="70%" border="1" align="center" bgcolor="#D7E8F2">
<tr align="left">
<td height="20" colspan="4" align="center"><span class="STYLE3 STYLE5"><strong>維 修 登 記</strong></span></td>
</tr>
<tr>
<td width="17%" height="14" align="center"><span class="STYLE3">樓號</span></td>
<td width="31%" height="14" align="left"><input name="buildingid" type="text" class="titlebar" id="buildingid" size="20" maxlength="2" />
<span class="STYLE6 STYLE8"></font>*</span></td>
<td width="18%" height="14" align="center">房號</td>
<td width="34%" height="14" align="left"><span class="STYLE6">
<input name="houseid" type="text" class="titlebar" id="houseid" size="20" maxlength="3" />
<span class="STYLE6 STYLE8">*</span></span></td>
</tr>
<tr>
<td height="14" align="center"><span class="STYLE3">維修物品</span></td>
<td height="14" align="left"><span class="STYLE6">
<input name="repairthings" type="text" class="titlebar" id="repairthings" size="20" maxlength="20" />
<span class="STYLE6 STYLE8">*</span></span></td>
<td height="14" align="center"><span class="STYLE3">維修日期</span></td>
<td height="14" align="left"><input name="repairdate" type="text" class="titlebar" id="repairdate" size="20" maxlength="20" />
<span class="STYLE6 STYLE8">*</span></td>
</tr>
<tr>
<td height="14" align="center">責任人</td>
<td height="14" align="left"><input name="zeren" type="text" class="titlebar" id="zeren" size="20" maxlength="20" /></td>
<td height="14" align="center">是否賠償</td>
<td height="14" align="left"><select name="peichang" class="titlebar" id="peichang">
<option>請選擇</option>
<option value="是">是</option>
<option value="否">否</option>
</select> </td>
</tr>
<tr>
<td height="14" align="center"><span class="STYLE3">折算金額</span></td>
<td height="14" align="left"><input name="expense" type="text" class="titlebar" id="expense" size="20" maxlength="20" /></td>
<td height="14" align="center">備注</td>
<td height="14" align="left"><input name="extra" type="text" class="titlebar" id="extra" size="20" maxlength="20" /></td>
</tr>
<tr>
<td height="14" 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">
<td>
<jsp:useBean id="re" class="myweb.bean.Repair"/>
<jsp:setProperty name="re" property="*"/>
<%
String su=request.getParameter("sub")!=null?request.getParameter("sub"):"";
if(su.equals("ok")){
String sql="insert into repaired values('"+re.getBuildingid()+"','"+re.getHouseid()+"','"+re.getRepairthings()+"','"+re.getRepairdate()+"','"+re.getExpense()+"','"+re.getPeichang()+"','"+re.getZeren()+"','"+re.getExtra()+"')";
db.insert(sql);
out.println("<script>alert('維修登記成功!');</script>");
}
%>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td width="227" height="240" align="center" background="../Templates/image/index_06.jpg">
<style>
<!--
a.parentlink { text-decoration: none; color: #000000; font-size: 14px }
a.parentlink:hover { color: #ffffff; }
a.childlink:hover { color: #ffcc00; }
a.childlink,td.childlink { text-decoration: none; color: #333333; font-size: 14px }
.px7 { font-size: 11px; vertical-align: middle; }
-->
</style>
<script language=javascript>
var item_num=5; //父層菜單的行數
var item_word=new Array(); //菜單的文字
for(i=0;i<item_num;i++)
item_word[i]=new Array();
item_word[0][0]="報修查詢";
item_word[1][0]="維修登記";
item_word[2][0]="維修查詢";
item_word[3][0]="修改密碼";
item_word[4][0]="退出系統";
var item_link=new Array(); //菜單的鏈接
for(i=0;i<item_num;i++)
item_link[i]=new Array();
item_link[0][0]="javascript:window.open('../re_user/baoxiu_search.jsp','_self')";
item_link[1][0]="javascript:window.open('../re_user/weixiu_dengji.jsp','_self')";
item_link[2][0]="javascript:window.open('../re_user/weixiu_search.jsp','_self')";
item_link[3][0]="javascript:window.open('../re_user/change_pwd.jsp','_self')";
item_link[4][0]="javascript:window.open('../index.jsp','_self')";
var item=new Array(); //菜單的HTML
for(i=0;i<item_num;i++)
item[i]="";
for(i=0;i<item_num;i++)
for(j=0;j<item_word[i].length;j++)
item[i]+=" |<span class=px7>-● </span><a class=childlink href="+item_link[i][j]+" onclick=javascript:this.blur();>"+item_word[i][j]+"</a><br>";
//------------定義一個清空各菜單的函數--------------
function startItem()
{
for(i=0;i<item_num;i++)
document.all.titem.cells[2*i+1].innerHTML="";
}
//------------------定義結束----------------------
//------------定義一個菜單展開的函數----------------
function openItem(n)
{
if(document.all.titem.cells[n*2+1].innerHTML=="")
{
startItem();
document.all.titem.cells[n*2+1].innerHTML=item[n];
}
else
startItem();
}
//------------------定義結束----------------------
//-----------------開始實現菜單-------------------
document.writeln("<table id=titem>");
document.writeln(" <tr><td height=20 valign=bottom><span class=px7>◆ </span><a class=parentlink href=javascript: onclick=javascript:openItem(0);this.blur();>〖報修查詢〗</a></td></tr>");
document.writeln(" <tr><td class=childlink></td></tr>");
document.writeln(" <tr><td height=20 valign=bottom><span class=px7>◆ </span><a class=parentlink href=javascript: onclick=javascript:openItem(1);this.blur();>〖維修登記〗</a></td></tr>");
document.writeln(" <tr><td class=childlink></td></tr>");
document.writeln(" <tr><td height=20 valign=bottom><span class=px7>◆ </span><a class=parentlink href=javascript: onclick=javascript:openItem(2);this.blur();>〖維修查詢〗</a></td></tr>");
document.writeln(" <tr><td class=childlink></td></tr>");
document.writeln(" <tr><td height=20 valign=bottom><span class=px7>◆ </span><a class=parentlink href=javascript: onclick=javascript:openItem(3);this.blur();>〖修改密碼〗</a></td></tr>");
document.writeln(" <tr><td class=childlink></td></tr>");
document.writeln(" <tr><td height=20 valign=bottom><span class=px7>◆ </span><a class=parentlink href=javascript: onclick=javascript:openItem(4);this.blur();>〖退出系統〗</a></td></tr>");
document.writeln(" <tr><td class=childlink></td></tr>");
document.writeln("</table>");
//------------------菜單結束-----------------------
</script> </td>
</tr>
<tr>
<td width="227" height="80" background="../Templates/image/index_08.jpg"> </td>
</tr>
<tr>
<td height="53"> </td>
<td><img src="../Templates/image/lijianxue11_10.jpg" width="797" height="53" border="0" usemap="#Map" /></td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="300,14,372,29" href="mailto:ljx2006@stu.ahau.edu.cn" />
<area shape="rect" coords="470,34,676,47" href="http://ljx.ahau.edu.cn" target="_blank" />
</map></body>
<!-- InstanceEnd --></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -