<%
    //-----------------------------------------------------------
    // 文件名称: Tool_PageHelp_Manage.aspx
    // 页面名称: 后台帮助管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-21
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Tool_PageHelp_Manage, V5Shop.Shop.Tool" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<!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 href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="editor/fckeditor.js"></script>

</head>
<body>
    <form id="frmMain" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px;
                    border-bottom: #f7f7f7 4px solid">
                    <table style="border-top-style: none; border-right-style: none; border-left-style: none;
                        border-bottom-style: none" border="0" cellpadding="1" cellspacing="5">
                        <tr>
                            <!-- 一级目录 -->
                            <td>
                                <asp:Label ID="lblFirstID" runat="server" Text="一级目录:" meta:resourcekey="lblFirstIDResource"
                                    Width="60px"></asp:Label>
                                <asp:DropDownList ID="ddlFirstID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlFirstID_SelectedIndexChanged">
                                    <asp:ListItem Text="全部" Value="-1" />
                                </asp:DropDownList>
                            </td>
                            <!-- 二级目录 -->
                            <td>
                                <asp:Label ID="lblSecondID" runat="server" Text="二级目录:" meta:resourcekey="lblSecondIDResource"
                                    Width="100px" Style="text-align: right"></asp:Label>
                                <asp:DropDownList ID="ddlSecondID" runat="server">
                                    <asp:ListItem Text="全部" Value="-1" />
                                </asp:DropDownList>
                            </td>
                            <td style="width: 37px">&nbsp;
                                
                            </td>
                        </tr>
                        <tr>
                            <!-- 页面名称 -->
                            <td>
                                <asp:Label ID="lblName" runat="server" Text="页面名称:" meta:resourcekey="lblNameResource"
                                    Width="60px"></asp:Label>
                                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                            </td>
                            <!-- 源文件名称 -->
                            <td>
                                <asp:Label ID="lblFilePath" runat="server" Text="源文件名称:" meta:resourcekey="lblFilePathResource"
                                    Width="100px" Style="text-align: right"></asp:Label>
                                <asp:TextBox ID="txtFilePath" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;
                            </td>
                            <!-- 查询按钮 -->
                            <td style="width: 37px">
                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <!-- 明细数据编辑栏 -->
            <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2"
                    OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False">
                        <img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
            </div>
            <!-- 明细数据部 -->
            <div id="content">
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" PageSize="12">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="5%">
                                <itemstyle width="2%" />
                                <itemtemplate>
                                    <input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" 
                                        onmouseout="this.mouse='out'" mouse="out" class="checkbox"/>                            
                                </itemtemplate>
                            <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID"  ItemStyle-Width="5%"/>
                            <asp:BoundField HeaderText="一级目录" DataField="FirstID" SortExpression="FirstID"  ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="二级目录" DataField="SecondID" SortExpression="SecondID"  ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="三级目录" DataField="ThirdID"  ItemStyle-Width="10%"/>
                            <asp:BoundField HeaderText="页面名称" DataField="Name" SortExpression="Name"  ItemStyle-Width="15%"/>
                            <asp:BoundField HeaderText="描述" DataField="Description"  ItemStyle-Width="30%"/>
                            <asp:BoundField HeaderText="源文件名称" DataField="FilePath" SortExpression="FilePath"  ItemStyle-Width="15%"/>
                        </Columns>
                        <HeaderStyle CssClass="category" />
                    </cc1:V5ShopGridView>
                </div>
                <asp:Panel runat="server" ID="PanelShow" HorizontalAlign="Center" Visible="False" Width="100%">
                  <div align="center" style=" background:#f1f1f1">
                    <table cellpadding="0" cellspacing="1" style="width: 700px;">
                        <!-- 页面名称 -->
                        <tr>
                            <td align="right" style="width: 20%; height: 30px;">
                                <asp:Label ID="lblPageName" runat="server" Text="页面名称：" Width="100px"></asp:Label>
                            </td>
                            <td align="left" style="height: 30px;">
                                <asp:Label ID="lblPageNameAdd" runat="server" Text=""></asp:Label></td>
                        </tr>
                        <!-- 帮助内容 -->
                        <tr>
                            <td align="right" style="height: 23px;">
                                <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="帮助内容" HideSelects="False"
                                    ImageURL="images/help.gif" Text="页面帮助的内容,显示在左边的菜单的帮助下。" />
                                <asp:Label ID="lblHelp" runat="server" Text="帮助内容：" Width="60px"></asp:Label>
                            </td>
                            <td align="left" style="height: 23px;" valign="top">
                                <cc1:FCKeditor ID="txtHelpAdd" runat="server" width="600px"></cc1:FCKeditor></td>
                        </tr>
                        <!-- 确定/更新/重置 -->
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnEditSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnEditSubmit_Click"
                                    Text="确定" CssClass="button" />
                                <asp:Label runat="server" Text=" " ID="Blank01" Width="32px"></asp:Label>
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" /></td>
                        </tr>
                    </table></div>
                </asp:Panel>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="PageHelpID" runat="server" Value="0" />
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <cc1:ActiveControl ID="ActiveControl" runat="server" />
        </div>
    </form>
</body>
</html>
