<%@ page language="C#" autoeventwireup="true" inherits="admin_common_SelectLinkTable, 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 src="../../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript">
        var api = frameElement.api, W = api.opener;
    </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> >> 创建字段 >> 设置关联表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" border="0" align="center">
                <tr>
                    <td class="bqleft">
                        选择关联表：
                    </td>
                    <td class="bqright">
                        <asp:ListBox ID="ListTable" runat="server" SelectionMode="Single" Width="255" Height="155"
                            AutoPostBack="True" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        选择Value字段：
                    </td>
                    <td class="bqright">
                        <asp:DropDownList ID="DropFieldValue" runat="server">
                            <asp:ListItem Value="0">请选择</asp:ListItem>
                        </asp:DropDownList>
                        如：Id
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        选择Text字段：
                    </td>
                    <td class="bqright">
                        <asp:DropDownList ID="DropFieldText" runat="server">
                            <asp:ListItem Value="0">请选择</asp:ListItem>
                        </asp:DropDownList>
                        如：Title
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        调用数据条数：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtTopNum" runat="server" Columns="10" Text="0" CssClass="in1"></asp:TextBox>0为所有
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        条件：
                    </td>
                    <td class="bqright">
                        where <asp:TextBox ID="txtwhere" runat="server" Columns="40" CssClass="in1"></asp:TextBox>无条件请为空
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        排序：
                    </td>
                    <td class="bqright">
                        order by <asp:TextBox ID="txtorder" runat="server" Columns="20" CssClass="in1" Text="id desc"></asp:TextBox>多个规则之间用“|”: AddTime desc|Id desc
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="40">
                        <asp:Button ID="Button1" runat="server" Text=" 确认 " OnClick="Button1_Click" CssClass="btn radius30 pad_0_30" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="Button1" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
