<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="SpecificationList.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Product.SpecificationList" Title="规格列表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<form id="form1" action="SpecificationList.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_specBelongLanguage" runat="server" Enabled="false" Visible="false"></asp:Label>
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li><asp:Label ID="PPFOR_goForAddItem" runat="server"></asp:Label></li>
		</ul>
	</div>
    <asp:GridView ID="PPFOR_showSpecificationList" runat="server" CssClass="forgridview" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="Id"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有添加规格">
           <Columns>                
             <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectSpecification" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectSpecification" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="Id" HeaderStyle-Font-Bold="false"/>            
             <asp:TemplateField HeaderText="规格名称" HeaderStyle-Font-Bold="false" ItemStyle-Width="50%" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="right">
                <ItemTemplate><%# PPFOR_formatDisplay(Eval("Name"),Eval("Description")) %></ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="规格类型" DataField="IsImage" HeaderStyle-Font-Bold="false"/>  
             <asp:BoundField HeaderText="显示方式" DataField="IsDownList" HeaderStyle-Font-Bold="false"/>  
             <asp:TemplateField HeaderText="排列顺序" HeaderStyle-Font-Bold="false">
                <ItemTemplate><asp:TextBox ID="PPFOR_specOrder" runat="server" Text='<%#Eval("Order")%>' Width="50px" MaxLength="4" ></asp:TextBox></ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="规格值" DataField="Id" HeaderStyle-Font-Bold="false" ItemStyle-Width="100px"/>               
             <asp:TemplateField HeaderText="操作" HeaderStyle-Font-Bold="false">
                <ItemTemplate><%# PPFOR_getLinkActions(Eval("Id")) %></ItemTemplate>
             </asp:TemplateField>
            </Columns>
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_updateSpecOrder" CssClass="inputbutton" runat="server" Text="更新排序" OnClick="PPFOR_updateSpecOrderClick"/>
              <asp:Button ID="PPFOR_deleteSpecification" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteSpecificationClick"/>
              <input name="reset" id="reset1" type="reset" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" onclick="SelectAllRows('<%=form1.ClientID%>',false)"/>
                <script type="text/javascript">
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_updateSpecOrder.ClientID %>","<%= PPFOR_deleteSpecification.ClientID %>","reset1");
                    }
                </script>
            </td>
        </tr>
      </table>
      <br />
</form>        
</asp:Content>
