<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orderadd.aspx.cs" Inherits="system_Lab_orderadd" %>

<!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 href="/App_Themes/SystemCSS/css/core.css" rel="stylesheet" type="text/css" />
<link href="/App_Themes/SystemCSS/css/base.css" rel="stylesheet" type="text/css" />
<script src="/App_Themes/SystemCSS/js/jquery-1.4.3.min.js" type="text/javascript"></script>


    <script src="../../App_Themes/BackCenter/js/jquery.js" type="text/javascript"></script>
    <script src="../../App_Themes/BackCenter/js/jquery.validate.js" type="text/javascript"></script>
    <script src="../../App_Themes/BackCenter/js/jquery.metadata.js" type="text/javascript"></script>
    <script src="../../App_Themes/BackCenter/js/localization/messages_cn.js" type="text/javascript"></script>
    
    <!--jQuery验证-->
    <script type="text/javascript">
        jQuery(document).ready(
            function() {
                $("form").validate();

                $("input[name=date]").change(function() {
                    if ($(this).val() == "dates") {
                        $("#ddl_StartTime").val("<%=date %> 8:10");
                        $("#ddl_EndTime").val("<%=date %> 12:25");
                    }
                    else if ($(this).val() == "datex") {
                        $("#ddl_StartTime").val("<%=date %> 13:30");
                        $("#ddl_EndTime").val("<%=date %> 16:50");
                    }
                    else if ($(this).val() == "datew") {
                        $("#ddl_StartTime").val("<%=date %> 18:30");
                        $("#ddl_EndTime").val("<%=date %> 20:55");
                    }
                });
            }
        );
    </script>
    
    
    <!--My97DatePicker日期控件-->
    <script src="../../App_Themes/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    
</head>
<body>
    <form id="form1" runat="server">
    <div class="right" id="RightHighSet">
<div class="r_tit"><h2>实验室预约--<%=dr["Title"] %></h2></div>
<div class="t_h48"></div><!--留空48PX-->
<div class="r_bd" id="testtab">
<div class="tab_bd">
<table width="94%" border="0" cellpadding="0" cellspacing="0" class="tab_style">
  
  <tr>
    <td class="n1">申请人：</td>
    <td class="n2"><%=Session["Name1"]!=null?Session["Name1"].ToString():"" %></td>
    </tr>
    <tr>
    <td class="n1">地点：</td>
    <td class="n2"><%=dr["Address"] %></td>
    </tr>
    <tr>
    <td class="n1">时间：</td>
    <td class="n2">
        <input id="dates" type="radio" name="date" value="dates" />上午
        <input id="datex" type="radio" name="date" value="datex" />下午
        <input id="datew" type="radio" name="date" value="datew" />晚上
        <asp:DropDownList ID="ddl_StartTime" runat="server" CssClass="required" 
            AutoPostBack="True" onselectedindexchanged="ddl_StartTime_SelectedIndexChanged" >
        </asp:DropDownList>
        ---
        <asp:DropDownList ID="ddl_EndTime" runat="server" CssClass="required" 
            AutoPostBack="True" onselectedindexchanged="ddl_EndTime_SelectedIndexChanged" >
        </asp:DropDownList>
    </td>
    </tr>
   <tr>
    <td class="n1">使用设备名称：</td>
    <td class="n2">
        <asp:TextBox ID="txt_InstruName" runat="server" CssClass="required" class="t_input wb80" MaxLength="255" Width="300px"></asp:TextBox></td>
    </tr>
   <tr>
    <td class="n1">设备操作人：</td>
    <td class="n2"><asp:TextBox ID="txt_InstruPerson" runat="server" CssClass="required" class="t_input wb80" MaxLength="50"></asp:TextBox></td>
    </tr>
   
  
   <tr>
    <td class="n1">申请类别：</td>
    <td class="n2">
        <asp:DropDownList ID="ddl_TypeBig" runat="server" CssClass="required" 
            AutoPostBack="True" onselectedindexchanged="ddl_TypeBig_SelectedIndexChanged" >
        </asp:DropDownList>
    </td>
    </tr>
    <% if (ddl_TypeBig.SelectedValue != "5")
       { %>
    <tr>
    <td class="n1">种类：</td>
    <td class="n2"><asp:DropDownList ID="ddl_TypeSmall" runat="server" 
            CssClass="required">
        </asp:DropDownList></td>
    </tr>
    <%} %>
    <% if (ddl_TypeBig.SelectedValue == "1" || ddl_TypeBig.SelectedValue == "2")
       { %>
    <tr>
    <td class="n1">指导老师：</td>
    <td class="n2"><asp:TextBox ID="txt_Teacher" runat="server" class="t_input wb80" CssClass="required" MaxLength="50"></asp:TextBox></td>
    </tr>
    <tr>
  <td class="n1">被试数量：</td>
    <td class="n2"><asp:TextBox ID="txt_Number" runat="server" class="t_input wb80" CssClass="required number" MaxLength="50"></asp:TextBox></td>
    </tr>
    <%} %>
    
    <% if (ddl_TypeBig.SelectedValue == "3")
       { %>
    <tr>
    <td class="n1">主题：</td>
    <td class="n2"><asp:TextBox ID="txt_Subject" runat="server" class="t_input wb80" CssClass="required" MaxLength="255" Width="300px"></asp:TextBox></td>
    </tr>
    <tr>
  <td class="n1">主讲人：</td>
    <td class="n2"><asp:TextBox ID="txt_Speaker" runat="server" class="t_input wb80" CssClass="required" MaxLength="50"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="n1">参加对象：</td>
    <td class="n2"><asp:TextBox ID="txt_AddObject" runat="server" class="t_input wb80" CssClass="required" MaxLength="255" Width="300px"></asp:TextBox></td>
    </tr>
    <% }%>
    
    <% if (ddl_TypeBig.SelectedValue == "5")
       { %>
    <tr>
    <td class="n1">单位：</td>
    <td class="n2"><asp:TextBox ID="txt_CompanyName" runat="server" class="t_input wb80" CssClass="required" MaxLength="50" Width="300px"></asp:TextBox></td>
    </tr>
    <tr>
  <td class="n1">参观者：</td>
    <td class="n2"><asp:TextBox ID="txt_Visitor" runat="server" class="t_input wb80" CssClass="required" MaxLength="255" Width="300px"></asp:TextBox></td>
    </tr>
    <% }%>
    
    <tr>
  <td class="n1">备注：</td>
    <td class="n2"><asp:TextBox ID="txt_Mark" runat="server" class="t_input wb80" 
            CssClass="required" MaxLength="255" Columns="50" Rows="5" TextMode="MultiLine"></asp:TextBox></td>
    </tr>
    
</table>
<div class="menu">
<asp:Button ID="Button1" runat="server" Text="提交" class="menu01" CssClass="menu_b" onclick="Button1_Click" />
<input type="button" class="menu02" value="取消" onclick="window.location.href='laborder.aspx?lid=<%=dr["ID"] %>'" />
</div>
</div>


</div>

</div>




<script language="javascript">

    var MS = "IE";
    if (navigator.userAgent.indexOf("Firefox") > 0) {
        MS = "FF";
    }
    if (document.getElementById("RightHighSet") != null) {
        if (document.documentElement.clientHeight > 200) {
            document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
        }
    }

    var t = 0;

    window.onresize = function() {
        var now = new Date();
        now = now.getTime();
        if (now - t > 30) {
            if (document.getElementById("RightHighSet") != null) {
                if (document.documentElement.clientHeight > 200) {
                    document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
                }
                t = now;
            }
        }
    }
</script>
    </form>
</body>
</html>
