<%@ page language="C#" enableeventvalidation="false" autoeventwireup="true" enableviewstate="false" viewstateencryptionmode="Never" inherits="Shop_Auction_request_item_detail, mallz" title="求购商品详细信息" %>
<html>
<head>
<title></title>
</head>
<body>
<form id="aspnetForm" runat="server">

<script type="text/javascript" src="Js/f_function.js" ></script>
<script type="text/javascript" src="Js/MAllZAjax.js" ></script>
 <script type="text/javascript">
function showList(showName){
	var showAll=new Array(3);
	showAll[0]="detail";
	showAll[1]="others"; 
	showAll[2]="message";
	if(showName=='detail'){		
	    
		for( i=0;i<3;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"; 
	}
	else
	{
	   
		for( j=0;j<3;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(showName).style.display="";
		
	}
} 
function displayMessageBtn()
{
  document.getElementById("btn_confirm").style.display="";
}   
</script> 
<!--主页面开始-->
    <div id="Category_Content" style="padding-bottom:5px;">
        <!--分类导航开始-->
         <div id="ListClassPart" style="width:100%; margin:0 auto;">
            <%BandRequest_Class(h_ClassID.Value); %>     
            <span style="float:right"><%ShowEidtProudctLink(); %></span>
        </div>
       
      
        <!--标题栏-->
         
        <div class="Head1" id="top">
            <div class="TitleHeadLine">&nbsp;</div>
            <div id="headtitle"  class="ProductTileStyle">
                    求购商品名称： <em> <asp:Literal ID="product_name" runat="server"/> </em>            　
           </div>         
        </div>
        <div  style=" clear:both; height:250px;height:auto !Important;">
        <!--图片栏-->
        <div id="ImageView" align="center">
           <div id="ImageShow">
              <a runat="server" id="Showproduct_image" target="_blank" href="#" title="点击查看原图">
              <asp:Image ID="product_image" runat="server"  ImageAlign="Middle" />
              </a> 
              </div>
           <div id="ButtonAddToMyFavourite" style="text-align:center; width:200px;"></div> 
        </div>
        <!--商品摘要信息-->
         <div id="ProductSummary" style="padding:1px;">
           <ul id="OtherInfo">    
               <li id="CurrentPrice" style="width: 350px; clear:both; height:100%;">价格：<b><asp:Literal ID="product_price" runat="server" /></b></li>         
               <li id="ShowLeftTime"> <li>剩余时间：<label id="leftTime1"></label></li>
               <li id="ViewTimes">浏览量：<asp:Literal ID="product_hits" runat="server" />&nbsp;次</li>
               <li id="Amount">商品数量：<asp:Literal ID="product_num" 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" />                  
                  <MZ:QQTaobaoContactMe ID="ConectMe1" runat="server" />
               </div>
               <div id="AuthInfo">
                  <MZ:ShowMemberIdentify id="ShowMemberIdentify1" runat="server"/>              
               </div>
               <ul id="MoreInfo">
                 <li>卖家信用：<strong><a href="#"><asp:HyperLink ID="shop_saler_credit" runat="server" /></a></strong></li>
                 <li>买家信用：<strong><a href="#"><asp:HyperLink ID="shop_buyer_credit" runat="server" /></a></strong></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  style="clear:both"></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="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_CreateDate" runat="server" Width="600px"/>
           <br />
           <asp:label id="Product_EndDate" runat="server" Width="600px"/>
           <br /> 
           <asp:Label ID="product_intro" runat="server" />                       
        </div></div>
        <!--心情故事栏-->
        <div class="AuctionTitle" id="others_head">
          <div class="titleInfo">心情故事</div> 
          <div class="titleOntop" ><a href="#top">&nbsp;</a>&nbsp;</div>   
        </div>
        <!--心情故事内容-->
        <div class="ProductInfoStyle" id="others">
        <div class="Info">
　　　　    <asp:Label ID="Product_Remark" runat="server" />
        <div class="clear"></div>
        </div></div>
          <!--留言薄-->
        <div class="AuctionTitle" id="message_head">
            <div class="titleInfo">网友留言</div>
            <div class="titleOntop"><a href="#top">&nbsp;</a>&nbsp;</div>
        </div>
        <!--留言详细内容--->
        <div class="ProductInfoStyle" id="message">
            <div class="Info">
                <div class="message_content">
                    <asp:Panel ID="Message_Panel1" runat="server"  Width="99%">                   
                        <br />
                       <div align="center">你需要先<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:Label ID="GuestBook" runat="server" Text="向买家留言" />:<br />
                         <asp:TextBox ID="Message_Content" runat="server" TextMode="MultiLine" Height="100px" Width="300px"/>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="留言不能为空" ControlToValidate="Message_Content"/>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="验证码不能为空" ControlToValidate="CheckCode"/>
                         
                         <asp:Label ID="err_tips" runat="server" />                      
                         <div id="btn_confirm" style="display:none">                      
                         验证码：<asp:TextBox ID="CheckCode" runat="server" Width="50px" />
                          <span id="imgValidate"></span>
                         <asp:Button ID="Button1" runat="server" Text="确认" OnClick="LeaveMessage" />
                             <br />
                          
                         </div>
                        </div>                     
                    </asp:Panel>
                </div>
                 <br />          
                 
                <div style="clear:both"></div>                  
                <div id="leaveMsg">
                   <img src="images/Index/Loading.gif" />正在加载留言，请稍候...
                </div>
                <script type="text/javascript">
                   GetRequestMessage(<%=RequestID%>,"leaveMsg");
                </script> 
                <br />
            </div>
               
        </div>
        <!--免责声明-->
        <div class="declare full">
           免责声明：本网为用户展示的商品供求信息由买卖双方自行提供，其真实性、准确性和合法性由信息发布人负责。本网不提供任何保证，并不承担任何法律责任。友情提醒：为保障您的利益，请加强与网友的沟通，网上成交，请使用
           <A href="#" target="_blank">安全的交易方式</A>交易。
        </div>          
    </div>
    </div>
    <asp:HiddenField ID="h_product_id" 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:HiddenField ID="h_ClassID" runat="server" />
 
 <script language="javascript" type="text/javascript">
        //<![CDATA[
        
        var auctionDate =<%=m_lefttime%>;
      
        var showTimeElement = new Array();
        showTimeElement[0] = "leftTime1"; 
        var _day = '天';
        var _hour = '小时';
        var _minute = '分钟';
        var _second = '秒';
        var _end = '成交结束';
        //]]>
    function CreateCheckCode(){
       var codeObj=document.getElementById("imgValidate");
       var msgObj=document.getElementById("Message_Content");
       var CheckCodeObj=document.getElementById("CheckCode");
       if(codeObj!=null)
       {
         msgObj.value="";
         codeObj.innerHTML="<img src='Passport/CheckCode.aspx?rnd="+Math.random()+"'/>";
         CheckCodeObj.value="";
       }
     
     }   
     CreateCheckCode();
    </script>
<script language="javascript" type="text/javascript" src="Js/left_time.js"></script> 	    
</form>    
</body>

</html>





