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

📄 p_letter.asp

📁 基于Sabrina SecondMarket v1.0
💻 ASP
字号:
<%response.Buffer = true%>
<!--
版本:草原二手市场V1.1
本程序作者:mysql QQ:54016224 TEL:13036133798

-->
<!--#include file = "include/conn.asp" -->
<!--#include file = "include/function.asp" -->
<!--#include file = "include/md5.asp" -->
<!--#include file = "include/access.asp" -->
<!--#include file = "head.asp" -->
<!--主体1-->
<table width="1000" border="0" cellpadding="0" cellspacing="2" bgcolor="#F0F9FB">
  <tr> 
    <td width="785" height="883" valign="top" class="pgray12"> 
      <!-- body1 left -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="225" align="center" valign="top"> <table width="218" border="0" cellpadding="0" cellspacing="1" bgcolor="#C5DCE2">
              <tr> 
                <td bgcolor="#F0F9FB" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><img src="images/e_title_userlogin1.gif" width="218" height="21"></td>
                    </tr>
                    <tr> 
                      <td><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="login.asp" width="100%"></iframe> </td>
                    </tr>
                    <tr> 
                      <td height="1" bgcolor="#C5DCE2"></td>
                    </tr>
                    <tr> 
                      <td align="center" height="50"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td align="center" width="50%"><a href="sign_in.asp"><img src="images/button_user_reg.gif" width="87" height="24" border="0"></a></td>
                            <td align="center"><img src="images/button_user_getps.gif" width="87" height="24"></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td height="1" bgcolor="#C5DCE2"></td>
                    </tr>
                    <tr> 
                      <td height="150" valign="top" align="center"> 
                        <!-- notice -->
                        <marquee scrollAmount="2" width="200" height="140" direction="up" onmouseover='this.stop()' onmouseout='this.start()'>
                        <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td class="font-12px120-000000"><img src='images/arrow_orange7.gif' width='13' height='11'> 
                              <font color="#0066CC">二手市场二手市场二手市场二手市场二手市场二手市场!</font></td>
                          </tr>
                          <tr> 
                            <td height="5" ></td>
                          </tr>
                        </table>
                        <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td class="font-12px120-000000"><img src='images/arrow_orange7.gif' width='13' height='11'> 
                              <font color="#0066CC">二手市场二手市场二手市场二手市场二手市场二手市场!</font></td>
                          </tr>
                          <tr> 
                            <td height="5" ></td>
                          </tr>
                        </table>
                        <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td class="font-12px120-000000"><img src='images/arrow_orange7.gif' width='13' height='11'> 
                              <font color="#0066CC">二手市场二手市场二手市场二手市场二手市场二手市场!</font></td>
                          </tr>
                          <tr> 
                            <td height="5" ></td>
                          </tr>
                        </table>
                        </marquee> 
                        <!-- notice end -->
						
                      </td>
                    </tr>
                  </table> </td>
              </tr>
            </table>  
			
            <table width="218" border="0" cellpadding="1" cellspacing="1" bgcolor="#C5DCE2">
              <tr> 
                <td bgcolor="#f0f9fb"><img src="images/infolist.gif" width="218" height="21"></td>
              </tr>
              <tr> 
                <td bgcolor="#f0f9fb"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td bgcolor="#f0f9fb"> <iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="html/Categories.html" width="100%"  style="backgroud:#f0f9fb"> 
                        </iframe> </td>
                    </tr>
                  </table> </td>
              </tr>


            </table></td>
          <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
<%
'*********get vars************************'
title     = trim(toValidChar(request("title")))
content   = trim(toValidChar(request("content")))
pto       = trim(toValidChar(request("pto")))
subname0  = trim(toValidChar(request("subname0")))
'*********get vars end *******************'
'*********do post*************************'
if subname0 <> "" and title <> "" and content <> "" and pto <> "" then
sql       = "select UserID from [User] where UserName = '"&pto&"'"
set rs    = conn.execute(sql)
	if rs.eof and rs.bof then
	response.write "error,对不起,该用户不存在!<a href=# onclick='history.go(-1);'>back</a>"
	response.end()
	end if
UserID    = rs("UserID")
if trim(UserID) = trim(request.cookies("UserID")) then
response.write "error,对不起,不能给自己发送信息!<a href=# onclick='history.go(-1);'>back</a>"
response.end()
end if
sql       = "insert into Pbox (UserID,P_FromID,P_FromName,P_ReadStatus,P_ReceiveTime,P_Content,P_Title) values ("&UserID&","&request.cookies("UserID")&",'"&request.cookies("UserName")&"',0,'"&date&"','"&content&"','"&title&"')"
response.write sql
conn.execute(sql)
response.write "<script>alert('发送成功!');history.go(-1);</script>"
response.end
end if
'*********do post end*********************'
%>
<!--box area-->
                  <table width="473" border="0" cellpadding="1" cellspacing="1" bgcolor="#C5DCE2">
                    <tr align="center" bgcolor="#f0f9fb"> 
                      <td colspan="2">发送留言</td>
  </tr>
  <form name="form1" method="post" action="P_letter.asp">
                      <tr bgcolor="#f0f9fb"> 
                        <td width="80">发送给:</td>
                        <td width="386"> 
                          <input type="text" name="pto" value=<%=pto%>> </td>
    </tr>
                      <tr bgcolor="#f0f9fb"> 
                        <td width="80">标题:</td>
                        <td width="386"> 
                          <input type="text" name="title"> </td>
    </tr>
                      <tr bgcolor="#f0f9fb"> 
                        <td>留言内容:</td>
                        <td> 
                          <textarea name="content" cols="40" rows="10"></textarea> </td>
    </tr>
                      <tr align="center" bgcolor="#f0f9fb"> 
                        <td colspan="2"> 
                          <input type="submit" name="subname0" value="发送信息"></td>
    </tr>
  </form>
</table>
<!--box area end-->
</td>
              </tr>
            </table> </td>
        </tr>
      </table>
      <!-- body1 left end-->
    </td>
    <td bgcolor="#F2F2F2" valign="top"> 
      <!-- body1 right-->
      <iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="updatelist.asp" width="100%" height="100%"></iframe>
     
	  <!-- body1 right end-->
    </td>
  </tr>
</table>
<!-- copyright -->
<table width="1002" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top"> 
    <td width="3" bgcolor="#FFFFFF"></td>
    <td bgcolor="#FFFFFF"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center" valign="top"> 
          <td width="20" height="104">&nbsp;</td>
          <td width="950"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td align="right"><a href="#"><img src="images/i_but_top.gif" width="43" height="37" border="0"></a></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="74%"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr valign="top"> 
                      <td width="121" rowspan="2">&nbsp;</td>
                      <td width="10" rowspan="2">&nbsp;</td>
                      <td width="492"><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_about.gif" height="14" border="0" width="57"></a><a href="http://www.vvcat.com"><img src="images/i_menu_c.gif" width="63" height="14" border="0"></a><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_wor.gif" width="63" height="14" border="0"></a><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_ser.gif" width="63" height="14" border="0"></a><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_declare.gif" width="63" height="14" border="0"></a><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_s.gif" width="63" height="14" border="0"></a><a href="http://www.vvcat.com" target="_blank"><img src="images/i_menu_h.gif" width="31" height="14" border="0"></a> 
                      </td>
                    </tr>
                    <tr> 
                      <td height="5" width="492"></td>
                    </tr>
                  </table>
                </td>
                <td width="26%" valign="bottom">&nbsp;</td>
              </tr>
            </table>
          </td>
          <td width="20">&nbsp;</td>
        </tr>
      </table>
    </td>
    <td width="3" bgcolor="#FFFFFF"></td>
    <td width="1"></td>
    <td width="7"></td>
  </tr>
</table>
<!-- copyright end -->
</body>
</html>

⌨️ 快捷键说明

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