<%@ page language="C#" autoeventwireup="true" inherits="admin_iframe_iframeLeft, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ 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" />
    <link rel="stylesheet" href="../css/skin/fashion/css/font-awesome.min.css" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
    <script type="text/javascript">
        function SelectIcon(obj) {
            var id = obj.id.split("_")[0] + "_" + obj.id.split("_")[1] + "_txtFa";
            WinOpenLhgDialog('选择小图标', 'fashionicon.aspx?ControlId=' + id + '', 720, 480, '');
        }
    </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="ProgramList.aspx">导航方案</a> >>
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table width="100%" cellpadding="0" cellspacing="1" runat="server" id="iframeLeft">
                    <tr>
                        <td valign="top">
                            <asp:GridView ID="GridView1" HeaderStyle-CssClass="title" runat="server" AutoGenerateColumns="False"
                                CssClass="border" DataKeyNames="Id" RowStyle-CssClass="tdMoveTr" HorizontalAlign="Center"
                                OnRowDataBound="GridView1_RowDataBound" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                                OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating"
                                Font-Bold="False">
                                <RowStyle CssClass="tdMoveTr" />
                                <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="ID" ReadOnly="True" />
                                    <asp:TemplateField HeaderText="左侧选项卡名 称">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>' CssClass="in1"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Literal runat="server" Text='<%# Bind("Name") %>' ID="Literal1"></asp:Literal>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="小图标样式" ItemStyle-HorizontalAlign="Center">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtFa" runat="server" Text='<%# Bind("fa") %>' CssClass="in1" Style="float: left;"></asp:TextBox><input id="Button3" type="button" value=" 选择小图标 " runat="server" class="btn" onclick="SelectIcon(this)" style="float: left;" />
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <span class="fa <%#Eval("fa","{0}")%>"></span>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="显示方式">
                                        <EditItemTemplate>
                                            <asp:RadioButtonList ID="RadioShowType" runat="server" RepeatDirection="Horizontal" Text='<%# Bind("ShowType") %>'>
                                                <asp:ListItem Value="0">折叠</asp:ListItem>
                                                <asp:ListItem Value="1">展开</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label5" runat="server" Text='<%# ShowType(Eval("ShowType","{0}")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="排序">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("OrderId") %>' CssClass="in1" Columns="10"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("OrderId") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowEditButton="True" HeaderText="编辑" />
                                    <asp:CommandField ShowDeleteButton="True" HeaderText="删除" />
                                </Columns>
                                <HeaderStyle CssClass="title" Font-Bold="True" />
                                <EmptyDataTemplate>
                                    <tr class="title">
                                        <td class="t1">ID
                                        </td>
                                        <td>左侧选项卡名称
                                        </td>
                                        <td>小图标样式
                                        </td>
                                        <td>显示方式
                                        </td>
                                        <td>排序
                                        </td>
                                        <td>编辑
                                        </td>
                                        <td>删除
                                        </td>
                                    </tr>
                                </EmptyDataTemplate>
                            </asp:GridView>
                            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center"
                                style="margin-top: 5px">
                                <tr>
                                    <td class="bqleft">左侧选项卡名称：
                                    </td>
                                    <td class="bqright">
                                        <asp:TextBox ID="txtName" runat="server" CssClass="in1"></asp:TextBox>
                                        如：系统参数
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bqleft">默认显示方式：
                                    </td>
                                    <td class="bqright">
                                        <asp:RadioButtonList ID="RadioShowType" runat="server" RepeatDirection="Horizontal">
                                            <asp:ListItem Value="0">折叠</asp:ListItem>
                                            <asp:ListItem Value="1" Selected="True">展开</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bqleft">小图标样式：
                                    </td>
                                    <td class="bqright">
                                        <asp:TextBox ID="txtfa" runat="server" CssClass="in1" Style="float: left"></asp:TextBox><input id="Button3" type="button" value=" 选择小图标 " class="btn" onclick="WinOpenLhgDialog('选择小图标', 'fashionicon.aspx?ControlId=txtfa', 720, 480, '')" />
                                        针对风尚版导航时使用
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bqleft">排序值：
                                    </td>
                                    <td class="bqright">
                                        <asp:TextBox ID="txtOrderId" runat="server" CssClass="in1" Text="1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bqleft"></td>
                                    <td class="bqright" height="40">
                                        <asp:Button ID="Button1" runat="server" CssClass="btn radius30 pad_0_30" Text=" 确认 " OnClick="Button1_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td valign="top" width="173" id="iframeLeft2" runat="server">
                            <table width="100%" cellpadding="0" cellspacing="0" border="0" id="LeftMenu">
                                <tr>
                                    <td>
                                        <asp:Repeater ID="Repeater1" runat="server">
                                            <ItemTemplate>
                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td width="25" class="lefttd1"></td>
                                                        <td align="center" class="lefttd3">
                                                            <span><%#Eval("Name") %></span>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                    <%#GetUrl(Eval("Id","{0}"))%>
                                                </table>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
