⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 economiclaw_list3.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<%
'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"-->

<%
'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_jiandu" '表名

'接受查询参数
	ajmc=request("ajmc")'承办时间
	jdnr=Request("jdnr")'案件名称
	bz=Request("bz")'承办人
	
'查寻条件
if Search="" then
	Search="WHERE "
	'if sdate<>""	then	Search = Search & "sdate>='" & cdate(sdate) & "' and "
	if ajmc<>""	then	Search = Search & "ajmc LIKE '%" & ajmc & "%' "
	'if area=""	then	area=session("DepID")
	'Search=Search & "area in ("&GetTreeId("tbioaDepartment","ID","ParentID",area)&")" '可查看本部门及下属部门的记录
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">

<!--#include file="EconomicLaw_menu3.html"-->

<hr width="100%" size=1 color="#000000">
<table border=0 cellspacing="0" cellpadding="0">
  <tr>
    <form name="eventfrm" method="GET" action="">
    <td nowrap>
    	快速查询: 案件名称:
    	  <input name="ajmc" type="text" class="input" id="ajmc" value="<%=htmlout(ajmc)%>" size="15" maxlength="20" />
    	<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 class="tdTop" width=32 nowrap>序号</td>
	<td width="74" nowrap class="tdTop">案件名称</td>
	<td class="tdTop" width=103 nowrap>监督内容</td>
	<td class="tdTop" width=50 nowrap>备注</td>
	<td class="tdTop" colspan="3" nowrap>相关操作</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%>"><%=i+1%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("ajmc"))%></td>
	<td class="<%=td_class%>"><%=HtmlOut(rs("jdnr"))%></td>
	<td class="<%=td_class%>" align="center"><%=HtmlOut(rs("bz"))%></td>
	<td class="<%=td_class%>" width="50" nowrap>
	  <img border="0" src="../images/icon_show.gif" align="left">
	  <a href="EconomicLaw_show3.asp?id=<%=rs("ID")%>" target="_blank">查看</a>	</td>
	<td class="<%=td_class%>" width="50" nowrap>
	  <img border="0" src="../images/icon_edit.gif" align="left">
	  <a href="EconomicLaw_edit3.asp?id=<%=rs("ID")%>">编辑</a>	</td>
	<td class="<%=td_class%>" width="50" nowrap>
	  <img border="0" src="../images/icon_dele.gif" align="left">
	  <a href="EconomicLaw_list3.asp?mod=dele&id=<%=rs("ID")%>" onClick="return confirm('确定要删除该条记录吗?\n该操作不可恢复!')">删除</a>	</td>
  </tr>
<%
rs.MoveNext
next
%>
</table>


<%
end if
rs.close
%>

</body>

</html>

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

⌨️ 快捷键说明

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