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

📄 editgsbook.asp

📁 有很多功能的留言版,很容易上手,有自动添加图片、表情。管理员功能也强大
💻 ASP
字号:
<!--#include file="inc/conn.asp" -->
<!--#include file="inc/CallErr.asp" -->
<!--#include file="class/command.asp" -->
<!--#include file="class/savegsbook.asp" -->
<!--#include file="class/showpage.asp" -->
<!--#include file="inc/IsValidEmail.asp" -->
<%
Response.Expires = -1
Server.ScriptTimeout = 300
dim ClassSystem,ClassCheck,ClassSave,ClassPage
Set ClassSystem = New System
Set ClassCheck = New CheckUser
Set ClassSave = New Savegsbook
Set ClassPage = New ShowPage
ClassSystem.CheckLockIp()
ClassSystem.GetWebSys()
ClassCheck.GetUserInfo()
ClassCheck.GetUserCss Request.Querystring("GetStyle")
ClassPage.CheckGsbookId Request.QueryString("Id")
ClassPage.ShowGsbookInfo ClassPage.Id
ClassCheck.SetEditPower()
ClassCheck.GetEditPower ClassCheck.loginok,ClassPage.ArrRs(12,0),ClassPage.ArrRs(11,0),ClassCheck.UserEdit,ClassCheck.UserEditId,ClassPage.Id,ClassSystem.ArrRs(12,0),1
ClassSave.GetEditContent ClassPage.ArrRs(8,0),ClassPage.ArrRs(16,0)
ClassSave.SetRequest_Method Request.ServerVariables("Request_Method")
Select Case ClassSave.Request_Method
	Case "POST"
		ClassSave.GetGsbookInfo Request.Form("Author"),Request.Form("Open"),Request.Form("Sex"),Request.Form("Email"),Request.Form("WebSize"),Request.Form("Face"),Request.Form("Title"),Request.Form("Content"),Request.Form("EditPass"),Request.Form("EmailCall"),1,0,Request.ServerVariables("REMOTE_ADDR"),Request.Form("TextChange")
		ClassSave.CheckGsbookInfo ClassSystem.ArrRs(5,0),ClassSave.Author,ClassSave.Open,ClassSave.Sex,ClassSave.Email,ClassSave.WebSize,ClassSave.Face,ClassSave.Title,ClassSave.Content,ClassSave.EditPass,ClassSave.EmailCall,ClassSave.Topic,ClassSave.GsBookId,ClassSystem.ArrRs(10,0),ClassSave.TextChange,ClassSystem.ArrRs(15,0)
		ClassSave.GetContentChange ClassSave.Content,ClassSave.TextChange
		ClassSave.SaveEdit ClassCheck.loginok,ClassPage.ArrRs(9,0),ClassSave.Author,ClassSave.Open,ClassSave.Sex,ClassSave.Email,ClassSave.WebSize,ClassSave.Face,ClassSave.Title,ClassSave.Content,ClassSave.EditPass,ClassSave.EmailCall,ClassPage.Id,ClassPage.ArrRs(0,0),ClassPage.ArrRs(2,0),ClassPage.ArrRs(3,0),ClassPage.ArrRs(4,0),ClassPage.ArrRs(5,0),ClassPage.ArrRs(6,0),ClassPage.ArrRs(7,0),ClassPage.ArrRs(8,0),ClassPage.ArrRs(12,0),ClassPage.ArrRs(13,0),ClassSave.TextChange,ClassPage.ArrRs(16,0)
		ClassCheck.CallOk 2
End Select
ClassSystem.Closedb()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="script/GetStyle.js"></script>
<title><%=ClassSystem.ArrRs(0,0)%> - <%=ClassSystem.ArrRs(1,0)%></title>
</head>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 class="body" Bgproperties="fixed">
<!--#include file=Include/Top.asp -->
<div class="div"> 
  <table Class=TableTop border=0 cellpadding="0" cellspacing="0">
    <tr> 
    <td class=TableTop_Left rowspan="11">&nbsp;</td>
    <td colspan="2" align="center">&nbsp;</td>
  </tr>
    <tr> 
      <td colspan="2" class=TableTop_Right>
