0% found this document useful (0 votes)
5 views4 pages

New Course Batch Creation Form

This document contains code for a form to add a new course batch. It retrieves the course name from the session and uses it to populate the form fields. Date fields are populated with values calculated by adding/subtracting days from the current system date. The form collects start date, end date, number of seats, and fee for the new batch, with validation rules on the fields. Buttons allow submitting the form or going back without submitting.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

New Course Batch Creation Form

This document contains code for a form to add a new course batch. It retrieves the course name from the session and uses it to populate the form fields. Date fields are populated with values calculated by adding/subtracting days from the current system date. The form collects start date, end date, number of seats, and fee for the new batch, with validation rules on the fields. Buttons allow submitting the form or going back without submitting.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<!

DOCTYPE html>

<script src="js/[Link]"> </script>

<script type="text/javascript" language="javascript">

</script>

<%@page import="guide.*" %>

<%@page import="[Link].*" %>

<%@page import="[Link].*" %>

<form id='templete' >

<%

String course = (String)[Link]("course");

Dates dates = (Dates) [Link]( "dates" );

String systemDate = [Link]();

String min = [Link]( systemDate, 10 );

String max = [Link]( systemDate, 180 );

String value = [Link]( systemDate, 10 );

%>

<table class='full-list' >

<tr class='hd'> <td align='center' colspan='2'> New <%= course %> Batch </td>
</tr>

<tr> <td> Start Date </td>

<td> <input type='date' name='sdate' class='sdate' id='sdate'


value='<%= value %>' min='<%= min %>' max='<%= max %>' /> </td> </tr>

<tr> <td> End Date </td>

<td> <input type='date' name='edate' class='sdate' id='edate'


value='<%= value %>' min='<%= min %>' max='<%= max %>'/> </td> </tr>

<tr> <td> Seats </td>

<td> <input type='number' name='seats' class='seats' id='seats'


value='60' min='30' max='120' /> Students </td> </tr>

<tr> <td> Fee </td>

<td> <input type='number' name='fee' class='fee' id='fee'


value='1000' min='1000' max='50000' /> Rs. </td> </tr>

<tr class='hd'>

<td align='center'> <a href='javascript:get("[Link]")'> Back </a>


</td>

<td align='center'><a href='javascript:set( "[Link]" )' > Add <%=


course %> Batch </a> </td>

</tr>

</table>

</form>

You might also like