📄 notify.asp
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"--><%ColumnName="":Tablename="HX_Notify":Orderby=" where WS_NotifyToMan="&loginuid&" or WS_NotifyToMan=0 order by WS_NotifyDate desc"
action=request("action")
if action="del" then
WS_NNID=request("WS_NNID")
if WS_NNID="" or isnull(WS_NNID) or (WS_NNID<>"" and not isnumeric(WS_NNID)) then HX_GoBack "非法操作",""
conn.execute("delete from "&Tablename&" where WS_NNID="&WS_NNID)
WS_S.HX_Redirect "hxNotifyManage.asp?page="&request("page")
end if
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title></title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='20' leftmargin='0' bottommargin='0'><table width='596' border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>通知公告</font></td></tr></table><table width='100%' border='0' cellspacing='1' cellpadding='3' bgcolor=f1f1f1><tr bgcolor='#A1BBE0' class='td4'><td width='18%' align='center'>标题</td><td width='44%' align='center'>内空</td><td width='12%' align='center'>接受人</td><td width='14%' align='center'>重要性</td><td width='12%' align='center'>操作</td></tr>"
if rs.recordcount<=0 then
response.Write "<tr><td colspan=6 bgcolor=ffffff height=25 align=center>暂无记录!</td></tr>"
else
rs.PageSize =15 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
ii=0
do while not rs.EOF
response.write "<tr align='center' bgcolor='#FFFFFF' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ffffff'><td width='18%'>"&rs("WS_NotifyTitle")&"</td><td width='44%'><div align='left'>"&rs("WS_NotifyContent")&"</div></td><td width='12%'>"
if rs("WS_NotifyToMan")<>0 then Call WS_S.HX_OutUserInfo(rs("WS_NotifyToMan")):response.Write OutName else response.Write "全体成员"
response.write "</td><td width='14%'>"&WS_S.HX_NotifyFlag(rs("WS_NotifyFlag"))&"</td><td><a href='javascript:' title='"&rs("WS_NotifyTitle")&"' onClick=""openwin(630,490,'ReadNotify.asp?WS_NNID="&rs("WS_NNID")&"')"">查看</a></td></tr>"
ii=ii+1
if ii>=rs.PageSize then Exit Do
rs.movenext
loop
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",6)
end if
call WS_S.HX_RSClose(rs)
response.write "</table></td></tr></table>"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -