
<%@page language="java" import="java.util.*,java.sql.*" contentType="text/html"%>

<html>
    <head>
        
      <link href="css/sty.css" rel="stylesheet" type="text/css"></link>       
<script src="js/datepicker.js"></script>
		
		<script>
            function enter(){
                if(event.keyCode==13)
                {
                    validate();
                }
            }
            function validate()
            {
                var b=f1.date.value;
                if(b=="" || b==null)
                    window.alert("please enter date");
          
                else {
                    f1.submit();
        
                } 
            }
        </script>
    </head>
    <body onkeyup="enter()">
	 <% if(request.getAttribute("insert")!=null){%>
   <b><h1> <font color="green"><%=(String) request.getAttribute("insert")%></font></h1></b>
    <%}%>

        <% if(request.getAttribute("error")!=null){%>
   <b><h1> <font color="red"><%=(String) request.getAttribute("error")%></font></h1></b>
    <%}%>
		
        <form name="f1" method="post" action='rddate.jsp'>
         <center>
			   <table cellspacing=10 cellpadding=5>
                <tr>  <td>
                        Select Date:
                    </td>
					<td><input type="text" name="t1" id="date" readonly></td>
                    <td><img src="images\cal.gif" onclick="displayDatePicker('date')" title="pick date here"></td>
                </tr>
               
				<tr>
				<td><input type="checkbox" name="demiofficial" value="yes">Demiofficial</td>
				</tr>
				<tr>
				
				<td><input type="radio" name="action" value="pending">Pending</td>
				<td><input type="radio" name="action" value="closed">Closed</td>
				</tr>
				<tr>
                    <td><button value="Report"  onclick="validate()">Report</button></td>
                    <td><input type="reset" value="Cancel"></td>
                </tr>
            </table>
        </center>
        </form>
    </body>
</html>
