<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_lab.aspx.cs" Inherits="Web.sy.admin.login_lab" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
<link href="../../css/admincss/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../css/popcalendar.js"></script>
    </head>
<body>
    <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">教室设置</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td>
        <table >
        <tr>
        <td>         教室名称：<asp:TextBox 
                        ID="tbAddlabname" runat="server" Width ="102px"></asp:TextBox>
                                     </td>
                        <td>
                                     每周可使用日期：
                        </td>
                        <td>
                    <asp:CheckBoxList ID="cblDays" runat="server"  CellSpacing="10"
                        RepeatDirection="Horizontal">
                        <asp:ListItem Value="sunday">星期日</asp:ListItem>
                        <asp:ListItem Value="monday">星期一</asp:ListItem>
                        <asp:ListItem Value="tuesday">星期二</asp:ListItem>
                        <asp:ListItem Value="wednesday">星期三</asp:ListItem>
                        <asp:ListItem Value="thursday">星期四</asp:ListItem>
                        <asp:ListItem Value="friday">星期五</asp:ListItem>
                        <asp:ListItem Value="saturday">星期六</asp:ListItem>
                    </asp:CheckBoxList>
                        </td>
                                  <td  style =" height :30px;">类别：</td>
       <td>      
           <asp:RadioButtonList ID="rblAddCategories" runat="server" 
               RepeatDirection="Horizontal">
               <asp:ListItem Selected="True">实验</asp:ListItem>
               <asp:ListItem>专业</asp:ListItem>
           </asp:RadioButtonList>
           </td>
                        <td><asp:Button ID="Button1" runat="server" Text="添加" 
                    ValidationGroup="btAddlab" onclick="btAddlab_Click" />
                    
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="tbAddlabname" Display="Dynamic" ErrorMessage="请填写教室名称。" 
                          ValidationGroup="btAddlab" ForeColor="Red"></asp:RequiredFieldValidator>
                          </td>
        </tr>
        </table>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
  
     <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">

      <tr>
        <td>
        <div>
                  <asp:Label ID="lbMessageManager" runat="server" ForeColor="Red"></asp:Label>
                    </div>
<div>
<asp:GridView ID="gvUserlocation" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" 
        onrowcancelingedit="gvUserlocation_RowCancelingEdit" 
        onrowediting="gvUserlocation_RowEditing" 
        onrowupdating="gvUserlocation_RowUpdating" 
        onrowcreated="gvUserlocation_RowCreated" 
        onrowdeleting="gvUserlocation_RowDeleting" OnRowDataBound="gvUserlocation_RowDataBound" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                    <asp:BoundField DataField="labname" HeaderText="教室名称" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                       <asp:TemplateField HeaderText="每周可使用日期">
                        <EditItemTemplate>
                       <asp:Label ID="lbDays" runat="server" Text='<%# Bind("days") %>' Visible ="false" ></asp:Label>
                                               <asp:CheckBoxList ID="cblEditDays2" runat="server" CssClass =" td_centernoborder"  CellSpacing="10"
                        RepeatDirection="Horizontal">
                        <asp:ListItem Value="sunday">星期日</asp:ListItem>
                        <asp:ListItem Value="monday">星期一</asp:ListItem>
                        <asp:ListItem Value="tuesday">星期二</asp:ListItem>
                        <asp:ListItem Value="wednesday">星期三</asp:ListItem>
                        <asp:ListItem Value="thursday">星期四</asp:ListItem>
                        <asp:ListItem Value="friday">星期五</asp:ListItem>
                        <asp:ListItem Value="saturday">星期六</asp:ListItem>
                    </asp:CheckBoxList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbDays2" runat="server" Text='<%# Bind("days") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="每天可使用节次">
                        <EditItemTemplate>
                           <asp:TextBox ID="tbLabclassnum" runat="server" Width ="95%" Text='<%# Bind("labclassnum") %>' CssClass =" td_centernoborder"></asp:TextBox>   
                           <div>                             <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                ControlToValidate="tbLabclassnum" Display="Dynamic" ErrorMessage="请输入大于0的整数，并用“、”间隔。" 
                                                ValidationExpression="^\+?[1-9][0-9;、]*$" ValidationGroup="btMove" ForeColor="Red"></asp:RegularExpressionValidator></div>    
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("labclassnum") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                                           <asp:TemplateField HeaderText="管理员">
                        <EditItemTemplate>
                        <asp:TextBox ID="tbStaffnumber" runat="server" Width ="50%" Text='<%# Bind("labmanagerid") %>' CssClass =" td_centernoborder"></asp:TextBox>  <asp:Label ID="Label2" runat="server" Text='<%# Bind("labmanagername") %>' CssClass =" td_centernoborder"></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("labmanagername") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="修改" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                CommandName="Edit" Text="修改"></asp:LinkButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" ValidationGroup="btMove"
                                CommandName="Update" Text="更新"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="取消"></asp:LinkButton>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
    </td>
    <td  style =" background-image:url(../../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>