<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<%<Hi:HeadContainer ID="HeadContainer1" runat="server" />%>
<%<Hi:PageTitle runat="server" />%>
<%<Hi:MetaTags runat="server" />%>
<link href="/style/main.css" rel="stylesheet" type="text/css" />
<link href="/style/m18.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/style/pagevalidator.css" type="text/css" media="screen" />
<script src="/utility/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/utility/jquery.cookie.js" type="text/javascript"></script>
<script src="/utility/validate/pagevalidator.js" type="text/javascript"></script>
<script src="/utility/globals.js" type="text/javascript"></script>
<script src="/script/web_qq.js" type="text/javascript"></script>
</head>

<body>
<form runat="server" id="form1">

<!--在线客服-->
<div id="qq_right" style="top:30px;left:-146px;position:absolute;z-index:100;">
<div class="a">
  <div class="b"></div>
  <div class="c">
  <%<Hi:OnlineServer runat="server" />%>
	<div class="closekf" onclick="closekf();">关闭在线客服</div>
  </div>
  <div class="d"></div>
</div>
<div class="e" id="e" onmouseover="showKefu(this);"></div>
</div>
<!--新top-->
	
	<!--{{顶部栏 开始}}-->
	
	<div class="head">

<div class="top1">
<div class="top1_c">
     <span class="login_zhuangtai">
<%<Hi:Common_CurrentUser runat="server" ID="lblCurrentUser"/>%> 
<%<Hi:Common_MyAccountLink ID="linkMyAccount" runat="server" />%>
<b>
<%<Hi:Common_LoginLink ID="Common_Link_Login1" runat="server" />%>
<%<Hi:Common_Link_OpenId runat="server" ImageUrl="images/alipay_small.png" /> %>
</b> 
</span>
<span><a href="url:productunslaes">下架区</a></span>
<span>|</span>
<span><a href="url:distributorLogin">分销商登录</a></span>
<span>|</span>
<span><a href="url:LeaveComments">店铺交流区</a> </span>
<span>|</span>
<span><a href="url:AllHelps">帮助中心</a> </span>
<span>|</span>
<span><%<Hi:Common_OnlineGiftLink runat="server" text="积分商城"/> %> </span>
</div>
</div>
<div class="lo_search">
<div class="logo">
<a href="url:home"><%<Hi:Common_Logo runat="server" />%></a>
</div>
<div class="search_hot">
<div class="search">
			<span style="display:none;"><%<Hi:Search_Class ID="Search_Class" runat="server" />%></span>
 
<input type="text" Id="txt_Search_Keywords" class="input1" />
<input type="button" value="搜索" onclick="searchs()" class="sub" />
</div>

  <script type="text/javascript">
      function searchs() {
          var item = $("#drop_Search_Class").val();
          var key = $("#txt_Search_Keywords").val();
          if (key == undefined)
              key = "";

          var url = applicationPath + "/listProduct.aspx?keywords=" + key + "&categoryId=" + item;
          window.location.href = encodeURI(url);
      }

      $(document).ready(function() {
          $('#txt_Search_Keywords').keydown(function(e) {
			  if (e.keyCode == 13) {
                  searchs();
				  return false;
              }
          })
		  $("a").not("#ty_menu_title ul a").bind("click",function(){
		  		$.cookie("class",-2,{expires: 7, path: "/"});
		  });
		  $("#ty_menu_title ul a").each(function(i,k){
					$(this).bind("click",function(){
						var liobj=null;
						if($(this).attr("class")==""){
							liobj=$(this).parents("li:eq(1)");
						}else{
							liobj=$(this).parents("li");
						}
						var suoyin=$("#ty_menu_title ul li").index(liobj);
						$.cookie("class",suoyin,{expires: 7, path: "/"});
					});
		  });

		  if($.cookie("class")!=null&&$.cookie("class")!="undefined"&&document.forms[0].action.indexOf("default.aspx")<0&&$.cookie("class")!=-2){
		  		$("#ty_menu_title ul li:eq("+$.cookie("class")+") a:eq(0)").attr("class","ty_menu_select");
		  }else if($.cookie("class")==-2){
		  		$.cookie("class",null,{expires: 7, path: "/"});
		  }
		  else{
		  		$("#ty_menu_title ul li:eq(0) a:eq(0)").attr("class","ty_menu_select");
		  }
      });
	  
  </script>
