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

<!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 type="text/javascript">
        var api = frameElement.api, W = api.opener;
        function Sel(CnName, ColId) {
            var ControlId='<%=ControlId %>';

            W.DianCMS_$(ControlId).value = CnName;
            W.DianCMS_$(ControlId.split("_")[0] + "_Id").value = ColId;
            W.DianCMS_$(ControlId.split("_")[0] + "_Class").value = "2";
            frameElement.api.close();
        }
    </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="SelectDictionary.aspx?ControlId=<%=Request.QueryString["ControlId"] %>">选择字典</a><asp:Literal ID="LitColumn" 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" width="99%" class="border">
                <tr class="title">
                    <td class="t1">
                        Id
                    </td>
                    <td>Text值
                    </td>
                    <td>Value值
                    </td>
                    <td>选择</td>
                </tr>
                <asp:Repeater ID="RepColumn" runat="server">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'" title="双击该行选择" ondblclick="Sel('<%#Eval("Text") %>','<%#Eval("Id") %>')">
                             <td class="t1">
                                <%#Eval("Id") %>
                            </td>
                            <td>
                                <a href='SelectDictionary.aspx?ControlId=<%=ControlId %>&ParentId=<%#Eval("Id") %>'>
                                    <%#Eval("Text") %></a>
                            </td>
                            <td>
                                <%#Eval("Value") %>
                            </td>
                            <td align="center"><a href="javascript:" onclick="Sel('<%#Eval("Text") %>','<%#Eval("Id") %>')">选择</a></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
