<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true"
    Codebehind="LanguageList.aspx.cs" Inherits="PPFOR.Admin.DesignCenter.Language.LanguageList"
    Title="语言列表" %>
<%@ Register Src="~/Admin/Ascx/Publisher.ascx" TagName="Publisher" TagPrefix="publish" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server"> 
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<form id="form1" action="LanguageList.aspx" method="post" runat="server">
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li><input id="createHtmls" type="button" class="blueinput" value="生成静态页" onclick="return showDiv('生成静态页',400,150);" /></li>
		</ul>
	</div> 
  <asp:GridView ID="PPFOR_showLanguageList" OnRowDataBound="PPFOR_gridViewRowDataBound" OnRowDeleting="PPFOR_showLanguageList_RowDeleting" runat="server" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="ID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" CssClass="forgridview" EmptyDataText="还没有添加语言" >
           <Columns>     
           <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectLanguage" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectLanguage" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>           
             <asp:BoundField HeaderText="ID" DataField="ID" HeaderStyle-Font-Bold="false" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center"/>
             <asp:HyperLinkField HeaderText="语言名称" HeaderStyle-Font-Bold="false" DataTextField="languageName" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="LanguageEdit.aspx?id={0}"/>
             <asp:BoundField HeaderText="文件夹名称" DataField="fileName" HeaderStyle-Font-Bold="false"/>          
             <asp:BoundField DataField="languageTemplate" HeaderText="首页模板" HeaderStyle-Font-Bold="false" ItemStyle-HorizontalAlign="Left"/>
             <asp:BoundField DataField="isDefault" HeaderText="是否默认语言" HeaderStyle-Font-Bold="false"/> 
             <asp:BoundField DataField="dateTime" HeaderText="最后修改时间" HeaderStyle-Font-Bold="false"/>             
             <asp:TemplateField HeaderText="管理操作" HeaderStyle-Font-Bold="false" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Center">
               <ItemTemplate>
                <a href='/<%#Eval("fileName") %>/index.html' target="_blank" title="浏览生成的静态文件">浏览</a> |
                <a href='LanguageEdit.aspx?id=<%#Eval("ID") %>'>修改</a> | 
                <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                    Text="删除" OnClientClick="return confirm('删除语言将同时删除语言所有对应栏目,确认要删除吗？');"></asp:LinkButton>
               </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 />
        <publish:Publisher ID="PPFOR_doLanguagePublish" runat="server" TextForPublishButton="发布语言" TextForPublishSeleted="仅发布被勾选的语言" TextForPublishAll="发布所有语言" TextForDisplayPublishModel="同时发布语言所属栏目" />     
    </form>
</asp:Content>
