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

📄 guest_reply.asp

📁 利用php编码
💻 ASP
字号:
<!--#INCLUDE FILE="config.asp"-->
<!--#INCLUDE FILE="background.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>回复本主题</title>
<link href="1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body onkeydown="if(event.keyCode==13 && event.ctrlKey) if(save_onclick1())document.form.submit()">
<table border=0 width=700 align=center>
  <tr> 
    <td align=center> 
      <!--#INCLUDE FILE="top.asp"-->
  </tr>
  <tr> 
    <td align=center><hr size=1 width=100% noshade color=#C0C0C0></tr>
</table>
  <SCRIPT language=javascript>
function  save_onclick()
{
  document.form.Content.value=editor.HtmlEdit.document.body.innerHTML; 
  var strTemp = document.form.UserName.value;
  if (strTemp.length == 0 )
  {
      alert("请输入用户名!");
      document.form.UserName.focus();
      return false;
  }
  var strTemp = document.form.Content.value;
  if (strTemp.length == 0 )
  {
      alert("请填写留言内容!");
      return false;
  }
  return true;
}
function  save_onclick1()
{
  var strTemp = document.form.UserName.value;
  if (strTemp.length == 0 )
  {
      alert("请输入用户名!");
      document.form.UserName.focus();
      return false;
  }
  var strTemp = document.form.Content.value;
  if (strTemp.length == 0 )
  {
      alert("请填写留言内容!");
      return false;
  }
  return true;
}
</SCRIPT>
</p>
<%
Set rs1=server.createobject("ADODB.RECORDSET")
rs1.open "Select * From guest where id="&request("id"),Conn,3,3
Set rs=server.createobject("ADODB.RECORDSET")
rs.open "Select * From option1",Conn,3,3
%>
<table border=0 width=100% align=center>
  <tr>
    <td width="3%" align=lift><font color="#FF0000">&nbsp;<img src="images/home.gif" border=0></font></td>
    <td width="8%" align=lift><a href="<%if session("list")=0 then%>default.asp<%else%>default1.asp<%end if%>">留言首页</a></td>
    <td width="89%" align=right>
      <!--#INCLUDE FILE="link.asp"-->
    </td>
</table>
<form action="reply_post.asp" method="POST" name="form" id="form" <%if rs("muiedit") then%>onsubmit="return save_onclick()"<%else%>onsubmit="return save_onclick1()"<%end if%>>
  <input type="hidden" name="form" value="SaveData">
  <input type="hidden" name="D_Date" value="<%=cstr(now())%>">
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#0098c8" >
    <tr class="table003">
      <td colspan="2" bordercolorlight="#000000" bordercolordark="#C0C0C0">
        <p align="center"><strong>回复留言</strong></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>用户名(<span class="style1">*</span>):<br>
      </strong>注册用户名长度限制为0-10字符</div></td>
      <td height="28" align="center"><div align="left"><font color="#00FF00">
          <input name="UserName" type="text" class="input1" value="<%=session("useridname")%>" size="15">
      </font></div></td>
    </tr>
    <%if session("useridname")="" then%>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>性别:<br>
      </strong>请选择您的性别</div></td>
      <td height="28" align="center"><div align="left"><font color="#FFFFFF">
          <select name="sex" size="1" id="select4">
            <option value="man" selected>男</option>
            <option value="woman">女</option>
          </select>
      </font></div></td>
    </tr>
    <%end if%>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>密码(<span class="style1">*</span>):<br>
      </strong>请输入密码,区分大小写 </div></td>
      <td height="28" align="center"><div align="left">
          <input name="password" type="password" class="input1" id="password2" value="<%=session("useridpassword")%>" size="15">
          <%if rs("register") then%>
