www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/down_makesortindex.asp

    <%Admin="DownMake"%>
<!--#include file="check.asp"-->
<%
filename="../d/downmap.html"
if request("body")<>"" then
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write request("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="../skin4/main.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" style="border-collapse: collapse" width="100%" cellpadding="0">
  <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="100%" class="tableBorder" height="100%">
<form name="frmAnnounce" method="post" action="down_makesortindex.asp">
  <tr>
    <th width="100%">
    <b><font color="#FFFFFF">生成分类列表&nbsp; 生成文件</font>:<a class=xoYuStudioSort target="_blank" href="<%=filename%>"><%=filename%></a> ,<font color="#FFFFFF">模版文件</font>:<a class=xoYuStudioSort target="_blank" href="down_mb_sort.asp">down_mb_sort.asp</a></b></td>
  </tr>
  <tr>
    <td width="100%" height="80%">
    <textarea rows="35" name="body" cols="128"><!--#include file="down_mb_sort.asp"--></textarea></td>
  </tr>
  <tr>
    <th width="100%">
    <p align="center">        
    <input name="change" value="生成分类列表(HTML页)" type='submit'> [<a href="javascript:openscriphtml()">HTML编辑器</a>]</td>
  </tr>
</form>
</table>
<%end if%>   
</body>    
</html>