<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Auction.VendueDetail" CodePage="65001" GameType="1" PageFileFlag="Shop" PageFileTitle="商品详细信息" DataBindingType="1" PageFlagId="0"  %>

<%@ Register TagPrefix="Site" TagName="Menu" Src="~/WUC/Common/Site_Menu.ascx" %>
<%@ Register TagPrefix="Site" TagName="UserPicNote" Src="~/WUC/Common/Site_UserPicNote.ascx" %>
<%@ Register TagPrefix="Site" TagName="Game1" Src="~/WUC/Common/Site_Game1.ascx" %>

<%@ Register TagPrefix="Site" TagName="Side_UserPicNote" Src="~/WUC/Common/Site_Side_UserPicNote.ascx" %>
<%@ Register TagPrefix="Site" TagName="Side_Future" Src="~/WUC/Common/Site_Side_Future.ascx" %>


<%@ Register TagPrefix="Site" TagName="Detail_Pic" Src="~/WUC/Wuc_Detail_Pic.ascx" %>
<%@ Register TagPrefix="WUC" TagName="UserPicNote" Src="~/WUC/Wuc_UserPicNote.ascx" %>

<!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>
<Site:Menu id="menu_headtitle" runat="server" Flag="HeadTitle" CurrentPageTitle = "商品详细信息" />
<Site:Menu id="menu_headjs" runat="server" Flag="HeadJs"  />

<link href="/css/common.css" type="text/css" rel="stylesheet" />
<link href="/css/common_2.css" type="text/css" rel="stylesheet" />
<link href="/css/common_3.css" type="text/css" rel="stylesheet" />
<link href="/css/detail.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/PaiPaiJS/VendueDetail.js?t=2010"></script>
</head>
<body>
<!--start 头部-->
<Site:Menu id="menu_topmenu" runat="server" Flag="TopMenu"  CurrentPageFlag="Shop" />
<script >
jQuery(function(){
	jQuery(".current").removeClass("current").addClass("C-ffffff");
	var _currentPageHref="HistoryList";
	<% 
	if(VendueInfo.VendueState<3){
		 Response.Write("_currentPageHref='AuctionList';");
		 if(VendueInfo.IsTestType==1) Response.Write("_currentPageHref='GameList';");
		 if(VendueInfo.InitStartTime>DateTime.Now)  Response.Write("_currentPageHref='FutureList';");
	}
	else Response.Write("_currentPageHref='HistoryList';");
	%>
	jQuery("a[href='/Auction/"+ _currentPageHref +".aspx']").removeClass("C-ffffff").addClass("current");		
});
</script>
<!--start 通用(上) -->

<div class="clear"></div>
<!--start 主体内容-->

<div class="Grid-Base W980 Center MGT10 PD10 PDL0 PDB0  " id="MyMainBox" >
<!--start left cont-->
	<div class="W770 FL" >
		<div id="CententTitleBox" class="PageTitBox MGT10 MGL10 LH25 F15 FWB C-602F01">
		<%
		if(VendueInfo.VendueId<1) Response.Write("注：该期竞拍不存在(或已删除)。");
		else { %> 竞拍商品【 <%=VendueInfo.ProductName%> 】 详细信息 <%  }  %>
		</div>
		<!-- 产品图片，主信息，C-602F01左右 -->
		<div id="ContentDetailBox1" class="LH25 MGT10 MGL10">
			<div class="W320 FL">

<Site:Detail_Pic ID="Wuc_Detail_Pic_1" runat="server" />				
			
			</div>
			<div class="TextInfoBox FL">
				<DIV class="H36 FS16">
				<%=VendueInfo.ProductName%>
				</DIV>
				<div class="Box PD10 ">
					<div class="info-1 FL W200 ">
						<ul >
						<li>市场价格 : <span class="Money">&yen;<%=string.Format("{0:F}",VendueInfo.SafetyValue/100f)%></span></li>
						<li>当前价格 : <span class="Money" ID="Price_<%=VendueInfo.VendueId%>">&yen;<%=string.Format("{0:F}",(VendueInfo.RealPrice)/100f) %></span></li>
						<li>当前出价 : <span class="Yellow FS14" ID="UserInfo_<%=VendueInfo.VendueId%>"><%=VendueInfo.UserNickName %></span></li>
						</ul>
					</DIV>
					<div class="info-btn FL W214 TextCenter" >
					<div class="H46 TextCenter FS16" id="">