必填
<%else%>
(可不填,此项自动注册用户名)
<%end if%>
</div></td>
    </tr>
    <%if session("useridname")="" then%>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>电子邮件:</strong></div></td>
      <td height="28" align="center"><div align="left"><font color="#00FF00">
          <input type="text" name="Email" size="25" class="input1">
          <font color="0"> (已注册用户不用填)</font></font></div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>个人主页:</strong></div></td>
      <td height="28" align="center"><div align="left"><font color="#00FF00">
          <input type="text" name="HomePage" size="25" Value="http://" class="input1">
          <font color="0">(已注册用户不用填)</font> </font></div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>QQ:</strong></div></td>
      <td height="28" align="center"><div align="left"><font color="#00FF00">
          <input name="qq" type="text" class="input1" id="qq2" size="25">
          <font color="0"> (已注册用户不用填)</font></font></div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>头像:</strong></div></td>
      <td height="28" align="center" valign="top"><div align="left">
          <table width="100%"  border="0">
            <tr>
              <td width="9%"><select name="face" size="1" id="select5" onChange="document.all.idface.src=options[selectedIndex].value;">
                <option selected value="face/1.gif">1</option>
                <option value="face/2.gif">2</option>
                <option value="face/3.gif">3</option>
                <option value="face/4.gif">4</option>
                <option value="face/5.gif">5</option>
                <option value="face/6.gif">6</option>
                <option value="face/7.gif">7</option>
                <option value="face/8.gif">8</option>
                <option value="face/9.gif">9</option>
                <option value="face/10.gif">10</option>
                <option value="face/11.gif">11</option>
                <option value="face/12.gif">12</option>
                <option value="face/13.gif">13</option>
                <option value="face/14.gif">14</option>
                <option value="face/15.gif">15</option>
                <option value="face/16.gif">16</option>
                <option value="face/17.gif">17</option>
                <option value="face/18.gif">18</option>
                <option value="face/19.gif">19</option>
                <option value="face/20.gif">20</option>
                <option value="face/21.gif">21</option>
                <option value="face/22.gif">22</option>
                <option value="face/23.gif">23</option>
                <option value="face/24.gif">24</option>
                <option value="face/25.gif">25</option>
                <option value="face/26.gif">26</option>
                <option value="face/27.gif">27</option>
                <option value="face/28.gif">28</option>
                <option value="face/29.gif">29</option>
                <option value="face/30.gif">30</option>
                <option value="face/31.gif">31</option>
                <option value="face/32.gif">32</option>
                <option value="face/33.gif">33</option>
                <option value="face/34.gif">34</option>
                <option value="face/35.gif">35</option>
                <option value="face/36.gif">36</option>
                <option value="face/37.gif">37</option>
                <option value="face/38.gif">38</option>
                <option value="face/39.gif">39</option>
                <option value="face/40.gif">40</option>
                <option value="face/41.gif">41</option>
                <option value="face/42.gif">42</option>
                <option value="face/43.gif">43</option>
                <option value="face/44.gif">44</option>
                <option value="face/45.gif">45</option>
                <option value="face/46.gif">46</option>
                <option value="face/47.gif">47</option>
                <option value="face/48.gif">48</option>
                <option value="face/49.gif">49</option>
                <option value="face/50.gif">50</option>
                <option value="face/51.gif">51</option>
                <option value="face/52.gif">52</option>
                <option value="face/53.gif">53</option>
                <option value="face/54.gif">54</option>
                <option value="face/55.gif">55</option>
                <option value="face/56.gif">56</option>
              </select></td>
              <td width="11%"><img src="face/1.gif" width="72" height="122" id=idface ></td>
              <td width="80%"><a href="face.asp" target="_blank">点此查看全部头像预览</a><font color="#00FF00"><font color="0">(已注册用户不用选)</font> </font></td>
            </tr>
          </table>
      </div></td>
    </tr>
    <%end if%>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>心情:</strong></div></td>
      <td height="28" align="center" valign="top"><div align="left">
          <table border="0" width="45%" cellspacing="1" cellpadding="0">
            <tr>
              <td align="center">
                <input type="radio" value="p1.gif" name="pic">
              </td>
              <td><img border="0" src="images/p1.gif"></td>
              <td align="center">
                <input type="radio" value="p2.gif" name="pic">
              </td>
              <td><img border="0" src="images/p2.gif"></td>
              <td align="center">
                <input type="radio" value="p3.gif" name="pic">
              </td>
              <td><img border="0" src="images/p3.gif"></td>
              <td align="center">
                <input type="radio" value="p4.gif" name="pic">
              </td>
              <td><img border="0" src="images/p4.gif"></td>
              <td>
                <input type="radio" value="p5.gif" name="pic">
              </td>
              <td><img border="0" src="images/p5.gif"></td>
              <td>
                <input type="radio" value="p6.gif" name="pic">
              </td>
              <td><img border="0" src="images/p6.gif"></td>
              <td>
                <input type="radio" value="p7.gif" name="pic">
              </td>
              <td><img border="0" src="images/p7.gif"></td>
              <td>
                <input type="radio" value="p8.gif" name="pic">
              </td>
              <td><img border="0" src="images/p8.gif"></td>
              <td>
                <input type="radio" value="p9.gif" name="pic">
              </td>
              <td><img border="0" src="images/p9.gif" width="15" height="15"></td>
            </tr>
            <tr>
              <td align="center">
                <input type="radio" value="p10.gif" name="pic">
              </td>
              <td><img border="0" src="images/p10.gif" width="15" height="22"></td>
              <td align="center">
                <input type="radio" value="p11.gif" name="pic">
              </td>
              <td><img border="0" src="images/p11.gif" width="15" height="15"></td>
              <td align="center">
                <input type="radio" value="p12.gif" name="pic">
              </td>
              <td><img border="0" src="images/p12.gif" width="15" height="15"></td>
              <td align="center">
                <input type="radio" value="p13.gif" name="pic">
              </td>
              <td><img border="0" src="images/p13.gif" width="15" height="15"></td>
              <td>
                <input type="radio" value="p14.gif" name="pic">
              </td>
              <td><img border="0" src="images/p14.gif" width="15" height="15"></td>
              <td>
                <input type="radio" value="p15.gif" name="pic">
              </td>
              <td><img border="0" src="images/p15.gif" width="15" height="15"></td>
              <td>
                <input name="pic" type="radio" value="p16.gif" checked>
              </td>
              <td><img border="0" src="images/p16.gif" width="15" height="15"></td>
              <td>
                <input type="radio" value="p17.gif" name="pic">
              </td>
              <td><img border="0" src="images/p17.gif" width="15" height="15"></td>
              <td>
                <input type="radio" value="p18.gif" name="pic">
              </td>
              <td><img border="0" src="images/p18.gif" width="15" height="15"></td>
            </tr>
          </table>
      </div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>留言标题:</strong></div></td>
      <td height="28" align="center" valign="top"><div align="left"><b><%=rs1("subject")%></b></div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>留言内容:</strong><br>
        <%if rs("muiedit") then%>·换行请按Shift+Enter <br>
