<!--  Author : Jagbir Singh -->
<!--  Debur : Jagbir Singh -->
<!--  Tested by : Amanbir Singh, Swapni Sarode -->
 
 <%
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); 
    %>
    
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!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>
   
    <link rel="stylesheet" type="text/css" href="codebase/dhtmlxvault.css" />

    <script language="JavaScript" type="text/javascript" src="codebase/dhtmlxvault.js"></script>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Welcome to Home Page</title>
    </head>
     <body bgcolor="#FFFFFF"><center>
     <%
     	String active = (String)session.getAttribute("active");
    if((session.getAttribute("sUserName"))!=null&&(session.getAttribute("sPwd")!=null))
    {
    %>
     
      <p style="color: #0000FF; font-size: 18pt">Welcome <%=session.getAttribute("sUserName")%> </p>
     
    
    <%
    }
    else
    {
    	
    %>
    <jsp:forward page="login.jsp"/>
    <%
     }
    %>
    
</center>
    
   
    <form name="home"  action="welcome.jsp">
<input type="image" src="home.jpg" alt="Submit" align="left" style="width:70px; height:60px">
</form>
<form name="profile"  action="application.jsp">
<input type="image" src="profile.jpg" alt="Submit" align="left" width="60" height="60">
</form>
<% if(active.equals("actpatient")){%>
<form name="calculate"  action="calender.jsp">
<input type="image" src="calculate.jpg" alt="Submit" align="left" width="70" height="70">
</form>

<!-- <form name="graph"  action="charts.jsp"> -->
<!-- <input type="image" src="graph.jpg" alt="Submit" align="left" width="70" height="70"> -->
<!-- </form> -->


<%} %>

<% if(active.equals("actdoctor")){%>
<form name="patientList"  action="patientList.jsp">
<input type="image" src="patientIcon.jpg" alt="Submit" align="left" width="70" height="70">
</form>
<%} %>


<form name="logout"  action="logout.jsp">
<input type="image" src="logout.jpg" alt="Submit" align="left" width="60" height="60">
</form>
<% if(active.equals("actpatient")){%>
  <form name="feedback"  action="viewFeedBack.jsp">
<input type="image" src="feedback.jpg" alt="Submit" align="right" width="150" height="70">
</form>  
    <%} %>
<br><br><br><br>
   
<TABLE BORDER="0" cellpadding="0" CELLSPACING="0" align="center">
<TR>

<TD WIDTH="940" HEIGHT="345" BACKGROUND="welcome.jpg" VALIGN="top">

<FONT SIZE="4" COLOR="white">Introducing the BodyMedia SenseWear System<br><br></FONT>
<FONT SIZE=2" COLOR="white">Gain Insight into Your Patients' Daily Physical Activity Lifestyles and Sleep Behaviors<br>
The SenseWear Armband system acts as a versatile monitor allowing you to conveniently collect<br>
and analyze information about your patients in a free-living environment, allowing them to go<br>
about their normal daily activities.<br><br>
Used by clinical and research groups, the SenseWear System is<br>
scientifically validated and featured in over a hundred peer reviewed<br>
papers.</FONT>
</TD>
</TR>
<TR>
<td>
<% if(active.equals("actpatient")){%>

	
  
<div id="vaultDiv" style="height: 300px; width: 500px" ></div>
<script>
vault=new dhtmlXVaultObject();				//upload file widget
vault.setImagePath("codebase/imgs/");
vault.setServerHandlers("UploadHandler.jsp", "GetInfoHandler.jsp", "GetIdHandler.jsp");
vault.onAddFile = function(fileName) { var ext = this.getFileExtension(fileName); 
if (ext != "xls")
{ 
	alert("You may upload only xls documents . Please retry.");
	return false;
	}
else 
	return true;
};

vault.create("vaultDiv");
</script>

<%} %>

</td>

</TR>
</TABLE>


  </body>
</html>  