<%
if(VendueInfo.VendueState<3)
{
	//if(VendueInfo.InitStopTime.CompareTo(DateTime.Now)>=0)
	if(VendueInfo.InitStartTime.CompareTo(DateTime.Now.AddSeconds(5400))>0)
	{
		string tmp = "<font color='red' style='font-weight:bold;'>"+VendueInfo.InitStartTime.ToString("yyyy-MM-dd HH:mm:ss")+"</font>" ;
		Response.Write(tmp);
	}
	else if((DateTime.Now.Hour>=24 && DateTime.Now.Hour<=9))
	{
	
		Response.Write("竞价休息中");
	}
	else
	{	string tmp = "<font class='FS16' ID='timer_"+ VendueInfo.VendueId +"'>--:--:--</font>";
		Response.Write(tmp);
	}
}
else
{
	Response.Write("竞拍结束");
}

%>
					</DIV>
					
<%


if(VendueInfo.VendueState>=3)
{
%>
					<a href="/auction/LogFileDownload.aspx?GameType=1&id=<%=VendueInfo.VendueId%>" > 文件下载 </a>
<%
}
else
{
	if(VendueInfo.InitStartTime.CompareTo(DateTime.Now.AddSeconds(5400))>0)
	{
		string tmp = "<font color='red' style='font-weight:bold;' class='FWB FS16'>开始竞拍</font>" ;
		Response.Write(tmp);
	}
	else
	{
%>
					
					<a id="btn_<%=VendueInfo.VendueId%>" href="javascript:;"><img src="/images/huangou.png" /></a>
<%
	}

}
%>
					
					</div>
					<div class="clear"></div>
					<div class="line-2"></div>
					<DIV class="info-msg LH25 MGT10">
					保价购买：&yen;<%=string.Format("{0:F}",VendueInfo.SafetyValue/100f)%>

<%
if(VendueInfo.IsSafetyValue==1)
{ 
%>
<img src="/images/fill.png" alt="补差价" title="允许保价/补差价购买" />
<input id="AddSafeBuy" type="button" onclick="return (AddSafeBuySub(<%=VendueInfo.VendueId%>) || false);" value="保价购买" />
<%
}
else
{
	Response.Write("<font color='#dd3366'>注：该期商品不允许保价购买.</font>");
}
%>		

					</DIV>
					<div class="clear"></div>
				</div>
				
				<DIV class="Box  MGT10 LH20 BG-F7F7F7 H180 " T='PD10'>
<%//////////////////<DIV class="Box PD10 MGT10 LH20 BG-F7F7F7"> %>				

				<div class="LH25 PDL10 BG-6699FF ">
				<a id="flag-msg-0" flag="msg-0" class="C-ffffff">提示</a>
				<a id="flag-msg-1" flag="msg-1">出价历史</a>
				<a id="flag-msg-2" flag="msg-2">我的出价</a>
				<a id="flag-msg-3" flag="msg-3">自动出价器(分身)</a>
				</div>
				
				<div class="H140 W420 MGL10">
					<div id="msg-0" CLASS="OverFlow-Auto H150" >
1、第一步选择参与,特别提示,一旦用户选择换购,则不论后续是否换购成功,均需扣除积分,且积分不因任何原因退回。第二步登录指定商品页面,进行积分换购。所有操作须使用同一9拍网账户,且两个步骤须全部完成。<BR />
2、参加换购即刻扣除积分<BR />
3、用户以作弊及违规方式参与活动的,本公司有权取消其参与资格。 <BR />
4、本活动所有成功换购的礼品将在成功换购之日起15天内发货（具体发货情况请咨询各商家）。<BR /> 
5、9拍网对本次活动保留法律允许范围内的解释权。<BR />
					</div>
					<div id="msg-1" CLASS="OverFlow-Auto H150 Hide">

					</div>					
					<div id="msg-2" CLASS="OverFlow-Auto H150 Hide">

					</div>					
					<div id="msg-3" CLASS="OverFlow-Auto H150 Hide  ">
