<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="web.tuan.index" %>

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>特卖场 － <%=config.SiteTitle %></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<meta name="description" content="<%=cont %>"/> 
<meta name="keywords" content="<%=keyw %>"/>

<link type="text/css" rel="stylesheet" href="image/index.css" />

<script type="text/javascript" language="javascript"> var b=null;</script>
<script src="image/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="image/jd.js"></script>


<script type="text/javascript" language="javascript">
function xs(id)
{

 if(b==true)
 {
  document.getElementById("qq"+id).style.display="none";
  b=false;
 }
 else
 
 {
  document.getElementById("qq"+id).style.display="";
  b=true;
 }
}
</script>
<script language="javascript" type="text/javascript">
<!--

function Copy(id) 
 {

var otext = document.getElementById('Lblj'+id).value; 
otext=otext.replace('&lt;','<');
otext=otext.replace('&gt;','>');
window.clipboardData.setData('text',otext); 
alert('复制成功!'); 

}

// -->
</script>
			 <script language="javascript"> 

              //jb函数会根据不同的浏览器初始化个xmlhttp对象 
              function jb() 
              { 
                 var A=null; 
               try 
               { 
                   A=new ActiveXObject("Msxml2.XMLHTTP"); 
                } 
                 catch(e) 
                 { 
                  try 
                   { 
                      A=new ActiveXObject("Microsoft.XMLHTTP"); 
                   } 
                       catch(oc) 
                      { 
                     A=null 
                   } 
              } 
           if ( !A && typeof XMLHttpRequest != "undefined" ) 
            { 
               A=new XMLHttpRequest() 
             } 
           return A 
              } 
              
       
           
               function Goo(id) 
              { 
               
               // var svalue = obj.value; 
                
                 var weburl = "zh.aspx?pid="+id; 
                 
                 var xmlhttp = jb(); 
            
                 xmlhttp.open("post",weburl,true); 
               
                 xmlhttp.send(null); 
              } 
		</script>


</head>
<body>



<script src="image/DD_belatedPNG.js" mce_src="image/DD_belatedPNG.js"></script>
<script type="text/javascript"> 
if(window.XMLHttpRequest){ //Mozilla, Safari, IE7 
    if(!window.ActiveXObject){ // Mozilla, Safari, 
        //alert('Mozilla, Safari'); 
    }else{ 
       // alert('IE7'); 
    } 
}else { 
    //alert('IE6'); 
      DD_belatedPNG.fix('img,.logo,.thiscity,.dealPrice,.dealPrice-min,.over,.isopen,.none,.share'); 
}


</script> 




<form id="Form1" method="post" name="form" runat="server">


<div class="header clearfix">
	<h1 class="lf"><a href="../default.html" target="_blank"><%=config.SiteLogo %></a></h1>
	<h2 id="desc"></h2>
	
	<div class="rss rf clearfix">
		<p>输入邮箱地址，订阅每日精品团购!</p>
	
			<div class="lf">
				<input type="text" id="email" datatype="email" require="true" value="" class="txt lf" name="email" />
		
				
                  <asp:Button ID="Bem" runat="server" class="but lf" OnClick="Bem_Click" />
				</div>
				<span class="lf"></span>
		
<!--<p class="clear">
<a href="#" rel="addrss" class="phonerss" onclick="javascript:return false;">» 短信订阅，免费！</a>  
<a href="#" rel="delrss" class="phonerss" onclick="javascript:return false;">» 取消手机订阅</a>
</p>-->
	</div>
</div>
	<div class="navWrap">
		<div class="wrap clearfix">
		<ul class="nav lf">
					<li class="on"><a href="index.aspx">首页</a></li>
					<li class="on"><a href="index.aspx?type=2">团购</a></li>
					<li class="on"><a href="index.aspx?type=4">限时抢购</a></li>
				
					<li class="on"><a href="odate.aspx">往期热卖</a></li>
					<li class="on"><a href="book.aspx">问题答疑</a></li>
					<li class="on"><a href="../HelpListInfo_1.html" target="_blank">帮助中心</a></li>
				</ul>
		<div class="member rf">
				  <%if (user.MemberID>0){%>
		 
			<span class="username lf">欢迎你,<%=user.Name%>&nbsp;&nbsp;|</span>
<div id="menulist">
	<a class="top" href="../MemberCenter.aspx" target="_blank">我的会员中心</a>
	<div class="ml-bottom">
	<div class="menu-t"></div>
	<div class="menu-c">
		<a href="../MytgOrders.aspx" target="_blank">我的团购订单</a>
<a href="../Mydjqrec.aspx" target="_blank">我的返利</a>
	<a href="../Mymemb.aspx" target="_blank"> 我推荐的会员</a>
	<a href="../MymembPay.aspx" target="_blank"> 我的提成</a>
	<a href="../Myget.aspx" target="_blank"> 账户余额</a>
	<a href="../IndividualInformation.aspx" target="_blank">账户设置</a>

	<a href="../Logout.aspx" target="_blank">退出</a>
	</div>
	<div class="menu-b"></div>
	</div>
</div>
<%}else{ %>
	<a href="login.aspx">登录</a> | <a href="reg.aspx">注册</a>
<%} %>
		</div>
		</div>
	</div>
	<div class="boxWrap m10 clearfix">
	<div class="mainWrap lf">
	  <%BindProductList();%>
	  <asp:DataList id="dlProducts" CellPadding="5" CellSpacing="0" GridLines="None" RepeatColumns="1"
													RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
													<ItemStyle CssClass="alignCenterTop" />
													<ItemTemplate>

