?? addgq.asp
字號:
<!--#include file="jm.asp" -->
<!--#include file="top.asp" -->
<!--#include file="inc/chr.asp" -->
<%
m=changechr(request("m"))
dim strtype
Select case m
Case "本站動態"
strtype=1
Case "市場動態"
strtype=4
End Select
if changechr(request("action"))="add" then
set rs=server.createobject("adodb.recordset")
sqltext="select * from qynews"
rs.open sqltext,conn,3,3
rs.addnew
rs("stype")=replace(trim(request.form("stype")),"'","")
rs("tit")=replace(replace(replace(replace(trim(request.form("tit")),";",";"),chr(34),"""),">",">"),"<","<")
rs("content")=request.form("content")
rs("from")=replace(trim(request.form("from")),"'","")
rs("hits")= 1
rs("userid")=Session("userid")
rs.update
rs.close
conn.close
set rs=nothing
set conn=nothing
Response.write("<script>alert(""添加成功!"");location.href=""addgq.asp?m="&request("m")&""";</script>")
Response.end
end if%>
<script language=javascript>
// 當上傳圖片等文件時,往下拉框中填入圖片路徑,可根據實際需要更改此函數
function doChange(objText, objDrop){
if (!objDrop) return;
var str = objText.value;
var arr = str.split("|");
var nIndex = objDrop.selectedIndex;
objDrop.length=1;
for (var i=0; i<arr.length; i++){
objDrop.options[objDrop.length] = new Option(arr[i], arr[i]);
}
objDrop.selectedIndex = nIndex;
}
<!--
function CContext()
{}
var g_cContext = new CContext();
g_cContext.StaticContentServer = '';
function saveIt()
{
if (document.pub_topic.tit.value=="")
{
alert('文章標題不能為空!');
document.pub_topic.tit.focus();
return false;
}
}
//-->
</script>
<TITLE><%=title%>—發布空車信息</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="imgb/style.css" type=text/css
rel=stylesheet>
<TABLE cellSpacing=0 cellPadding=0 width=770 align=center border=0>
<TBODY>
<TR><TD vAlign=top width=176 bgColor=#99ccff>
<!--#include file="left.asp" --></TD>
<TD bgColor=#ffffff valign="top">
<TABLE
style="BACKGROUND-POSITION: right top; BACKGROUND-IMAGE: url(img/hwxx_bg1.jpg); BACKGROUND-REPEAT: no-repeat"
cellSpacing=0 cellPadding=0 width=582 border=0>
<TBODY>
<TR>
<TD><img border="0" src="hw.asp12.gif" width="595" height="23"></TD></TR>
<TR>
<TD><SPAN class=style7>您現在的位置 》</SPAN><strong>添加<%=m%> </strong></TD></TR>
<TR>
<TD></TD></TR>
<TR>
<TD height=6></TD></TR>
<TR>
<TD height=6></TD></TR>
<TR>
<TD height=6>
<table width="589" border="0" id="table9">
<tr>
<td>
<table class=tableBorder width="95%" border=0 align="center" cellpadding=5 cellspacing=1>
<tbody>
<tr>
<th height=21 sytle="line-height:150%"> </th>
<th height=21 sytle="line-height:150%">【<%=m%>】</th>
</tr><FORM name="pub_topic" action=?action=add method=post>
<input type=hidden name=d_savepathfilename onchange="doChange(this,document.pub_topic.firstImageName)">
<tr>
<td width="14%" class=forumRow align="right">
標題:</td>
<td width="82%" class=forumRowHighlight>
<INPUT class="button1" name=tit size="30"></td>
</tr>
<tr>
<td width="14%" class=forumRow align="right">
來源:</td>
<td width="82%" class=forumRowHighlight>
<INPUT class="button1" name=from size="30"></td>
</tr>
<tr>
<td width="14%" class=forumRow align="right" valign="top">
內容:</td>
<td width="82%" class=forumRowHighlight>
<INPUT type="hidden" name="stype" value="<%=strtype%>">
<INPUT type="hidden" name="m" value="<%=m%>">
<textarea rows="23" name="content" cols="62"></textarea></td>
</tr>
<tr>
<td class=forumRow align="right">
</td>
<td class=forumRowHighlight align="center">
<p align="left">
<input type="submit" name="Submit1" class="button" value=" 確 定 提 交 " onclick="return saveIt();"></td>
</tr>
</FORM>
</tbody>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
</TD></TR>
<TR>
<TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
<!--#include file="end.asp" -->
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -