?? reply.asp
字號:
<!--#include file="config.asp"-->
<!--#include file="check.asp"-->
<!--#include file="icode.asp"-->
<%
on error resume next
set rs = server.createobject("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,1
if date <> idate then
rs("today") = 0
end if
rs("date") = date
rs.update
rs.close
if request.cookies("iadmin") <> "admin" then
set rs = nothing
conn.close
set conn = nothing
response.redirect "manage.asp"
response.end
else
iaction = request.form("action")
if iaction = "reply" and request.cookies("iadmin") = "admin" then
icontent = iem2html(icode2html(inohtml(request.form("content")), true, true))
itopic = request.form("topic")
itime = now
if icontent = "" or itopic = "" or itime = "" then
ierror = "數據內容不得為空"
end if
if ierror = "" then
sql = "select * from reply"
rs.open sql,conn,3,2
rs.addnew
rs("content") = icontent
rs("topic") = itopic
rs("time") = itime
rs.update
rs.close
set rs = nothing
conn.close
set conn = nothing
response.redirect "index.asp"
response.end
end if
end if
end if
set rs = nothing
%>
<html>
<head>
<!--- The site is designed by Wind Song Studio --->
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="author" content="webmaster@i986.com">
<meta name="description" content="風雅頌工作室,Wind Song Studio.">
<meta name="keywords" content="風雅頌,工作室,設計,Studio,Wind,Song,Design">
<link href="style.css" rel="stylesheet" type="text/css">
<title><%=ititle%></title>
</head>
<body bgcolor="#EEEEEE" topmargin="0" leftmargin="0">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800">
<tr>
<td width="100" background="images/main/left.gif"> </td>
<td width="600" bgcolor="#FFFFFF">
<img border="0" src="images/main/top.jpg"></td>
<td width="100" background="images/main/right.gif"> </td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800" height="100%">
<tr>
<td width="100" background="images/main/left.gif"> </td>
<td width="600" bgcolor="#FFFFFF" valign="top">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="580">
<tr>
<td width="5%" align="center">
<img border="0" src="images/main/now.gif"></td>
<td width="35%">
<p style="margin-top: 2"><a href="<%=iurl%>"><%=ihomepage%></a><span style="font-size: 6pt">>></span>回復留言</td>
<td width="20%" align="center">
<a href="new.asp">
<img border="0" src="images/main/new.jpg"></a></td>
<td width="20%" align="center">
<a href="index.asp">
<img border="0" src="images/main/list.jpg"></a></td>
<td width="20%" align="center">
<a href="manage.asp">
<img border="0" src="images/main/manage.jpg"></a></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="590">
<tr><td>
<table border="0" cellpadding="2" cellspacing="1" style="border-collapse: collapse; border-style: solid; border-width: 1" bordercolor="#C1C1C1" width="100%" id="AutoNumber1">
<form name="ireply" method="post" action="reply.asp" target="_self">
<tr><input type="hidden" name="topic" value="<%=request("id")%>">
<td width="100%" colspan="2" bgcolor="<%=icolor1%>"><p align="center" style="margin-top: 2"><b><font color="#800000"><%=ierror%></font></b> </td>
</tr>
<tr>
<td width="20%" bgcolor="<%=icolor2%>" align="center">
<p align="center" style="margin-top: 2"><font color="#800000">回復內容</font></td>
<td width="80%" bgcolor="<%=icolor2%>">
<textarea rows="5" name="content" cols="100" style="width: 200; color: #C1C1C1"></textarea></td>
</tr>
<tr>
<td width="20%" bgcolor="<%=icolor3%>" align="center"> </td>
<td width="80%" bgcolor="<%=icolor3%>">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="30%" id="AutoNumber4">
<tr><input type="hidden" name="action" value="reply">
<td width="50%">
<a target="_self" href="javascript:document.ireply.submit()"><img border="0" src="images/main/ok.gif"></a></td>
<td width="50%">
<a target="_self" href="javascript:document.ireply.reset()"><img border="0" src="images/main/cancel.gif"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</form>
</table>
</center>
</div>
<%
response.write ibottom
%>
</td>
<td width="100" background="images/main/right.gif"> </td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
conn.close
set conn = nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -