Current File : /home/inlingua/public_html/icentex/admin_fd/full_report.php |
<?php
include("header_fd.php");
// Include the database connection details
require('../dbConnection.php');
// Include common functions
require('../commonFunc.php');
// Include common functions
require('../globalVars.php');
// Include the table handler class
require('../dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
?>
<div id="content-wrap" >
<div id="content-box" >
<div id="toolbar-title" >
<h3>
In-Center Reports
</h3>
<div class="clear"></div>
</div>
<div id="toolbar-box">
<div class="toolbar" id="toolbar"></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div id="element-box">
<div class="m">
<table class="adminform">
<tbody><tr>
<td valign="top" width="100%">
<br>
<?php
$month=date("m");
$year=date("Y");
//$year=2011;
?>
<script>
function validate(form)
{
return true;
}
</script>
<script language="javascript">
$(function() {
$('#datepicker3').datepicker({
changeMonth: true,
changeYear: true
});
});
$(function() {
$('#datepicker4').datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
<font style="font-size:12px; color:#E84B1E"><?php if($_SESSION['existsheet']) { echo $_SESSION['existsheet']; unset ($_SESSION['existsheet']); }?></font>
<form action="ingl_admission.select1.php" method="post" name="form" onsubmit=" return validate(this)">
<table width="100%">
<tr valign='top'><td>Start date</td><td> <input type='text' name='startdate' value="<?php echo $dbObject->getDbField('startdate');?>" size='12' maxlength='10' id="datepicker3">
</td></tr>
<tr><td>From date</td><td> <input type='text' name='enddate' value="<?php echo $dbObject->getDbField('enddate');?>" size='12' maxlength='10' id="datepicker4">
</tr>
<tr><td width="10%">Location</td><td>
<select name='location'>
<?php
$querylocation="select primarycenter from timesheet_user where recNo='".$_SESSION['id']."'";
$resultlocation=mysqli_query($conn,$querylocation) or die(mysql_error($conn));
$numlocation=mysqli_fetch_array($resultlocation);
$queryloc="select * from timesheet_location where location='".$numlocation['primarycenter']."'";
$resultloc=mysqli_query($conn,$queryloc) or die(mysql_error($conn));
while ($numloc=mysqli_fetch_array($resultloc))
{
echo"<option value='".$numloc[recNo]."' ";
if($numlocation[primarycenter]==$numloc[location])
{
echo"selected";
}
echo">".$numloc[location]."</option>";
}
?>
</select>
</td></tr>
<tr><td>Name</td><td><input type='text' name='search_name'></td></tr>
<tr><td valign="top">Age Group </td><td>
<?php
$age_selected=$dbObject->getDbField('age_group');
$age_group=array("Below 15"=>"Below 15","16 to 18"=>"16 to 18","19 to 23"=>"19 to 23","24 to 27"=>"24 to 27","27 to 30"=>"27 to 30","30 & above"=>"30 & above");
echo radio_buttons($age_group,"age_group",$age_selected,"",3);
?>
</td></tr>
<td colspan="2">
<br>
<table width="100%" >
<tr><td style="background-color:#cccccc;" colspan="6">CONTACT INFORMATION</td></tr>
<tr>
<td>Country</td><td><input type='text' name='country'></td>
<td>State</td><td><input type='text' name='state' value="" size='20' maxlength='250'></td>
<td>City</td><td><input type='text' name='city'></td>
</tr>
<tr valign='top'><td >Pincode:</td><td colspan="5"><input type='text' name='pincode' value="" size='20' maxlength='250'></td>
</tr>
<tr>
<td>Telephone</td><td><input type='text' name='telephone' value="" size='20' maxlength='250'></td>
<td>Mobile</td><td><input type='text' name='mobile' value="" size='20' maxlength='250'></td>
<td>Email</td><td><input type='text' name='email' value="" size='20' maxlength='250'></td>
</tr>
</table>
</td>
<tr>
<td colspan="2">
<table width="100%" border="0" >
<tr><td colspan="4" style="background-color:#cccccc;">EDUCATION & OCCUPATION</td></tr>
<tr><td colspan="2">In which city have you done most of your schooling?</td><td colspan="2"><input type='text' name='city_school' value="<?php echo $dbObject->getDbField('city_school');?>" size='20' maxlength='250'></td></tr>
<tr><td colspan="2">What was the medium of instruction in your school?</td><td colspan="2">
<input type="checkbox" name="medium_school_english" value="1" <?php if($dbObject->getDbField('medium_school_english')=="1") echo "checked" ?>> English
<input type="checkbox" name="medium_school_hindi" value="1" <?php if($dbObject->getDbField('medium_school_hindi')=="1") echo "checked" ?>> Hindi
<input type="checkbox" name="medium_school_other" value="1" <?php if($dbObject->getDbField('medium_school_other')=="1") echo "checked" ?>> Other
</td></tr>
<tr><td width="20%">Are you currently a student?</td><td width="15%">
<?php
$student_selected=$dbObject->getDbField('student');
$student_array=array("No"=>"No","Yes"=>"Yes");
echo radio_buttons($student_array,"student",$student_selected,"",2);
?>
</td><td>Are you currently working?</td><td>
<?php
$working_selected=$dbObject->getDbField('working');
$working_array=array("No"=>"No","Yes"=>"Yes");
echo radio_buttons($working_array,"working",$working_selected,"",2);
?>
</td></tr>
</table>
</td>
</tr>
<tr><td colspan="2"><input type="submit" value="search"></td></tr>
</form>
</table>
<div id="cpanel">
<div style="float: left;">
<div class="icon"></div>
</div>
<div style="float: left;">
<div class="icon"></div>
</div>
<div style="float: left;"></div>
</div>
</td>
<td valign="top" width="45%"> </td>
</tr>
</tbody></table>
</div>
</div>
<div class="clear"></div>
<p class="copyright"> </p>
</div>
</div>
<?php
include("footer_fd.php");
?>