<!--  -->
					<div id1="JsAutoToolSet" id="Div_RobotSet"  class="FS14 ">
						<div class="JsAutoTool">
							<span >&nbsp;&nbsp;启动条件:&nbsp;
							<select id="input_StartType" onchange="ChargeRobotUserType()" onkeyup="ChargeRobotUserType()" >
								<option value="0"  selected>价格(元)</option>
								<option value="1"  >时间</option>
							</select>
							</span>
							<span id="span_input_StartTime" class="Hide">
								&nbsp;<input type="text" id="input_StartTime"  class="W135 " value="<%=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")%>">
							</span>
							
							<span  id="span_input_StartPrice">
								&nbsp;<input type="text" id="input_StartPrice" class="W60" value="10" >元
							</span>		
						</div>	

						<div class="JsAutoTool">
							<span >&nbsp;&nbsp;出价策略:&nbsp;
								<select id="input_TacticType" >
									<option value="0" selected>最后10秒出价</option>
									<option value="1" >随机出价</option>
								</select></span>
						</div>
						<div class="JsAutoTool" >
							<span >&nbsp;&nbsp;停止条件:&nbsp;
							<select id="input_StopType" onchange="ChargeRobotUserStopType()" onkeyup="ChargeRobotUserStopType()" >
								<option value="0">手动</option>
								<option value="1" selected>次数</option>
								<option value="2">价格(元)</option>
							</select></span>
							<span  id="span_input_StopPrice" class="Hide">&nbsp;
							<input type="text" id="input_StopPrice" class="W60" value="10" >元</span>
							<span  id="span_input_StartCount" class="">&nbsp;
							<input type="text" id="input_StartCount" class="W60" value="10" >次
							</span>
						</div>		
						<div class="JsAutoTool" >
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" id="input_RobotUserOK" onclick="SetRobotUserOK(<%=VendueInfo.VendueId%>,<%=VendueInfo.AddPrice %>);" value="确定" '<%=(uInfo.ID<1?"disabled":"")%>' />
						</div>						
					</div>
					<div id1="JsAutoToolShow"  id="Div_RobotShow"  class="Hide">
							<div  id="DivUserRobotSet">

								<div  class="JsAutoTool">
									<span >&nbsp;&nbsp;启动条件:&nbsp;</span>
									<span id="span_Span_StartInfo">------------</span>
								</div>

								<div class="JsAutoTool"><span >&nbsp;&nbsp;出价策略:&nbsp;</span>
									<span id="span_Span_StartTactic">------------</span>
								</div>
								<div  class="JsAutoTool"><span >&nbsp;&nbsp;停止条件:&nbsp;</span>
										<span id="span_Span_StopInfo">------------</span>
								</div>
										
								<div class="JsAutoTool">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" id="input_RobotUserOK" onclick="SetRobotUserCancel(<%=VendueInfo.VendueId%>);" value="停止/取消">
								</div>
							</div>	
					</div>


					
					
<!--  -->					
					</div>					
					
					
				</div>

<%//////////////////%>	
					<div class="clear"></div>			
				</DIV>
			
			</div>
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		<!-- 详细内容 -->
		<div id="ContentDetailBox" class="Info-Detial Box BDL0 BDB0 MGT10 W766 " >
		<DIV CLASS="PageTitBox LH25 F15 FWB C-602F01 MGT10 MGB10">
				产品详细
		</DIV>
		<DIV  class="MGT10 BDT1 BDTSOLID BDTC-DDDDDD "  >
			<DIV class="MG10 MGB0 LH35 PDB10">			
			<%=VendueInfo.Details%>
	
			</DIV>
		</DIV>
		
	
		
		</div>
		
		
		
		<div id="ContentDetailBoxPic" class="Info-Detial Box BDL0 BDB0 W766 " >
		<DIV CLASS="PageTitBox LH25 F15 FWB C-602F01 MGT10 MGB10">
				<DIV class="FL">网友晒图</DIV><DIV class="FR MGR10 FS14 FWN"><a href="/Auction/UserShowPic.aspx" class="n_icon n_icon_23 shine_go">返回赢家晒图列表页</a></DIV>
				<div class="clear"></div>
		</DIV>
		<DIV  class="MGT10 BDT1 BDTSOLID BDTC-DDDDDD "  >
			<DIV class="MG10 MGB0 LH35">			

    <!--晒宝贝时显示**********************-->
    <WUC:UserPicNote ID="UserPicNoteA1" runat="server" IsShowAtVendueId_0="0" CacheSecond="0" />
    <!--晒宝贝时显示**********************-->


			</DIV>
		</DIV>		
		
		<div class="clear"></div>
		</div>		
		
		<div class="clear"></div>
	</div>
	
	
