<%@ Page language="c#" Codebehind="HelpList.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.HelpList" %>
<%@ Register TagPrefix="uc1" TagName="NewsCatNav" Src="Modules/NewsCatNav.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LoginForm" Src="Modules/LoginForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SmallCart" Src="Modules/SmallCart.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="Modules/LeftNavTop2Level.ascx" %>
<%@ Register TagPrefix="uc1" TagName="CommendProduct" Src="Modules/CommendProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SpecialProduct" Src="Modules/SpecialProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HotProduct" Src="Modules/HotProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NewProduct" Src="Modules/NewProduct.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.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><%=GetResourceString("HelpNavigation")%>|<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
		<%--<%if (this.Request.Url.PathAndQuery.ToString().ToLower().IndexOf("/helplist.aspx?id=3&aid=1") == -1  && this.Request.Url.AbsolutePath.ToString().IndexOf("/helps/help_3_1.html") == -1){%>--%>
		<%if (this.Request.QueryString["page"] == null){%>
		<style type="text/css">
		#navbar ul li.helplist{background:url("/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Template/<%=config.TemplateFolder%>/images/navbar_on.jpg") no-repeat;}
        #navbar ul li.helplist a:link,#navbar ul li.helplist a:visited,#navbar ul li.helplist a:hover{color:#ffffff; font-weight:bold; text-decoration:none;}
		</style>
		<%} else{%>
		<style type="text/css">
		#navbar ul li.helplist1{background:url("/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Template/<%=config.TemplateFolder%>/images/navbar_on.jpg") no-repeat;}
        #navbar ul li.helplist1 a:link,#navbar ul li.helplist1 a:visited,#navbar ul li.helplist1 a:hover{color:#ffffff; font-weight:bold; text-decoration:none;}
		</style>
		<%} %>
		<script type="text/javascript">
		    function getQueryStringRegExp(name) 
	        {    
		        var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
		        if (reg.test(location.href))
			        return unescape(RegExp.$2.replace(/\+/g, " "));
			        return "";
	        }
		    $(document).ready(function(){
		        if(getQueryStringRegExp('page') != '')
		        {
		            $('div.navcontainer a').each(function(){
		                $(this).attr('href',$(this).attr('href') + '&page=us')
		            });
		        }
		    });
		</script>
	</HEAD>
	<body>
		<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
		    <!--位置导航开始-->
			<div class="path"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> > <%=GetResourceString("HelpCenter")%></div>
			<!--位置导航结束-->
			<div id="content">
				<div id="content_left_side">
					<!--帮助导航开始-->
					<div class="lframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><%=GetResourceString("HelpNavigation")%></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
					        <div class="navcontainer"><%=BindLeftNav("#000000","#808080")%></div><%--注意:外面这层DIV以及class="navcontainer"不能去掉--%>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--帮助导航结束-->
				</div>
				<div id="content_middle_side">
				    <!--帮助内容开始-->
					<div class="mframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><div class="on"><%=GetHelpCategoryName("")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
					        <div class="title">
								<%=article.Title%>
							</div>
							<div class="newscontent">
								<%=article.Content%>
							</div>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--帮助内容结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
	</body>
</HTML>
