📄 admin_oa_modi.asp
字号:
<!--#include file="../inc/conn.asp"-->
<link href="../inc/setup.css" rel="stylesheet" type="text/css">
<link href="../inc/textbox.css" rel="stylesheet" type="text/css">
<table cellpadding="6" cellspacing="1" border="0" width="100%" align=center>
<tr bgcolor=ffffff>
<th width="100%" height=12 align="center" bgcolor="ffffff">公文修改</th>
</tr>
</table>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公文修改</title>
</head>
<body>
<%
dim id,j
ID=ReplaceBadChar(trim(request("oa_id")))
dim rs,sql,path,path1,path0
set rs=Server.CreateObject("ADODB.RECORDSET")
sql="Select oa_id,oa_title,oa_content,oa_author,uploadfiles,filename,filecount,filesize,fileext,oa_updatetime,oa_fruit from [oa_data] where oa_id="&id
rs.open sql,conn,1,3
if rs.bof and rs.eof then
response.write( "<li>找不到该文件! </li>")
else
%>
<table width="776" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><%=rs("oa_id")%></td>
</tr>
</table><table width="776" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form action="admin_oa_delfile.asp" method="post" name="form1">
<% dim filename0,oa_file
if instr(rs("uploadfiles"),"|")=1 then
filename0=right(rs("uploadfiles"),len(rs("uploadfiles"))-1)
filename=split(filename0,"|")
for i=0 to ubound(filename)%>
<table width="776" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="145"> <a href="oa_file.asp?id=<%=rs("oa_id")%>-<%=i+1%>" )>公文附件<%=i+1%>
</a> </td>
<td width="622"> <input name='filename' type='checkbox' id="filename" value='<%=filename(i)%>'>
<%=filename(i)%> </td>
</tr>
</table>
<%
next
else
response.write("此公文无附件!" )
end if
%><table width="776" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="submit" name="Submit" value="删除选中的公文附件" >
<input name="id" type="hidden" id="id" value="<%=rs("oa_id")%>"></td>
</tr>
</table>
</form></td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
call closeconn
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -