<!--#include file="conn.asp"-->
<!--#include file="b2b_sys.asp"-->
<!--#include file="buy2buysys.asp"-->
<%
if session("chklogin1")="" then
response.write "<script language=javascript>alert('对不起，您还没有登陆！');history.go(-1);</script>"
response.End
end if

ProductID=SafeRequest("ProductID",1)
action=FormatSQL(SafeRequest("action",0))
if action="del" then
	mSql="delete from Favorites where UserID='"&Session("uID")&"' and ProductID='"&ProductID&"'"	
	conn.execute(mSql)
end if
%>
<html>
<head>
<title><%=webname%>--我的收藏</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #ffffff;
}
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center" background="images/bg.jpg"><object 
      codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 
      height=451 width=960 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
          <param name="movie" value="flash/main_2.swf">
          <param name="quality" value="high">
          <param name="wmode" value="transparent">
          <embed src="flash/main_2.swf" quality="high" 
      pluginspage="http://www.macromedia.com/go/getflashplayer" 
      type="application/x-shockwave-flash" width="960" 
      height="451"></embed>
      </object></td></tr>
  </table>
<!--#include file="b2b_includefile/b2b_top.asp" -->
<table width="918" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="194" align="right" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="182">
          <!-- fwtable fwsrc="未命名" fwbase="productleft.gif" fwstyle="Dreamweaver" fwdocid = "287395630" fwnested="1" -->
          <tr>
            <td height="55" valign="bottom"><TABLE cellSpacing=0 cellPadding=0 width=180 
      background=images/left_best02.gif border=0>
              <TBODY>
                <TR>
                  <TD height="10" bgcolor="#FFFFFF">&nbsp;</TD>
                </TR>
                <TR>
                  <TD><IMG src="images/hydl.gif" width="181" height="57" border=0></TD>
                </TR>
                <TR>
                  <TD align=middle><!-- #include file="login.asp"--></TD>
                </TR>
                <TR>
                  <TD><IMG src="images/left_ranking02.gif" width="181" height="16" 
      border=0></TD>
                </TR>
              </TBODY>
            </TABLE></td>
          </tr>
          <tr>
            <td height="55" valign="bottom"><img name="productleft_01" src="image/poeration_01.gif" width="182" height="45" border="0" alt=""></td>
          </tr>
          <tr>
            <td><table align="left" border="0" cellpadding="0" cellspacing="0" width="182">
                <tr>
                  <td width="14" background="image/productleft_02.gif">&nbsp;</td>
                  <td width="153"><table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
                      <tr bgcolor="#f7f7f7">
                        <td width="49%" height="25" bgcolor="#f7f7f7"><a href="profile.asp?action=profile">&nbsp;消息中心</a></td>
                        <td width="51%" bgcolor="#f7f7f7"><a href="profile.asp?action=customerinfo">&nbsp;个人资料</a></td>
                      </tr>
                      <tr>
                        <td width="49%" height="25" bgcolor="#FFFFFF"><a href="profile.asp?action=changepass">&nbsp;修改密码</a></td>
                        <td width="51%" bgcolor="#FFFFFF"><a href="profile.asp?action=repass">&nbsp;</a><a href="payonline.asp">在线支付</a></td>
                      </tr>
                      <tr bgcolor="#f7f7f7">
                        <td width="49%" height="25" bgcolor="#f7f7f7"><a href="profile.asp?action=goods">&nbsp;我的订单</a></td>
                        <td width="51%" bgcolor="#f7f7f7"><a href="profile.asp?action=addtocart">&nbsp;我的购物车</a></td>
                      </tr>
                      <tr>
                        <td width="49%" height="25" bgcolor="#FFFFFF"><a href="profile.asp?action=goods">&nbsp;</a><a href="profile.asp?action=receiveaddr">收货人信息</a></td>
                        <td width="51%" bgcolor="#FFFFFF"><a href="profile.asp?action=deposit">&nbsp;积分预存款</a></td>
                      </tr>
                      <tr bgcolor="#f7f7f7">
                        <td width="49%" height="25" bgcolor="#f7f7f7"><a href="profile.asp?action=statinfo">&nbsp;统计信息</a></td>
                        <td width="51%" bgcolor="#f7f7f7"><a href="mysc.asp">&nbsp;我的收藏</a></td>
                      </tr>
                  </table></td>
                  <td width="15" background="image/productleft_04.gif">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><img name="productleft_05" src="image/productleft_05.gif" width="182" height="19" border="0" alt=""></td>
          </tr>
      </table></td>
    <td width="724" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="665">
      <!-- fwtable fwsrc="用户中心.png" fwbase="usercenter.gif" fwstyle="Dreamweaver" fwdocid = "1831702457" fwnested="1" -->
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><img name="usercenter_01" src="image/usercenter_01.gif" width="665" height="82" border="0" alt=""></td>
      </tr>
      <tr>
        <td width="665" background="image/usercenter_02.gif"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" height="45" align="center"><img src="image/sc.gif"></td>
          </tr>
          <tr>
            <td><TABLE cellSpacing=1 cellPadding=3 width="97%" 
                              align=center bgColor=#f2f2f2 border=0>
                <form id="form1" name="form1" method="post" action="check.asp">
                  <TR align=middle bgColor=#f7f7f7>
                    <TD width="7%">编号</TD>
                    <TD width="38%">商品名称</TD>
                    <TD width="21%">市场价</TD>
                    <TD width="17%">当前价</TD>
                    <TD width="17%">删除</TD>
                  </TR>
                  <%
					mSql="select * from Favorites where UserID='"&Session("uID")&"'"
					set mRs=conn.execute(mSql)
					if not (mRs.eof and mRs.bof) then
						while not mRs.eof
					%>
                  <TR align=middle bgColor=#FFFFFF>
                    <TD><input type="checkbox" name="Prodid" value="<%=mRs("ProductID")%>"></TD>
                    <TD><a href="b2b_cpinfo.asp?id=<%=mRs("ProductID")%>" target=_blank>
                      <%
					  mSql="select * from product where ID="&mRs("ProductID")
					  set tRs=conn.execute(mSql)
					  if not (tRs.eof and tRs.bof) then
					  	productName=tRs("Name")
						response.write productName
						Price1=tRs("Price1")
						
Select Case LngGrpID
Case "" 
PriceNow = tRs("Price2")

Case 4
PriceNow = tRs("Price2")

Case 30
PriceNow = tRs("Price3")

Case 31
PriceNow = tRs("Price4")

Case 32
PriceNow = tRs("Price5")

End Select						
					  end if
					  %>
                    </a></TD>
                    <TD><S><%=Price1%></S>元</TD>
                    <TD><%=PriceNow%>元</TD>
                    <TD><A href="mysc.asp?action=del&ProductID=<%=mrs("productID")%>"> <IMG  height=15 src="admin/images/pic22.gif"  width=17 border=0></A> </TD>
                  </TR>
                  <%
							mRs.movenext
						wend
					end if
					mRs.close
					set mRs=nothing
					%>
                  <TR align=middle bgColor=#FFFFFF>
                    <TD colspan="5" align="right"><input name="Submit3" type="submit" class="input_bot" value="放入购物车"></TD>
                  </TR>
                </form>
            </TABLE></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img name="usercenter_03" src="image/usercenter_03.gif" width="665" height="4" border="0" alt=""></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<!--#include file="b2b_includefile/b2b_ver.asp" -->
<!--#include file="disuser.asp"-->
</body>
</html>
<script language = "JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
	function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
//-->
</script>