<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<style type="text/css">
<!--
.STYLE2 {color: #000000}
-->
</style>
<body>
<script Language="JavaScript">function form_check(){
   
	if(document.form3.file1.value.length<1){window.alert("请选择文件");document.form3.file1.focus();return (false);}
	 
	      }    
</script>
<%
		
 
		fid=request("fid")
		curpage=Request.QueryString("curpage") 
		Set RsImggonggao=Server.CreateObject("Adodb.Recordset")
		sqlgonggao="Select * from zuoyebuzhi where  ID='"&fid& "'"
		RsImggonggao.open sqlgonggao,conn,1,1
		 
	%>

<FORM ACTION="savefujian.asp?curpage=<%=curpage%>" METHOD="post" enctype="multipart/form-data" NAME="form3"  onSubmit="return form_check();">
			<div align="center">
			<p class="STYLE1">&nbsp;</p>
			<table width="90%" border="0" cellspacing="0" bordercolor="#CCCC66">
			
			<tr>
			<td height="48" class="STYLE1"><div align="right">文档标题： </div></td>
			<td class="STYLETITLE"><%=RsImggonggao("标题")%> </td>
			</tr>
			<tr>
			<td width="145" class="STYLE1">
			<div align="right">
			<input type="hidden" name="curpage" value='<%=curpage%>'>
			选择附件：</div></td>
			<td width="959" class="STYLE1"><input name="file1" type="file" class="text" size=50   >
			&nbsp;&nbsp;&nbsp; <input name="submit" type="submit" class="topanniu" value="添加附件"></td>
			</tr>
			<tr>
			<td colspan="2">&nbsp;</td>
			</tr>
			</table>
			<input type="hidden" name="fid" value=<%=fid%>>
			</div>
			<br>
			<table width="90%" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
			
			<% 
			Set RsImg = Conn.Execute("select * from  zuoyebuzhiFile where fid='"&fid& "'")
			While NOT RsImg.EOF %>
			<tr> 
			<td width="147" height="33" class="STYLE1"><div align="right">已上传的附件：</div></td>
			<td width="729" class="STYLE1"><div align="center"><a href="newFile.asp?id=<%=RsImg("id")%>"  target="_blank"><%=RsImg("filename")%></a>&nbsp;</div></td>
			<td width="206" class="STYLE1"><div align="center"><a href="delfujian.asp?curpage=<%=curpage%>&fid=<%=fid%>&id=<%=RsImg("id")%>"  target="_self" class="STYLE1">删除</a></div></td>
			</tr>
			
			<% RsImg.MoveNext 
			Wend
			RsImg.Close
			%>
			</table>
			<br>
			<div align="center">
			<input name="button" type="button" class="topanniu" onClick="location='ZuoYeList.asp?fid=<%=fid%>&curpage=<%=curpage%>';"  value="返回" />
			</div>
</FORM>
 
</body>
</html>
