178 lines
5.2 KiB
Plaintext
178 lines
5.2 KiB
Plaintext
|
<%@ page language="java" contentType="text/html; charset=GB18030"
|
|||
|
pageEncoding="GB18030" import="java.sql.*"%>
|
|||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|||
|
<jsp:useBean id="gg" class="com.DB" scope="page" />
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|||
|
<title>Insert title here</title>
|
|||
|
<script language="javascript">
|
|||
|
function check(){
|
|||
|
if(form1.chewei_no.value==""){
|
|||
|
alert("<22><><EFBFBD><EFBFBD><EFBFBD>복λ<EBB3B5><CEBB><EFBFBD>ţ<EFBFBD>");form1.chewei_no.focus();return false;
|
|||
|
} }
|
|||
|
</script>
|
|||
|
<link href="../css/style.css" rel="stylesheet" type="text/css">
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<table width="985" height="548" border="0" cellpadding="0"
|
|||
|
cellspacing="0">
|
|||
|
<tr>
|
|||
|
<td valign="top" background="../image/RIGHT.jpg"><table
|
|||
|
width="985" height="50" border="0" cellpadding="0" cellspacing="0">
|
|||
|
<tr>
|
|||
|
<td> </td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<form id="form1" name="form1" method="post"
|
|||
|
action="chewei_chuli.jsp" onSubmit="return check()">
|
|||
|
<table width="493" border="0" align="center" cellpadding="0"
|
|||
|
cellspacing="0">
|
|||
|
<tr>
|
|||
|
<td height="30" colspan="2" align="center"><3E><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td width="40"> </td>
|
|||
|
<td width="945" height="25"><3E><>λ<EFBFBD><CEBB><EFBFBD>ţ<EFBFBD> <input name="chewei_no"
|
|||
|
type="text" id="chewei_no" /></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td width="40"> </td>
|
|||
|
<td width="945" height="25"><3E><>λ<EFBFBD><CEBB><EFBFBD>ͣ<EFBFBD> <select name="chewei_type"
|
|||
|
id="chewei_type">
|
|||
|
<option value="С<>ͳ<EFBFBD>">С<>ͳ<EFBFBD></option>
|
|||
|
<option value="<22><><EFBFBD>ͳ<EFBFBD>" selected="selected"><3E><><EFBFBD>ͳ<EFBFBD></option>
|
|||
|
<option value="<22><><EFBFBD>ͳ<EFBFBD>"><3E><><EFBFBD>ͳ<EFBFBD></option>
|
|||
|
<option value="<22>ߵ<EFBFBD><DFB5><EFBFBD>"><3E>ߵ<EFBFBD><DFB5><EFBFBD></option>
|
|||
|
</select>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td width="40"> </td>
|
|||
|
<td width="945" height="25"><3E><>λ״̬<D7B4><CCAC> <select
|
|||
|
name="chewei_state" id="chewei_state">
|
|||
|
<option value="<22><><EFBFBD><EFBFBD>" selected="selected"><3E><><EFBFBD><EFBFBD></option>
|
|||
|
<option value="Ԥ<><D4A4>">Ԥ<><D4A4></option>
|
|||
|
<option value="ʹ<><CAB9>">ʹ<><CAB9></option>
|
|||
|
</select>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td width="40"> </td>
|
|||
|
<td width="945" height="25"><3E><>λλ<CEBB>ã<EFBFBD> <select
|
|||
|
name="chewei_didian">
|
|||
|
<option value="" selected>ѡ<><D1A1></option>
|
|||
|
<option value="A<><41>">A<><41></option>
|
|||
|
<option value="B<><42>">B<><42></option>
|
|||
|
<option value="C<><43>">C<><43></option>
|
|||
|
<option value="D<><44>">D<><44></option>
|
|||
|
</select></td>
|
|||
|
</tr>
|
|||
|
|
|||
|
<tr>
|
|||
|
<td> </td>
|
|||
|
<td height="35">
|
|||
|
<input
|
|||
|
type="submit" name="Submit" value="<22><><EFBFBD><EFBFBD>" /> <input
|
|||
|
type="reset" name="Submit2" value="<22><><EFBFBD><EFBFBD>" />
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</form>
|
|||
|
<table width="557" height="55" border="0" align="center"
|
|||
|
cellpadding="0" cellspacing="0">
|
|||
|
<tr>
|
|||
|
<td width="87" height="31" align="center" bgcolor="#ECE9D8"><3E><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD></td>
|
|||
|
<td width="87" align="center" bgcolor="#ECE9D8"><3E><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD></td>
|
|||
|
<td width="73" align="center" bgcolor="#ECE9D8"><3E><>ǰ״̬</td>
|
|||
|
<td width="264" align="center" bgcolor="#ECE9D8"><3E><>λλ<CEBB><CEBB></td>
|
|||
|
<td width="46" align="center" bgcolor="#ECE9D8">ɾ<><C9BE></td>
|
|||
|
</tr>
|
|||
|
|
|||
|
<%
|
|||
|
int CountPage = 0;
|
|||
|
int CurrPage = 1;
|
|||
|
int PageSize = 12;
|
|||
|
int CountRow = 0;
|
|||
|
String StrPage = request.getParameter("Page");
|
|||
|
if (StrPage == null)
|
|||
|
{
|
|||
|
CurrPage = 1;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
CurrPage = Integer.parseInt(StrPage);
|
|||
|
}
|
|||
|
Connection con=gg.getCon();
|
|||
|
if (con != null)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
String sqlyy = "Select * from chewei ";
|
|||
|
|
|||
|
ResultSet rs=gg.GetRs(sqlyy);
|
|||
|
if(!rs.next())
|
|||
|
{
|
|||
|
out.println("<22>Բ<EFBFBD><D4B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱû<CAB1><C3BB><EFBFBD><EFBFBD>Ϣ");
|
|||
|
}
|
|||
|
else{
|
|||
|
rs.last();
|
|||
|
int i = 0;
|
|||
|
CountRow = rs.getRow();
|
|||
|
CountPage = (CountRow/PageSize);
|
|||
|
if (CountRow%PageSize>0)
|
|||
|
CountPage++;
|
|||
|
Integer n = (CurrPage-1)*5+1;
|
|||
|
rs.first();
|
|||
|
rs.absolute(CurrPage*PageSize-PageSize+1);
|
|||
|
while (i<PageSize && !rs.isAfterLast())
|
|||
|
{
|
|||
|
%>
|
|||
|
<tr>
|
|||
|
<td align="center"><%=rs.getString("chewei_no")%></td>
|
|||
|
<td align="center"><%=rs.getString("chewei_type")%></td>
|
|||
|
<td align="center"><%=rs.getString("chewei_state")%></td>
|
|||
|
<td align="center"><%=rs.getString("chewei_didian")%></td>
|
|||
|
<td align="center"><a
|
|||
|
href="../Cw_deleteServlet?id=<%=rs.getString("id")%>">ɾ<><C9BE></a></td>
|
|||
|
</tr>
|
|||
|
<%
|
|||
|
rs.next();
|
|||
|
i++;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
catch (SQLException e)
|
|||
|
{
|
|||
|
out.println(e.getMessage());
|
|||
|
}
|
|||
|
finally
|
|||
|
{
|
|||
|
con.close();
|
|||
|
}
|
|||
|
}
|
|||
|
%>
|
|||
|
</table>
|
|||
|
<table width="700" height="53" border="0" cellpadding="0"
|
|||
|
cellspacing="0">
|
|||
|
<tr>
|
|||
|
<td width="205" height="53" align="center">[<%=CurrPage%>/<%=CountPage %>]
|
|||
|
ÿҳ<%=PageSize %><3E><> <20><><%=CountRow%><3E><><EFBFBD><EFBFBD>¼
|
|||
|
</td>
|
|||
|
<td width="495" align="left">
|
|||
|
<div align="left">
|
|||
|
<% for (int i = 1;i<=CountPage;i++){%>
|
|||
|
<a href="chewei_mg.jsp?Page=<%=i%>">[<%=i%>]
|
|||
|
</a>
|
|||
|
<%}%>
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table></td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</body>
|
|||
|
</html>
|