<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orderadd.aspx.cs" Inherits="system_Instru_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["Title"] %></td>
    </tr>
   <tr>
    <td class="n1">型号：</td>
    <td class="n2"><asp:TextBox ID="txt_Type" runat="server" CssClass="required" class="t_input wb80" 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>
  <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_Mark" runat="server" class="t_area" 
            Columns="70" Rows="5" TextMode="MultiLine" CssClass="required"  MaxLength="500"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="n1">负责人：</td>
    <td class="n2"><asp:TextBox ID="txt_Person" 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_Teacher" runat="server" class="t_input wb80" CssClass="required" MaxLength="50"></asp:TextBox></td>
    </tr>
</table>
<div class="menu">
<%--<input type="button" class="menu01" value="提交" />--%>
    <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='instruorder.aspx?iid=<%=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>
