📄 add.asp
字号:
<%@ codepage ="936" %><%if instr(session("flag"),"54")=0 thenresponse.redirect "../login.asp"response.endend if%><!--#include file="../../conn/dbconn2.asp" --><!--#include file="../config.asp"--><HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=gb2312"><LINK rel="stylesheet" type="text/css" href="../style.css"></HEAD><BODY bgcolor="#FFFFFF" marginheight=0 marginwidth=0 leftmargin=0><script LANGUAGE="JavaScript">function check(){if (document.Form1.title.value==""){alert("请输入标题!")document.Form1.title.focus()document.Form1.title.select()return}if (document.Form1.content.value==""){alert("请输入内容!")document.Form1.content.focus()document.Form1.content.select() return}document.Form1.submit()}</SCRIPT><FORM method="POST" action="savenews.asp" name="Form1"><CENTER><TABLE border="0" cellspacing="0" width="600" cellpadding="0" height="258"><TR><TD width="100%" align="center" height="19"><b><font color="#ff6600" class="f12">商务服务数据录入</font></b></TD></TD><BR><BR><TR ALIGN="center"><TD width="100%" height="239"><TABLE border="1" cellspacing="1" width="92%" bordercolorlight="#CEE7FF" bordercolordark="#CEE7FF" style="border-collapse: collapse" bordercolor="#111111" height="267"><TR> <TD width="15%" align="right" bgcolor="#F4FBFF" height="26">标题:</TD><TD width="85%" height="26" bgcolor="#F4FBFF"><INPUT name="title" class="smallinput" size=56></TD></TR><TR> <TD width="15%" align="right" valign="middle" bgcolor="#F4FBFF" height="16">分类:</td><TD width="85%" bgcolor="#F4FBFF" height="16"> <select name="typeid" size="1"><%dim rs,sql,selset rs=server.createobject("adodb.recordset")sql="select * from commercetype"rs.open sql,conn,1,1do while not rs.eof or rs.bofsel="selected" response.write "<option " & sel & " value='"+CStr(rs("typeid"))+"' name=typeid>"+rs("type")+"</option>"+chr(13)+chr(10)rs.movenextlooprs.close%> </select></TD></TR><TR> <TD width="15%" align="right" rowspan="2" bgcolor="#F4FBFF" height="126">内容:</TD><TD width="85%" bgcolor="#F4FBFF" height="110"> <textarea rows="9" name="content" cols="60" class="smallarea"></textarea></TD></TR><tr><TD width="85%" bgcolor="#F4FBFF" height="12"> <font color="#CC0033">支持贴图功能,格式:</font><font color="#0000FF">[sayyes]图片的完整路径或相对路径[/sayyes]</font></TD></tr><tr><TD width="15%" align="right" height="26" bgcolor="#F4FBFF">文件名:</TD><TD width="85%" bgcolor="#F4FBFF" height="26"><INPUT NAME="FileName" SIZE=30 maxlength=100 class="smallinput"></TD></tr><tr><TD width="15%" align="right" height="9" bgcolor="#F4FBFF">文件路经:</TD><TD width="85%" bgcolor="#F4FBFF" height="9"><INPUT NAME="Path" SIZE=30 maxlength=100 class="smallinput" value="http://"></TD></tr><tr><TD width="100%" align="right" height="40" bgcolor="#F4FBFF" colspan="2"><P align="center"><br><input type="button" value="添 加" onclick=check() class="smallinput"> <input type="button" value="返 回" class="smallinput" onclick=history.go(-1) ></TD></tr></TABLE></TD></TR></TABLE></form></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -