<%@ page language="java" import="java.util.*,java.sql.*,java.sql.Date,java.sql.Time,java.net.*,java.awt.*,java.awt.image.*,javax.swing.*,java.io.*"%>

<html>
<head>
	<title>Test emulator sending data to EnTrak DB</title>
</head>
<jsp:useBean id="em" scope="session" class="EntrakMain"/>
<jsp:useBean id="sql" scope="session" class="SQLStatement"/>

<body>

<%

    
    sql = new SQLStatement(em.con);
	
	String clName = ClassLoaderName.getName(getClassLoader().toString());
			
    sql.setClassLoaderName(clName);  

   
%>
<h2> Send Data to EnTrak </h2>
<form method="post" action="sendProc.jsp">
<table border ="1">
<tr>
       <td>Zone name</td>
	   
       <td><select name ="zone-id-in" > <option value ='living-01'> living-01 <option selected value='bed_room_1' >bed_room_1</select> </td>
</tr>
<tr>
       <td>Temperature('C)</td>
       <td> <input name="temp-in" type="text" value="">
</td>
</tr>
</table>
   
<table>

<tr>

    <td>
    <input name="pagemode" type="hidden" value="submit" > 	   
    <input type="submit" value="Send" >
</td>
   <td><input type="button" value="Close" onClick="window.close()">  
</td>
</tr>
</table>

</form>
</body>
</html>


</body>
</html>
