?? admin_logadd.asp
字號(hào):
<!--#include file="include/conn.asp"-->
<!--#include file="inc/error.asp"-->
<!--#include file="inc/FORMAT.asp"-->
<!--#include file="inc/UBBshow.asp"-->
<!--#include file="inc/UBB_news.asp"-->
<%if request.Form("action")="newart" then
sql="select * from log"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
dim zhu,cid,title,content
title=trim(replace(request.form("art_title"),"'",""))
content=replace(request.form("art_content"),"'","")
rs.addnew
if title="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必須輸入故事的標(biāo)題!"
else
rs("l_title")=title
end if
if content="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必須輸入故事內(nèi)容!"
else
rs("l_content")=content
end if
if not founderr then
rs("u_id")=session("u_id")
rs.update
rs.close
set rs=nothing
response.write"<script>alert(""添加成功,確認(rèn)!"");location.href=""admin_logadd.asp"";</script>"
else
call diserror()
response.end
end if
%>
<%else%>
<BR><BR><BR><BR>
<table width="75%" border="0" align="center" cellpadding="4" cellspacing="1" bordercolor="#C0C0C0" bgcolor="#000000" style="border-collapse: collapse">
<form name="form1" method="post" action="admin_logadd.asp">
<tr>
<td align="center" bgcolor="#E8E8E8"><a name="newnews" style="font-size: 9pt">添加故事</a></font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="chinese"><span style="font-size: 9pt">標(biāo)題</span>-
<input type="text" name="art_title" class="textarea" size="50"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="chinese"><%call ubbshow()%> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="chinese">
<textarea name="art_content" cols="84" rows="12" class="textarea" wrap="OFF"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#F5F5F5" class="chinese" height="30" align="center">
<input type="submit" name="Submit2" value="確定新增" class="button">
<input type="reset" name="Reset" value="清空重填" class="button">
</td>
</tr>
<input type="hidden" name="action" value="newart">
</form>
</table>
<%end if%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -