<%@ Page Language="C#" MasterPageFile="~/Master/Default/Page.master" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="EasySion.ERP.Web.Product" Title="无标题页" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Controls/MemberLogin.ascx" TagPrefix="UC" TagName="MemberLogin" %>
<asp:Content ID="SideContent" ContentPlaceHolderID="Side" runat="Server">
  <div class="sideMenu" id="ClassList" runat="server">
    <div class="tl"> </div>
    <div class="tr"> </div>
    <div class="tm">
      <h2 class="tt">
        <asp:Label ID="SideMenuTitle" runat="server" Text="" CssClass="sideMenuTitle"></asp:Label>
      </h2>
    </div>
    <div class="pack">
      <div class="ml"> </div>
      <div class="mr"> </div>
      <div class="mm">
        <div id="sideMenuBox">
          <asp:TreeView ID="TreeView2" runat="server" NodeIndent="5" ShowLines="false" Width="70%">
            <NodeStyle Height="20px" />
          </asp:TreeView>
        </div>
      </div>
      <div class="bl"> </div>
      <div class="br"> </div>
      <div class="bm"> </div>
    </div>
  </div>
  <div class="cartBox" style="display: none">
    <div class="goodsCountBox">
      <asp:Label ID="GoodsCountLabel" meta:resourcekey="GoodsCountLabel" CssClass="goodsCountLabel" runat="server" Text="Label"></asp:Label>
      <asp:Label ID="GoodsCount" CssClass="goodsCount" runat="server" Text="Label"></asp:Label>
      <asp:Label ID="GoodsCountUnit" meta:resourcekey="GoodsCountUnit" CssClass="goodsCountUnit" runat="server" Text="Label"></asp:Label>
    </div>
    <div class="grossBox">
      <asp:Label ID="GrossLabel" meta:resourcekey="GrossLabel" CssClass="grossLabel" runat="server" Text=""></asp:Label>
      <asp:Label ID="Gross" CssClass="gross" runat="server" Text=""></asp:Label>
    </div>
    <div class="showCartBox">
      <asp:Button ID="ShowCartBt" meta:resourcekey="ShowCartBt" CssClass="showCartBt" runat="server" Text="Button" />
    </div>
  </div>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
  <div class="siteMapPath">
    <asp:Literal ID="SiteMapPath" runat="server" EnableViewState="False"></asp:Literal>
  </div>
  <div class="pageMainContent">
    <asp:Panel ID="NoLoginPanel" runat="server" Visible="false" EnableViewState="False">
      <asp:Label ID="PlealseLogin" runat="server" CssClass="plealseLogin" Text=""></asp:Label>
      <UC:MemberLogin ID="MemberLogin1" runat="server" EnableViewState="false" />
      <asp:HiddenField ID="hidden" runat="server" Value="" />
      </asp:Panel>
    <asp:Panel ID="LoginPanel" runat="server" EnableViewState="False">
      <div class="tl"> </div>
      <div class="tr"> </div>
      <div class="tm">
        <h2 class="tt">
          <asp:Literal ID="PageMainContentTitle" runat="server" EnableViewState="False"></asp:Literal>
        </h2>
      </div>
      <div class="pack">
        <div class="ml"> </div>
        <div class="mr"> </div>
        <div class="mm" style="padding: 0">
          <div class="productList">
            <ul>
              <%
			  for (int i = 0; i < productListDataTable.Rows.Count; i++)
			  {
			  %>
              <li style='width: <%=ColSpanCount %>%'>
                <div class="productImg"> <a href='<%=EasySion.ERP.WebsiteData. Website.IsURLRewriter() ? String.Format("/{1}-D3-{0}-{2}"+EasySion.ERP.WebsiteData.Function.GetPostfixName(),productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) : String.Format("ProductDetail.aspx?id={0}&fileName={1}&Language={2}",productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) %>'> <img src='<%=productListDataTable.Rows[i]["PicPathSmall"].ToString() %>' style='<%=_height==100?"": "height:"+_height+"px; "%>width:<%=_width%>px' alt='<%= productListDataTable.Rows[i]["ProductName"].ToString() %>' /></a></div>
                <div class="productTitle"> <span class="productClassName"> <%=String.Format("[{0}]",productListDataTable.Rows[i]["ClassName"].ToString()) %></span><a href='<%=EasySion.ERP.WebsiteData. Website.IsURLRewriter() ? String.Format("{1}-D3-{0}-{2}"+EasySion.ERP.WebsiteData.Function.GetPostfixName(),productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) : String.Format("ProductDetail.aspx?id={0}&fileName={1}&Language={2}",productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) %>' title='<%= productListDataTable.Rows[i]["ProductName"].ToString() %>'><%= EasySion.ERP.WebsiteData.Strings.CutLenStr(productListDataTable.Rows[i]["ProductName"].ToString(),_titleLength) %></a></div>
                <div class="productNumberBox">
                  <asp:Label ID="ProductNumberLabel" meta:resourcekey="ProductNumberLabel" CssClass="productNumberLabel" EnableViewState="False" runat="server" Text=""></asp:Label>
                  <%= productListDataTable.Rows[i]["ProductNumber"].ToString()%></div>
                <div class="priceBox"> <%=(bool)_isshowprice?GetLocalResourceObject("PriceLabel.Text"):""%> <%=(bool)_isshowprice ? _moneyUnit + Convert.ToSingle(productListDataTable.Rows[i]["Price"].ToString()).ToString(".00") : ""%></div>
                <div class="productShortContentBox"> <%= EasySion.ERP.WebsiteData.Strings.CutLenStr(productListDataTable.Rows[i]["ProductShortContent"].ToString(),_shortContentLength) %></div>
                <div class="cartButtonBox" style="display: none">
                  <input type="button" class="cartButton" onclick='javascript:return CartOpen(<%=productListDataTable.Rows[i]["ProductId"].ToString() %>,<%=EasySion.ERP .WebsiteData .Website .GetLanguage() %>)' value='<%=GetLocalResourceObject("CartButton.Text") %>' class='cartButton' />
                  <input type="button" class="cartButton" onclick='javascript:return Url("<%=EasySion.ERP.WebsiteData. Website.IsURLRewriter() ? String.Format("/{1}-D3-{0}-{2}"+EasySion.ERP.WebsiteData.Function.GetPostfixName(),productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) : String.Format("ProductDetail.aspx?id={0}&fileName={1}&Language={2}",productListDataTable.Rows[i]["ProductId"].ToString(),productListDataTable.Rows[i]["FileName"].ToString(),EasySion.ERP.WebsiteData. Website.GetLanguage()) %>")' value='<%=GetLocalResourceObject("CartList") %>' class='cartButton' />
                </div>
              </li>
              <%}%>
            </ul>
          </div>
          <div class="pageMenu">
            <webdiyer:AspNetPager ID="ProductListPager" runat="server" AlwaysShow="True" UrlPaging="true" EnableUrlRewriting="false" OnPageChanged="ProductListPager_PageChanged" ShowBoxThreshold="20" EnableViewState="False" InputBoxClass="pagerInputBox" OnPageChanging="ProductListPager_PageChanging" SubmitButtonClass="pagerSubmitButton" CurrentPageButtonClass="pagerCurrentPageButton" FirstPageText="<%$ Resources:WebResourcesGlobal, FirstPageText %>" LastPageText="<%$ Resources:WebResourcesGlobal, LastPageText %>" NextPageText="<%$ Resources:WebResourcesGlobal, NextPageText %>" PrevPageText="<%$ Resources:WebResourcesGlobal, PrevPageText %>"></webdiyer:AspNetPager>
          </div>
        </div>
      </div>
      <div class="bl"> </div>
      <div class="br"> </div>
      <div class="bm"> </div>
      </asp:Panel>
  </div>
<script type="text/javascript">
function Url(str)
{
	window.location.href=str;
}
</script>
</asp:Content>