<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p05")
'''''''''''''''''''''''''''''''''''''''''''''''
dim EditFile,Result
EditFile = Server.MapPath("../js") & "\" & "imgs.js"
Result=request("result")
Dim FsoObj,FileObj,FileStreamObj
Set FsoObj = Server.CreateObject("Scripting.FileSystemObject")
Set FileObj = FsoObj.GetFile(EditFile)
if Result = "" then
	Set FileStreamObj = FileObj.OpenAsTextStream(1)
	if Not FileStreamObj.AtEndOfStream then
		FileContent = FileStreamObj.ReadAll
	else
		FileContent = ""
	end if
else
	Set FileStreamObj = FileObj.OpenAsTextStream(2)
	FileContent = Request.Form("ConstContent")
	FileStreamObj.Write FileContent
	if Err.Number <> 0 then
		%>
		<script language="JavaScript">
			alert('<% = "保存失败，请拷贝后，重新打开文件再保存" %>');window.location='config.asp';
		</script>
		<%
		
	else
		%>
		<script language="JavaScript">
			alert('修改成功');window.location='slide.asp';
		</script>
		<%
	end if
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>幻灯片管理</title>
</head>
<style type="text/css">
<!--
.SysParaButtonStyle {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: #999999;
	border-bottom-color: #999999;
	border-left-color: #FFFFFF;
	background-color: #E6E6E6;
}
body{ font-size:12px;}
td{ font-size:12px;}
-->
</style>
<link href="../../CSS/css.css" rel="stylesheet">
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" scroll=no>
<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>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form action="?result=ok" name="Form" method="post">
    <tr> 
      <td height="23" colspan="2" class="SysParaButtonStyle"> <div align="center"><strong>幻灯片管理</strong></div></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center">
          <textarea name="ConstContent" rows="10" style="width:98%;"><% = FileContent %></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="30"> <div align="center"> 
          <input type="submit" name="Submit" value=" 确 定 ">
          <input name="Result" type="hidden" id="Result" value="Modify">
        </div></td>
      <td height="30"> <div align="center"> 
          <input type="reset" name="Submit2" value=" 重 填 ">
        </div></td>
    </tr>
    <tr> 
      <td height="30" colspan="2"><div align="center"><font color="#FF0000">参数说明：adRotator.add(&quot;缩略图URL地址&quot;,&quot;文章标题&quot;,&quot;文章URL地址&quot;)</font></div></td>
    </tr>
    <tr>
      <td height="30" colspan="2">幻灯片的引用代码（将以下代码复制到你的相应模板中即可）
        <textarea name="textarea" rows="6" style="width:99%;">&lt;DIV align=center&gt;&lt;DIV id=AdRotator&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;SCRIPT src=&quot;$SiteUrl$/js/img.js&quot;&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT src=&quot;$SiteUrl$/js/imgs.js&quot;&gt;&lt;/SCRIPT&gt;</textarea></td>
    </tr>
  </form>
</table>
</body>
</html>
<%
Set FsoObj = Nothing
Set FileObj = Nothing
Set FileStreamObj = Nothing
call connclose()
%>