<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<!--#include file="FFunction.asp"-->
<!--#include file="FHeadTitle.asp"-->
<!--#include file="include/coding.asp "-->
<!--#include file="include/tishi.asp" -->

<style type="text/css" media="screen">
@import url("home/css/global/v1.2.css@t=20060512.css");
@import url("home/css/layout.css@t=20050712.css");
@import url("home/css/component.php@t=20060315.css");
@import url("../home/css/sys/detail.php@t=20060522.css");
</style>
<body class="<%= pagestyle%>">
<div class="HackBox"></div>
<%IsShowHotKey=false%>
<!--#include file="FHeadAll.asp"-->
<!--#include file="include/money.asp" -->
<script language = "JavaScript">
function CheckForm()
{
  if (document.recommend.sendname.value=="")
  {
    alert("收件人称呼不能为空！");
	document.recommend.sendname.focus();
	return false;
  }
  if (document.recommend.sendmail.value=="")
  {
    alert("收件人电子邮件地址不能为空！");
    document.recommend.sendmail.focus();
	return false;
  }
    if (( document.recommend.sendmail.value.length<5 )||(document.recommend.sendmail.value.indexOf("@")==-1)||(document.recommend.sendmail.value.indexOf(".")==-1 )) 
  {
	alert('请输入您正确的收件人Email地址!!');
	document.recommend.sendmail.focus();
	return false;
  }
  if (document.recommend.username.value=="")
  {
    alert("发件人名不能为空！");
    document.recommend.username.focus();
	return false;
  }
  if (document.recommend.email.value=="")
  {
    alert("发件人电子邮件地址不能为空！");
    document.recommend.email.focus();
	return false;
  }
  if (( document.recommend.email.value.length<5 )||(document.recommend.email.value.indexOf("@")==-1)||(document.recommend.email.value.indexOf(".")==-1 )) 
  {
	alert('请输入您正确的发件人Email地址!!');
	document.recommend.email.focus();
	return false;
  }
      if (document.recommend.title.value=="")
  {
    alert("主题不能为空！");
    document.recommend.title.focus();
	return false;
  }
	if (document.recommend.topic.value=="")
  {
    alert("信件内容不能为空！");
    document.recommend.topic.focus();
	return false;
  }

  recommend.submit();
}
</script>
<%
hy "user/login.asp"
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where id="&decode(shopnet("id"))&""
rs.open sql,conn,3,3
if rs.eof then
width="500"
my_bt="<font color=red>操 作 失 败 ！</font><br>·<b>对不起！参数错误！！！</b><br>·该条产品不存在或已被删除，请确保您的连接来自本网站！"
my_nr="<meta http-equiv=refresh content=5;url=javascript:history.go(-1)><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=../index.asp>返回首页</a><br><img src=../../pics/2k5/sys/component/icon_arrow_r.gif><a href=# onclick='javascript:window.history.go(-1)'>返回上一页</a>"
xitongtishi()
Response.Write"</td></tr></table>"
bottom()
response.end
Else
Response.Write "<TITLE>"&my_name&"----推荐-----"&rs("mc")&"</TITLE>"%>

		  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
              <td width="29%" height="42">&nbsp;</td>
              <td width="71%"><div align="center"><strong> 把这件商品推荐给好友：</strong></div></td>
            </tr>
            <tr>
              <td valign="top"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="5">
                  <tr>
                    <td><div align="center"><img src="members\images\Rikeeupimages\<%=rs("dt")%>" width="200" height="200"></div></td>
                  </tr>
                  <tr>
                    <td><div align="center" style="font-weight: bold"><%=rs("mc")%></div></td>
                  </tr>
                  <tr>
                    <td><div align="center" style="font-size: 14px; color: #FF0000; font-weight: bold">价格：<%=rs("jg2")%>元</div></td>
                  </tr>
                </table></td>
              <td valign="top"><form name="recommend" action="tuijiansend.asp?id=<%=shopnet("id")%>" method="post">
                <div>
                  <div style="margin:10px 0 0 10px;">
                    <label for="recipient1"><span class="H">*</span>收件人称呼：</label>
                    <input name="sendname" type="value" id="sendname" size="10">
                    <label for="email1"><span class="H">*</span>电子邮件地址：</label>
                    <input name="sendmail" type="value" id="sendmail" size="40">
                  </div>
                </div>
                <div>
                  <div style="margin:10px 0 0 10px;">
                    <label for="from">&nbsp;　我的名字：</label>
                    <input name="username" type="value" id="username" value="<%=Request.Cookies(Rikee)("huiyuan")%>" size="10">
                    <label for="email4">&nbsp;电子邮件地址：</label>
                    <input name="email" type="value" id="email" value="<%=Request.Cookies(Rikee)("mail")%>" size="40">
                  </div>
                </div>
                <div><br>
                  <div style="margin:10px 0 0 10px;">
                    <label for="subject"><br>
                    &nbsp;　　　主题：</label>
                    <input name="title" type="value" id="title" value="您的好友<%=Request.Cookies(Rikee)("huiyuan")%>推荐给您的好东东" size="60">
                    
                    
                    
				    <input type="hidden" name="mc" value="<%=rs("mc")%>">
                    <input type="hidden" name="jg" value="<%=rs("jg2")%>">
				<input type="hidden" name="picurl" value="http://<%=my_url%>/user/images/Rikeeupimages/<%=rs("dt")%>">
				<input type="hidden" name="pica" value="http://<%=my_url%>/merchandise.asp?id=<%=shopnet("id")%>" >
                  </div>
                  <div style="margin:10px 0 0 10px;">
                    <label for="from" style="vertical-align:top;">&nbsp;　想说的话：</label>
                    <textarea name="topic" cols="60" rows="8" id="topic">我是<%=Request.Cookies(Rikee)("huiyuan")%>，在<%=my_name%>看到这件商品，觉得它非常适合您，所以发给您看看。有兴趣的话还可以到掌柜店里逛逛，说不定能淘到其它好东西。</textarea>
                  </div>
                </div><div style="margin:10px 0 25px 0;text-align:center;">
                  <input style="height:24px" type="submit" name="btnSubmit" value="发 送" onClick="return CheckForm();">
                  &nbsp; 
                  <input style="height:24px" type="reset" name="btnReset" value="重 置">
                </div>
              </form></td>
            </tr>
</table>
		</div>
		<div id="NoResultMsg" class="PostCardStyle1">
		  <div class="Paragraph">
				<h1>&nbsp;</h1>
		  </div>

</body>
</html>


<%
'商易仿淘宝4.0.1演示地址
'http://www.ftaobao.com

end if%>
<!--#include file="bottom.asp" -->
