<%@ page language="C#" autoeventwireup="true" inherits="admin_label_DataSourceOrder, 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;
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center"
        runat="server" id="Table1">
        <tr>
            <td class="bqleft">
                选择字段：
            </td>
            <td class="bqright">
                <table width="100%" cellpadding="2" cellspacing="0" border="0">
                    <tr>
                        <td>
                            主表：<asp:Literal ID="LitHostTable" runat="server"></asp:Literal>
                        </td>
                        <td>
                            从表：<asp:Literal ID="LitGuestTable" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:ListBox ID="ListHostTable" runat="server" Rows="15" Width="225" SelectionMode="Multiple">
                                <asp:ListItem Value="*">所有数据</asp:ListItem>
                            </asp:ListBox>
                        </td>
                        <td>
                            <asp:ListBox ID="ListGuestTable" runat="server" Rows="15" Width="225" SelectionMode="Multiple">
                                <asp:ListItem Value="*">所有数据</asp:ListItem>
                            </asp:ListBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                选择字段：
            </td>
            <td class="bqright" height="50" align="center">
                <asp:Button ID="Button1" runat="server" Text=" 下一步 " CssClass="btn" Style="margin-left: 200px;"
                    OnClick="Button1_Click" />
            </td>
        </tr>
    </table>
    <table runat="server" id="Table2" width="100%">
        <tr>
            <td>
                <table align="center" class="border" cellspacing="1" cellpadding="0">
                    <tr class="title">
                        <td nowrap>
                            字段名称
                        </td>
                        <td nowrap>
                            字段类型
                        </td>
                        <td>
                            排序规则
                        </td>
                        <td nowrap>
                            排序层次
                        </td>
                    </tr>
                    <asp:Repeater ID="RepOrder" runat="server" OnItemCommand="RepOrderItemCommand">
                        <ItemTemplate>
                            <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                                <td>
                                    <asp:TextBox ID="OrderId" runat="server" Columns="1" Text='<%#Eval("OrderId") %>' Style="display: none"></asp:TextBox><asp:Label ID="LabName" runat="server"
                                            Text='<%# Eval("Name") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="LabDataType" runat="server" Text='<%# Eval("DataType") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropLink" runat="server" SelectedValue='<%# Eval("Link") %>'>
                                        <asp:ListItem Value="ASC">升序</asp:ListItem>
                                        <asp:ListItem Value="DESC">降序</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td nowrap>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="up" CommandArgument='<%#Eval("OrderId") %>'>上移</asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="down" CommandArgument='<%#Eval("OrderId") %>'>下移</asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="del" CommandArgument='<%#Eval("OrderId") %>'>移除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" height="50">
                <asp:Button ID="Button2" runat="server" Text=" 上一步 " CssClass="btn radius30 pad_0_30" OnClick="Button2_Click" /><asp:Button
                    ID="Button3" runat="server" Text=" 提交 " CssClass="btn radius30 pad_0_30" Style="margin-left: 20px;"
                    OnClick="Button3_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
