📄 shoufeiquery.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
import="java.sql.*" errorPage=""%>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-color: #93A070;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {
color: #FFFFFF;
font-size: 24px;
font-weight: bold;
}
.STYLE6 {font-size: 16px; font-weight: bold; }
.STYLE8 {color: #000000}
.STYLE10 {font-size: 14px}
-->
</style>
</head>
<body>
<jsp:useBean id="Rs" scope="page" class="MyWeb.db.DBManager" />
<%
String sql = null;
//String type=null;
String xmbh = null;
String xmzl = null;
String xmlx = null;
String xmmc = null;
//String message=null;
ResultSet rs = null;
%>
<%
request.setCharacterEncoding("GB2312");
//type=request.getParameter("type");
//if(type.equals("xmbh")){
xmbh = request.getParameter("xmbh");
//out.println(xmbh);
sql = "select * from shoufeixm where xmbh='" + xmbh + "'";
try {
rs = Rs.executeQuery(sql);
while (rs.next()) {
xmbh = rs.getString("xmbh");
xmzl = rs.getString("xmzl");
xmlx = rs.getString("xmlx");
xmmc = rs.getString("xmmc");
}
} catch (Exception e) {
e.printStackTrace();
}
//}
if (xmbh == null)
xmbh = "";
if (xmzl == null)
xmzl = "";
if (xmlx == null)
xmlx = "";
if (xmmc == null)
xmmc = "";
%>
<table width="500" border="0" align="center" bgcolor="#EEEEEE">
<tr>
<td height="30" colspan="2" align="center" valign="top"
bgcolor="#BEC798" class="STYLE2 STYLE8">
查询收费项目
</td>
</tr>
<tr>
<td width="150" height="200" valign="top">
<table width="150" border="0" align="center">
<tr>
<td height="50" align="center">
<span class="STYLE6"><a href="SFXM/shoufeiadd.jsp">新建收费项目</a>
</span>
</td>
</tr>
<tr>
<td height="50" align="center">
<span class="STYLE6"><a href="SFXM/shoufeiquery.jsp">查询收费项目</a>
</span>
</td>
</tr>
<tr>
<td height="50" align="center">
<span class="STYLE6"><a href="SFXM/shoufeidel.jsp">删除收费项目</a>
</span>
</td>
</tr>
<tr>
<td height="50" align="center">
<span class="STYLE6"><a href="../main.jsp">返回</a> </span>
</td>
</tr>
</table>
</td>
<td width="" align="left" valign="middle">
<table width="100%" border="0">
<tr>
<td height="40">
<form id="form1" name="form1" method="post"
action="shoufeiquery.jsp?type=xmbh?">
<table width="100%" border="0">
<tr>
<td height="40">
<span class="STYLE10">输入项目编号 <label>
<input name="xmbh" type="text" id="xmbh" value="<%=xmbh%>"
size="12" />
</label> <label>
<input type="submit" name="Submit" value="查询" />
</label> </span>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="160">
<form id="form2" name="form2" method="post" action="">
<table width="100%" border="0">
<tr>
<td height="160">
<table width="100%" border="0">
<tr>
<td height="70">
项目编号
<label>
<input name="xmbh1" type="text" id="xmbh"
value="<%=xmbh%>" size="10" />
</label>
</td>
<td>
项目种类
<input name="xmzl" type="text" id="xmzl"
value="<%=xmzl%>" size="10" />
</td>
</tr>
<tr>
<td height="70">
项目类型
<input name="xmlx" type="text" id="xmlx"
value="<%=xmlx%>" size="10" />
</td>
<td>
项目名称
<input name="xmmc" type="text" id="xmmc"
value="<%=xmmc%>" size="10" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="500" height="45" border="0" align="center">
</table>
<hr />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -