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


<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
		<title><%=config.SiteTitle %> -- 积分商品列表</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 

<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 

<meta HTTP-EQUIV="expires" CONTENT="0"> 

<meta name="description" content="<%=config.SiteTitle %>--商品列表"/> 
<meta name="keywords" content="<%=config.SiteTitle %>--商品列表"/>
<link href="img/css/base.css" rel="stylesheet" type="text/css" media="all" />

<link href="img/css/index.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/style.css" rel="stylesheet" type="text/css" media="all" />

  		<script language="javascript">
												function addtocart(pid,jf)
												{
												
														temp=window.open('jfdg.aspx?score='+jf+'&pid='+pid,'shopcat','width=700,height=450,scrollbars=yes');
														temp.focus();
													
												}
												</script>	    

 <script type="text/javascript">
 function SetCwinHeight(cs){
  var bobo=document.getElementById(cs); //iframe id
  if (bobo){
   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){ bobo.height = bobo.Document.body.scrollHeight-0;
         }
   }
    else
    {
        if(bobo.contentWindow.document && bobo.contentWindow.document.body.scrollHeight)
            bobo.height = bobo.contentWindow.document.body.scrollHeight;//Opera
    }
  }
 }
</script>
   </head>
	<body >

	<form id="Form1" method="post" runat="server">
		<!--头部导航条开始-->
		<iframe id=head src="modHtml/header.html" onload="Javascript:SetCwinHeight('head')" width=100% height="196" frameborder=no  MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>
