<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="../Index.aspx.cs" Inherits="Shop_Shop1_Index" EnableViewState="false" %>
<html>
<head>
<title>店铺</title>
</head>
<body>
<form id="form_1" runat="server">
<script type="text/javascript" src="../../Js/f_function.js" ></script>
<script src="../../Js/howave_time.js" type="text/javascript"></script>
<!--顶部导航区开始-->
 <div  class="full" id="pathLink"> 
    <a href="../../../">商城首页</a>&gt;&gt; <a href="../../Browse/Browse_Index.aspx">店铺大厅</a> &gt;&gt; 
    <asp:Label ID="LabShopName2" runat="server" ForeColor="Black" />
 </div>
<!--顶部导航区结束--> 

<!--顶部店铺介绍区开始-->
 <div id="shopBanner" class="full" style="display:none">
   &nbsp;&nbsp; <asp:Label ID="MainSaleItem" runat="server" />&nbsp;<br>
 </div>
<!--顶部店铺介绍区结束--> 


 <div class="full">
    <ul class="shopMenu" id="shopMenuMain">
       <li class="shopHere"><asp:HyperLink  ID="shop_name" runat="server" /></li>
       <li><asp:HyperLink  ID="Shop_Intro_Link" runat="server" Text="<span>【店铺介绍】</span>" /></li>
       <li><asp:HyperLink  ID="Shop_Review_Link" runat="server" Text="<span>【信用评价】</span>" /></li>
    </ul>
    
 </div>


 <div class="full">  
    <table id="shopInfo" cellpadding="0" cellspacing="0"  width="100%" border="0"> 
      <tr>
        <td valign="top" align="center" width="20%">
        <span style="float:left">
            <asp:HyperLink ID="ShowShopEditLink" runat="server"   Visible="false"/></span><br /><br />
            <asp:Image ID="shop_Image" runat="server"  Width="110px" Height="110px"/> <br />
            <asp:HyperLink ID="GetMyFavouriteShop_Link" Text="收藏本店铺" runat="server" />
        </td>
        <td valign="top">
          <!--左侧店铺信息显示区开始-->
          <ul>
             <li><b>店长名称：</b><asp:Literal ID="LabU_NickName" runat="server" /></li>
             <li><b>卖家信用：</b><asp:Literal ID="ShopSalerCredit" runat="server" /></li>
             <li><b>买家信用：</b><asp:Literal ID="ShopBuyerCredit" runat="server" /></li>
             <li><b>商品数量：</b><asp:Literal ID="LabProductCount" runat="server" /></li>
             <li><b>创店时间：</b><asp:Literal ID="LabShopCreateDate" runat="server" /></li>
             <li><b>所在城市：</b><asp:Literal ID="LabAddress"  runat="server" /></li>
             <li><b>和我联系：</b><hl:QQTaobaoContactMe ID="ContactMe1" runat="server"  /></li>
             <li><b>站内短信：</b><asp:HyperLink ID="SendMessage" runat="server" Text="站内短信" />
             </li></ul>
           <!--左侧店铺信息显示区结束-->
        </td> 
        <td id="shopNote" valign="top" align="center" width="50%"> 
           <marquee onmouseover="this.stop()" onmouseout="this.start()"   scrollamount="1" direction="up" width="360px"  height="90px"> 
              <asp:Label ID="LabAnnounce" runat="server" ForeColor="Black" /></marquee>
        </td>
     </tr>
   </table>
 </div> 
 <!--店长推荐区-->
 <div class="full" id="shopVote">店主推荐</div>
 <div class="full" id="shopVoteItem" style="padding-top:5px">
    <asp:DataList ID="DataList1" runat="Server" DataSourceID="EliteProductSource" CssClass="view"
         RepeatColumns="6" RepeatDirection="Horizontal" BorderWidth="0px" CellPadding="0" Width="100%">
        <ItemStyle CssClass="item" Width="16%" />
        <ItemTemplate>
          <ul>
            <li class="shopImg"> <a href='../../Auction/Auction.aspx?ProductID=<%# Eval("ProductID") %>'>
                <img  src="<%# "../../"+((Convert.ToString(Eval("ProductSmallImageUrl"))=="")?"Images/nopicture.gif":Eval("ProductSmallImageUrl"))%>"/></a><li>
            <li class="shopTitle"><a href='../../Auction/Auction.aspx?ProductID=<%# Eval("ProductID") %>'><asp:Label ID="Label2" runat="server" Text='<%# Eval("ProductName").ToString() %>' CssClass="product_name_style"/> </a></li>
            <li class="shopPrize"><asp:Label ID="ProducType" runat="server" Text='<%# Eval("ProductType") %>' CssClass="product_type_style" />：<asp:Label ID="Label3" runat="server" Text='<%# Eval("ProductPrice")+"元" %>' CssClass="product_price_style"/> </li>
            <li class="shopPrize"><asp:Label ID="Label6" runat="server" Text='<%# "剩余时间：<script>showlefttime(" + Eval("LeftTime")+")</script>" %>' CssClass="product_price_style"/> </li>
            
            
        </ul>
      </ItemTemplate>
   </asp:DataList>
 </div>
 <!--店长推荐区结束-->

 <div class="full">
    <div id="shopMain">
        <!--左侧导航栏区开始--> 
        <div id="shopLeft">
            <div class="menuHead">
                <span>店铺类目</span>
            </div>
            <div id="CategoryListdiv"> 
                <asp:Literal ID="ShowShopCategory_Literal" runat="server" />
            </div>
            <div class="menuHead" style="MARGIN-TOP: 10px"><span>友情链接</span></div>
            <div id="FriendLinkListdiv">
                <asp:Literal ID="ShowFriendLink_Literal" runat="server" />
            </div>
            <div id="shopOpen" style="padding:10px; text-align:center;">
                <a href="../../Credit/identify_choose.aspx" target="_blank">免费开店</a>
            </div>           
        </div>
         <!--左侧导航栏区结束--> 
        <!--商品列表区开始-->
        <a name="item"></a>
        <div id="shopSide"> 
            <ul class="shopMenu" id="shopMenuSide">
              <li class="shopHere" id="Menu1">
                  <asp:LinkButton ID="LinkAll" runat="server" OnClick="LinkAll_Click"  Text="<span>所有商品</span>" /></li><li><asp:LinkButton ID="LinkBegin" runat="server" OnClick="LinkBegin_Click"  Text="<span>刚上架商品</span>"/></li><li><asp:LinkButton ID="LinkEnd" runat="server" OnClick="LinkEnd_Click"  Text="<span>即将结束的商品</span>"/>
                 <div class="clear"></div>
              </li>
            </ul>
            <div class="shop_title">
		<br />
                <asp:TextBox ID="TxtKeyWords" runat="server" Width="80" />
                <asp:Button ID="ButSearch" runat="server" Text="查找商品" OnClick="ButSearch_Click" BackColor="Ivory" BorderColor="White" BorderWidth="0px"   Width="100px"/>
                <asp:Button ID="ButCloseImage" runat="server" OnClick="ButCloseImage_Click" Text="关闭图片显示"
                        Width="100px" Visible="False" BackColor="Ivory" BorderColor="White" BorderWidth="0px" />
                <asp:Button ID="Butsoredown" runat="server" OnClick="Button1_Click1" Text="价格从高到低排序"
                     Width="100px" BackColor="Ivory" BorderColor="White" BorderWidth="0px" />
                <asp:Button ID="Butsoreup" runat="server" Text="价格从低到高排序" Width="100px" OnClick="Butsoreup_Click" BackColor="Ivory" BorderColor="White" BorderWidth="0px" />
                <br />
             </div>
             <div id="Page_div1"></div>
             <div id="sideList" style="padding-top:5px"> 
                 <asp:DataList ID="DataList2" runat="Server" CssClass="view" RepeatColumns="5" RepeatDirection="Horizontal"  
                      Width="100%" >
                    <ItemTemplate>
                       <ul>
                          <li class="shopImg"><a href='../../Auction/Auction.aspx?ProductID=<%# Eval("ProductID") %>'>
                             <img  src="<%# "../../"+((Convert.ToString(Eval("ProductSmallImageUrl"))=="")?"Images/nopicture.gif":Eval("ProductSmallImageUrl"))%>" /></a><li>
                          <li class="shopTitle">
                             <asp:HyperLink ID="mProductName" runat="server" NavigateUrl='<%#"../../Auction/Auction.aspx?ProductID="+Eval("ProductID") %>' Text='<%# Eval("ProductName") %>' /></li>
                          <li class="shopPrize">
                             <asp:Label ID="ProducType" runat="server" Text='<%# Eval("ProductType") %>' CssClass="product_type_style" />：<asp:Label ID="Label5" runat="server" CssClass="product_price_style" Text='<%# Eval("ProductPrice")+"元" %>'/></li>     
                          <li class="shopDay" > 
                              <asp:Label ID="LabMoreThenDay" runat="server" Text='<%# "剩余时间：<script>showlefttime(" + Eval("LeftTime")+")</script>" %>'/>
                          </li>
                      </ul>
                   </ItemTemplate>
                   <ItemStyle Width="20%" />                  
                  
               </asp:DataList>
              
               <div id="PageZone">
                   <div id="ShowProductListZone">
                       <asp:Literal ID="ProductListNums" runat="server" />
                   </div>
                   <div id="ShowPageNums">
                       <asp:Literal ID="ShowNumberPage" runat="server" />
                   </div>
               </div>
          </div>
          <!--商品列表区开始-->
          <!--店铺留言区开始-->
          <ul class="shopMenu" id="shopMenuNote">
            <li class="shopHere"><a  href="#"><span>最新留言</span></a></li>
             <li><a href="javascript:void(0)" onclick="ShowLeaveMesage('display',event);"><span>我要留言</span>" /></a></li>
            <li><asp:HyperLink ID="ShopAllMessage" runat="server" Text="<span>全部留言</span>" /></li></ul>
          <div id="shop_leavemessage">             
             <asp:Literal ID="ShowLeaveMessage_Literal" runat="server" />
          </div>
          <!--店铺留言区结束-->
      </div>
         
    </div>
 </div>
         
         
  
   <div  id="ShowLeaveMesageDiv" style="display:none; width:300px; height:300px; position:absolute; top:200px; left:200px; background:white;" >
        留言内容：<asp:TextBox ID="TxtMessage" runat="server" Height="100px" TextMode="MultiLine"  Width="95%"/><br />
        验证码<asp:TextBox ID="CheckCode" runat="server"  Width="50px"/><img src="../../../Passport/CheckCode.aspx" /><br />
       
        <br />
        <asp:Button ID="ButAdd" runat="server" Text="添加" OnClick="ButAdd_Click" OnClientClick="return CheckTextBoxLength(100,'TxtMessage',false)" />
        <input type="button" onclick="ShowLeaveMesage('close',event);" value="关闭" />
   </div> 
   <asp:ObjectDataSource ID="EliteProductSource" runat="server"   SelectMethod="GetRecommendProductBySalerID" TypeName="Shop_Product">
        <SelectParameters>
            <asp:Parameter Name="SalerID" Type="Int32" />
        </SelectParameters>
   </asp:ObjectDataSource>

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