<TABLE width=400 border=0 align="center" cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR> 
              <form method="POST" action="?Id=<%=ClassPage.Id%>" name="form" target="_self" onsubmit="return checkForm()">
                <TD valign="top"> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <script>function showimage(){document.images.tus.src="face/"+document.form.Face.options[document.form.Face.selectedIndex].value+".gif";}</script>
                    <tr> 
                      <td height="30" colspan="4" nowrap>修改我的留言:</td>
                    </tr>
                    <tr> 
                      <td height="25" nowrap>昵称:</td>
                      <td height="25" nowrap>&nbsp; <input name="author" title="请输入你的昵称!" value="<%=ClassPage.ArrRs(2,0)%>" size="25" maxlength="20" class=put>
                        * </td>
                      <td height="25" align="right" nowrap>权限设置:</td>
                      <td height="25" align="center" nowrap><font color="#669900"> 
                        <select name="Open" size="1"  class=put>
                          <%if ClassPage.ArrRs(0,0)=True Then Response.write "<option selected value=1>公开</option>" else Response.write "<option selected value=0>悄悄话</option>"%>
                          <option value="1">公开</option>
                          <option value="0">悄悄話</option>
                        </select>
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="8%" height="25" nowrap>邮箱:</td>
                      <td width="56%" height="25" nowrap>&nbsp; <input name="email" title="请输入你的邮箱地址!" value="<%If ClassPage.ArrRs(4,0)="空" Then response.write "@" Else Response.write ClassPage.ArrRs(4,0)%>" size="25" maxlength="50" class=put> 
                      </td>
                      <td width="17%" height="25" align="right" nowrap>我的性別: </td>
                      <td width="19%" height="25" align="center" nowrap> <font color="#669900"> 
                        <select name="sex" size="1" onChange="showimage()" class=put>
                          <%if ClassPage.ArrRs(3,0)=True Then Response.write "<option selected value=1>♂男生</option>" else Response.write "<option selected value=0>♀女生</option>"%>
                          <option value="0">♀女生</option>
                          <option value="1">♂男生</option>
                        </select>
                        </font></td>
                    </tr>
                    <tr> 
                      <td height="25" nowrap>主页: </td>
                      <td height="25" nowrap> &nbsp; <input name="websize" title="请输入您的个人主页,如果没有,则留空!" value="<%If ClassPage.ArrRs(5,0)="空" Then response.write "http://" Else Response.write ClassPage.ArrRs(5,0)%>" size="25" maxlength="50" class=put> 
                      </td>
                      <td height="25" align="right" nowrap>留言表情:</td>
                      <td height="25" align="center" nowrap> <font color="#669900"> 
                        <select name=Face size=1 onChange="showimage()" class=put>
                          <option value="<%=ClassPage.ArrRs(6,0)%>">当 前</option>
                          <option value="01">扮鬼脸</option>
                          <option value="02">喜欢你</option>
                          <option value="03">小呆瓜</option>
                          <option value="04">哈哈笑</option>
                          <option value="05">亲一个</option>
                          <option value="06">讨 厌</option>
                          <option value="07">谢谢啦</option>
                          <option value="08">不理我</option>
                          <option value="09">装可爱</option>
                          <option value="10">装COOL</option>
                          <option value="11">喂 MM</option>
                          <option value="12">想打人</option>
                          <option value="13" >压泡泡</option>
                          <option value="14">傻 笑</option>
                          <option value="15" >鄙视你</option>
                          <option value="16">要杀人</option>
                        </select>
                        </font></td>
                    </tr>
                    <tr> 
                      <td height="25" nowrap>标题:</td>
                      <td height="25" colspan="2"> &nbsp; <input name="title" class=put title="请输入留言标题!" value="<%=ClassPage.ArrRs(7,0)%>" size="36" maxlength="40"> 
                        &nbsp;*</td>
                      <td rowspan="2" align="center" valign="top"><font color="#669900"><img src="face/<%=ClassPage.ArrRs(6,0)%>.gif" name="tus" alt="请选择适合你的表情图片" ></font></td>
                    </tr>
                    <tr> 
                      <td valign="top" nowrap> 內容:<br> <br> <br> <br> </td>
                      <td colspan="2" align="center" valign="top">&nbsp; <textarea title="请在这里输入留言内容...&#13&#10请把内容限制到800字以內!" cols="39" name="content" rows="5" class=put><%=ClassSave.EditContent%></textarea> 
                      </td>
                    </tr>
                    <tr> 
                      <td height="30" colspan="4" align="left">密码:&nbsp; <input name="EditPass" class=put4 title="以后修改留言时,需要此密码!" onKeyPress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" value="<%If ClassPage.ArrRs(12,0)="空" Then Response.Write "" Else Response.Write ClassPage.ArrRs(12,0)%>" size="12" maxlength="12"> 
                        &nbsp;&nbsp;&nbsp;回复时邮件通知: 
                        <input name="EmailCall" type="checkbox" value="1" <%If ClassPage.ArrRs(13,0)=True Then Response.write "checked"%>>
                        字符表情 
                        <input name="TextChange" type="checkbox" value="1" <%if ClassPage.ArrRs(16,0) = True Then Response.write "checked"%>></td>
                    </tr>
                    <tr> 
                      <td align="center">&nbsp; </td>
                      <td height="30" colspan="2" align="center">
<input type="submit" name="Submit" value="=> 确认修改" class=put2>
                        <input type=reset name="Reset" value="返回" onClick="javascript:history.back()" class=put3> 
                      </td>
                      <td align="center">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td colspan="4" align="center" valign="bottom">&nbsp;</td>
                    </tr>
                  </table></TD>
              </form>
            </TR>
          </TBODY>
        </TABLE></td>
  </tr></table>
</div>
<!--#Include File="Include/CopyRight.asp" -->
</body>
</html>

⌨️ 快捷键说明

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