<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productdetail.aspx.cs" Inherits="Productdetail" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="WebControl/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="WebControl/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="WebControl/Left.ascx" TagName="Left" TagPrefix="uc3" %>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品详细-B2C电子商务网站</title>
<meta name="keywords" content="网上鞋店，手机数码，护肤品，..." />
<meta name="description" content="BtoC购物网站为您提供最实惠的商品..." />

<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<link rel="stylesheet" href="css/ShopShow.css" type="text/css" />
<link rel="stylesheet" href="css/MagicZoom.css" type="text/css" />
<script src="js/MagicZoom.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
  
  function getNumValue()
  {
      var NumValue = document.getElementById('txtNum').value;
      return NumValue;
  }
  

</script>

</head>

<body>

<form runat="server" id="form2">
<center>

<div id="templatemo_body_wrapper">
<div id="templatemo_wrapper">
    <uc1:Top runat="server" ID="uctop" />
    
    <div id="templatemo_main">
    	<uc3:Left runat="server" ID="ucLeft" />
        
        <div id="content" class="float_r">
        	<h3>商品详情</h3>
                
                <div class="content_half float_l">
        	        <a  rel="lightbox[portfolio]" href="Admin/Upfile/<%= strProductPic%>" class="MagicZoom"><img src="Admin/Upfile/<%= strProductPic%>" alt="Shoes 1" style="width:255px; height:220px;"/></a>
                </div>                
                
                <div class="content_half float_r">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td width="60" style="color:Black; line-height:25px; font-weight:bold; text-align:right">商品名称:</td>
                            <td style="float:left; line-height:25px; margin-left:10px"><%= strProductName%></td>
                        </tr>
                        <tr>
                            <td style="color:Black; line-height:25px; font-weight:bold; text-align:right">市场价:</td>
                            <td style="float:left; line-height:25px; margin-left:10px"><s>￥<%= strMarketPrice%></s></td>
                        </tr>
                        <tr>
                            <td style="color:Black; line-height:25px; font-weight:bold; text-align:right">本网站价:</td>
                            <td style="float:left; line-height:25px; margin-left:10px">￥<%= strWebsitePrice%></td>
                        </tr>
                        <tr>
                            <td style="color:Black; line-height:25px; font-weight:bold; text-align:right">品牌:</td>
                            <td style="float:left; line-height:25px; margin-left:10px"><%= strBrand%></td>
                        </tr>
                        <tr>
                    	    <td style="color:Black; line-height:25px; font-weight:bold; text-align:right">请输数量:</td>
                            <td style="float:left; line-height:25px; margin-left:10px">
                                <asp:TextBox ID="txtNum" runat="server" style="width: 55px; text-align:left" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')">1</asp:TextBox>件
                             
                            </td>
                        </tr>
                    </table>
                    <div class="cleaner h20"></div>                   
                   
                    <a  href="javascript:location.href='Shoppingcart.aspx?ProductId=<%= Request.QueryString["ID"] %>&num=' + getNumValue()"  class="addtocart"></a>
                    <asp:ImageButton ID="btnCollection" runat="server" ImageUrl="images/btn_Collection.png" onclick="btnCollection_Click" style="cursor:hand;" /><asp:ImageButton />
                    
			    </div>
                <div class="cleaner h30"></div>
                
                <h3>商品描述</h3>
                <p style="text-align:left"><%= strDescription%></p>	

          <div class="cleaner h50"></div>
            
            <h3>相关商品</h3>
        	<asp:Repeater ID="rptProductrelated" runat="server">
				<ItemTemplate>
        	        <div class="product_box">
            	        <a href='Productdetail.aspx?id=<%# Eval("Id") %>'><img src="Admin/Upfile/<%# Eval("ProductPic") %>" alt="Shoes 1" style="width:200px; height:150px;"/></a>
                        <h3><%# Eval("ProductName") %></h3>
                        <p class="product_price">市场价<s>￥ <%# Eval("MarketPrice") %></s></p>
                        <p class="product_price">会员价￥ <%# Eval("WebsitePrice")%></p>
                        <a href='Shoppingcart.aspx?Productid=<%# Eval("Id") %>&num=1' class="addtocart"></a>
                        <a href='Productdetail.aspx?id=<%# Eval("Id") %>' class="detail"></a> 
                    </div>
                </ItemTemplate>
		    </asp:Repeater>
		    <div class="cleaner"></div>
		    
		    <div id="Div1" class="float_r" style=" float:left">
		    <h3>网友评论</h3>
		        <asp:Repeater ID="rptReview" runat="server">
		            <ItemTemplate>
		                <div class="content_half float_l checkout" style="clear:both">
		                    <table width="656px" cellpadding="0" cellspacing="0" border="0">
		                        <tr>
		                            <td style=" padding-top:5px"><h5>评论人：<%# Eval("ReviewName")%></h5></td>
		                            <td align="right"><h5>评论时间：<%# DateTime.Parse(Eval("ReviewDate").ToString()).ToString("yyyy-MM-dd")%></h5></td>
		                        </tr>
		                        <tr>
		                            <td colspan="2">评论内容：<%# Eval("ReviewContent")%></td>
		                        </tr>
		                        <tr>
		                            <td colspan="2">回复内容：<%# Eval("ReplyContent")%></td>
		                        </tr>
		                        <tr><td colspan="2" style="border-bottom:1px #ccc solid">&nbsp;</td></tr>
		                    </table>
		                </div>
		            </ItemTemplate>
		        </asp:Repeater>
		    </div>
		    <div id="trRecord" style="float:left; margin-left:80px; margin-top:10px">
                <nobr><webdiyer:AspNetPager ID="pager" PageSize="10" runat="server" CssClass="_tab_page_div" UrlPaging="True" FirstPageText="【首页】"
                      LastPageText="【尾页】" NextPageText="【下一页】" NumericButtonCount="5" PrevPageText="【上一页】"
                      CustomInfoClass="_tab_pager_div1" ShowCustomInfoSection="Left" EnableUrlRewriting="false" PageIndexBoxClass="page_box_ipt" SubmitButtonClass="page_btn_go" SubmitButtonText="" ShowInputBox="Never">
                </webdiyer:AspNetPager></nobr>
             </div>
		    <div class="cleaner h50"></div>
		    
		    <h3>评论区</h3>
		    <div class="content_half float_l checkout">
		        评论内容：
		        <asp:TextBox ID="txtReviewContent" runat="server" Text="" MaxLength="50" Rows="3" TextMode="MultiLine" style="height:150px; width:600px;"></asp:TextBox>
                <br />
                <br />
                <asp:ImageButton ID="btntijiao" runat="server" ImageUrl="images/btn_Tijiao.jpg" Height="25px" Width="75px" OnClick="tijiao_Click" style="vertical-align:middle"/>
		    </div>
        </div>
        <div class="cleaner"></div>
    </div> <!-- END of templatemo_main -->
    
    <uc2:Foot runat="server" ID="ucFoot" />
</div> <!-- END of templatemo_wrapper -->
</div> <!-- END of templatemo_body_wrapper -->

</center>

</form>
</body>
</html>
