<form name = modify >
<table border="0" width="776" cellspacing="0" cellpadding="0" height="115">
<tr>
<td width="100%" bgcolor="#FCF6E5" height="1" valign="top" style="padding-left: 50; padding-top: 0">
<p align="left"><img border="0" src="image/tb1.gif" width="100" height="28"></td>
</tr>
<center>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="137" valign="top" style="padding-top: 0">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="190">
<tr>
<td width="7%" bgcolor="#FDFAEE" height="37" valign="top"><img border="0" src="image/xx.htm1.gif" width="182" height="67"></td>
<td width="91%" height="190" valign="top" rowspan="2">
<div align="center">
<%
dim leibie
dim rs
dim pagecount
leibie=request.querystring("lb")
keyword=request.querystring("key")
set rs=server.createobject("adodb.recordset")
if leibie="" then
rs.open "select * from ysfw where bz='1'",conn,1,1
else
rs.open "select * from ysfw where bz='1' and district like '%"&leibie&"%' and name like '%"&keyword&"%' order by district",conn,1,1
end if
if rs.eof and rs.bof then
%>
<table border="1" width="96%" bordercolor="#000000" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td width="10%" align="center" style="line-height: 150%; font-size: 9pt" bgcolor="#F8EBC2"> 公司资料列表</td>
</tr>
<tr>
<td width="10%" align="center" style="line-height: 150%; font-size: 9pt" bgcolor="#FDFAEE"> 暂时还没有需要修改的资料</td>
</tr>
</table>
<%
else
rs.pagesize=6
pagecount = rs.pagecount
page =request.querystring("page")
if (page <> "") then
if (isnumeric(page)) then
page = clng(page)
else
page = 1
end if
else
page = 1
end if
if page<1 then page=1
if page>rs.pagecount then page=rs.pagecount
rs.absolutepage=page
%>
<%
if request("action")="modi" then
for i=0 to ubound(split(request("seleon"),","))
conn.execute "update ysfw set district='" & split(request("district" & split(request("seleon"),",")(i)),",")(i) & "',name='" & split(request("nam" & split(request("seleon"),",")(i)),",")(i) & "',content='" & split(request("content" & split(request("seleon"),",")(i)),",")(i) & "',address='" & split(request("address" & split(request("seleon"),",")(i)),",")(i) & "',phone='" & split(request("phone" & split(request("seleon"),",")(i)),",")(i) & "' where id=" & split(request("seleon"),",")(i)
next
Response.Write "<script language=javascript>alert('修改完毕');</script>"
end if
if request("action")="dele" then
conn.execute "delete from ysfw where id in (" & request("seleon") & ")"
Response.Write "<script language=javascript>alert('删除完毕');</script>"
end if
%>
<%
if request("action")="modi" then
for i=0 to ubound(split(request("seleon"),","))
conn.execute "update ysfw set district='" & split(request("district" & split(request("seleon"),",")(i)),",")(i) & "',name='" & split(request("nam" & split(request("seleon"),",")(i)),",")(i) & "',content='" & split(request("content" & split(request("seleon"),",")(i)),",")(i) & "',address='" & split(request("address" & split(request("seleon"),",")(i)),",")(i) & "',phone='" & split(request("phone" & split(request("seleon"),",")(i)),",")(i) & "' where id=" & split(request("seleon"),",")(i)
next
Response.Write "<script language=javascript>alert('修改完毕');</script>"
end if
if request("action")="dele" then
conn.execute "delete from ysfw where id in (" & request("seleon") & ")"
Response.Write "<script language=javascript>alert('删除完毕');</script>"
end if
%>
<form name = modify >
<table border="0" width="776" cellspacing="0" cellpadding="0" height="115">
<tr>
<td width="100%" bgcolor="#FCF6E5" height="1" valign="top" style="padding-left: 50; padding-top: 0">
<p align="left"><img border="0" src="image/tb1.gif" width="100" height="28"></td>
</tr>
<center>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="137" valign="top" style="padding-top: 0">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="190">
<tr>
<td width="7%" bgcolor="#FDFAEE" height="37" valign="top"><img border="0" src="image/xx.htm1.gif" width="182" height="67"></td>
<td width="91%" height="190" valign="top" rowspan="2">
<div align="center">
<%
dim leibie
dim rs
dim pagecount
leibie=request.querystring("lb")
keyword=request.querystring("key")
set rs=server.createobject("adodb.recordset")
if leibie="" then
rs.open "select * from ysfw where bz='1'",conn,1,1
else
rs.open "select * from ysfw where bz='1' and district like '%"&leibie&"%' and name like '%"&keyword&"%' order by district",conn,1,1
end if
if rs.eof and rs.bof then
%>
<table border="1" width="96%" bordercolor="#000000" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td width="10%" align="center" style="line-height: 150%; font-size: 9pt" bgcolor="#F8EBC2"> 公司资料列表</td>
</tr>
<tr>
<td width="10%" align="center" style="line-height: 150%; font-size: 9pt" bgcolor="#FDFAEE"> 暂时还没有需要修改的资料</td>
</tr>
</table>
<%
else
rs.pagesize=6
pagecount = rs.pagecount
page =request.querystring("page")
if (page <> "") then
if (isnumeric(page)) then
page = clng(page)
else
page = 1
end if
else
page = 1
end if
if page<1 then page=1
if page>rs.pagecount then page=rs.pagecount
rs.absolutepage=page
%>