?? chaxunchuli.jsp
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.sql.*" contentType="text/html;charset=gb2312" session="true"%>
<jsp:useBean id="lian" scope="page" class="use.exam"/>
<script language="JavaScript" type="text/javascript">
function go_Jsp(obj)
{
if (obj.btnFlag.value=="1")
{form1.action="chaxunchuli2.jsp";
if(confirm("確定是查詢此條規則嗎?"))
return true;
else return false;
}
}
function change(obj){
document.form1.action="chaxunchuli1.jsp";
document.form1.submit();
}
</script>
<%!
String[] deviceList=new String[4];
String[] sqls=new String[4];
String sql=null;
%>
<%
deviceList[0]="電腦";
deviceList[1]="ADSL";
deviceList[2]="交換機";
deviceList[3]="路由器";
sqls[0]="select * from diannao";
sqls[1]="select * from ADSL";
sqls[2]="select * from jiaohuanji";
sqls[3]="select * from luyouqi";
%>
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/guizeguanli1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>無標題文檔</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
}
.STYLE1 {font-size: 36px}
.STYLE2 {font-size: 18px}
.STYLE3 {font-size: 24px}
#Layer1 {
position:absolute;
width:97px;
height:19px;
z-index:1;
left: 55px;
top: 194px;
visibility: visible;
}
.STYLE4 {color: #FF00FF}
#guzhang {
position:absolute;
width:83px;
height:22px;
z-index:1;
left: 97px;
top: 225px;
background-color: #FFFFFF;
visibility: hidden;
}
#Layer2 {
position:absolute;
width:88px;
height:44px;
z-index:1;
left: 72px;
top: 165px;
visibility: hidden;
}
-->
</style>
<!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
</head>
<body>
<table width="800" height="800" border="0" align="center">
<tr>
<td width="800" height="800"><table width="800" height="795" border="0">
<tr>
<td height="90" colspan="5" background="40.jpg" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
<p>基于規則引擎的網絡故障管理系統</p>
</div></td>
</tr>
<tr>
<td height="2" colspan="5" bgcolor="#E71847"> </td>
</tr>
<tr>
<td width="160" height="30" bordercolor="#00FFFF" background="0311.jpg"><div align="center">|<a href="guzhzd.jsp">故障診斷與修復</a>|</div></td>
<td width="160" bordercolor="#00FFFF" background="0311.jpg"><div align="center">|<a href="guizeguanli.jsp">規則管理</a>|</div></td>
<td width="160" bordercolor="#00FFFF" background="0311.jpg"><div align="center">|<a href="log.jsp">日志管理</a>|</div></td>
<td width="160" bordercolor="#00FFFF" background="0311.jpg"><div align="center">|<a href="lianxi.jsp">聯系我們</a>|</div></td>
<td width="160" bordercolor="#00FFFF" background="0311.jpg"><div align="center">|<a href="youqing.jsp">友情鏈接</a>|</div></td>
</tr>
<tr>
<td colspan="5" background="0371.jpg" >
<!-- InstanceBeginEditable name="head1" -->
<%
String s=(String)session.getAttribute("zhzhao");
int zhzhao=Integer.parseInt(s);
%>
<%
String sql=sqls[0];
String str=null;
ResultSet rs=lian.executeQuery(sql);
%>
<form id="form1" name="form1" method="post" action="" onsubmit="return go_Jsp(this)">
<%
int n;
for( n=1;n<=zhzhao;n++){
rs=lian.executeQuery(sql);
%>
<p>征兆<%=n%></p>
<label>請選擇設備:</label>
<select name="device<%=n %>" onchange="change(this)">
<%for (int i=0;i<deviceList.length;i++){ %>
<option ><%=deviceList[i] %></option>
<%} %>
</select>
<p><label>所選設備征兆集:</label></p>
<select name="<%=n %>" size="1">
<%while (rs.next()){
str=rs.getString(2);
%>
<option><%= str%></option>
<%}
rs.close();
%>
</select>
<%}
%>
<p> </p>
<input type="hidden" name="btnFlag" />
<input type="submit" name="a" value="查詢" onclick="btnFlag.value='1';" />
</form>
<%
lian.closeStmt();
lian.closeConn();
%>
<!-- InstanceEndEditable -->
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p> <p> </p> <div align="center">
<p>版權所有:沈陽理工大學422研究室</p>
<p>聯系方式:024-24689377</p>
</div></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -