<%@ Page PathInChannel="{ID}{Page}{Ext}" Object="Article" %>
<%@ OutputCache Duration="86400" VaryByParam="none" %>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="Article" Object="Article" PageID="Request.QueryString['ID']" ForMeta="true" />
<ilghar:Get ID="ArticlePage" Source="Manager.ParseContent(Article[Content], this)" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Article[Title]%> - <%=Article[CategoryName]%> - <%=Channel[Name]%> - <%=Site[Name]%></title>
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "article";
var _webPath = "<%=WebPath%>";
var _id = "<%=Article[InnerID]%>";
</script>
</head>
<body>
<%If String.IsNullOrEmpty(Site[Logo])%>
	<!-- TemplateBeginEditable name="广告位：Banner" -->
	<ilghar:Ad Guid="{099A2FEC-2278-4b03-BC08-A3C1FC3ADC66}">
		<a href="http://www.ilghar.cn"><img src="<%=ImagePath%>ad/banner.gif" alt="Ad" style="width:990px;height:150px" /></a>
	</ilghar:Ad>
	<!-- TemplateEndEditable -->
<%Else%>
	<div class="Header">
		<ul>
			<li class="Left"><img src="<%=Site[Logo]%>" alt="<%=Site[Name]%>" /></li>
			<li class="Right"><%=Site[Name]%></li>
		</ul>
	</div>
<%EndIf%>

<!-- TemplateBeginEditable name="主菜单" -->
<ilghar:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
	<div class="Menu">
		<div class="Left"></div>
		<div class="Middle">
			<ilghar:Record>
				<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
				<ilghar:Separator> | </ilghar:Separator>
			</ilghar:Record>
		</div>
		<div class="Right"></div>
	</div>
</ilghar:Menu>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block1">
		<!-- TemplateBeginEditable name="新闻分类" -->
		<ilghar:List Object="ArticleCategory" Condition="IsDisplay=true and ParentID IS NULL">
			<h2>新闻分类</h2>
			<ilghar:Record>
				<h3><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a></h3>
			</ilghar:Record>
		</ilghar:List>
		<!-- TemplateEndEditable -->

		<!-- TemplateBeginEditable name="最新产品" -->
		<ilghar:List Mark="Shop" Object="Goods" Page="1" PageSize="10" Condition="IsDeleted=false and IsReleased=true" Sort="UpdateTime DESC">
			<h1>最新产品</h1>
			<ul class="List3">
				<ilghar:Record>
					<li><a href="<%=BuildUrl()%>" title="<%=Name%>" target="_blank"><img src="<%=Thumbnail%>" alt="<%=Name%>" /></a><br />
						<a href="<%=BuildUrl()%>" title="<%=Name%>" target="_blank"><%=Name%></a>
					</li>
				</ilghar:Record>
			</ul>
		</ilghar:List>
		<!-- TemplateEndEditable -->

		<!-- TemplateBeginEditable name="友情连接" -->
		<ilghar:List Mark="System" Object="Link" Condition="IsChecked=true">
			<h1>友情连接</h1>
			<div class="Link">
				<ilghar:Record>
					<a href="<%=URL%>" title="<%=Name%>" target="_blank"><img src="<%=Logo%>" alt="<%=Name%>" /></a><br />
				</ilghar:Record>
			</div>
		</ilghar:List>
		<!-- TemplateEndEditable -->
	</div>
	<div class="Block2">
		<!-- TemplateBeginEditable name="路径" -->
		<div class="Path">你的位置：
			<ilghar:Path Object="ArticleCategory" Guid="Article[CategoryID]">
				<ilghar:Record>
					<a href="<%=URL%>"><%=Name%></a> &gt; 
				</ilghar:Record>
			</ilghar:Path>
			正文
		</div>
		<!-- TemplateEndEditable -->

		<div class="Block5">
			<h2>新闻内容</h2>
			<h4><%=Article[Title]%></h4>
			<hr size="3" />
			<div class="Block12">
				发表时间：<%=Article[UpdateTime]%>&nbsp;&nbsp;
				点击次数：<%=Article[HitCount]%>	
			</div>

			<!-- TemplateBeginEditable name="内容" -->
			<div class="Block13">
				<%=ArticlePage['Content']%>
			</div>
			<!-- TemplateEndEditable -->

			<!-- TemplateBeginEditable name="分页" -->
			<ilghar:Pagination ID="Pagination" Page="PageNumber" PageSize="1" RecordCount="ArticlePage['PageCount']">
				<div class="Pagination">
					<ilghar:FirstPage>
						<ilghar:Yes>
							<span class="Disabled"> &lt;&lt; </span>
							<span class="Disabled"> &lt; </span>
						</ilghar:Yes>
						<ilghar:No>
							<a href="<%=FirstPage%>"> &lt;&lt; </a>
							<a href="<%=PreviousPage%>"> &lt; </a>
						</ilghar:No>
					</ilghar:FirstPage>
					<ilghar:CurrentPage Range="5">
						<ilghar:Yes>
							<span class="Select"><%=Index%></span>
						</ilghar:Yes>
						<ilghar:No>
							<a href="<%=URL%>"><%=Index%></a>
						</ilghar:No>
					</ilghar:CurrentPage>
					<ilghar:LastPage>
						<ilghar:Yes>
							<span class="Disabled"> &gt;&gt; </span>
							<span class="Disabled"> &gt; </span>
						</ilghar:Yes>
						<ilghar:No>
							<a href="<%=NextPage%>"> &gt; </a>
							<a href="<%=LastPage%>"> &gt;&gt; </a>
						</ilghar:No>
					</ilghar:LastPage>	
				</div>
			</ilghar:Pagination>
			<!-- TemplateEndEditable -->
		</div>
	</div>
</div>

<!-- TemplateBeginEditable name="脚注" -->
<div class="Footer">
	<ilghar:Menu Condition="CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
		<ilghar:Record>
			<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"><%=Name%></a>
			<ilghar:Separator>|</ilghar:Separator>
		</ilghar:Record>
	</ilghar:Menu>
	<hr size="1" />

	<%=Footer%>
</div>
<!-- TemplateEndEditable -->

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/marquee.js"></script>
<script type="text/javascript" src="<%=CommonPath%>swfobject.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
