<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="SWTraining.Search.Search"
    Title="分析-更多查询" %>

<%@ Register Src="../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .width
        {
            width: auto !important;
        }
        .row td
        {
            white-space: nowrap !important;
        }
        .row th
        {
            white-space: nowrap !important;
        }
        
        th
        {
            padding-left: 3px !important;
            padding-right: 3px !important;
        }
    </style>
    <script type="text/javascript">
        function Checks(checkbox) {
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id.substring(0, 10) == "cblColumn_") {
                    e.checked = checkbox.checked;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2">
                    控制面板
                </th>
            </tr>
            <tr>
                <td>
                    查询：
                </td>
                <td>
                    <asp:Label ID="labSearchName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    参数：
                </td>
                <td>
                    <asp:Panel ID="panelParams" runat="server">
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    字段选择：
                </td>
                <td>
                    <div style="color: #cccccc; float: left; background-color: #5D5D5D">
                        <table border="0">
                            <tr>
                                <td>
                                    <input onclick="Checks(this)" type="checkbox" runat="server" checked="checked">全选
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="float: left">
                        <asp:CheckBoxList ID="cblColumn" runat="server" RepeatDirection="Horizontal" RepeatColumns="10">
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <label class="lab_buttom">
                        <asp:Button ID="btnPost" runat="server" Text="加载" OnClick="btnPost_Click" />
                    </label><label class="lab_buttom"><asp:Button ID="btnExportExcel" runat="server" OnClick="btnExportExcel_Click"
                        Text="导出" ToolTip="ExportExcel" /></label>
                    &nbsp;<asp:ImageButton ID="ibnSMS" runat="server" ImageUrl='<%# accTheme("tools/sms.gif") %>'
                        OnClick="ibnSMS_Click" Style="height: 14px" Height="16px" />
                    &nbsp;<asp:ImageButton ID="ibnHighSMS" runat="server" ImageUrl='<%# accTheme("tools/highsms.gif") %>'
                        OnClick="ibnHighSMS_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div style="background-color: #FEE7A2; width: auto">
                        <asp:Literal ID="litRemark" runat="server"></asp:Literal></div>
                </td>
            </tr>
        </table>
        <br />
        <div id="printBody" style="padding: 5px; padding-left: 20px; padding-right: 20px;
            border: 1px solid #000000; background-color: #FFFFFF; width: auto">
            <div style="margin-top: 20px; margin-bottom: 50px">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound"
                    CssClass="smallgridview width" AllowSorting="True" OnSorting="GridView1_Sorting"
                    CellPadding="2" EnableViewState="False">
                    <RowStyle CssClass="row" Wrap="False" />
                    <HeaderStyle CssClass="row" Wrap="false" />
                </asp:GridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
