
<!-- Author : Jagbir Singh -->
<!-- Debug : Jagbir Singh -->
<!-- Testd : Siddhesh Surve -->

<html>
  <head>
    <title>Select DateTime</title>
    
 <% String active = (String)session.getAttribute("active");
 
 	String userId ;
 	if(active.equals("actdoctor")){
 		userId = request.getParameter("userId");
 	}
 	else{
 		userId = (String)session.getAttribute("sUserName");
 	}
 	
 %>
 
    <script src="src/js/jscal2.js"></script>
    <script src="src/js/lang/en.js"></script>
    <link rel="stylesheet" type="text/css" href="src/css/jscal2.css" />
    <link rel="stylesheet" type="text/css" href="src/css/border-radius.css" />
    <link rel="stylesheet" type="text/css" href="src/css/steel/steel.css" />
  </head>
  <body>
   
   <form name="home" " action="welcome.jsp">
<input type="image" src="home.jpg" alt="Submit" align="left" width="70" height="60">
</form>

<form name="logout" " action="logout.jsp">
<input type="image" src="logout.jpg" alt="Submit" align="right" width="60" height="60">
</form>
   
    <TABLE BORDER="0" cellpadding="0" CELLSPACING="0">
<TR>

<TD>
<img src="calendar2.jpg" style="float:right" height="350" width="1470" />
</TD>

</TR>
</TABLE>
<tr>
<form action="calculate.jsp" method = "post">

<font size="6" >Please Select the Start Time</font>


    <input size="30" id="f_date1" name = "StartDate" style="width: 200px; height: 25px;"/><button id="f_btn1">...</button><br />
    <br />
    <br />
    <br />
    <font size="6" color="Black">Please Select the End Time</font>
    <input size="30" id="f_date2" name = "EndDate" style="width: 200px; height: 25px;"/><button id="f_btn2">...</button><br />
    

    <script type="text/javascript">//<![CDATA[

      var cal = Calendar.setup({
          onSelect: function(cal) { cal.hide() },
          showTime: 12
      });
      cal.manageFields("f_btn1", "f_date1", "%Y-%m-%d %I:%M %p");

      cal.manageFields("f_btn2", "f_date2", "%Y-%m-%d %I:%M %p");

    //]]></script>
    
    <td> <input type = "hidden" value="<%=userId%>" name="userId"></td>
<td><input type="submit" name="Submit" value="Submit" style="background-color:#1589FF;font-weight:bold;color:#000000;"></td>
    </form>
    </tr>
  </body>
</html>
