<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="type_list.aspx.cs" Inherits="PPFOR.Admin.DesignCenter.Label.type_list" Title="标签分类列表" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
</script>
<form id="form1" action="type_list.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_labelTypeId" runat="server" Enabled="false" Visible="false"></asp:Label>
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li><span><b></b><a href="type_add.aspx">新建标签分类</a><s></s></span><span><b></b><a href="label_add.aspx">新建标签</a><s></s></span></li>
		</ul>
	</div>    
    <asp:GridView ID="PPFOR_showLabelTypeList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="LabelTypeId"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有添加标签分类">
           <Columns>                
             <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectLabelType" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectLabelType" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="LabelTypeId" HeaderStyle-Font-Bold="false" ItemStyle-Width="30"/>
             <asp:HyperLinkField HeaderText="分类名称" DataTextField="LabelTypeName" DataNavigateUrlFormatString="label_list.aspx?tid={0}" DataNavigateUrlFields="LabelTypeId" HeaderStyle-Font-Bold="false"/>
             <asp:TemplateField HeaderText="所属语言" HeaderStyle-Font-Bold="false" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate><%# PPFOR_getLabelTypeLanguage(Eval("LabelTypeLanguageId"))%></ItemTemplate>
             </asp:TemplateField>            
             <asp:BoundField HeaderText="创建时间" HtmlEncode="false" DataFormatString="{0:d}" DataField="LabelTypeAddTime" HeaderStyle-Font-Bold="false"/>
             <asp:TemplateField HeaderText="管理操作" HeaderStyle-Font-Bold="false" ItemStyle-Width="150">
                <ItemTemplate><%# PPFOR_getActionLinks(Eval("LabelTypeId"),Eval("LabelTypeIsSystem"))%></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>
      <br />
        <page:PageBar ID="PPFOR_pageBar" runat="server" />
      <br />
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_deleteLabelType" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteLabelTypeClick"/>
              <input id="reset1" name="reset" 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_deleteLabelType.ClientID %>","reset1");
                }
                </script> 
        </td>
        </tr>
      </table>
      <br />
</form>        
</asp:Content>