·另起一段请按Enter<%end if%><br>
·支持UBB标签</div></td>
      <td height="28" align="center" valign="top"><div align="left">
	  <%if rs("muiedit") then%>
               <textarea name="Content" style="display:none"></textarea> 
              <iframe ID="editor" src="editor.asp" frameborder=1 scrolling=no width="600" height="405"></iframe>
	  <%else%>
	  <textarea name="Content" cols="60" rows="5" id="Content"></textarea>
	  <%end if%>
  <%rs.close
  set rs=nothing%>
      </div></td>
    </tr>
    <tr class="table001">
      <td width="220" align="center"><div align="left"><strong>留言功能:</strong></div></td>
      <td height="28" align="center" valign="top"><div align="left">
          <input name="secret" type="checkbox" id="secret3" value="1">
悄悄话(只有<strong>登录</strong>后才可看到自己的留言及回复的内容)</div></td>
    </tr>
    <tr class="table001">
      <td height="28" colspan="2" align="center"><input name="join" type="submit" class="input2" id="join2" value=" 提 交 ">
 
  <input name="B12" type="reset" class="input2" id="B122"  value=" 重 写 "  >
(Ctrl+Enter提交)  <font color="#00FF00">
<input name="id2" type="hidden" id="id22" value="<%=request("id")%>">
</font>
<input name="all" type="hidden" id="all2" value="1"></td>
    </tr>
  </table>
  <!--#INCLUDE FILE="bottom.asp"-->
  <table border=0 width=700 align=center>
    <tr> 
      <td height=12><HR SIZE=1 WIDTH=100% NOSHADE COLOR=#C0C0C0></td>
    </tr>
    <tr> 
      <td align=center> 
    </tr>
  </table>
  <p>&nbsp;</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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