<%@ page language="C#" autoeventwireup="true" inherits="admin_info_SinglePageList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="SinglePageList.aspx">单页列表</a><asp:Literal ID="LitSinglePageClass" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" class="border">
                <tr class="title">
                    <td width="30" class="t1">选择</td>
                    <td width="100">
                        单页编号
                    </td>
                    <td>
                        单页标题
                    </td>
                    <td>保存路径</td>
                    <td>
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepSinglePageClass" runat="server" OnItemCommand="RepSinglePageClass_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                        <td></td>
                            <td align="center">
                                <img src="../images/folder.gif" />
                            </td>
                            <td align="center">
                                <a href='SinglePageList.aspx?ParentId=<%#Eval("Id") %>'><%#Eval("Name") %></a>
                            </td>
                            <td>
                            </td>
                            <td align="center">
                            <asp:LinkButton ID="lnkCreate" runat="server" Text="生成单页" CommandName="create" CommandArgument='<%#Eval("Id") %>'></asp:LinkButton> ┊ <a href='SinglePageClass.aspx?Id=<%#Eval("Id") %>'>修改</a> ┊ <asp:LinkButton ID="LinkButton1" runat="server" Text="复制" CommandName="copy" CommandArgument='<%#Eval("Id") %>'></asp:LinkButton> ┊ <asp:LinkButton ID="lnkDelete" runat="server" Text="移除" CommandName="delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('确定移除该条记录吗?')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="RepSinglePage" runat="server" OnItemCommand="RepSinglePage_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                      <td class="t1" align="center">
                          <asp:CheckBox ID="CheckBox1" runat="server" /></td>
                            <td align="center">
                                <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("Id") %>'></asp:Literal>
                            </td>
                            <td align="center">
                                <%#Eval("Title") %>
                            </td>
                            <td align="center"><%#Eval("FilePath") %><%#Eval("FileName") %><%#Eval("ExpandName")%>
                            </td>
                            <td align="center"><asp:LinkButton ID="LinkButton2" runat="server" CommandName="Create" CommandArgument='<%# Eval("Id") %>'>生成单页</asp:LinkButton> ┊ 
                            <a href='SetSinglePage.aspx?Id=<%#Eval("Id") %>&ParentId=<%=ParentId%>'>修改</a> ┊ <a href="../../singlepage.aspx?Id=<%#Eval("Id") %>" target="_blank">浏览</a> ┊ <asp:LinkButton ID="LinkButton1" runat="server" Text="复制" CommandName="copy" CommandArgument='<%#Eval("Id") %>'></asp:LinkButton> ┊ <asp:LinkButton ID="lnkDelete" runat="server" Text="移除" CommandName="delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('确定移除该条记录吗?')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center" width="99%">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                            showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                            Width="99%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center" width="99%">
                <tr>
                    <td height="30"><input id="checkDel" onclick="CheckDelBox(this)"
                                type="checkbox"><span id="ShowA">选择全部</span>
                        <asp:Button ID="Button1" runat="server" Text="生成选中记录" CssClass="btn"
                            OnClick="Button1_Click" style="margin-left:10px"></asp:Button>
                        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="一键生成所有单页" CssClass="btn" style="margin-left:10px"/><asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="复制选中单页" CssClass="btn" style="margin-left:10px"/>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
