www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/makeindex.asp
<%Admin="InfoMake"%> <!--#include file="check.asp"--> <!--#include file="top.asp"--> <% filename="../main.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"> <title>共享世纪新闻文章管理系统</title> <link rel="stylesheet" href="admin.css" type="text/css"> <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 topmargin="1" leftmargin="1"> <%if mskrindex="ok" then%> <table border="0" cellspacing="0" width="95%" cellpadding="0" align="center"> <tr> <td width="100%"><font color="#FF0000">·</font>成功:生成首页完成,时间<%=Now()%><br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td> </tr> </table> <%else%> <table border="0" cellspacing="1" width="95%" bgcolor="#555555" height="100%" align="center"> <form name="frmAnnounce" method="post" action="makeindex.asp"> <tr> <th width="100%" bgcolor="#99CCFF"> <b><font color="#FFFFFF">生成首页 生成文件</font>:<a class=xoYuStudioSort target="_blank" href="<%=filename%>"><font color="#FFFFFF"><%=filename%></font></a> ,<font color="#FFFFFF">模版文件</font>:<a class=xoYuStudioSort target="_blank" href="index_mb.asp"><font color="#FFFFFF">index_mb.asp</font></a></b></th> </tr> <tr> <td width="100%" bgcolor="#FFFFFF" height="100%"><textarea<%if xoYuStudioCheckAdminAll<>"ok" then%> disabled<%end if%> style="width:100%; height:95%;word-break:break-all;overflow:auto;" rows="17" name="body" cols="98"><!--#include file="index_mb.asp"--></textarea></td> </tr> <tr> <th width="100%" bgcolor="#99CCFF"> <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>