<div style="width:990px;margin:0px auto;">
		<!--头部导航条结束-->
		<!--当前位置开始-->
		
		<!--当前位置结束-->
		


	   <div class="news_dt">
    <ul>
    <li class="dt_left"></li>
      <li class="dt_bg">
        <div align="left" style="font-weight: normal;">你目前的位置:&nbsp;<a href=Default.html target="_blank">首页</a> → <a href="jifen.aspx"><%=lm %>积分奖品列表</a></div>
      </li>
      <li class="dt_right"></li>
    </ul>
    </div>	
		
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="middle">
      <tr align="left" valign="top">
			  
        <td width="211" style="padding-right:6px;"> 
          <div > 
          <!--类别导航开始-->
      		        <div class='lframe'>
      
          <table align="center" width="100%" cellspacing="0" cellpadding="0">
            <tr> 
          
              <td class="tml"><div style=" margin-top:5px"><span class="tt">积分奖品分类：</span></div></td>
      
            </tr>
          </table>
        </div>
        <div class='lframe'> 
          <table width="100%" cellspacing="0" cellpadding="0" class="db">
            <tr> 
              <td class="ml" ></td>
              <td class="mm" >  
			
  <asp:DataList id="jffl" CellPadding="5" CellSpacing="0" GridLines="None" RepeatColumns="1"
													RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
													<ItemStyle CssClass="alignCenterTop" />
													<ItemTemplate>
													
													<div class="lb">
													<img src='img/jian.jpg' border="0"><a href="jifen.aspx?lb=<%#DataBinder.Eval(Container.DataItem,"id")%>">  <%#DataBinder.Eval(Container.DataItem,"areaName")%></a>
													</div>
													
														</ItemTemplate>
														
                                                  <SeparatorStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
											  </asp:DataList>
													
													
                </td>
              <td class="mr"></td>
            </tr>
          </table>
        </div>
  
          <table style="width: 100%">
            <tr>
                <td style="width: 100px">
               <div align="center"><%=strlogo%></div>
                </td>
            </tr>
        </table>
   
	        <!--类别导航结束-->
          </div>
				
				    </td>
				<td>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><%=strlogo1 %></div></td>
                  </tr>
                </table>
                	    	<table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="8">
                    </td>
                  </tr>
                </table>
					<!--子类列表开始-->

					<!--子类列表结束-->
					<!--商品列表开始-->
					
        <div class='mframe'> 
         
      

						<table width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td class="tl"><div class="tt"><%=lm %>积分奖品列表：</div></td>
								<td class="tm"></td>
								<td class="tr"></td>
							</tr>
						</table>
        <br />
          <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
							
								<td class="mm">
									<table width="100%" cellpadding="0" cellspacing="0" border="0">
										<tr>
											<td valign="top" >
											<div align="center">
								
                                                </div>
                                           
                                               
											  <asp:DataList id="mypp" CellPadding="5" CellSpacing="0" GridLines="None" RepeatColumns="2"
													RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
													<ItemStyle CssClass="alignCenterTop" />
													<ItemTemplate>
														
														  
                              
                            <table width="99%" border="0"  cellpadding="0" cellspacing="8" >
                              <tr> 
                                <td width="112" > 
                                  <div align="center"><a href="showFreepro.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>" target="_blank"><img src='<%=config.Path%>upload/jifen/<%#DataBinder.Eval(Container.DataItem,"simg")%>' border=0 style="border:1px #DADADA solid;"></a></div></td>
                                <td width="1452" ><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
                                    <tr> 
                                      <td height="25"><img src="images/tou.gif" width="21" height="14" border="0" align="absmiddle"> 
                                        <b><a href='showFreepro.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>' target=_blank > 
                                        <%#DataBinder.Eval(Container.DataItem,"Name")%>
                                        </a></b> </td>
                                    </tr>
                                    <tr> 
                                      <td height="25">商品价格<span class="thumbnailTitle">: 
                                        <font color=red>￥&nbsp; 
                                        <%#DataBinder.Eval(Container.DataItem,"Price","{0:f}")%>
                                        </font> </span></td>
                                    </tr>
                                    <tr> 
                                      <td height="25"><span class="thumbnailTitle">所需积分: 
                                        <%#DataBinder.Eval(Container.DataItem,"jf")%>
                                        </span></td>
                                    </tr>
                                    <tr> 
                                      <td height="25"><span class="thumbnailTitle">现存数量: 
                                        <%#DataBinder.Eval(Container.DataItem,"sl")%>
                                        </span></td>
                                    </tr>
                                    <tr> 
                                      <td height="25">有无保修： 
                                        <%#DataBinder.Eval(Container.DataItem,"bx")%>
                                      </td>
                                    </tr>
                                    <tr> 
                                      <td><span class="thumbnailTitle"><br>
                                        <img src="images/jfdh.gif" onClick='addtocart(<%#DataBinder.Eval(Container.DataItem,"ID")%>,<%#DataBinder.Eval(Container.DataItem,"jf")%>)' style="cursor:pointer;"> 
                                        </span></tr>
                                  </table></td>
                              </tr>
                            </table>
													
													</ItemTemplate>
                                                  <SeparatorStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
											  </asp:DataList>
                                           
                                              
													<div align="center">
												  <!-- 翻页-->
											  </div>
							     <p class="pagemenu" style="text-align: right">
							     <br />
                    	<span>
                    		共<asp:Literal ID="lttotal" runat="server"></asp:Literal>
                    	    个商品，第<asp:Literal ID="ltcurpage" runat="server">1</asp:Literal>页/共<asp:Literal ID="lttotalpage" runat="server"></asp:Literal>页
                     	</span>
                    	<span class="padd1">
                    		<asp:LinkButton ID="lbfirst" runat="server" OnClick="lbfirst_Click" ToolTip="第一页" ><img src="images/first-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="pre" runat="server"  ToolTip="上一页" OnClick="pre_Click" ><img src="images/left-icon.gif" id="IMG1" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lbup" runat="server" OnClick="lbup_Click" CssClass="pageA">上一页</asp:LinkButton>
                        	<asp:LinkButton ID="lbdown" runat="server" OnClick="lbdown_Click" CssClass="pageA">下一页</asp:LinkButton>
                        	<asp:LinkButton ID="next" runat="server" ToolTip="下一页" OnClick="next_Click" ><img src="images/right-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lblast" runat="server" OnClick="lblast_Click" ToolTip="最后一页"><img src="images/last-icon.gif" border="0"/></asp:LinkButton>
                        </span>
                    </p>
													
                    </td>
									  </tr>
									</table>
																	</td>
							
							</tr>
						</table>
					</div>
			  <!--商品列表结束-->				</td>
			</tr>
		</table>
		</div>
	
		<iframe id="help" src="modHtml/helper.html" onload="Javascript:SetCwinHeight('help')" width=100% frameborder=no  MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>
	
    <script language="JavaScript" src="stat.aspx" type="text/JavaScript"></script>

</form>
	</body>	
</HTML>
