📄 show.jsp
字号:
<%@ 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>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style></head>
<body>
<jsp:useBean id="ConBean" scope="session"
class="com.bitc.ch13.DBCon"/>
<%
String id = request.getParameter("id");
Connection con = ConBean.getConnection();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM vidc where id ='"+id+"'");
while(rs.next()){
%>
<table width="816" height="188" border="1" bordercolor="#009999">
<tr>
<td width="106" height="37"><%=rs.getString("mc")%></td>
<td width="114">价格:<%int pric = rs.getInt("pric");if(pric > 800){out.println("<b><font color=red>"+pric+"</font></b>");}else{out.println(pric);}%></td>
<td width="90">邮局:<%=rs.getString("m")%></td>
<td width="60"><select name="select">
<%String k = rs.getString("s");out.println("<option value=MSSQL selected>"+k+"</option>");%>
</select></td>
<td width="108">FTP:<% String ftp = rs.getString("ftp");out.println(ftp);%></td>
<td width="137">FTP密码:<%=rs.getString("ftppwd")%></td>
<td width="155">域名:<a href=http://61.152.239.26:9080/<%=ftp%> target="top" ><%=rs.getString("www")%></a></td>
</tr>
<tr bgcolor="#FFFFCC">
<td height="49" colspan="7">联系人资料:</td>
</tr>
<tr>
<td height="47">姓名:<%=rs.getString("lxr")%></td>
<td>电话:<%=rs.getString("dh")%></td>
<td>QQ:
<%String qq = rs.getString("qq");out.println(qq);%></td>
<td colspan="3">地址:<%=rs.getString("dz")%></td>
<td>E-Mail:<%=rs.getString("sfz")%></td>
</tr>
<tr>
<td height="11"><input type="button" name="Submit" value="编 辑" onClick="edit(<%=id%>)"></td>
<td><input type="button" name="Submit2" value="删 除" onClick="del(<%=id%>)"></td>
<td><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=<%=qq%>&Site=深圳万网&Menu=yes><img border="0" src=http://wpa.qq.com/pa?p=1:<%=qq%>:1></a></td>
<td colspan="3"><input type="button" name="Submit3" value="转 正" onClick="r(<%=id%>)"></td>
<td><input type="button" name="Submit4" value="发 信" onClick="x(<%=id%>)"></td>
</tr>
</table> <%
}
rs.close();
String strupds = "UPDATE vidc SET ids = 'no' where id = '"+id+"'";
stmt.executeUpdate(strupds);
stmt.close();
ConBean.close();
%>
<script language="javascript">
function del(id)
{
myvalue=confirm("该操作不可恢复,确认要删除吗?");
if (myvalue== true)
window.location ="s.jsp?id="+id
}
</script>
<script language="javascript">
function edit(ide)
{
window.location ="edit.jsp?id="+ide
}
</script>
<script language="javascript">
function r(id)
{
myvalue=confirm("确认该用户已经打款了吗?");
if (myvalue== true)
window.location ="z.jsp?id="+id
}
</script>
<script language="javascript">
function x(id)
{
myvalue=confirm("确认要给该用户发信吗?");
if (myvalue== true)
window.location ="x.jsp?id="+id
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -