<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp"-->
<!--#include file="../../conn/config.asp"-->
<!--#include file="../../conn/md5.asp"-->
 <%
if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("id")="" then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>交易助手管理操作平台_<%=webname%></title>
<link rel="stylesheet" href="/css.css" type="text/css">
</head>
<script Language="JavaScript">
function check()
{
  if (trim(snsn.messageTitle.value)=="") {
		alert("主题不能为空！");
		snsn.messageTitle.focus();		
		    return (false);
  }
  if (trim(snsn.messageContent.value)=="") {
		alert("主要内容不能为空！");
		snsn.messageContent.focus();		
		    return (false);
  }
else
	document.snsn.submit();
}
//-->
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//--> 
</script>
<body><!--#include file="../../top.asp"-->
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
    <td width="970"><table width="970"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="10"><img src="/img/m_left.gif" width="10" height="20"></td>
          <td width="950" bgcolor="#FFFFFF"></td>
          <td width="10"><img src="/img/m_right.gif" width="10" height="20"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="188" colspan="3"><table width="950"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="1" bgcolor="efefef"></td>
                <td width="200" height="77" valign="top"><!--#include file="../left.asp"--></td>
                <td width="1" bgcolor="efefef"></td>
                <td valign="top"><p>
                  <%
if isChkInteger(request("id")) then
id=nosql(request("id"))
else
response.write "<script language='javascript'>"
response.write "alert('非法操作，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if

sql="select snsn_getprice.sendcid,snsn_getprice.title,snsn_user.* from snsn_getprice,snsn_user where snsn_getprice.id="&id&" and snsn_user.id=snsn_getprice.sendcid"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write"暂无任何信息"
else
%>
</p>
                    <FORM name=snsn action="savereplymessage.asp" method=post>
                      <input type=hidden value="<%=rs("sendcid")%>" name=mycid>
                      <TABLE width=95% border=0 align="center" cellPadding=3 cellSpacing=1 bgcolor="#BBD7FF">
                        <TBODY>
                          <TR bgColor=#ffffff>
                            <TD height="25" align=right bgColor=#eff7ff><B>发送给：</B></TD>
                            <TD><%=rs("username")%>
                                <INPUT 
            name=emailname class="wenbenkuang" id="emailname" value="<%=rs("username")%>" type=hidden></TD>
                          </TR>
                          <TR bgColor=#ffffff>
                            <TD height="25" align=right bgColor=#eff7ff><B>主题：</B></TD>
                            <TD><INPUT maxLength=60 size=60 value="<%if instr(rs("title"),"回复：")<0 then%>回复：<%end if%><%=rs("title")%>"
            name=messageTitle class="wenbenkuang">
                            </TD>
                          </TR>
                          <TR bgColor=#ffffff>
                            <TD height="25" align=right bgColor=#eff7ff><span class="C"><strong>魔法表情：</strong></span></TD>
                            <TD><input name="show" type="text"  id="show" size="40" maxlength="28" readOnly>
&nbsp; <a href="javascript:;" onClick="window.open('/web/qq/selqq.asp','web_show','scrollbars=no,resizable=no,width=370,height=365,menubar=no,top=188,left=188')" >魔法表情浏览...</a></TD>
                          </TR>
                          <TR bgColor=#ffffff>
                            <TD vAlign=middle align=right bgColor=#eff7ff><B>主要内容：</B></TD>
                            <TD><TEXTAREA name=messageContent rows=10 cols=80  class="wenbenkuang"></TEXTAREA>
                            </TD>
                          </TR>
                          <TR bgColor=#ffffff>
                            <TD vAlign=middle align=right bgColor=#eff7ff><span class="C"><strong>留言背景：</strong></span></TD>
                            <TD><table width="84%" height="71"  border="0" cellpadding="0" cellspacing="0">
                                <tr align="center">
                                  <td height="50">无图片</td>
                                  <td><img src="../images/pmskindef.gif" width="40" height="40"></td>
                                  <td><img src="../images/pmskin02.gif" width="40" height="40"></td>
                                  <td><img src="../images/pmskin03.gif" width="40" height="40"></td>
                                  <td><img src="../images/pmskin04.gif" width="40" height="40"></td>
                                  <td><img src="../images/pmskin05.gif" width="40" height="40"></td>
                                  <td><img src="../images/pmskin01.gif" width="40" height="40"></td>
                                </tr>
                                <tr align="center">
                                  <td><input name="bg" type="radio" checked></td>
                                  <td><input name="bg" type="radio" value="pmskindef.gif">
                                  </td>
                                  <td><input type="radio" name="bg" value="pmskin02.gif"></td>
                                  <td><input type="radio" name="bg" value="pmskin03.gif"></td>
                                  <td><input type="radio" name="bg" value="pmskin04.gif"></td>
                                  <td><input type="radio" name="bg" value="pmskin05.gif"></td>
                                  <td><input type="radio" name="bg" value="pmskin01.gif"></td>
                                </tr>
                            </table></TD>
                          </TR>
                          <TR bgColor=#ffffff>
                            <TD align=right vAlign=top bgcolor="#eff7ff">&nbsp; </TD>
                            <TD vAlign=top><INPUT type=checkbox value=1
            name=sendEmail>
          发到对方的电子邮箱中<BR>
          <INPUT type=checkbox disabled CHECKED value=1 
            name=sendMessage>
          发到对方的“我收到的留言”中<BR>
          <INPUT name=saveSendMessage type=checkbox value=1>
          保存到我的“我发出的留言”中<BR>
          <INPUT 
        name=sendContact 
            type=checkbox value=1 CHECKED>
          发送我的联系方式<BR>
          <INPUT 
        name=checkdate 
            type=checkbox id="checkdate" value=1 CHECKED>
          是否要求近日做出答复</TD>
                          </TR>
                        </TBODY>
                      </TABLE>
                      <BR>
                      <BR>
                      <TABLE width=300 border=0 align="center" cellPadding=4 cellSpacing=0>
                        <TBODY>
                          <TR align=middle>
                            <TD noWrap><INPUT type=button value="立即发送" name=sendButton onClick="check()" class="go-wenbenkuang">
                            </TD>
                            <TD noWrap><INPUT type=reset value="重新填写" name=resetButton class="go-wenbenkuang">
                            </TD>
                          </TR>
                        </TBODY>
                      </TABLE>
                    </FORM>
                    <%end if%>
                    <p>&nbsp;
                    </p></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
    <td valign="top"><img src="/img/index_img.jpg" width="10"></td>
  </tr>
</table>
<!--#include file="../../end.asp"-->
</body>
</html>
