<%@ Page Language="C#" AutoEventWireup="true" CodeFile="room.aspx.cs" Inherits="general_dormitory_room"  %>
<%@ OutputCache Location="none" %>

<!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>
   <meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache"> 
   <script type="text/javascript" language="javascript">
    function rowclick(obj){
   var o=obj.getElementsByTagName("td"); 
   window.dialogArguments.document.getElementById("TextBox7").value=o[0].innerText;
   window.close();
   } 
   </script> 
</head>
<body >
    <form id="form1" runat="server">
    <div>
        <input id="Button1" type="button"  value="button" />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" EnableViewState="false"
            AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333"
            GridLines="None" EmptyDataText="暂无数据" OnRowDataBound="GridView1_RowDataBound">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="房间号" HeaderText="房间号" SortExpression="房间号" />
                <asp:BoundField DataField="入住性别" HeaderText="入住性别" SortExpression="入住性别" />
                <asp:BoundField DataField="电话号码" HeaderText="电话号码" SortExpression="电话号码" />
                <asp:BoundField DataField="可住人数" HeaderText="可住人数" SortExpression="可住人数" />
                <asp:BoundField DataField="入住人数" HeaderText="入住人数" SortExpression="入住人数" />
                <asp:BoundField DataField="空缺人数" HeaderText="空缺人数" SortExpression="空缺人数" />
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    
    </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:hqglConnectionString %>"
            SelectCommand="SELECT * FROM [department]"></asp:SqlDataSource>
    </form>
</body>
</html>
