<%@ Page Language="C#" AutoEventWireup="true" Codebehind="EnAdminAbouts.aspx.cs"
    MasterPageFile="../../MasterPage/Default.Master" Inherits="LJCMS.Admin.en.Abouts.EnAdminAbouts" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <table style="width:100%">
        <tr>
            <td>
                <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
                    HeadOPTxt="企业简介" HeadTitleTxt="<英文>企业简介">
                    <DataLayerWebControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="EnAdminEditAbouts.aspx?CMD=New"
                        ButtonUrlType="Href" ButtonVisible="True" ButtonName="企业简介" />
                </DataLayerWebControls:HeadMenuWebControls>
                <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="企业简介列表">
                        <asp:GridView ID="GridView1" runat="server" OnRowCreated="GridView1_RowCreated" OnSorting="GridView1_Sorting"
                            AutoGenerateColumns="False" Width="100%">
                            <Columns>
                                <asp:TemplateField SortExpression="ID" HeaderText="序号">
                                    <ItemTemplate>
                                        <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%>
                                    </ItemTemplate>
                                    <ItemStyle Wrap="True" />
                                    <HeaderStyle Wrap="False" />
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="EnTitle" HeaderText="企业简介">
                                    <ItemTemplate>
                                        <a href="EnAdminEditAbouts.aspx?IDX=<%#Eval("ID")%>&CMD=List">
                                            <%# Eval("EnTitle") %>
                                        </a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="EnAddDate" HeaderText="添加时间">
                                    <ItemTemplate>
                                        <%# DataBinder.Eval(Container.DataItem,"EnAddDate","{0:yyyy年M月d日}")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="AOrder" HeaderText="排序">
                                    <ItemTemplate>
                                        <%# Eval("EnOrderBy") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <a href="EnAdminEditAbouts.aspx?IDX=<%#Eval("ID")%>&CMD=Edit">修改</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <DataLayerWebControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged1">
                        </DataLayerWebControls:AspNetPager>
                        <asp:Button ID="Button2" OnClick="Button2_Click" runat="server" OnClientClick="return deleteop();"
                            Text="删除" CssClass="button_bak" Visible="false"></asp:Button>
                    </DataLayerWebControls:TabOptionItem>
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="列表排序">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr class="table_title">
                                <td>
                                    <asp:Label ID="CatListTitle" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr class="table_none">
                                <td align="center">
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:ListBox ID="OrderByListItems" runat="server" SelectionMode="Multiple"></asp:ListBox></td>
                                            <td>
                                                <img border="0" src="<%=Page.ResolveUrl("~/") %>Admin/images/up01.gif" onclick="javascript:moveUpDown('up','<%=OrderByListItems_UniqueID %>');"
                                                    style="cursor: pointer;">
                                                <p>
                                                    <img border="0" src="<%=Page.ResolveUrl("~/") %>Admin/images/down01.gif" onclick="javascript:moveUpDown('down','<%=OrderByListItems_UniqueID %>');"
                                                        style="cursor: pointer;">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                                </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>

                <script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
                </script>

            </td>
        </tr>
    </table>
</asp:Content>
