📄 brand_list.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="tbioaBrand" '表名
'接受查询参数
sdate=Request("sdate")'录入日期
sdate_end=Request("sdate_end")'录入日期(结束)
area=Request("area")'登记所
sort=Request("sort")'商标类别
sbmc=Request("sbmc")'注册商标名称
sysp=Request("sysp")'使用商品
qymc=Request("qymc")'商标注册人
sqrq=Request("sqrq")'申请日期
sqrq_end=Request("sqrq_end")'申请日期(结束)
zcrq=Request("zcrq")'注册日期
zcrq_end=Request("zcrq_end")'注册日期(结束)
zczh=Request("zczh")'注册证号
xz=Request("xz")'续展
zr=Request("zr")'转让
'查寻条件
if Search="" then
Search="WHERE "
if sdate<>"" then Search = Search & "sdate>='" & cdate(sdate) & "' and "
if sdate_end<>"" then Search = Search & "sdate<='" & cdate(sdate_end) & "' and "
if sort<>"" then Search = Search & "sort='" & sort & "' and "
if sbmc<>"" then Search = Search & "sbmc LIKE '%" & sbmc & "%' and "
if sysp<>"" then Search = Search & "sysp LIKE '%" & sysp & "%' and "
if qymc<>"" then Search = Search & "qymc LIKE '%" & qymc & "%' and "
if sqrq<>"" then Search = Search & "sqrq>='" & cdate(sqrq) & "' and "
if sqrq_end<>"" then Search = Search & "sqrq<='" & cdate(sqrq_end) & "' and "
if zcrq<>"" then Search = Search & "zcrq>='" & cdate(zcrq) & "' and "
if zcrq_end<>"" then Search = Search & "zcrq<='" & cdate(zcrq_end) & "' and "
if zczh<>"" then Search = Search & "zczh LIKE '%" & zczh & "%' and "
if xz<>"" then Search = Search & "xz LIKE '%" & xz & "%' and "
if zr<>"" then Search = Search & "zr LIKE '%" & zr & "%' and "
if area="" then area=session("DepID")
Search=Search & "area in ("&GetTreeId("tbioaDepartment","ID","ParentID",area)&")" '可查看本部门及下属部门的记录
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " " & Search & " order by ID desc"
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
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="brand_menu.html"-->
<hr width="100%" size=1 color="#000000">
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<form name="eventfrm" method="GET" action="">
<td nowrap>
快速查询:
所属所:<select size="1" name="area" class="input">
<option value="<%=Session("DepID")%>"><%=GetTableValue("tbioaDepartment","Name","id",Session("DepID"))%></option>
<%Call pOptions("tbioaDepartment","Name",Session("DepID"),area,"├-")%>
</select>
商标类别:<select size="1" name="sort" class="input">
<option value="">不限制</option>
<%Call Options("tbioaBrandSort","name",sort)%>
</select>
商标名称:<input type="text" name="sbmc" value="<%=htmlout(sbmc)%>" size="8" maxlength="50" class="input">
注册证号:<input type="text" name="zczh" value="<%=htmlout(zczh)%>" size="8" maxlength="250" 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 class="tdTop" nowrap>登记所</td>
<td class="tdTop" nowrap>商标类别</td>
<td class="tdTop" nowrap>注册商标名称</td>
<td class="tdTop" nowrap>使用商品</td>
<td class="tdTop" nowrap>商标注册人</td>
<td class="tdTop" nowrap>地址</td>
<td class="tdTop" nowrap>申请日期</td>
<td class="tdTop" nowrap>注册日期</td>
<td class="tdTop" nowrap>注册证号</td>
<td class="tdTop" nowrap>续展</td>
<td class="tdTop" nowrap>转让</td>
<td class="tdTop" nowrap>联系电话</td>
<td class="tdTop" nowrap>备注</td>
<td class="tdTop" colspan="2" 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%>" nowrap><%=HtmlOut(GetTableValue("tbioaDepartment","Name","id",rs("area")))%></td>
<td class="<%=td_class%>" nowrap><%=HtmlOut(GetTableValue("tbioaBrandSort","Name","id",rs("sort")))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("sbmc"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("sysp"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("qymc"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("dz"))%></td>
<td class="<%=td_class%>" nowrap><%=HtmlOut(rs("sqrq"))%></td>
<td class="<%=td_class%>" nowrap><%=HtmlOut(rs("zcrq"))%></td>
<td class="<%=td_class%>" nowrap><%=HtmlOut(rs("zczh"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("xz"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("zr"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("lxdh"))%></td>
<td class="<%=td_class%>"><%=HtmlOut(rs("bz"))%></td>
<%if rs("UserID")=cint(LoginID) or returnqx(qx_zhyw) then%>
<td class="<%=td_class%>" width="50" nowrap>
<img border="0" src="../images/icon_edit.gif" align="left">
<a href="brand_edit.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="brand_list.asp?mod=dele&id=<%=rs("ID")%>" onClick="return confirm('确定要删除该条记录吗?\n该操作不可恢复!')">删除</a>
</td>
<%else%>
<td class="<%=td_class%>" width="50" align="center" nowrap>
--
</td>
<td class="<%=td_class%>" width="50" align="center" nowrap>
--
</td>
<%end if%>
</tr>
<%
rs.MoveNext
next
%>
</table>
<%
end if
rs.close
%>
</body>
</html>
<%'释放对象变量
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -