📄 rizhilist.asp
字号:
<%Response.Expires=0
Response.Buffer=true
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
action=request.querystring("action")
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
ljldj=Session("hxf_u_grade")
pp=session("hxf_u_nickname")
%>
<HTML><HEAD><TITLE>坊子通信公司</TITLE>
<META content=zh-cn http-equiv=Content-Language>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<link rel="stylesheet" type="text/css" href="../setup.css">
</head>
<%
const MaxPerPage=15
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
dim typename
dim keyword
keyword=request("guestname")
typename="客户域名信息管理系统"
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<BODY leftMargin=0 topMargin=0>
<DIV align=center>
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="56%">
<TBODY>
<TR>
<TD vAlign=top width="100%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="99%" height="68">
<TBODY>
<TR>
<TD vAlign=top width="22%" height="68">
</TD>
<TD vAlign=top width="75%" height="68">
<DIV align=center>
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=552>
<TBODY>
<TR>
<TD height=30
width=4 rowspan="2"><span lang="en-us"> <td width="548">
<!------查询start-------------------->
<% if action=30 then
xian=session("xian")
ljl_xian=mid(xian,27,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%end if
sql="select * from 工作日志 where a2 like '%"&keyword&"%'and a4='"&pp&"' and 有效=false order by a6 desc"
end if
if action=35 then
xian=session("xian")
ljl_xian=mid(xian,28,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%end if
sql="select * from 记事本 where a2 like '%"&keyword&"%'and a4='"&pp&"' and 有效=false order by a6 desc"
end if
if action=41 then
xian=session("xian")
ljl_xian=mid(xian,47,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%end if
sql="select * from 值班 where a2 like '%"&keyword&"%' and 有效=false order by a6 desc"
end if
if action=42 then
xian=session("xian")
ljl_xian=mid(xian,55,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
</script>
<%end if
sql="select * from 档案 where a2 like '%"&keyword&"%' and 有效=false order by a8 desc"
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>没有或没有找到任何数据</p>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showpage totalput,MaxPerPage,"rizhilist.asp"
showContent
showpage totalput,MaxPerPage,"rizhilist.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpage totalput,MaxPerPage,"rizhilist.asp"
showContent
showpage totalput,MaxPerPage,"rizhilist.asp"
else
currentPage=1
showpage totalput,MaxPerPage,"rizhilist.asp"
showContent
showpage totalput,MaxPerPage,"rizhilist.asp"
end if
end if
rs.close
end if
set rs=nothing
sub showContent
dim i
i=0
%>
<div align="center">
<table border="1" cellspacing="0" width="519" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0">
<tr>
<td width="57" align="center" bgcolor="#F7FFFF" height="20">
<strong style="font-weight: 400">流水号</strong></td>
<td width="372" align="center" bgcolor="#F7FFFF">
<strong style="font-weight: 400">标题</strong></td>
<td width="82" align="center" bgcolor="#F7FFFF">
<strong style="font-weight: 400">操作</strong></td>
</tr>
<%do while not rs.eof%>
<tr>
<td height="23" width="57" bgcolor="#F7FFFF"><p align="center"><%=rs("id")%></td>
<td width="372" bgcolor="#F7FFFF"><p align="left"><span lang="en-us"> </span><a target="_self" href="rizhiinfo.asp?action=<%=action%>&id=<%=rs("id")%>">
<%=rs("a1")%></a><font color="#D4D0C8">[<%=rs("a3")%>]</font></td>
<td width="82" bgcolor="#F7FFFF">
<p align="center"><font color="#FF0000">
<a href="../daiban/DEL.ASP?action=<%=action%>&id=<%=rs("id")%>">删除</a></font></td>
</tr>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
</div>
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=Post action="&filename&"?guestname="&keyword&"&action="&action&">"
' response.write "<p align='center'><font color='red'>"&typename&"</font> "
if CurrentPage<2 then
response.write "<font color='#000080'>首页 上一页</font> "
else
response.write "<a href="&filename&"?page=1&guestname="&keyword&"&action="&action&">首页</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&"&guestname="&keyword&"&action="&action&">上一页</a> "
end if
if n-currentpage<1 then
response.write "<font color='#000080'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&guestname="&keyword&"&action="&action&">"
response.write "下一页</a> <a href="&filename&"?page="&n&"&guestname="&keyword&"&action="&action&">尾页</a>"
end if
response.write "<font color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>条记录 <b>"&maxperpage&"</b>条记录/页</font> "
response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput type='text' name='txtitle' value="¤tpage&">"
response.write "<input class=buttonface type='submit' value=' 确定 ' name='cndok'></span></p></form>"
end function
%>
<form name="searchtitle" method="POST" action="rizhilist.asp?action=<%=action%>">
<p align=center>按内容查询:<input class=smallInput type="text" name="guestname" size="13">
<input class=buttonface type="submit" value="搜 索" name="title"></p>
</form>
<!---查询-------end----------------->
</td>
</span></TD></TR>
</TBODY></TABLE></CENTER></DIV>
</TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></CENTER></DIV>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -