<%@ Page language="c#" Codebehind="NewsShow.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.NewsShow" %>
<%@ Register TagPrefix="uc1" TagName="NewsCatNav" Src="Modules/NewsCatNav.ascx" %>
<%@ 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" %>
<!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><%=System.Text.RegularExpressions.Regex.Replace(article.Title,"<[^>]*?>","")%>,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
        <link type="text/css" rel="stylesheet" href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/newsshow.css" />
	</HEAD>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear">
		    <!--位置导航开始-->
		    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<%=article.CategoryName%></div>
		    <!--位置导航结束-->
			<div id="content_left">
				<!--新闻分类开始-->
					<uc1:NewsCatNav id="NewsCatNav1" runat="server"></uc1:NewsCatNav>
				<!--新闻分类结束-->
			</div>
			<div id="content_right">
			     
			    <!--新闻内容开始-->
				<div class="newsright">
			        <h1>
						<%=article.Title%>
					</h1>
					<div class="time clear">
						时间：<%=article.AddTime.ToString("yyyy-MM-dd hh:mm")%>
						<span style="float:right; text-align:right; width:162px; margin-right:25px; margin-top:0px; *margin-top:-20px;">
						    分享到：
                            
                            <a href='http://www.kaixin001.com/repaste/share.php?rtitle=<%=config.SiteTitle%>&rurl=<%=webSite %>articles/News-<%=article.ArticleID%>.<%=config.html%>&rcontent=<%=config.SiteTitle%> <%=webSite %>articles/News-<%=article.ArticleID%>.<%=config.html%>' target=_blank><img align="absmiddle" src="<%=webSite %>Images/SiteIcon_Kaixin001.gif"></a>
                                            
                            
                            <a href='http://share.renren.com/share/buttonshare.do?link=<%=webSite %>articles/News-<%=article.ArticleID%>.<%=config.html%>&title=<%=config.SiteTitle%>' target=_blank><img align="absmiddle" src="<%=webSite %>Images/SiteIcon_RenRen.gif"></a>
                                            
                            
                            <a href='http://v.t.sina.com.cn/share/share.php?url=<%=webSite %>articles/News-<%=article.ArticleID%>.<%=config.html%>&title=<%=config.SiteTitle%>' target=_blank><img align="absmiddle" src="<%=webSite %>Images/SiteIcon_SinaWeibo.gif"></a>
                                            
                            
                            <a href='http://www.douban.com/recommend/?url=<%=webSite %>articles/News-<%=article.ArticleID%>.<%=config.html%>&title=<%=config.SiteTitle%>' target=_blank><img align="absmiddle" src="<%=webSite %>Images/SiteIcon_Douban.gif"></a>
                        </span>
					</div>
					<div class="newscontent clear">
						<%=article.NewContent%>
					</div>
					
					<%--相关商品开始--%>
					<div class="newsright-xgsp" style="display:none;">
					    <div class="xgsp-title">
					        相关商品
					    </div>
					        <%BindRltPdts(); %>
					        <ul class="xp-xgspompdt-ul1 clear">
                            <asp:Repeater id="rptRltPdts" runat="server">
		                        <ItemTemplate>	
		                            <li>
                                        
                                        <div class="xp-pdt-img">
                                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><img width="160" height="160" src="<%=webSite %>upload/ProductImg/<%# DataBinder.Eval(Container.DataItem,"ImgFolder")%><%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>" alt='' /></a>
                                        </div>
                                        
                                        <div class="xp-heightoverflow-cuspdtname">
                                            <a href='<%=webSite %>products/product-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%>' target="_blank" ><%#DataBinder.Eval(Container.DataItem,"ProductName")%></a>
                                        </div>
                                        <div class="xp-heightoverflow-cuspdtdesc"><%#DataBinder.Eval(Container.DataItem,"ShortDesc")%></div>
                                        <div class="xp-marketprice">
                                            <%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:f}")%><%--&nbsp;&nbsp;&nbsp;&nbsp;<span><%#int.Parse(DataBinder.Eval(Container.DataItem,"Quantity").ToString()) > 20 ? "" : ("仅剩<font color=red><b>" + DataBinder.Eval(Container.DataItem,"Quantity") + "</b></font>件")%></span>--%>
                                        </div>
                                        <div class="xp-memberprice">
                                            <% if(MemberShowPrice()) {%><%=GetCurrencySign()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% }%>
                                        </div>
                                    </li>								
		                        </ItemTemplate>
	                        </asp:Repeater>
                            </ul>
				        </div>
				    </div>
					<%--end--%>
					
				</div>
				
				<!--新闻内容结束-->
			</div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>		
	</body>
</HTML>