<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<!-- #include file="inc/function.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p15")
'''''''''''''''''''''''''''''''''''''''''''''''
dim templet_file,TempCont,act,TempletContent,Template_head,Template_root,filetype
templet_file=request("file")
act=request.QueryString("act")
filetype=request.QueryString("filetype")
if(act="modok") then
	
	TempletContent=request.Form("content")&Chr(13)
	call SaveTextFile(templet_file,TempletContent)
	
	response.Write("文件"&templet_file&"修改成功!")
	response.Write("<a href=""#"" onClick=""javascript:history.go(-2)"">返回</a>")
	response.End()
end if
%>
<HTML>
<HEAD>
<TITLE>修改文件</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
body,td,input,textarea {font-size:9pt}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
</HEAD>
<BODY>
<%		
	TempCont=ReadFromTextFile(templet_file)		
%>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><iframe src="right_top.htm" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="30" width="100%"></iframe></td>
  </tr>
</table>
<FORM method="POST" name="form1" action="file_mod.asp?act=modok" style="margin:0 0 0 0; ">
  <TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
<TR bgcolor="#F5F5F5">
  <TD height="24" colspan="2"><div align="center">修改文件<%=templet_file%></div></TD>
  </TR>
<TR bgcolor="#F5F5F5">	
	<TD width="12%">文件内容：</TD>
	<TD width="88%">
		<!--<INPUT type="hidden" name="content1" value="">-->		
		<textarea rows="25" name="content" style="width:98%;"><%=replace(replace(TempCont,"<","&lt;"),">","&gt;")%></textarea>
	  	</TD>	  
</TR>
<TR bgcolor="#F5F5F5">
	<TD colspan=2 align=right>
	  <div align="center">	  
	  <input type="hidden" name="file" value="<%=templet_file%>">
	  <INPUT type=submit name=b1 value="提交"> 
	  <INPUT type=reset name=b2 value="重填"> 
	  <INPUT type=button name=b3 value="查看源文件" onClick="location.replace('view-source:'+location)">	
	    </div></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
<%
call connclose()
%>