www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/makespecialindex.asp
<%@ LANGUAGE = VBScript %> <%Admin="InfoMake"%> <!--#include file="check.asp"--> <% filename="../Special/index.html" if request("body")<>"" then body=request("body") Set fso = Server.CreateObject("Scripting.FileSystemObject") Set fout = fso.CreateTextFile(server.mappath(""&filename&"")) fout.Write body fout.close set fout=nothing set fso=nothing mskrindex="ok" end if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta copy="WWW.2KY.CN 共享世纪"> <title>共享世纪新闻文章管理系统</title> <link rel="stylesheet" href="admin.css" type="text/css"> <!--#include file="top.asp"--> <SCRIPT LANGUAGE="JavaScript"> helpstat = false; stprompt = true; basic = false; function thelp(swtch){ if (swtch == 1){ basic = false; stprompt = false; helpstat = true; } else if (swtch == 0) { helpstat = false; stprompt = false; basic = true; } else if (swtch == 2) { helpstat = false; basic = false; stprompt = true; } } function AddText(NewCode) { document.frmAnnounce.body.value+=NewCode } function openscriphtml() { if (navigator.appName!="Microsoft Internet Explorer") alert("此功能 Netscape 用户不能使用!") else {newwin=window.open('html_editor.htm','','width=544,height=294'); newwin.focus(); } } function runEx(){ //alert('请注意,按下确定将生成页面,按下后请稍后....'); var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace"); winEx.document.write(unescape(event.srcElement.parentElement.children[2].value)); winEx.document.close(); } </SCRIPT> <script language="Javascript"> <!-- hide function insertsmilie(smilieface){ document.frmAnnounce.body.value+=smilieface; } // --> </script> </head> <body> <%if mskrindex="ok" then%> <table width="95%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> <tr> <td width="100%" class="forumrow"><font color="#FF0000">·</font>成功:生成专题首页完成,时间<%=Now()%><br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td> </tr> </table> <%else%> <table width="95%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder" height="100%"> <form name="frmAnnounce" method="post" action="makespecialindex.asp"> <tr> <th width="100%"> <b><font color="#FFFFFF">生成专题首页 生成文件</font>:<a class=xoYuStudioSort target="_blank" href="<%=filename%>"><%=filename%></a> ,<font color="#FFFFFF">模版文件</font>:<a class=xoYuStudioSort target="_blank" href="Special_mb_index.asp">Special_mb_index.asp</a></b></th> </tr> <tr> <td width="100%" class="forumrow" height="100%"><textarea style="width:100%; height:100%;" rows="19" name="body" cols="102"><!--#include file="Special_mb_index.asp"--></textarea></td> </tr> <tr> <th width="100%"> <p align="center"> <input name="change" class=buttonface value="生成专题首页(HTML页)" type='submit'> [<a title="html编辑器" href="javascript:openscriphtml()"><img border="0" src="images/htmleditor.gif"></a>]</th> </tr> </form> </table> <%end if%> </body> </html>