📄 documentshow.asp
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%
ColumnName="":Tablename="HX_Document":WS_DOID=request("WS_DOID"):DocumentName=request("DocumentName"):DocumetUID=request("DocumetUID"):action=request("action"):Orderby=" where 1=1"
if action="search" then
if DocumentName<>"" then Orderby=Orderby&" and WS_DocumentName like '%"&DocumentName&"%'"
if WS_DCID<>"" and isnumeric(WS_DCID) then Orderby=Orderby&" and WS_DCID="&WS_DCID
if DocumetUID<>"" and isnumeric(DocumetUID) then Orderby=Orderby&" and WS_DocumetUID="&DocumetUID
elseif action="del" then
if WS_DOID="" or isnull(WS_DOID) or (WS_DOID<>"" and not isnumeric(WS_DOID)) then HX_GoBack "非法操作",""
conn.execute("delete * from "&Tablename&" where WS_DOID="&WS_DOID&" and WS_DocumetUID="&loginuid)
response.redirect "documentshow.asp?WS_DCID="&WS_DCID
response.end
end if
Orderby=Orderby&" and WS_DocumetUID="&loginuid&" order by WS_DOID desc"
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='700' border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff background='../hximages/titlelinebg.gif'><table width='580' border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>查看文档</font> "&DocumentName&"</td></tr></table><table width='100%' border='0' cellspacing='1' cellpadding='3' bgcolor=f1f1f1><tr bgcolor='#A1BBE0' class='td4'><td height='20'><div align='center'>编号</div></td><td><div align='center'>文件名</div></td><td><div align='center'>撰写时间</div></td><td><div align='center'>撰写人</div></td><td><div align='center'>附件</div></td><td><div align='center'>操作</div></td></tr>"
set prs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if prs.recordcount<=0 then
response.write "<tr><td colspan=6 bgcolor=ffffff height=25 align=center>暂无数据!</td></tr>"
else
prs.PageSize =15 '每页记录条数
iCount=prs.RecordCount '记录总数
iPageSize=prs.PageSize
maxpage=prs.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
prs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
ii=0
do while not prs.EOF
response.write "<tr bgcolor=ffffff onmouseover=""javascript:this.bgColor='#F9F8F2'"" onmouseout=""javascript:this.bgColor='#ffffff'""><td width='11%'><div align='center'>"&prs("WS_DOID")&"</div></td><td width='28%'><a href='javascript:' onclick=""showModalDialog('documentshows.asp?WS_DOID="&prs("WS_DOID")&"', '', 'dialogWidth:26em; dialogHeight:32em; status=no;help:0');"">"&prs("WS_DocumentName")&"</a></td><td width='21%'>"&WS_S.Format_Time(prs("WS_DocumentInputDate"),5)&"</td><td width='16%'><div align='center'>"
if prs("WS_DocumetUID")>0 then
call WS_S.HX_OutUserInfo(prs("WS_DocumetUID"))
response.write "<a href='javascript:' onclick=""openwin(700,580,'../HXManpowerResource/userinfolook.asp?WS_Uid="&prs("WS_DocumetUID")&"')"">"&OutName&"</a>"
end if
response.write "</div></td><td width='15%'><div align='center'>"
if prs("WS_DocumetFile")<>"" then
if prs("WS_DocumetUID")=CINT(LOGINUID) and prs("WS_DocumetUID")>0 THEN
response.write "<a href='"&prs("WS_DocumetFile")&"' target='_blank'>下载</a>"
ELSE
select case prs("WS_DocumentExpose")
case 0 response.write "<a href='"&prs("WS_DocumetFile")&"' target='_blank'>下载</a>"
case 1
if ubound(split(prs("WS_DocumetLicManID"),"|"))>1 then
if instr(prs("WS_DocumetLicManID"),"|"& LOGINUID &"|")>0 THEN
response.write "<a href='"&prs("WS_DocumetFile")&"' target='_blank'>下载</a>"
ELSE
response.write "保密"
end if
elseif ubound(split(prs("WS_DocumetLicManID"),"|"))=1 then
IF CINT(REPLACE(prs("WS_DocumetLicManID"),"|",""))=LOGINUID THEN
response.write "<a href='"&prs("WS_DocumetFile")&"' target='_blank'>下载</a>"
ELSE
response.write "保密"
END IF
ELSE
response.write "保密"
end if
case 2
response.write "保密"
end select
END IF
ELSE
response.write "保密"
end if
response.write "</div></td><td width='9%'><div align='center'><a href='documentshow.asp?action=del&WS_DCID="&prs("WS_DCID")&"&WS_DOID="&prs("WS_DOID")&"'>删除</a></div></td></tr>"
ii=ii+1
if ii>=prs.PageSize then Exit Do
prs.movenext
loop
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",6)
end if
WS_S.HX_RSClose prs
response.write "</table></td></tr></table>"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -