
<!--#include file="../include/skin.asp"-->
<%
tit="模板代码演示"
call DoWebHead(0,2)
%>
<table border=0>
<tr><td><font size=4><b>模板代码演示</b></font></td></tr>
</table>
<hr class=tableborder1>
<script language="vbscript" type="text/vbscript">
dim views
views=opener.txtRun.value
views=replace(views,"{$web_dir}","<%=cls.web_dir%>")
views=replace(views,"{$skin_dir}")
document.write(views)
</script>
<hr class=tableborder1>
<table border=0 cellspacing=1 cellpadding=3 width='100%' class=tableborder2>
<tr align=center><th height=22 class=td>模板编辑窗口</th></tr>
<tr align=center><td width='98%' class=tablebody1>
<form name=vieweditTXT>
<textarea id=edittxt rows=20 cols=120 style='width:98%;overflow-y:visible; border:0px; overflow:visible; border-width:1px;border-style: dotted;color: #000000;' ></textarea>
</td></tr>
<tr>
<td height=22 align=center class=tablebody2>
<input type=button class=btn name=editbutton value='保 存 修 改' onclick='selfedit()'>
<input type=button class=btn name=close value='关  闭' onclick='window.close()'>
<!-- <button onclick="edittxt.readOnly=true">ReadOnly</button> -->
</td>
</tr>
</form>
</table>
<script>
document.vieweditTXT.edittxt.value=self.opener.txtRun.value
function selfedit(){
var n=opener.txtRun
self.opener.txtRun.value=vieweditTXT.edittxt.value;
//alert(""); 
self.close();
//return false;
}
</script>
<%
Call DoWebEnd()
%>