<script type="text/javascript">
//$(function () { var $cb = $("#contentc"); $cb.parent()[0].innerHTML = $cb[0].value; });
				
var PaiPai_Manage =null;	
PaiPai_Manage = new PaiPaiBid();
PaiPai_Manage.GameType=<%=VendueInfo.GameType%>;
PaiPai_Manage.UserId = <%=WinLibClass.WorkLogic.Utils.GetIdFromSessionCookie()%>;

jQuery(function(){

PaiPai_Manage.Add (<%=VendueInfo.VendueId%>);
$("a[id^='btn_']").click(function(){	PaiPai_Manage.Bid($(this).attr("id").replace("btn_",""));});
<%
if(VendueInfo.VendueState<3 && VendueInfo.InitStartTime.CompareTo(DateTime.Now)<0){
%>
PaiPai_Manage.Start();
<%
}
%>
PaiPai_Manage.BidHistory(<%=VendueInfo.VendueId%>,0,$("#msg-1"));
PaiPai_Manage.UserInfoSelf(<%=VendueInfo.VendueId%>,<%=VendueInfo.SafetyValue/100f%>,$("#msg-2"));//bidUserInfoSelf
//PaiPai_Manage.UserBidSumLogSort(<%=VendueInfo.VendueId%>,jQuery("#bidCountList"));			
<%
if(VendueInfo.VendueState>=3)
{
%>
PaiPai_Manage.VendueLogCountByUser(<%=VendueInfo.VendueId%>,10,$("#bidCountList"))
<%
}
%>
//PaiPai_Manage.StartRobotUser(<%=VendueInfo.VendueId%>,2,100,6000.20);	

});
	
</script>	
	

	
	<!--end left cont-->
	<!--start right cont-->

<!--start right cont-->
<div class="Grid-Base2 PageWidth_Right MGB10">

	<!-- 即将竞拍 -->
<Site:Side_Future id="Side_Future_1" runat="server" intPageSize = "3"   intPageNo ="1"  PageLoadDataType="1" DataBindingType="0" CacheSecond="0" />	
	<!-- 赢家亮宝 -->
<Site:Side_UserPicNote id="Side_UserPicNote_1" runat="server" intPageSize = "3"  intPageNo ="1"  PageLoadDataType="1" DataBindingType="0" CacheSecond="0"  IsShowAtVendueId_0="1" />
	
	
	
</div>
	<!--end right cont-->
	<div class="clear"></div>
</div>
<!--end 主体内容结束-->
<div class=" clear"></div>
<!--start 通用(下) -->
<Site:Menu id="menu_foothelper" runat="server" Flag="FootHelper"  />
<div class=" clear"></div>
<Site:Menu id="menu_links" runat="server" Flag="Links"  />
<div class=" clear"></div>
<Site:Menu id="menu_foot" runat="server" Flag="Foot"   />

</body>
</html>
<script>
//详细页专用
function SetContentBoxHeight(){
	var o= jQuery("#MyMainBox");var o1=jQuery("#CententTitleBox");var o2=jQuery("#ContentDetailBox1");
	var o3=jQuery("#ContentDetailBox");var o4=jQuery("#ContentDetailBoxPic");
	var h1=parseInt(o1.height());
	var h2= parseInt(o2.height());
	var h3 = parseInt(o3.height());
	var h= parseInt(o.height()) - h1 - h2 - h3 ;
	o4.height(h);
}SetContentBoxHeight();
</script>