<div class="hot">
<%<Hi:HotKeywords ID="HotKeywords1" runat="server" TemplateFile="/ascx/tags/Common_Comment/Skin-HotKeywords.ascx" />%></div>
</div>

</div>
<div class="nav">

<div  class="nav_c"  id="ty_menu_title">
<ul id="nav_top" >
<li><b><a class="drop" href="url:home"><span>首页</span></a></b></li>
<Hi:Common_PrimaryClass runat="server" MaxCNum="7" />
</ul>
</div>
</div>
<div class="link_cart">
<ul class="nav_link">
<li> <a href="url:user_MyAccountSummary">我的帐户</a></li>
<li> <a href="url:user_UserOrders">订单查询</a></li>
<li> <a href="url:AllArticles">商城资讯</a></li>
<li  class="qiang_icon" > <% <Hi:Common_CountDownLink runat="server" text="限时抢购"/> %></li>
<li> <% <Hi:Common_GroupBuyLink runat="server" text="团购"/> %></li>
<li> <a href="url:brand">品牌专卖</a></li>
<li><a href="url:Promotes">优惠活动中心</a></li>
</ul>

<ul class="cart_info">
<li  class="cart_infol"></li>
<li  class="cart_infom"><%<Hi:Common_ShoppingCart_Info runat="server" />%></li>
<li  class="cart_go"><Hi:SiteUrl UrlName="shoppingCart" Target="_blank" runat="server"> <img src="/images/m18/cart_go.jpg" /> </Hi:SiteUrl></li>
<li  class="cart_infor"></li>
</ul>

</div>

<div class="top_banner"><Hi:Common_ShowAds runat="server" AdsName="AD1" /></div>
</div>

<div class="main">	<!-- InstanceBeginEditable name="编辑区" -->
    <script src="/utility/popup.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("#btnLoginAndBuy").bind("click", function() { LoginAndCheck(); });
        $("#btnAmoBuy").bind("click", function() { window.location.href = applicationPath + "/SubmmitOrder.aspx"; });
        $("#textfieldusername").keydown(function(e) { if (e.keyCode == 13) { LoginAndCheck(); return false; } });
        $("#textfieldpassword").keydown(function(e) { if (e.keyCode == 13) { LoginAndCheck(); return false; } });
    }); 
    function CloseLogin() { 
        $("#loginForBuy").hide('hide');
    }
    function GoToCheck() {
        if ($("#ShoppingCart_hfdIsLogin").val() == "logined")
            return true;
            
        $("#loginForBuy").show('hide');
        return false;
    } 
    // 登录后再购买
    function LoginAndCheck() {
        var username = $("#textfieldusername").val();
        var password = $("#textfieldpassword").val();
        var thisURL = document.URL;

        if (username.length == 0 || password.length == 0) {
            alert("请输入您的用户名和密码!");
            return;
        }

        $.ajax({
            url: "Login.aspx",
            type: "post",
            dataType: "json",
            timeout: 10000,
            data: { username: username, password: password, action: "Common_UserLogin" },
            async: false,
            success: function(data) {
                if (data.Status == "Succes") {
                    $("#loginForBuy").hide('hide');
                    $("#hiddenIsLogin").val('logined');
                    window.location.href = applicationPath + "/SubmmitOrder.aspx";
                }
                else {
                    alert(data.Msg);
                }
            }
        });
    }
</script>
<%<asp:HiddenField runat="server" ID="hfdIsLogin" value="0" /> %>
<div class="core_form2">
<div class="core_biaoji"><img src="/images/core/process/buy_cart_11.jpg" /></div>
<div class="core_blank16"></div>
<div ><%<Hi:SmallStatusMessage id="Status" runat="server" Width="200" Visible="False" />%></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="41%" height="24" align="left" valign="middle">
		<asp:Panel ID="pnlShopCart" runat="server">
<div class="core_sku_tab">
<span>温馨提示</span>
如果你记得该商品的货号，可直接输入货号进行添加商品</div>	</td>
    <td width="1%" align="left" valign="middle">&nbsp;</td>
    <td width="22%" align="left" valign="middle">
<%<asp:TextBox ID="txtSKU" runat="server" Cssclass="core_sku_input"   />%> 
					
 </td>
    <td width="36%" align="left" valign="middle">
<%<asp:Button ID="btnSKU" runat="server"  Cssclass="core_sku_submit" text="添加到购物车"  />%>
    </td>
  </tr>
