addmes.asp

来自「酷购网上商城~~ 完整的asp源代码.通过少许的改动就可以让你拥有自己的商城~~」· ASP 代码 · 共 79 行

ASP
79
字号
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script LANGUAGE='javascript'>alert('网络超时或者您还没有登录请登录');window.location.href='login.asp';</script>"
response.End
end if
sql="select * from [User] where UserID="&Trim(Request("UserID"))
set rs=conn.execute(sql)
if not rs.eof and not rs.bof then
	UserName=rs("UserName")
	UserID=rs("UserID")
else
	response.Write "没有该用户"
	response.End
end if
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style>
BODY {
SCROLLBAR-FACE-COLOR: #e7e7e7;  
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #d4d0c8;
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
SCROLLBAR-ARROW-COLOR:  #ffffff;
SCROLLBAR-TRACK-COLOR: #f7f7f7;
SCROLLBAR-DARKSHADOW-COLOR: #e7e7e7; 
}
.style1 {color: #FF0000}
</style>
</head>
<body>
<table class="tableBorder" width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#f2f2f2"> 
<td align="center" bgcolor="#dfdfdf" height="25"><b>给注册会员发送 站内短消息</font></b> </td>
</tr>
<tr bgcolor="#f2f2f2"> 
<form name="myform" method="post" action="addmes_save.asp" OnSubmit="return checkkk()" >
<td> 
                                <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ffffff">
                                  <tr align="center" bgcolor="#DFDFDF"> 
                                    <td colspan="2"><span class="style1">提示:站内短信系统仍在测试中,请尽量不要用站内短信发送机密内容,接收的短信中,若有重要内容,请及时转移保存并删除短信。 </span></td>
                                  </tr>
									  <tr bgcolor="#f2f2f2">
									  <td width="30%" align="right" bgcolor="#CCCCCC"> 
发送对象:

                                    </td>
                                    <td width="70%"><input name="UserName" type="text" id="UserName" value="<%=UserName%>" size="30" readonly> 
                                      <input name="UserID" type="hidden" value="<%=UserID%>">                                     <input name="isAll" type="radio" value="NO" checked>
                                      单个对象 
                                        <input type="radio" name="isAll" value="YES"> 
                                        所有注册用户</td>
                                  </tr>
                                  <tr bgcolor="#f2f2f2">
                                    <td align="right" valign="top" bgcolor="#CCCCCC"> 
内 容:                                      

</td>
<td>
<textarea name="Content" cols="66" rows="15" id="Content"></textarea>
</td>
</tr>
<tr bgcolor="#f2f2f2">
<td></td>
<td height="30">
<input type="submit" name="Submit" value=" 添加保存 ">
<input onclick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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