<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="webpage._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h2>姓名查询：</h2>
                <h2><asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
                    <asp:Button ID="Button1" runat="server" Text="点击查询" Font-Size="12pt" OnClick="Button1_Click" />
                </h2>
            </hgroup>
            <hgroup class="title">
                <h2>编号查询：</h2>
                <h2><asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
                    <asp:Button ID="Button2" runat="server" Text="点击查询" Font-Size="12pt" OnClick="Button2_Click" />
                </h2>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContentsd" ContentPlaceHolderID="MainContent">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC" CellPadding="10" Width="1040px" HorizontalAlign="Center" BackColor="White" ForeColor="Black">
        <Columns>
            <asp:BoundField DataField="user_id" HeaderText="编号">
            <HeaderStyle HorizontalAlign="Center" Width="120px" Height="35px" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="user_names" HeaderText="姓名">
            <HeaderStyle HorizontalAlign="Center" Width="120px" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="times" HeaderText="治疗时间">
            <HeaderStyle HorizontalAlign="Center" Width="130px" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="量表名称">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("names") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("names") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="pid" DataNavigateUrlFormatString="show.aspx?pid={0}" HeaderText="查看报表" Text="【点击查看】">
            <HeaderStyle HorizontalAlign="Center" Width="120px" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#E7E7E7" Font-Bold="True" ForeColor="Black" Height="35px" />
        <PagerStyle BackColor="#E3E6E9" ForeColor="Black" HorizontalAlign="Right" Font-Bold="True" Font-Size="14px" Height="35px" VerticalAlign="Top" />
        <RowStyle ForeColor="Black" Font-Size="14px" Height="30px" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>

</asp:Content>