⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guestbookmanagereturn.asp

📁 这个也是一个功能强大的企业整站的ASP源代码
💻 ASP
字号:
<!--#include file="CheckAdminLogined.asp"-->
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<%   
   if request("cur_action")="editsave" then
      sql_editsave="update tGuestBook set AnswerFace='"&request("R_AnswerFace")&"',Answer='"&request("T_Answer")&"',AnswerTime='"&now()&"' where ID="&request("EditID")
	  conn.execute sql_editsave
	  response.write "<script>location.replace('GuestBookManage.asp?PageNo="&request("pageno")&"');</script>"
	  response.end
   end if
   
   set rs=server.createobject("adodb.recordset")
   sql="select * from tGuestBook where ID="&request("EditID")
   rs.open sql,conn,1,1
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/AdminCss.css" rel="stylesheet" type="text/css">
<script src="../include/Jchar.js"></script>
<script language="JavaScript">
function check_data(){
  if(Jtrim(document.form1.T_Answer.value)==""){
    alert('必填项有能为空,请填写!')
	document.form1.T_Answer.focus()
	return(false)
  }
}
</script>
</head>

<body leftmargin="0" topmargin="0">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8" colspan="2"></td>
  </tr>
  <tr> 
    <td width="76" height="20" rowspan="2"><img src="Images/TopBt.gif" width="67" height="36"></td>
    <td width="926" height="10"></td>
  </tr>
  <tr>
    <td>我的位置:后台管理系统._综合功能管理._留言薄管理._管理员回复</td>
  </tr>
  <tr> 
    <td height="4" colspan="2"></td>
  </tr>
  <tr> 
    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="E7E7E7">
        <tr> 
          <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="159" height="20" align="center" background="images/title1.gif" class="fontwintitle"><strong>管理员回复
                  </strong> </td>
                <td align="right" background="images/title2.gif">&nbsp;</td>
                <td width="10"><img src="images/title3.gif" width="10" height="20"></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top"> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="6" background="images/midder1.gif"><img src="images/midder1.gif" width="6" height="3"></td>
                <td height="100%" align="center" valign="top"><br>
                  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <form name="form1" method="post" action="?cur_action=editsave&EditID=<%=request("EditID")%>&pageno=<%=request("pageno")%>" onSubmit="return check_data()">
                      <tr> 
                        <td height="19" align="center">::: 留言者信息 :::</td>
                      </tr>
                      <tr> 
                        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                            <tr bgcolor="#FFFFFF"> 
                              <td width="17%" height="22" align="center">ID 号</td>
                              <td width="83%">&nbsp;<%=rs("ID")%></td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td height="22" align="center">姓 名</td>
                              <td>&nbsp;<%=rs("TrueName")%></td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td height="22" align="center">个人主页</td>
                              <td>&nbsp;<%=rs("Url")%></td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td height="22" align="center">E-mail</td>
                              <td>&nbsp;<%=rs("Email")%></td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td height="22" align="center">留言时间</td>
                              <td>&nbsp;<%=rs("AddTime")%></td>
                            </tr>
                            <tr bgcolor="#FFFFFF"> 
                              <td height="22" align="center">留言內容</td>
                              <td><%=chtml(rs("Content"))%></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1">
                            <tr bgcolor="#FFFFFF"> 
                              <td colspan="12">+ 选择表情</td>
                            </tr>
                            <tr align="center" bgcolor="#FFFFFF"> 
                              <td height="22"><input name="R_AnswerFace" type="radio" value="1" checked> 
                              </td>
                              <td height="22"><img src="../Service/Face/1.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="2"></td>
                              <td height="22"><img src="../Service/Face/2.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="3"></td>
                              <td height="22"><img src="../Service/Face/3.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="4"></td>
                              <td height="22"><img src="../Service/Face/4.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="5"></td>
                              <td height="22"><img src="../Service/Face/5.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="6"></td>
                              <td height="22"><img src="../Service/Face/6.GIF" width="16" height="16"></td>
                            </tr>
                            <tr align="center" bgcolor="#FFFFFF"> 
                              <td height="22"><input type="radio" name="R_AnswerFace" value="7"></td>
                              <td height="22"><img src="../Service/Face/7.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="8"></td>
                              <td height="22"><img src="../Service/Face/8.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="9"></td>
                              <td height="22"><img src="../Service/Face/9.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="10"></td>
                              <td height="22"><img src="../Service/Face/10.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="11"></td>
                              <td height="22"><img src="../Service/Face/11.GIF" width="16" height="16"></td>
                              <td height="22"><input type="radio" name="R_AnswerFace" value="12"></td>
                              <td height="22"><img src="../Service/Face/12.GIF" width="16" height="16"></td>
                            </tr>
                          </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr align="center"> 
                              <td height="102" bgcolor="#FFFFFF"><textarea name="T_Answer" cols="60" rows="6" class="box" id="T_Answer"><%=rs("Answer")%></textarea></td>
                            </tr>
                            <tr align="center"> 
                              <td height="10" bgcolor="#FFFFFF"></td>
                            </tr>
                            <tr align="center"> 
                              <td height="32" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="box" value="正确提交"> 
                                <input name="Submit2" type="reset" class="box" value="重新填写"> 
                                <input name="Submit3" type="button" class="box" value="返回" onclick="javascript:history.back();"></td>
                            </tr>
                            <tr align="center"> 
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                      </tr>
                    </form>
                  </table>
                  <br>
                </td>
                <td width="2" background="images/midder2.gif"><img src="images/midder2.gif" width="2" height="3"></td>
              </tr>
              <tr> 
                <td valign="top"><img src="images/bottom1.gif" width="6" height="14"></td>
                <td height="14" valign="top" background="images/bottom2.gif"><img src="images/bottom2.gif" width="2" height="14"></td>
                <td valign="top"><img src="images/bottom3.gif" width="2" height="14"></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -