economiclaw_sp_list2_1.asp

来自「OFFICE办公自动化」· ASP 代码 · 共 137 行

ASP
137
字号
<%
'OA 表单生成器1.0
'功能:工商户列表
'参数:request("page")=int #当前页码;  request.form("Search")=chr #上次查询条件
%>

<!--#include file="../inc/NoCatch.asp"-->
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<!--#include file="EconomicLaw_menu.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
maxmessage=15 '每页显示记录数
currentpage=request("page") '当前页码
Search=request("Search") '上次查询条件
'------------------------------------------------
'------------------------------------------------取记录
'分页取记录 (返回rs对象)
'rs.recordcount 为记录总数
'rs.PageSize 为本页记录数
'
table="EconomicLaw_sp2" '表名

'接受查询参数
	dsrxm=Request("dsrxm")'当事人姓名
	ajxz=Request("ajxz")'法定代表人
'查寻条件
if Search="" then
	Search="WHERE "
	if dsrxm<>"" then	Search = Search & "dsrxm LIKE '%" & dsrxm & "%' and "
	if fddbr<>"" then	Search = Search & "ajxz LIKE '%" & ajxz & "%'"
	
END if

set rs=Server.CreateObject("ADODB.RecordSet")
if Search<>"WHERE " then
sql="select * from " & table & " " & Search & " order by id desc"
else
sql="select * from " & table & " order by id desc"
end if
'response.write sql
'response.end()
rs.open sql,oConn,1,1
Showpage=Paging(rs,maxmessage,currentpage,"Search="&Server.URLEncode(Search))
'------------------------------------------------删除记录
if request("mod")="dele" then
	id=request("id") : if id="" then id=0 '删除记录ID
	'zpname=oConn.Execute("SELECT zp FROM "&table&" WHERE id='"&id&"'")(0)
	'if zpname<>null or zpname<>"" then call DeleteOneFile(zpname)'删除照片
	oConn.Execute "delete from "&table&" where id="&id'删除记录
	response.write "<script>alert('案件记录成功删除!');history.back()</script>"
	response.end
end if
'------------------------------------------------
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
</head>

<body topmargin="10" leftmargin="10">
<table border=0 cellspacing="0" cellpadding="0">
  <tr>
    <td><img border="0" src="../images/icon_menu.gif" align="left"><a href="EconomicLaw_sp_list2.asp">&nbsp; 待处理案件复核列表</a> &nbsp;</td>
    <td><img border="0" src="../images/icon_menu.gif" align="left"><a href="EconomicLaw_sp_list2_1.asp">&nbsp; 已处理案件复核列表&nbsp;</a></td>
  </tr>
</table>
<hr width="100%" size=1 color="#000000">
<table border=0 cellspacing="0" cellpadding="0">
  <tr>
    <form name="eventfrm" method="GET" action="">
    <td nowrap>
    	快速查询:
    	案件性质:
    	  <input type="text" name="ajmc" value="<%=htmlout(ajxz)%>" size="15" maxlength="20" class="input">
   	    当事人姓名:
    	  <input type="text" name="cbdw" value="<%=htmlout(dsrxm)%>" size="15" maxlength="20" class="input" />
    	  <input type="submit" value="查询" class="button0" onmouseout=className="button0" onmouseover=className="button1">    </td>
    </form>
  </tr>
</table>
<hr width="100%" size=1 color="#000000">

<%=Showpage%>
<br>
<%
if rs.RecordCount=0 then
	response.write "<BR><BR>暂时为空!"
else
%>
<table width="100%" cellspacing="1" cellpadding="2" class="tab">
  <tr>
    <td width=6% nowrap class="tdTop">编号</td>
    <td width="10%" nowrap class="tdTop">当事人姓名</td>
    <td width="10%" nowrap class="tdTop">案件性质</td>
    <td width=14% nowrap class="tdTop">立案时间</td>
    <td width=29% nowrap class="tdTop">当事人主要违法事实</td>
    <td colspan="3" nowrap class="tdTop">相关操作</td>
  </tr>
  <%for i = 0 to rs.PageSize-1
   If rs.EOF Then Exit For
   if i mod 2 = 0 then td_class="td1" else td_class="td2"
%>
  <tr>
    <td class="<%=td_class%>"><%=HtmlOut(GetTableValue("EconomicLaw_reg","bh","id",rs("bkupid")))%></td>
    <td class="<%=td_class%>"><a href="EconomicLaw_reg_show.asp?id=<%=rs("bkupID")%>" target="_blank"><%=HtmlOut(GetTableValue("EconomicLaw_reg","dsrxm","id",rs("bkupid")))%></a></td>
    <td class="<%=td_class%>"><%=HtmlOut(rs("ajxz"))%></td>
    <td class="<%=td_class%>"><%=HtmlOut(rs("larq"))%></td>
    <td class="<%=td_class%>"><%=HtmlOut(rs("wfss"))%></td>
    <td width="7%" nowrap class="<%=td_class%>"><img border="0" src="../images/icon_show.gif" align="left"> <a href="EconomicLaw_sp_show2.asp?id=<%=rs("ID")%>" target="_blank">查看</a> </td>
    <td width="13%" nowrap class="<%=td_class%>"><img border="0" src="../images/icon_edit.gif" align="left"> <a href="EconomicLaw_SP_edit21.asp?id=<%=rs("ID")%>">编辑告知书</a></td>
    <td width="11%" nowrap class="<%=td_class%>"><img border="0" src="../images/icon_edit.gif" align="left"> <a href="EconomicLaw_SP_show21.asp?id=<%=rs("ID")%>" target="_blank">打印告知书</a></td>
  </tr>
  <%
rs.MoveNext
next
%>
</table>
<%
end if
rs.close
%>

</body>

</html>

<%'释放对象变量
oConn.close
%> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?