日期:2014-05-17 浏览次数:20776 次
<%@ page language="java" import="java.util.*,java.sql.*,dao.*,entity.*,util.*,test.*"
pageEncoding="GB18030"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查看机房座位信息</title>
<style>
body{text-align:center;
align:center;
}
</style>
<script type="text/javascript">
function getId(img) {
// 图片地址数组
var image_urls = [ "images/free.png", "images/sale.png",
"images/repair.png" ];
// 初始化数组键值 (0 = 第一个图片)
var idx = 0;
if(img.name==image_urls[0]){
idx=1;
}else if(img.name==image_urls[1]){
idx=2;
}else{
idx=0;
}
document.getElementById(img.id).name = image_urls[idx];
document.getElementById(img.id).src = image_urls[idx];
}
function s() {
var options=document.getElementById("Select1");
for (var i = 0; i < options.length; i++) {
if (options[i].selected) {
window.location.href=options[i].value;
}
}
}
</script>
</head>
<%
%>
<%
Connection conn2=null;
Statement stmt2=null;
ResultSet rs2 = null;
int count = 0;
try{
Class.forName("com.mysql.jdbc.Driver");