www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/DownAnnounceAdd.asp
<%Admin="UserSee"%> <!--#include file="check.asp"--> <!--#include file="mdb_path_down.asp"--> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>添 加 站 内 公 告</title> <style> td{font-size:9pt;line-height:140%} </style> </head> <% dim rs dim sql dim count set rs=server.createobject("adodb.recordset") sql = "select * from news " rs.open sql,conn,1,1 %> <SCRIPT language = "JavaScript"> var onecount; onecount=0; subcat = new Array(); <% count = 0 do while not rs.eof %> <% count = count + 1 rs.movenext loop rs.close %> onecount=<%=count%>; function changelocation(locationid) { document.myform.newsid.length = 0; var locationid=locationid; var i; for (i=0;i < onecount; i++) { if (subcat[i][1] == locationid) { document.myform.newsid.options[document.myform.newssid.length] = new Option(subcat[i][0], subcat[i][2]); } } } </SCRIPT> <SCRIPT language="javascript"> <!-- function CheckForm() { document.myform.txtcontent.value=document.myform.doc_html.value; return true } //--> </SCRIPT> <bod> <form method="POST" name="myform" action="DownAnnouncesave.asp?action=add"> <TABLE width="80%" border="0" align="center" cellspacing="1" class="tableBorder"> <TR align="center"> <Th colspan="4" height="25"><b><FONT color="#FFFFFF">添 加 站 内 公 告</FONT></b> </TD> </TR> <tr> <td width="15%" class="forumrow" align="right" valign="top" nowrap><b>公告信息:</b></td> <td width="85%" class="forumrow" colspan="3"> <input type="text" size="30" name="newsname" value="" /> <br /> <textarea rows="6" name="newsnote" cols="60" class="smallarea"></textarea> <br /> <input type="radio" name="display" value="1" id="index" checked> <label for="index">首页</label> <input type="radio" name="display" value="2" id="down"> <label for="down">下载</label> <input type="radio" name="display" value="3" id="sucai"> <label for="sucai">素材</label></td> </tr> <TR align="center"> <Th colspan="4" height="25"><input type="submit" value=" 添 加 " name="cmdok" class="buttonface"> <input type="reset" value=" 清 除 " name="cmdcancel" class="buttonface"> </TR> </TABLE> </form> </body></html>