</table>
<div class="core_blank16"></div>
<%<Hi:Common_ShoppingCart_ProductList runat="server" Width="100%" />%>
<div class="core_blank16"></div>

				<%<Hi:Common_ShoppingCart_GiftList runat="server" Width="100%" />%>


<div class="core_gifts_bline"></div>
<div class="core_blank16"></div>
<div class="core_gifts_jiesuan">

<div class="clear_buycart">	<%<Hi:ImageLinkButton ID="btnClearCart" IsShow="true" DeleteMsg="您确认要清空购物车吗？"  ImageUrl="images/core/process/clearcart.gif"  runat="server"  />%>	 </div>
<div class="jiesuan_buycartinfo">
商品金额:<span class="core_giftprice"><%<Hi:FormatedMoneyLabel runat="server" ID="lblAmoutPrice" />%></span><br />
满额打折活动:<span class="core_giftprice2"><%<asp:Literal runat="server" ID="litlDiscountPrice"></asp:Literal>%><%<asp:HyperLink ID="hlkDiscountName" runat="server" Target="_blank"></asp:HyperLink>%></span><br />
<!--礼品金额:<span class="core_giftprice2"> </span><br />-->
购物车小计:<span class="core_giftprice3"><%<Hi:FormatedMoneyLabel ID="lblTotalPrice" runat="server" />%></span><br />
<div class="core_buy_cartsub">
			<%<asp:Button ID="btnShopping"  class="cart_conbtn" Text=" " runat="server" />%>
			<%<asp:Button ID="btnCheckout"  class="cart_chekout" Text=" " runat="server" OnClientClick="return GoToCheck();" />%> 

			</div>
</div>
</div>
</div>

		</asp:Panel>
		<div class="bTopMargin10" style="text-align:center"><%<asp:Literal ID="litNoProduct" runat="server" Text="您的购物车中没有任何商品"></asp:Literal> %></div>
  <!--下-->
  <div class="login_tan" id="loginForBuy" style="display:none;">
      <table width="0%" border="0" cellspacing="0">
        <tr>
          <td width="50" height="61">&nbsp;</td>
          <td width="61">&nbsp;</td>
          <td colspan="2">&nbsp;</td>
          <td width="116" align="right" valign="top"><img alt="关闭" onclick="CloseLogin();" id="imgCloseLogin" src="/images/tancu_03.gif" width="26" height="26" /></td>
        </tr>
        <tr>
          <td height="45" valign="middle">&nbsp;</td>
          <td valign="middle" class="fB">用户名：</td>
          <td colspan="2" valign="middle"><label>
            <input type="text" name="textfield" id="textfieldusername"  class="login_tan_input1"/>
          </label></td>
          <td valign="middle">&nbsp;</td>
        </tr>
        <tr>
          <td height="45" valign="middle">&nbsp;</td>
          <td valign="middle" class="fB">密　码：</td>
          <td colspan="2" valign="middle"><input type="password" name="textfield2" id="textfieldpassword" class="login_tan_input2" /></td>
          <td valign="middle"><a href="url:ForgotPassword">忘记密码了?</a></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td height="40">&nbsp;</td>
          <td width="123"><label>
            <input type="button" name="button" id="btnLoginAndBuy" value=" " class="login_tan_input3" />
          </label></td>
          <td width="79"><a href="url:register">我要注册</a></td>
          <td><input id="btnAmoBuy" type="button" value="匿名购买" /></td>
        </tr>
      </table>
    </div>
<!-- InstanceEndEditable --></div>

<div class="footer">
<div class="footer_ad"><Hi:Common_ShowAds runat="server" AdsName="AD19" /></div>
<div class="foot_help">
<ul>
	<%<Hi:Common_Help runat="server" TemplateFile="/ascx/tags/Common_Comment/Skin-Common_Help.ascx"  />%>
</ul>
</div>
<div class="foot_friendlink">
<table width="980" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="foot_friendlinkt" valign="top">友情链接:</td>
    <td valign="top"><div class="foot_friendlinkc"><%<Hi:Common_FriendLinks runat="server" TemplateFile="/ascx/tags/Common_Comment/Skin-Common_FriendLinks.ascx" />%></div></td>
  </tr>
</table>	
</div>
<div  class="footer_info">
<div><%<Hi:PageFooter runat="server" />%></div>
</div>

</div>

</form>
</body>
<!-- InstanceEnd --></html>
