<!-- #include file="../include/conn.asp"--> <% function makename(name) name=replace(name,":","") name=replace(name,"-","") name=replace(name," ","") makename=name end function session("filenum")=makename(now)&request.QueryString("DBase") %> <html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>西宁青旅信息管理系统--添加文章</title> <script language="javascript"> <!-- function CheckSubmit(theForm) {
if (theForm.txttitle.value == "") { alert("请输入新闻标题!"); theForm.txttitle.focus(); return (false); } // if (theForm.doc_html.value == "") // { // alert("请输入新闻内容!"); // return (false); // } if (theForm.doc_html.value !== "") { // return (true); document.form1.content.value=document.form1.doc_html.value } } //--> </script> <link rel="stylesheet" href="css/bb.css" type="text/css"> </head>
<body bgcolor="336699" text="#FFFFFF"> <form method="POST" action="admin_newssave.asp"onsubmit="return CheckSubmit(this)" name="form1"> <div align="center"><center> <table border="0" cellspacing="1" width="607" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" bgcolor="#7C96B8"> <tr bgcolor="#6699CC"> <td width="100%" height="20"> <p align="center"><font color="#FFFFFF" class="t">:: <%=request.QueryString("DBase")%>内容添加</font> </td> </tr> <tr align="center"> <td width="100%" height="377" bgcolor="336699"> <table border="1" cellspacing="0" width="634" cellpadding="0" bgcolor="#6699CC" bordercolor="#000000" height="377"> <tr bgcolor="#6699CC"> <td width="21%" align="right" height="30" class="unnamed2" valign="middle" bgcolor="#6699CC"><font color="#FFFFFF">文章标题:</font></td> <td width="79%" height="30" bgcolor="#6699CC"> <font color="#FFFFFF"><span style='cursor:hand' title='缩短对话框' onClick='if (me.size>10)me.size=me.size-2'>-</span> <input name="txttitle" id=me type="TEXT" size=30 maxlength=100 style="background-color:ffffff;color:000000;border: 1 double"> <span style='cursor:hand' title='加长对话框' onClick='if (me.size<102)me.size=me.size+2'>+</span> </font></td> </tr> <tr> <td width="21%" align="right" valign="middle" class="unnamed2" bgcolor="#6699CC"><font color="#FFFFFF">上传时间:</font></td> <td width="79%" bgcolor="#6699CC"> <font color="#FFFFFF"> <input type="text" name="uptime" size="15" value="<%=FormatDateTime(now(),1)%>"> </font></td> </tr> <tr> <td width="21%" align="right" valign="top" class="unnamed2" bgcolor="#6699CC"><font color="#FFFFFF">上传图片:</font></td> <td width="79%" bgcolor="#6699CC" valign="middle"><iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src="photo.asp"></iframe> </td> </tr> <tr> <td width="21%" height="309" align="right" valign="top" bgcolor="#6699CC" class="unnamed2"> <p align="left"> </p> <p align="left"><font color="#FFFFFF">文章内容:</font></p> <p><font color="#FFFFFF">本编辑器支持</font></p> <p><font color="#FFFFFF">ubb,如果您不</font></p> <p><font color="#FFFFFF">熟悉ubb</font><font color="#FFFFFF">语法请</font></p> <p><font color="#FFFFFF">看</font><font color="#FFFFFF"><a href="help.asp">帮助</a>→</font></p> </td> <td width="79%" valign="top" bgcolor="#6699CC"><font color="#FFFFFF"> <object data=editor.htm type=text/x-scriptlet width=100% height=290 id=doc_html style="LEFT: 0px; TOP: 0px" VIEWASTEXT> <embed src="editor.htm" width="100%" height="290"></embed> </object> <input type="hidden" name="content" > <input type="hidden" name="DBase" value="<%=request.QueryString("DBase")%>"> <input type="hidden" name="leixing" value="<%=request.QueryString("leixing")%>"> </font></td> </tr> </table> </td> </tr> </table> </center></div><div align="center"><center><p> <input type="submit" value=" 添 加 " name="cmdok" class="unnamed5"> <input type="reset" value=" 清 除 " name="cmdcancel" class="unnamed5"> </p> </center></div> </form> </body> </html> 这是后面信息管理 表单添加代码