<%@ page language="C#" autoeventwireup="true" inherits="admin_iframe_iframeUrl, 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/link.js" type="text/javascript"></script>
    <script src="../../js/<%=B_Lang.getLang() %>/XmlHttp.js" type="text/javascript"></script>
    <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="iframeUrl">
                <tr>
                    <td valign="top">
                        <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                            <tr class="title">
                                <td width="5%" class="t1">
                                    编号
                                </td>
                                <td width="10%">
                                    标识
                                </td>
                                <td>
                                    功能名称
                                </td>
                                <td>
                                    小图标样式
                                </td>
                                <td>选项卡文字</td>
                                <td>
                                    功能名称2
                                </td>
                                <td>选项卡文字2</td>
                                <td>排序值</td>
                                <td>
                                    操作
                                </td>
                            </tr>
                            <asp:Repeater ID="RepIframeUrl" runat="server" 
                                OnItemCommand="RepIframeUrl_ItemCommand" 
                                onitemdatabound="RepIframeUrl_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                                        <td align="center" class="t1">
                                            <%#Eval("Id") %>
                                        </td>
                                        <td align="center">
                                            <img src='../<%#Eval("Images")%>' />
                                        </td>
                                        <td align="center">
                                            <%#Eval("Name","{0}")%>
                                        </td>
                                        <td align="center">
                                            <span class="fa <%#Eval("fa","{0}")%>"></span>
                                        </td>
                                        <td align="center">
                                            <asp:Literal ID="LitLinkText" runat="server"></asp:Literal>
                                        </td>
                                        <td align="center">
                                            <%#Eval("Name2","{0}")%>
                                        </td>
                                        <td align="center">
                                            <asp:Literal ID="LitLinkText2" runat="server"></asp:Literal>
                                        </td>
                                        <td align="center">
                                            <%#Eval("OrderId")%>
                                        </td>
                                        <td align="center">
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" CommandArgument='<%# Eval("Id") %>'>编辑</asp:LinkButton> ┊
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Del" CommandArgument='<%# Eval("Id") %>'
                                                OnClientClick="return confirm('确定移除该条记录吗?')">移除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                        <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center"
                            style="margin-top: 5px">
                            <tr>
                                <td class="bqleft">
                                    <asp:TextBox ID="txtId" runat="server" Text="0" style="display:none"></asp:TextBox>第一个链接：
                                </td>
                                <td class="bqright">
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td>
                                                <table width="100%" cellpadding="2" cellspacing="0" border="0">
                                                    <tr>
                                                        <td>
                                                            功能名称：<asp:TextBox ID="txtUrlId" runat="server" style="display:none" Text="0"></asp:TextBox><asp:TextBox ID="txtName" runat="server" CssClass="in1"></asp:TextBox> <font color="red">*</font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            链接地址：<asp:TextBox ID="txtUrl" runat="server" CssClass="in1" Columns="40"></asp:TextBox> <font color="red">*</font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            标识图片：<asp:TextBox ID="txtImages" runat="server" CssClass="in1" Columns="25"></asp:TextBox>  <a href="javascript:" onclick="WinOpenLhgDialog('选择功能连接图片','pic.aspx',330,260,'')">选择图片</a><font color="red">*</font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <span style="float:left;line-height:30px;">小图标样式：</span><asp:TextBox ID="txtfa" runat="server" CssClass="in1" style="float:left"></asp:TextBox><input id="Button4" type="button" value=" 选择小图标 " class="btn" onclick="WinOpenLhgDialog('选择小图标', 'fashionicon.aspx?ControlId=txtfa', 720, 480, '')" />
                        针对风尚版导航时使用
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            选项卡文字：<asp:TextBox ID="txtLinkText" runat="server" CssClass="in1"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            选项卡中显示：<asp:CheckBox ID="CheckBox1" runat="server" Checked="true" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                                <input id="Button2" type="button" value=" 选择功能链接 " class="btn" onclick="WinOpenLhgDialog('选择功能链接','Url.aspx?Type=1',625,450,'')" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr runat="server" id="iframeUrl3">
                                <td class="bqleft">
                                    第二个链接：
                                </td>
                                <td class="bqright">
                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td>
                                                <table width="100%" cellpadding="2" cellspacing="0" border="0">
                                                    <tr>
                                                        <td>
                                                            功能名称：<asp:TextBox ID="txtUrlId2" runat="server" style="display:none" Text="0"></asp:TextBox><asp:TextBox ID="txtName2" runat="server" CssClass="in1"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            链接地址：<asp:TextBox ID="txtUrl2" runat="server" CssClass="in1" Columns="40"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            选项卡文字：<asp:TextBox ID="txtLinkText2" runat="server" CssClass="in1"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            选项卡中显示：<asp:CheckBox ID="CheckBox2" runat="server" Checked="true" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                                <input id="Button3" type="button" value=" 选择功能链接 " class="btn" onclick="WinOpenLhgDialog('选择功能链接','Url.aspx?Type=2',625,450,'')" />
                                            </td>
                                        </tr>
                                    </table>
                                </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>
                            <tr>
                                <td colspan="2">
                                    <table width="100%" id="LeftMenu">
                                        <tr>
                                            <td>
                                                功能链接一行可允许两个链接，<font color="red">如果一行只有一个链接，第二个链接请为空</font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                一行两个链接事例：<span>
                                                    <img src="../images/application_side_tree.gif" align="absmiddle" /><a href="../column/columnList.aspx" target="InfoFrame">管理栏目</a> ┊ <a href="../column/setcolumn.aspx" target="InfoFrame">新增</a></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                一行一个链接事例：<span>
                                                    <img src="../images/application_side_tree.gif" align="absmiddle" /><a href="../column/BatchColumn.aspx" target="InfoFrame">栏目批量设置</a></span>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top" width="173" runat="server" id="iframeUrl2">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0" id="LeftMenu">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="25" class="lefttd1">
                                            </td>
                                            <td align="center" class="lefttd3">
                                                <span>
                                                    <asp:Literal ID="Literal2" runat="server"></asp:Literal></span>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%" cellpadding="0" cellspacing="0">
                                    <asp:Literal ID="Literal3" runat="server"></asp:Literal>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
