senduser.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:7k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <%@LANGUAGE="VBScript" CODEPAGE="936"%>
  2. <!--#include file="security.asp"-->
  3. <%
  4. if session("flag")>1 then
  5. response.write "<br><p align=center>您没有操作的权限</p>"
  6. response.end
  7. end if
  8. %>
  9. <%dim userName
  10. userName=replace(trim(request("userName")),"'", "")%>
  11. <link rel="stylesheet" type="text/css" href="inc/Admin_STYLE.CSS">
  12. <html>
  13. <style type="text/css">
  14. <!--
  15. .样式1 {font-size: 9px}
  16. -->
  17. </style>
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  20. <title>---给用户发信息</title>
  21. <LINK href="images/forum_admin.css" type=text/css rel=stylesheet>
  22. <style type=text/css>
  23. body  {
  24. background:#799AE1;
  25. margin:0px;
  26. font:9pt 宋体;
  27. background-color: #FFFFFF;
  28. }
  29. table  { border:0px; }
  30. td  { font:normal 12px 宋体; }
  31. img  { vertical-align:bottom; border:0px; }
  32. a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
  33. a:hover  { color:#428EFF;text-decoration:underline; }
  34. .sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
  35. .menu_title  { }
  36. .menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
  37. .menu_title2  { }
  38. .menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
  39. .样式3 {font-size: 9pt}
  40. </style>
  41. </head>
  42. <br style="line-height:5px;">
  43.  
  44. <table width="530" border="0" cellspacing="0" cellpadding="0" align="center">
  45.   <tr> 
  46.   <td> 
  47. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  48.   <tr> 
  49. <td width="9" rowspan="2"></td>
  50. <td width="512" class="12v"> 
  51.   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
  52. <tr> 
  53.   <td class="12v" > 
  54. <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
  55.   <tr> 
  56. <td> 
  57.   <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  58.   <tr class="title"> 
  59. <tr> 
  60.   <td height="22" colspan="2" > 
  61. <div align="center" class="title"><b>您正在给用户<font color=#0000FF><%=userName%></font>发信息:</b></div></td>
  62. </tr>
  63. <tr> 
  64.   <td colspan="2" align="center"> 
  65. <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  66.       <form name="formmsg" method="post" action="msgSave.asp">
  67.   <tr> 
  68. <td align="center">
  69.                                       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  70.                                         <tr bgcolor="#CCCCFF"> 
  71.                                           <td width="72" bgcolor="#CCCCFF" class="tdbg">&nbsp;&nbsp;您的姓名:</td>
  72.                                           <td width="396" bgcolor="#CCCCFF" class="tdbg"> <input name="rvauthor" type="text" class="text" id="form1" value="<%=session("loginname")%>" size="25" maxlength="20"></td>
  73.                                         </tr>
  74.                                         <tr bgcolor="#CCCCFF"> 
  75.                                           <td bgcolor="#CCCCFF" class="tdbg">&nbsp;&nbsp;用户姓名:</td>
  76.                                           <td bgcolor="#CCCCFF" class="tdbg"><input name="userName" type="text" class="text" id="userName" value="<%=userName%>" size="25" maxlength="25">                                          </td>
  77. </tr>
  78.                                         <tr bgcolor="#CCCCFF"> 
  79.                                           <td width="72" bgcolor="#CCCCFF" class="tdbg">&nbsp;&nbsp;信息主题:</td>
  80.                                           <td width="396" bgcolor="#CCCCFF" class="tdbg"> <input name="rvname" type="text" class="text" id="form3" value="请输入您评论的题目" size="40" maxlength="20" onFocus="this.value=''">                                          </td>
  81.                                         </tr>
  82.                                         <tr bgcolor="#CCCCFF"> 
  83.                                           <td width="72" bgcolor="#CCCCFF" class="tdbg">&nbsp;&nbsp;信息内容:</td>
  84.                                           <td bgcolor="#CCCCFF" class="tdbg"> </td>
  85.                                         </tr>
  86.                                         <tr> 
  87.                                           <td colspan="3" align="center" class="tdbg"> <textarea name="rvcontent" cols="60" rows="10" class="text" id="form4"></textarea> 
  88.                                             <br>                                            <div align="center"> 
  89.                                               <input name="Submit" type="submit" class="button" value="提交">
  90.                                               &nbsp;&nbsp; 
  91.                                               <input name="Submit2" type="reset" class="button" value="重置">
  92.                                           </div></td>
  93.                                         </tr>
  94.                                       </table>
  95.     </td>
  96.   </tr>
  97.   <tr> 
  98.                                        <td height="2" align="right" bgcolor="#E1F4EE"> 
  99.                                         </td>
  100.   </tr>
  101.     </form>
  102. </table>
  103.  </td>
  104. </tr>
  105. <tr>
  106.   <td colspan="2" align="center" class="tdbg"><b><span class="样式1"><span class="样式3">给所有游客会员请用<font color="#FF0000">allusers</font>;<br>
  107. 给所有普通会员请用<font color="#FF0000">alluser</font>;<br>
  108. 给所有黄金会员<font color="#FF0000">moneyuser</font>;<br>
  109. 给所有VIP和钻石会员请用<font color="#FF0000">vipuser</font><font color="#FF0000"></font></span></span></b></td>
  110. </tr>
  111.   </table>
  112. </td>
  113.   </tr>
  114. </table>
  115.   </td>
  116. </tr>
  117.   </table>
  118. </td>
  119. <td class="12v" width="10" rowspan="2"></td>
  120.   </tr>
  121. </table>
  122.   </td>
  123.   </tr>
  124. </table>
  125.  </body>
  126. </html>
  127. <script language="VBScript" type="text/VBScript">
  128.    function formmsg_onSubmit()
  129.   if document.formmsg.rvauthor.value="" then
  130.   alert"对不起,您应该输入姓名!"
  131.   formmsg.rvauthor.focus()
  132.   formmsg_onSubmit=false
  133.   elseif  document.formmsg.rvname.value="" or document.formmsg.rvname.value="请输入您评论的题目"! then
  134. alert"对不起,您应该输入评论的题目!"
  135. formmsg.rvname.focus()
  136. formmsg_onSubmit=false  
  137.    elseif document.formmsg.userName.value="" then
  138.    alert"对不起,您还没说要送给谁呢!"
  139.    formmsg.userName.focus()
  140.    formmsg_onSubmit=false
  141.    elseif document.formmsg.rvcontent.value="" then
  142.    alert"对不起,您的信息还没有任何内容!"
  143.    formmsg.rvcontent.focus()
  144.    formmsg_onSubmit=false
  145.    elseif len(document.formmsg.rvcontent.value)>800 then
  146.    alert "对不起,评论内容不能大于800个字节!"
  147.    formmsg.rvcontent.focus()
  148.    formmsg_onSubmit=false
  149. end if
  150.    end function
  151. </script>