www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/mb_edit.asp
<%Admin="InfoMb"%> <!--#include file="check.asp"--> <!--#include file="mdb_path_info.asp"--> <!--#include file="top.asp"--> <% set rs=server.CreateObject("ADODB.RecordSet") sql="select * from mb where id="&request("id")&"" rs.open sql,conn,1,1 if rs.eof and rs.bof then response.write "<b>错误:</b>此ID号的模板已被删除或不是你添加的!" response.end else MbName=rs("MbName") MbContent=rs("MbContent") mbtype1=rs("MbType") end if rs.close set rs=nothing conn.close set conn=nothing %> <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"> <table width="95%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> <form name="form" onSubmit="return checkForm()" method="post" action="mb_editsave.asp?id=<%=request("id")%>"> <tr> <th width="100%" colspan="2"> <b> <font color="#000000"> <%if mbtype1="1" then%> </font>分类 <% end if %> <%if mbtype1="2" then%> 文章 <% end if %> <%if mbtype1="3" then%> 专题 <% end if %> (HTML)页模板</b></th> </tr> <tr> <td width="100%" colspan="2" class="forumrow"> <img border="0" src="images/ICO.gif"> 模板类型: <%if mbtype1="1" then%> 分类模版 <% end if %> <%if mbtype1="2" then%> 文章模版 <% end if %> <%if mbtype1="3" then%> 专题模版 <% end if %> </td> </tr> <tr> <td width="100%" colspan="2" class="forumrow"> <img border="0" src="images/ICO.gif"> 模板名称: <input type="text" size=24 name="mbname" value=<%=mbname%>> </td> </tr> <tr> <td width="25%" valign="top" class="forumrow"> <%if mbtype1="1" then%> <img border="0" src="images/ICO.gif"> 网页标签:<br> 网页标题(<font color="#FF0000">[TITLE]</font>) <br> 分类位置(<font color="#FF0000">[xoYu_TYPE]</font>) <br> 终极分页列表(<font color="#FF0000">[xoYu_LB]</font>) <br> 两栏分类列表(<font color="#FF0000">[xoYu_LIST]</font>) <br> 单栏分类列表(<font color="#FF0000">[xoYu_DANHANG]</font>)<br> 文章搜索(<font color="#FF0000">[xoYu_SEARCH]</font>) <br> 本类图片(<font color="#FF0000">[xoYu_TYPEPIC]</font>) <br> 本类横向图片(<font color="#FF0000">[xoYu_IMAGE]</font>) <br> 本类纵向图片(<font color="#FF0000">[xoYu_PIC]</font>) <br> 本级分类名(<font color="#FF0000">[xoYu_NAME]</font>) <br> 本级分类列表(<font color="#FF0000">[xoYu_BJlist]</font>) <br> 本类TOP10(<font color="#FF0000">[xoYu_BJtop]</font>) <%elseif mbtype1="2" then%> <br> <img border="0" src="images/ICO.gif"> 网页标签:<br> 网页标题(<font color="#FF0000">[TITLE]</font>) <br> 分类位置(<font color="#FF0000">[xoYu_TYPE]</font>) <br> 本级分类名(<font color="#FF0000">[xoYu_NAME]</font>) <br> 同级分类表(<font color="#ff0000">[xoYu_BJlist]</font>) <br> 本类TOP(<font color="#FF0000">[xoYu_BJtop]</font>) <br> 相关文章(<font color="#FF0000">[xoYu_ALIST] </font> ) <br> 文章编号(<font color="#ff0000">[xoYu_ID]</font>)<br> 文章标题(<font color="#FF0000">[xoYu_TITLE]</font>) <br> 文章搜索(<font color="#FF0000">[xoYu_SEARCH]</font>) <br> 文章内容(<font color="#FF0000">[xoYu_content]</font>) <br> 作者(<font color="#FF0000">[xoYu_WRITER]</font>) <br> 来自(<font color="#FF0000">[xoYu_FORM]</font>) <br> 点击数(<font color="#FF0000">[xoYu_HITS]</font>)<br> 加入时间(<font color="#FF0000">[xoYu_DATE]</font>) <br> 文章页数(<font color="#FF0000">[xoYu_PAGE]</font>) <br> 文章评论(<font color="#FF0000">[xoYu_REPLY]</font>) <br> 评论内容(<font color="#FF0000">[xoYu_RCONTENT]</font>)<br> <%elseif mbtype1="3" then%> <img border="0" src="images/ICO.gif"> 网页标签:<br> 网页标题(<font color="#FF0000">[TITLE]</font>) <br> 分类位置(<font color="#FF0000">[xoYu_TYPE]</font>) <br> 终极分页列表(<font color="#FF0000">[xoYu_LB]</font>) <br> 两栏分类列表(<font color="#FF0000">[xoYu_LIST]</font>) <br> 单栏分类列表(<font color="#FF0000">[xoYu_DANHANG]</font>)<br> 文章搜索(<font color="#FF0000">[xoYu_SEARCH]</font>) <br> 本类图(<font color="#FF0000">[xoYu_TYPEPIC]</font>) <br> 本类横向(<font color="#FF0000">[xoYu_IMAGE]</font>) <br> 本类纵向图片(<font color="#FF0000">[xoYu_PIC]</font>) <br> 本级分类名(<font color="#FF0000">[xoYu_NAME]</font>) <br> 本级分类列表(<font color="#FF0000">[xoYu_BJlist]</font>) <br> <%end if%> </td> <td width="80%" class="forumrow"> <textarea style="width:100%; height:300;" rows="25" name="MbContent" cols="102"><%=mbcontent%></textarea></td> </tr> <tr> <th width="100%" colspan="2"> <p align="center"> <input type="submit" value=" 修 改 模 板 " name="cmdok" Class="unnamed5"> [<a title="html编辑器" href="javascript:openscriphtml()"><img border="0" src="images/htmleditor.gif"></a>]</th> </tr> </form> </table> </body> </html>