<%@ Page language="c#" Codebehind="ChuJia.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.ChuJia" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="Modules/LeftNavTop2Level.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><%=newProduct.ProductName%>,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<link rel="stylesheet" href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/tabs.css" />
        <script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/pm.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jquery.jqzoom.min.js" type="text/javascript"></script>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/jqzoom.css" type="text/css" rel="stylesheet" />
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/pop.css" type="text/css" rel="stylesheet" />
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/jquery.easydrag.handler.beta2.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/multi_popup.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/ReceiveAddr.js" type="text/javascript"></script>
		<script type="text/javascript">
            var memberGroup= '<%=newProduct.MemberGroup%>';
            var shopFolder="<%=webSite %>";
            var pid = '<%=Request.QueryString["PID"] %>';
		</script>
        <script type="text/javascript">
            $(document).ready(function(){
            $(".jqzoom").jqueryzoom({
				            xzoom: 300, //zooming div default width(default width value is 200)
				            yzoom: 300, //zooming div default width(default height value is 200)
				            offset: 10, //zooming div default offset(default offset value is 10)
				            position: "right", //zooming div position(default position value is "right")
 				            preload:1,
				            lens:1
			            });
            });
       </script>
	</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;<%=GetResourceString("ProductDetails")%></div>
		    <!--位置导航结束-->
			<div id="content_left">
				<!--类别导航开始-->
				<uc1:LeftNavTop2Level id="LeftNavTop2Level1" runat="server"></uc1:LeftNavTop2Level>
				<!--类别导航结束-->
			</div>
			<div id="content_right">
				<div id="product">
				    <div class="pdtinfo-title" style="height:50px;">
	                    <div class="pdtname"><%=newProduct.ProductName%></div>
	                </div>
					<div  class="picture">
					    <div class="clear">
					        <div id="thumbnail_bimg">
					            <div class="clear jqzoom" style=" margin:0px auto; text-align:center; overflow:hidden;">
					                <img id="thumbnail_img" src="<%=webSite %><%=config.Path%>upload/<%=newProduct.Picture%>"  jqimg="<%=webSite %><%=config.Path%>upload/<%=newProduct.Picture%>" onload="if(this.width > this.height && this.width>350)this.width=350;if(this.height > this.width && this.height>350)this.height=350;" />
					            </div>
					        </div>
							    <div class="picture_div"><%=GetTagImg(5,0,0)%></div>
						</div>
						<%--<a id="product_img" href='<%=webSite %><%=config.Path%>upload/<%=newProduct.Picture%>' class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"><div class="viewimg"></div></a>--%>
					</div>
					<!--商品信息开始-->
					<div class="info">
						<form id="Form1" name="Form1" runat="server">
                            <table align="left" cellpadding="5" cellspacing="0" border="0" class="subinfo">
                                <tr>
                                    <th><%=GetResourceString("ProductNo")%>:</th>
                                    <td><%=newProduct.ProductNo%></td>
                                </tr>
                                <tr>
                                    <th><%--<%=GetResourceString("BidUpPrice")%>--%>起拍价:</th>
                                    <td style="font-weight:bold;"><%=GetCurrencySign()%><%=newProduct.LowPrice%></td>
                                </tr>
                                <tr>
                                    <th><%--<%=GetResourceString("Range")%>--%>最低加价:</th>
                                    <td style="font-weight:bold;"><%=GetCurrencySign()%><%=newProduct.Range%></td>
                                </tr>
                                <tr>
                                    <th><%=GetResourceString("CurrentPrice")%>:</th>
                                    <td style="color:#fd0002; font-weight:bold; font-size:16px;"><%=GetCurrencySign()%><%=GetTopBidPrice()%></td>
                                </tr>
                                
                                <%if(state == 0) {%>
					            <tr>
					                <th>开始时间:</th>
					                <td><%=newProduct.DateTo.ToString()%></td>
					            </tr>
					            <%}else if(state == 1) {%>
					            <tr>
						            <th><%=GetResourceString("RemainingTime")%>:</th>
						            <td><%=GetRemainingTime(newProduct.DateTo.ToString())%></td>
					            </tr>
					            <%}else if(state == 2) {%>
					            <tr>
						            <th><%=GetResourceString("RemainingTime")%>:</th>
						            <td><span style="color:Red;"><%=GetResourceString("ThisProductHasExpired") %></span></td>
					            </tr>
					            <%} %>
                                
						        <%if (state == 1) {%>
                                <tr>
								    <th>
									    <%=GetResourceString("ReceiverAddress")%>:
									</th>
									<td>
									    <asp:textbox id="txtRAddress" runat="server" Width="280px"></asp:textbox><font color="red">*</font><span id="ShowAddress" style="cursor:pointer; color:Blue; text-decoration:underline;">从地址簿选择</span>
								    </td>
							    </tr>
							    <tr>
								    <th>
									    <%=GetResourceString("ReceiverName")%>:
									</th>
									<td>
									    <asp:textbox id="txtRName" runat="server" Width="80px"></asp:textbox><font color="red">*</font>
								    </td>
							    </tr>
							    <tr>
							        <th>
										<%=GetResourceString("ReceiverPostalcode")%>:
									</th>
									<td>
									    <asp:textbox id="txtRPostalcode" runat="server" Width="80px"></asp:textbox><font color="red">*</font>
								    </td>
							    </tr>
							    <tr>
								    <th>
									    <%=GetResourceString("ReceiverTelephone")%>:
									</th>
									<td>
									    <asp:textbox id="txtRTelephone" runat="server" Width="200px"></asp:textbox><font color="red">*</font>
								    </td>
							    </tr>
							    <tr>
								    <th>
									    <%=GetResourceString("Bidding")%>:
									</th>
									<td>
									    <asp:textbox id="txtBidding" runat="server" Width="200px"></asp:textbox><font color="red">*</font>
								    </td>
							    </tr>
							    <%} %>
                            </table>
                            <div class="clear" style="margin-left:100px;"><br />
                            <%if(state == 1) {%>
                            <asp:Button ID="btnSure" OnClick="btnSure_Click" runat="server" CssClass="tuangou" Text="出价"></asp:Button>
                            <%}else {%>
                                <span style="color:Red;">即将开始拍卖，敬请期待...</span>
                            <%} %>
                            </div>
                        </form>
				    </div>
				    <div class="clear"></div>
				<!--商品信息结束-->
			    </div>
			</div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		<div class="lframe popTip" id="PopAddress">
	        <div class="tl"></div>
	        <div class="tr"></div>
	        <div class="tm" id="popupHead">
	            <div class="poptitle">选择地址</div>
	            <div id="closepop" class="hand popclose">关闭</div>
	        </div>
	        <div class="ml"></div>
	        <div class="mr"></div>
	        <div class="mm tipcontent" style="text-align:center; overflow-y:auto; overflow-x:hidden; height:300px;">
	            <table id="AddressList" class="ptable">
	                <tr>
	                    <td>收货地点</td>
	                    <td>收货人姓名</td>
	                    <td>电话号码</td>
	                    <td>邮政编码</td>
	                    <td>选择</td>
	                </tr>
	                <tr id="al_template" style="display:none;">
	                    <td class="al_addr"></td>
	                    <td class="al_receiver"></td>
	                    <td class="al_phone"></td>
	                    <td class="al_zip"></td>
	                    <td class="al_select"><a href='#'>选择</a></td>
	                </tr>
	            </table>
	        </div>
	        <div class="bl"></div>
	        <div class="br"></div>
	        <div class="bm"></div>
        </div>
	</body>
</HTML>
