<!--#include file="../head.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function check()
{
  if (trim(form1.messageTitle.value)=="") {
		alert("主题不能为空！");
		form1.messageTitle.focus();		
		    return (false);
  }
  if (trim(form1.messageContent.value)=="") {
		alert("主要内容不能为空！");
		form1.messageContent.focus();		
		    return (false);
  }
else
	document.form1.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>
<TABLE cellSpacing=0 cellPadding=0 width=778 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle width=150>
      <SCRIPT LANGUAGE='JavaScript' SRC='../images/left.js' TYPE='text/javascript'></script>

      <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
        <TBODY>
        <TR>
          <TD vAlign=top align=middle width=150 
          background=../images/leftmanu_bg.gif>
            <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
              <TBODY>
              <TR>
                <TD width=150 
                  background=../images/leftmanu_topbg.gif><IMG height=30 
                  src="../images/leftmanu_top.gif" 
              width=150></TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
              <TBODY>
              <TR>
                <TD class=leftmenu1 
                onclick="location.href='../index.asp'"><IMG 
                  height=18 src="../images/leftmanu_home.gif" width=16 
                  align=absMiddle> 商务助手首页</TD></TR><TR>
                <TD class=leftmenu1 
                onclick=javascript:menu_display(table1,img1);><IMG id=img1 
                  height=16 src="../images/fold_2.gif" width=16 
                  align=absMiddle> 发布商业信息</TD></TR>
              <TBODY id=table1><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../tradeinfo/add_info.asp">发布供求信息</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../tradeinfo/edit.asp">管理供求信息</A> </TD>
                    </TR><!-- 正常情况下  -->
			 <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../productshow/add_product.asp">发布产品信息</A> </TD>
                    </TR><!-- 正常情况下  -->
			   <TR>

                      <TD class=leftmenu2><IMG src="../images/plus.gif"> 

					  <A 

                  class=linkstyle2 

                  href="../productshow/edit.asp">管理产品信息</A></TD>

                    </TR><!-- 正常情况下  --><TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_mine.asp">展会信息管理</A> </TD>
                    </TR>



              



              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/company_edit.asp">公司介绍</A></TD>
                    </TR><!-- 正常情况下  -->
					<TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../bizre/index.asp">商贸通档案</A></TD>
                    </TR></TBODY>
              <TBODY>
              <TR>
                <TD class=leftmenu1 onclick=menu_display(table2,img2)><IMG 
                  id=img2 height=16 src="../images/fold_2.gif" width=16 
                  align=absMiddle> 查看商业往来</TD></TR>
              <TBODY id=table2><!-- 正常情况下  -->
               <TR>
                   <TD class=leftmenu3 height=29><IMG src="../images/minus.gif"> 
					  <A 
                  class=linkstyle3 
                  href="receivemessagelist.asp"><STRONG>我收到的留言</STRONG></a> <IMG src="../images/now.gif"></TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="sendmessagelist.asp">我发出的留言</A> </TD>
                    </TR>
					              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="sendnewmessage.asp">发新留言</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../myemail/index.asp">我订阅的信息</A></TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../myfriend/index.asp">我的商业伙伴</A> </TD>
                    </TR><TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="/bizre/index.asp">会员评价</A> </TD>
                    </TR></TBODY>
              
              <TR>
                    <TD class=leftmenu1 onclick=menu_display(table3,img3)><IMG 
                  id=img3 height=16 src="../images/fold_1.gif" width=14 
                  align=absMiddle> 我的会员资料</TD>
                  </TR>
              <TBODY id=table3 style="DISPLAY: none"><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_info.asp">修改注册信息</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_pass.asp">修改密码</A> </TD>
                    </TR><!-- 正常情况下  -->
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../modify/modify_mine.asp">修改个人简介</A> </TD>
                    </TR></TBODY>
              
              <TR>
                    <TD class=leftmenu1 onclick=menu_display(table4,img4)><IMG 
                  id=img4 height=16 src="../images/fold_1.gif" width=14 
                  align=absMiddle> 我的自助网站</TD>
                  </TR>
              <TBODY id=table4 style="DISPLAY: none">
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/webmod.asp">网站模板选择</A></TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../corporation/cimg_add.asp?id=<%=session("id")%>">上传公司图片</A> </TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../feedback/contact_edit.asp?id=<%=session("id")%>">客户反馈管理</A></TD>
                    
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../work/work.asp">发布招聘信息</A></TD>
                    </TR>
			  <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../work/edit.asp">管理招聘信息</A></TD>
                    </TR>
              <TR>
                      <TD class=leftmenu2><IMG src="../images/plus.gif"> <A 
                  class=linkstyle2 
                  href="../../companyweb.asp" 
                  target=_blank>浏览我的网站</A></TD>
                    </TR></TBODY>
              <TBODY>
              <TR>
                <TD class=leftmenu1 
                onclick="javascript:window.open('../../help/index.asp')"><IMG 
                  id=img5 src="../images/leftmenu_help.gif" 
                  align=absMiddle> 帮助</TD></TR></TBODY></TABLE>
            <IMG height=6 
            src="../images/leftmanu_bottom.gif" width=150><BR><BR>
            
            <!--#include file="../guestsubmit.asp"-->
            <BR><BR></TD></TR>
        </TABLE><BR><BR><BR></TD>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle width=628>
      <TABLE cellSpacing=0 cellPadding=0 width=628 border=0>
        <TBODY>
        <TR>
          <TD width=459><IMG height=30 
            src="../images/leftmanu_top1.gif" width=459></TD>
          <TD vAlign=top width=141 
          background=../images/top_nav_bg2.gif></TD>
          <TD width=28><IMG height=30 src="../images/top_nav_5.gif" 
            width=28></TD></TR></TBODY></TABLE><BR>
      <TABLE cellSpacing=0 cellPadding=0 width=578 border=0>
        <TBODY>
        <TR>
          <TD><IMG height=32 src="../images/sendmessage.gif" width=578 
            border=0></TD>
        </TR></TBODY></TABLE>
<%
if Chkrequest(request("id")) then
id=request("id")
else
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if

sql="select getprice.sendcid,getprice.title,corporation.* from getprice,corporation where getprice.id="&id&" and corporation.id=getprice.sendcid"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write"暂无任何信息"
else
%> 

        
<FORM name=form1 action="savereplymessage.asp" method=post>
<input type=hidden value=<%=rs("sendcid")%> name=mycid>
          <TABLE width=578 border=0 cellPadding=0 cellSpacing=0>
            <TBODY>
  <TR>
    <TD bgColor=#efefef>
      <TABLE cellSpacing=1 cellPadding=4 width=578 border=0>
                    <TBODY>
        <TR bgColor=#ffffff>
          <TD align=right bgColor=#ffffff><B>发送给：</B></TD>
          <TD><%=rs("qymc")%></TD></TR>
        
        <TR bgColor=#ffffff>
          <TD align=right bgColor=#ffffff><B>主题：</B></TD>
          <TD><INPUT maxLength=60 size=60 value=回复：“<%=rs("title")%>” 
            name=messageTitle> </TD></TR>
        <TR bgColor=#ffffff>
          <TD vAlign=top align=right bgColor=#ffffff><B>主要内容：</B></TD>
          <TD><TEXTAREA name=messageContent rows=10 cols=60></TEXTAREA> </TD></TR>
        
        <TR bgColor=#ffffff>
          <TD vAlign=top align=right>&nbsp; </TD>
          <TD vAlign=top><INPUT type=checkbox CHECKED value=true
            name=sendEmail>发到对方的电子邮箱中<BR><INPUT type=checkbox disabled CHECKED value=1 
            name=sendMessage>
                          发到对方的“我收到的留言”中<BR>
                          <INPUT type=checkbox 
            CHECKED value=true name=saveSendMessage>
                          保存到我的“我发出的留言”中<BR>
                          <INPUT 
            type=checkbox CHECKED value=true 
        name=sendContact>发送我的联系方式<BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>

          <TABLE width=578 border=0 cellPadding=0 cellSpacing=0 bgColor=#ffffff>
            <TBODY>
  <TR>
    <TD align=left><div align="center"><A 
      href="../modify/modify_info.asp" 
      target=_blank>检查我的联系信息是否有误</A></div></TD></TR></TBODY></TABLE><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()"> 
    </TD>
    <TD noWrap><INPUT type=reset value="  重填  " name=resetButton> 
  </TD></TR></TBODY></TABLE></FORM>

<%end if%>

</TABLE><IMG 
height=10 src="../images/bottom.gif" width=778><BR>
<!--#include file="../end.asp"-->
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>