<div class="sharebox clearfix" style="border:none;">
<div class="share rf">
<ul class="clearfix">
<li style="padding:0 10px 0 12px;">分享到:</li>
<li><a href="#" class="deal-share-im im" onclick="xs(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>);">MSN/QQ</a></li>
<li><a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&amp;rurl='+escape(d.location.href)+'&amp;rtitle='+escape(d.title)+'&amp;rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网" class="kaixin">开心</a></li>
<li><a title="转贴到校内网" href="javascript:void((function(s,d,e){if(/xiaonei.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&amp;title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));" class="renren">人人</a></li>
<li><a title="推荐给豆瓣" href="javascript:var u='http://www.douban.com/recommend/?url='+location.href+'&amp;title='+encodeURIComponent(document.title);window.open(u,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330');void(0)" class="douban">豆瓣</a></li>
<li><a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi" class="sina">新浪微博</a></li>

<li><a href="link.aspx" class="fanli">邀请返利 <strong class="c1"><%=GetCurrency() %><%=config.Fl.ToString("0.00") %></strong> 元</a></li>
</ul>
<div id="qq<%#DataBinder.Eval(Container.DataItem,"ProductID")%>" class="deal-share-im-b" style="display:none;">
<p><input type="text" class="txt" size="60" id="Lblj<%#DataBinder.Eval(Container.DataItem,"ProductID")%>" value="<%=str22 %>/showProduct.aspx?ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>" onclick="this.focus();this.select();" style="height:14px;line-height:14px;color:#999;" /> <label><input id="Button1" type="button" value="复制代码" language="javascript" onclick="return Copy(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>)" />
</label>
</div>
</div>
</div><div class="goodWrap todaybor clearfix">
<h2 class="goodTitle"><a href="showProduct.aspx?ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>"><span><%# getbt(DataBinder.Eval(Container.DataItem, "ProType").ToString())%>：</span>
<%#DataBinder.Eval(Container.DataItem,"Name")%>,<%#DataBinder.Eval(Container.DataItem, "ShortDesc")%>
</a>
</h2>
<div class="teamAbout lf">
 
	
	<div class="dealPrice">
	<strong><%=GetCurrency()%> <%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%></strong>

	<span id="an<%#DataBinder.Eval(Container.DataItem,"ProductID")%>"></span>
	</div>

	<p class="marketPrice"><%=GetResourceString("MarketPrice") %>：<strong class="t1"><%=GetCurrency()%><%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:f}")%></strong> 折扣：<strong class="c1"><%# getzk(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString(), DataBinder.Eval(Container.DataItem, "MarketPrice").ToString())%></strong> 折</p>
	<div class="timeWrap"><span class="wrap"><span class="time" id="leftTime_98">
	
	<%# getjb(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>

	</span></span></div>
	<p class="dealNum c1"><strong><span id="rs"><%# getsl(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%></span>人已购买</strong></p>
	<div class="state" id="tpp">
	
	<%# gettp(DataBinder.Eval(Container.DataItem,"ProType").ToString(),DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>

		</div>
	<%# getrs(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>
 
</div>		
<div class="team-pic rf">
<div class="slides">
<ul class="slide-pic">
<li><a href="showProduct.aspx?ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>"><img id="myimg"src='../upload/<%# getzstp(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>' border="0" ></a></li>

</ul>

</div>

</div>

<span class="cityLable"><img src="image/no<%# Container.ItemIndex+1 %>.png" alt="" /></span>
</div>
<div style="height:20px;"></div>

		</ItemTemplate>
                                                  <SeparatorStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
											  </asp:DataList>
											  <div class="pagebar">
											  			      <div align="right"> <asp:label id="lblPagerInfo" runat="server"></asp:label>														  
                                <asp:HyperLink ID="hplPrev" runat="server"><%=GetResourceString("PreviousPage")%></asp:HyperLink>
[&nbsp;
<asp:Label ID="lbPage" runat="server"></asp:Label>
&nbsp;]
<asp:HyperLink ID="hplNext" runat="server"><%=GetResourceString("NextPage")%></asp:HyperLink>
                              &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                              </div></div>
	</div>						
<div class="toolWrap rf">

<div class="askTool mb10 bor">
<div class="t"><h3>销售答疑：</h3></div>
<ul>
<%=ly %>
</ul>
<p class="link"><a href="book.aspx" class="c1">查看全部</a> | <a href="book.aspx#ask" class="c1">我要提问</a></p>
</div>

<div class="phone400 mb10 bor"><img src="image/tool-hotPhone.gif" alt="" /></div><div class="mb10"><img src="image/tui.gif" alt="放心退" /></div>
<div class="mb10 bor"><img src="image/pf.jpg" alt="先行赔付" /></div>

<img src="image/fanli.gif" alt="邀请返利" />
<div class="sidemain mb10 bor">
<p>每邀请一位好友首次购买，您将获 <strong class="c1">¥<%=config.Fl.ToString("0.00") %></strong> 元返利<br /><a href="link.aspx">» 点击获取您的专用邀请链接</a></p>
</div>
</div>
</div>

<div class="footer">
<div class="wrap clearfix">Copyright © 2011 - 2112 <%=config.SiteUrl %> All Rights Reserved
<%=config.SiteName%> 版权所有</div>

</div>
	
</form>
      
</body>
</html>
