<%@ page language="C#" enableeventvalidation="false" autoeventwireup="true" inherits="Shop_Auction_Auction, HoWaveVGO" enableviewstate="false" viewstateencryptionmode="Never" %>

<html>
<head>
<title></title>
</head>
<body>

<script type="text/javascript" src="../Js/f_function.js" ></script>
<script type="text/javascript" src="../Js/HowaveAjax.js" ></script>
<script type="text/javascript">
function showList(showName){
	var showAll=new Array(4);
	showAll[0]="detail";
	showAll[1]="others";
	showAll[2]="record";
	showAll[3]="message";
	if(showName=='detail'){		
	    
		for( i=0;i<4;i++){
			document.getElementById(showAll[i]).style.display="";
			document.getElementById(showAll[i]+"_head").style.display="";
			document.getElementById(showAll[i]+"_show").className="";
			
		}
		document.getElementById("detail_show").className="li_here";
		document.getElementById("commend").style.display="";
		document.getElementById("commend_list").style.display="";
	}
	else
	{
	   
		for( j=0;j<4;j++){
		 
			document.getElementById(showAll[j]).style.display="none";
			document.getElementById(showAll[j]+'_head').style.display="none";
			document.getElementById(showAll[j]+"_show").className="";
		}
		document.getElementById(showName+"_show").className="li_here";
		document.getElementById("commend").style.display="none";
		document.getElementById("commend_list").style.display="none";
		document.getElementById(showName).style.display="";
		
	}
}

 
function doBid()
{
   var _form=document.forms["aspnetForm"];
    if(_form)
   {
     try{
             _form.action="Shop_Buy.aspx";
  
            _form.origin_buy.value="false";
            _form.submit();
     }
     catch(e){}
   }
  
  
}
function doBidNOTeam()
{
   var _form=document.forms["aspnetForm"];
   if(_form)
   {
     try{
            _form.action="Shop_Buy.aspx";
            _form.origin_buy.value="true";
            _form.submit();
     }
     catch(e){}
   }
   
}
function displayMessageBtn()
{
  document.getElementById("btn_confirm").style.display="";
}   
</script> 
<form id="aspnetForm" runat="server">
<!--主页面开始-->
    <div id="Category_Content" style="padding-bottom:5px;">
        <!--分类导航开始-->
        <div id="ListClassPart" style="width:100%; margin:0 auto;">
           <hl:ClassMapPath id="ClassMapPath1" runat="server" />       
            <span style="float:right"><asp:literal ID="ShowEditProductLink_Literal" runat="server" /></span>
        </div>
        <div id="ItemToolbar">	     		
		</div>  
        <!--分类导航结束-->
        <div class="LineBox"></div>
        <!--标题栏-->
         
        <div class="Head1">
            <div class="TitleHeadLine">&nbsp;</div>
            <div  class="ProductTileStyle">
               <asp:Literal ID="product_name" runat="server"/>&nbsp;&nbsp;&nbsp;
               <em><asp:Literal ID="product_type" runat="server"  /></em>
              
           </div>
           
        </div>
        <div  style=" clear:both; height:250px;">
        <!--图片栏-->
        <div id="ImageView">
           <div id="ImageShow">
               <asp:HyperLink ID="ProductBigIMGUrl" runat="server" Target="_blank"><asp:Image ID="product_image" runat="server"  ImageAlign="Middle" /></asp:HyperLink>
              
           </div>
           <div id="ButtonAddToMyFavourite">
               <asp:HyperLink ID="ProductBigIMGUrl2" runat="server" Target="_blank"><img src="../Images/search.gif" />放大图片</asp:HyperLink>
               <asp:HyperLink ID="FavProductLink" runat="server"><img src="../Images/save.gif" />收藏这个商品</asp:HyperLink>
           </div> 
        </div>
        <!--商品摘要信息-->
        <div id="ProductSummary" style="padding:1px;">
           <ul id="OtherInfo">             
                <li id="CurrentPrice" style="width: 407px; clear:both; height:100%;">
                   <asp:Literal ID="product_type1" runat="server" />
                   <asp:Literal ID="product_price" runat="server" />
                </li>
                <asp:PlaceHolder ID="auction_panel" runat="server" Visible="false">
                    <li id="StartPrice">起始价格：<asp:Literal ID="auction_startprice" runat="server" /></li>
                </asp:PlaceHolder>
                <li id="ButtonBuyNow" style="text-align:center;">                 
                 <asp:Image ImageUrl="../Images/auction_btn_buy.gif"  runat="server" ID="BuyImage" ToolTip= "点击此按钮，到下一步确认购买信息。" CssClass="AuctionButton_Buy"/>
               </li>
               <li id="ShowLeftTime">剩余时间：<label id="leftTime1"></label> </li>
               <li id="ViewTimes">浏 览 量：<asp:Literal ID="product_hits" runat="server" />次</li>
               <li id="Amount">商品数量：<asp:Literal ID="product_stock" runat="server" /></li>
               <li id="SoldNum">卖出数量：<asp:Literal ID="product_sell" runat="server" /></li>
               <li id="Location">所 在 地：<asp:Literal ID="product_place" runat="server" /></li>
               <li id="NewOrOld">新旧程度：<asp:Literal ID="product_status" runat="server" /></li>
           </ul>
           <asp:Literal ID="DiscountLabel" runat="server" />           

        </div>
        <!--店铺摘要信息-->
        <div id="SellerInfo">
               <h2>店长资料</h2>
               <div id="SellerName">
                  <asp:HyperLink ID="shop_ownername" runat="server" CssClass="Seller_Name" />                  
                  <hl:QQTaobaoContactMe ID="ConectMe1" runat="server" />
               </div>
               <div id="AuthInfo">
                   <hl:ShowMemberIdentify id="ShowMemberIdentify1" runat="server"/></div>
               <ul id="MoreInfo">
                 <li>卖家信用：<b><asp:HyperLink ID="shop_saler_credit" runat="server" /></b></li>
                 <li>买家信用：<b><asp:HyperLink ID="shop_buyer_credit" runat="server" /></b></li>                 
                 <li>注册时间：<strong><asp:literal ID="saler_reg_date" runat="server" /></strong></li></ul>
                <div id="ShopLinks">
                  <asp:HyperLink ID="GoToShop" runat="server" ToolTip="逛逛店长的店铺"><span style="display:none;">逛逛掌柜的店铺</span></asp:HyperLink>
               </div>
        </div>    
    </div>             
    
    <div id="ProductContents">
       <!--导航按钮-->      
        <ul class="full" id="auction_list">
               <li class="li_here" id="detail_show"><a onClick="showList('detail')" href="#here">商品信息</a></li><li id="others_show"><a onClick="showList('others')" href="#here">其他信息</a></li><li id="record_show"><a onClick="showList('record')" href="#here">出价记录</a></li><li id="message_show"><a onClick="showList('message')" href="#here">网友留言</a></li></ul>
        <!--商品信息-->
        <div id="detail_head"></div>
        <div class="ProductInfoStyle" id="detail" >
            <div class="Info">
                <br />
                  <asp:Label ID="product_intro" runat="server" />
                <br />
             </div>
        </div>
        
        <!--推荐商品-->
        <div class="AuctionTitle" id="commend">            
            <div class="titleInfo">推荐商品</div>
            <div class="titleOntop" ><a href="#">&nbsp;</a>&nbsp;</div> 
        </div>   
        <div class="ProductInfoStyle" id="commend_list">
            <div class="Info">
                <div style="height:150px">
                    <hl:SalerRecommendProduct ID="SalerRecommendProduct1" runat="server" />
                </div>
            </div>
        </div>      
        <!--其它信息栏-->
        <div class="AuctionTitle" id="others_head">        
            <div class="titleInfo">其他信息</div> 
            <div class="titleOntop" ><a href="#">&nbsp;</a>&nbsp;</div>
        </div>
        <!--其它信息内容-->
        <div class="ProductInfoStyle" id="others" >
            <div class="Info">
                <ul>
                  <li><b>开始时间：</b> <asp:Literal ID="product_starttime" runat="server" /> </li>
                  <li id="liRepair"><b>保 修：</b> <asp:Literal ID="product_guarantee" runat="server" /></li>
                  <li id=lieTime><b>结束时间：</b> <asp:Literal ID="product_endtime" runat="server" /></li>
                  <li id=liInvoice><b>发 票：</b> <asp:Literal ID="product_invoice" runat="server" /> </li>
                  <li><b>付款方式：</b><asp:Literal ID="LiteralProduct_PayType" runat="server" /></li>
                  <li><b>编 号：</b> <asp:Literal ID="product_num" runat="server" /></li>
                  <li><b>送货方式：</b><asp:Literal ID="LiteralProduct_DeliverTypeIntro" runat="server" /></li>
                  <li><b>最后更新时间：</b><asp:Literal ID="product_lastUpdate" runat="server" /></li></ul>
                <div class="clear"></div>
            </div>
        </div>
        <!--出价记录-->
        <div class="AuctionTitle" id='record_head'>
            <div class="titleInfo">出价记录</div> 
            <div class="titleOntop" ><a href="#">&nbsp;</a>&nbsp;</div>          
        </div>
        <!--出价记录详细内容-->
        <div class="ProductInfoStyle" id="record">
            <div class="Info">
                <div id="price"  visible="false">
                    <ul>
                        <li><b style="color:#FF6600; font-size:13pt;"><asp:Label ID="product_currenprice" runat="server" Visible="false" /></b></li>
                        <li>剩余时间： <SPAN id="leftTime2"></SPAN> </li>
                    
                    </ul>               
                </div>
                <div class="clear"></div>            
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="SellHistory" EnableViewState="false"  DataSourceID="ObjectDataSource2" GridLines="None" OnDataBound="GridView1_DataBound" PageSize="20">
                    <Columns>        
                        <asp:TemplateField HeaderText="买家">
                            <ItemTemplate>
                              <asp:HyperLink ID="buyer" runat="server" Text='<%# Eval("buyername") %>' NavigateUrl='<%#"../Shop1/Shop_review.aspx?UserID="+ Eval("UserID") %>' />
                              
                            </ItemTemplate>
                            <HeaderStyle Width="35%" />
                          
                        </asp:TemplateField>
                        <asp:BoundField DataField="MoneyGoods" HeaderText="出价" />
                        <asp:BoundField DataField="Quantity" HeaderText="购买数量" >
                            <HeaderStyle Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateTime" DataFormatString="{0:yyyy年M月dd日HH时mm分s秒 }" HtmlEncode="False" HeaderText="时间" >
                            <HeaderStyle Width="30%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <asp:literal runat="server" id="status" Text='<%# Eval("Status") %>' />
                                <asp:Image runat="server" id="status_show" />
                                 <asp:HiddenField ID="payStatus" runat="server" Value='<%# Eval("PayStatus") %>' />
                            </ItemTemplate>
                            <HeaderStyle Width="10%" />
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate><div style="text-align:center; height:20px; font-size:14px;">暂时没有买家购买此商品！</div></EmptyDataTemplate>
                    
                </asp:GridView>               
                       
                            
            </div>          
        </div>
        <!--留言薄-->
        <div class="AuctionTitle" id="message_head">
            <div class="titleInfo">网友留言</div>
            <div class="titleOntop" ><a href="#">&nbsp;</a>&nbsp;</div> 
        </div>
        <!--留言详细内容--->
        <div class="ProductInfoStyle" id="message" >
            <div class="Info">
                <div class="message_content">
                    <asp:Panel ID="Message_Panel1" runat="server" Height="50px" Width="99%"> 
                        <br />
                       <div class="login_tips">你需要先<asp:hyperlink ID="userlogin" Text="登录" runat="server"/> 才能给卖家留言哦！</div>
                    </asp:Panel>
                    <asp:Panel ID="Message_Panel2" runat="server"  Width="95%" Visible="false">
                       <div style="margin:10px">
                         <asp:literal ID="GuestBook" runat="server" Text="向卖家留言" />:<br />
                         <asp:TextBox ID="Message_Content" runat="server" TextMode="MultiLine" Height="100px" Width="300px"/>
                         <asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="留言不能为空" ControlToValidate="Message_Content" Display="Dynamic"/>
                          <asp:RequiredFieldValidator ID="rfv2" runat="server" ErrorMessage="验证码不能为空" ControlToValidate="CheckCode" Display="Dynamic"/>
                         
                         <asp:Label ID="err_tips" runat="server" />
                         <div id="btn_confirm" style="display:none">
                         验证码：<asp:TextBox ID="CheckCode" runat="server" Width="50px" />
                             <img src="../../Passport/CheckCode.aspx" />
                             <asp:Button ID="Button1" runat="server" Text="确认" OnClick="LeaveMessage" />
                         </div>
                        </div>
                    </asp:Panel> 
                </div>  
                <div style="clear:both"></div>                  
                <div id="leaveMsg">
                   <img src="../../IMS_Img/Index/Loading.gif" />正在加载留言，请稍候...
                </div>
               
                <script type="text/javascript">                   
                   GetProductMessage(<asp:Literal ID="productID_Literal" runat="server" />,"leaveMsg");
                </script> 
                <br />
            </div>
        </div>
        <!--免责声明-->
        <div class="auction_declare">
           免责声明：本网为用户展示的商品供求信息由买卖双方自行提供，其真实性、准确性和合法性由信息发布人负责。本网不提供任何保证，并不承担任何法律责任。友情提醒：为保障您的利益，请加强与网友的沟通，网上成交，请使用
           <A href="#" target="_blank">安全的交易方式</A>交易。
        </div>          
    </div>
    </div>
   
    <input type="hidden" name="origin_buy" value= "no" /> 
    <asp:HiddenField ID="ProductID" runat="server" />  
    <asp:HiddenField ID="h_product_id" runat="server" />
    <asp:HiddenField ID="h_product_type" runat="server" />
    <asp:HiddenField ID="h_product_price" runat="server" />   
    <asp:HiddenField ID="h_productname" runat="server" />      
    <asp:HiddenField ID="h_shop_id" runat="server" />
    <asp:HiddenField ID="h_saler_nickname" runat="server" />
    <asp:HiddenField ID="h_saler_id" runat="server" />
     <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetProductSaleOrderByProductID"
        TypeName="Shop_Order" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="h_product_id" DefaultValue="0" Name="ProductID"
                PropertyName="Value" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource> 
   
  
 <script language="javascript" type="text/javascript">
        //<![CDATA[
        
        var auctionDate =<asp:Literal ID="LeftTimeText" runat="server" />;
      
        var showTimeElement = new Array();
        showTimeElement[0] = "leftTime1";
        showTimeElement[1] = "leftTime2";
        var _day = '天';
        var _hour = '小时';
        var _minute = '分钟';
        var _second = '秒';
        var _end = '成交结束';
        //]]>
    </script>

<script language="javascript" type="text/javascript" src="../Js/left_time.js"></script> 
</form>    
</body>

</html>

	    

