<%@ Page language="c#" Codebehind="VideoList.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.VideoList" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="VideoCat" Src="Modules/VideoCat.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>		
		<!--#include file="../../inc/encoding.inc"-->
		<title><%=categoryname=="" ? "视频列表" : categoryname%> <%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<script src="<%=webSite %>inc/getParmByUrl.js" type="text/javascript"></script>
		<script type="text/javascript">
		    var extend = '<%=config.html %>';
			var shopFolder="<%=webSite %>";
			var prePage="<%=GetResourceString("PreviousPage")%>";
			var nextPage="<%=GetResourceString("NextPage")%>";
			var cid ="<%=Request.QueryString["CatID"] == null ? "0" : Request.QueryString["CatID"] %>";
			var page="<%=Request.QueryString["page"] == null ? "1" : Request.QueryString["page"] %>";
			var sort="<%=Request.QueryString["OrderSort"] == null ? "1" : Request.QueryString["OrderSort"] %>";
        </script>
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear">
		    <!--位置导航开始-->
		    <div class="path"><%=GetCurrentPosition()%></div>
		    <!--位置导航结束-->
		    <div id="content_left">
		        <uc1:VideoCat id="VideoCat1" runat="server"></uc1:VideoCat>
		    </div>
		    <div id="content_right">
		        <!--商品列表开始-->
			    <div class="plist">
					<div class="pro_hlist">
						<%BindProductList("dlProducts1",10);%>
						<asp:DataList id="dlProducts1" CellPadding="3" CellSpacing="0" GridLines="None" RepeatColumns="1" RepeatDirection="Horizontal" RepeatLayout="Table" Visible="true" Width="100%" runat="server">
							<ItemTemplate>													
								<table cellpadding="3" cellspacing="0" width="100%">
									<tr>
                                        <td width="20%">
                                            <a href='<%=webSite %>videos/video-<%#DataBinder.Eval(Container.DataItem,"VideoID")%>.<%=config.html%>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"VideoName")%></a>
										</td>
									</tr>
								</table>
							</ItemTemplate>
						</asp:DataList>
					</div>
			    </div><!--end plist-->
				<!--商品列表结束-->
				
				<asp:panel id="plPage" visible="true" runat="server">
				<!-- 翻页开始-->
				<div class="page clear">
					<div class="fpage1">
                        <asp:Label ID="lblPagerInfo" runat="server"></asp:Label>
                        <%--<input id="gopage" type="text" class="gopage" size="1" />
                        <input id="go" type="button" value="Go" class="go" />--%>
                    </div>
                    <div class="fpage2">
                        <span class="prepage"></span>
                        <asp:Label ID="lbPage" runat="server"></asp:Label>
                        <span class="nextpage"></span>
                    </div>                                
				</div>
				<!-- 翻页结束-->
				</asp:panel>
				
				<asp:panel id="plNoProduct" visible="false" runat="server">
					<div style="margin:20px;">
						<h3>没有视频！</h3>
					</div>
				</asp:panel>
					        
		    </div>
		</div>	
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>	
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>	
	</body>
</html>   
