?? new.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無(wú)標(biāo)題文檔</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
a:link {
color: #003399;
}
a:visited {
color: #999999;
}
-->
</style></head>
<body>
<jsp:useBean id="ConBean" scope="session"
class="com.bitc.ch13.DBCon"/>
<table width="680" height="46" border="1">
<tr>
<td width="126" height="16">訂購(gòu)用戶</td>
<td width="106">主機(jī)型號(hào)</td>
<td width="94">數(shù)據(jù)庫(kù)</td>
<td width="230">綁定的與名</td>
<td width="90">操作</td>
</tr>
<%
request.setCharacterEncoding("gb2312");
String host = request.getParameter("host");
Connection con = ConBean.getConnection();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM jsp8_host where bid ='"+host+"' ORDER BY id DESC");
while(rs.next()){
String id = rs.getString("id");
%>
<tr>
<td height="22"><a href=show.jsp?id=<%=id%>><%=rs.getString("yh")%></a></td>
<td><%=rs.getString("lx")%> </td>
<td><%=rs.getString("sjk")%> </td>
<td><%=rs.getString("cn")%> </td>
<td><a href="javascript:z(<%=id%>)">轉(zhuǎn)正</a> <a href="javascript:del(<%=id%>)">刪除</a></td>
</tr>
<%
}
rs.close();
stmt.close();
ConBean.close();
%>
<script language="javascript">
function del(id)
{
myvalue=confirm("該操作不可恢復(fù),確認(rèn)要?jiǎng)h除嗎?");
if (myvalue== true)
window.location ="s.jsp?id="+id
}
</script>
<script language="javascript">
function z(id)
{
myvalue=confirm("確認(rèn)該用戶已經(jīng)打款了嗎?");
if (myvalue== true)
window.location ="z.jsp?id="+id
}
</script>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -