Current File : /home/inlingua/www/icentex/admin_cert/level_1.form.php
<?php
include("header_cert.php");

?>
<div class="clear"></div>
<?php include("left_cert.php"); ?>
<div id="content-wrap" style="padding-top:20px;" >
  <div id="content-box" >
		<div id="toolbar-title" >
			<h3>
End of Course Report

</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  width="100%">

<?php
// Copyright, Panalink Infotech Limited. Created on: 30-06-2010

// Include header


echo $succFailMesg; 

// Show result of a form submission?
if ($showResult == "Y")
{	//echo "<br><a href='level_1.select.php'>Back</a><br>";
    header("Location:certificate_1.php");
	// Include footer
	include "footer.php";
	return; 
}
?>

<script language="javascript">
<!--
function validate(form) 
{	
//alert("dd");
if (document.form.recNo.value=="")
	{	alert("recNo cannot be blank. Please enter it.");
		document.form.recNo.focus(); return false;
	}
	
	if(confirm("Are you sure ?"))
	{
	return true;
	}
	else
	{
	return false;
	}
}
-->
function setothereligibility(Id)
{
//alert(Id);
sp=Id.split('_');
otherid='othereligibility_'+sp[1];
if(sp[0]=='yes' || sp[0]=='no')
{

document.getElementById(otherid).style.display='none';
}
else
document.getElementById(otherid).style.display='block';


}
</script>

<form method='post' action='level_1.main.php' name='form' onsubmit="return validate(this)" >
<input type='hidden' name='recNo' value="<?php echo $dbObject->getDbField('recNo');?>">
<input type='hidden' name='kV' value="<?php echo $_REQUEST['kV'];?>">


<?php 
if($currentMode=="Update")
{
?>
<table boder='1' class='pa-nor' >

<input type='hidden' name='language' value="<?php echo $dbObject->getDbField('language');?>" size='20' maxlength='250'>
<input type='hidden' name='courseId' value="<?php echo $dbObject->getDbField('courseId');?>" size='20' maxlength='100'>
<input type='hidden' name='level' value="<?php echo $dbObject->getDbField('level');?>" size='20' maxlength='100'>
<input type='hidden' name='startDate' value="<?php echo $dbObject->getDbField('startDate');?>" size='10' maxlength='10'>
<input type='hidden' name='endDate' value="<?php echo $dbObject->getDbField('endDate');?>" size='10' maxlength='10'>

<tr valign='top'><td>Name</td><td><input type='text' name='name_student' value="<?php echo $dbObject->getDbField('name_student');?>" size='20' maxlength='250'></td></tr>

<!--<tr valign='top'><td>Date Of Birth</td><td><input type='text' name='dob' value="<?php echo $dbObject->getDbField('dob');?>" size='10' maxlength='10'></td></tr>-->

<tr valign='top'><td colspan=''>End of Course Report Comment</td><td><textarea wrap='virtual' rows='4' cols='50' name='cerification_comment'><?php echo $dbObject->getDbField('cerification_comment');?></textarea></td></tr>

<tr valign='top'><td colspan=''>Listening and Speaking Skills</td><td><textarea wrap='virtual' rows='6' cols='50' name='listening_skill'><?php echo $dbObject->getDbField('listening_skill');?></textarea></td></tr>

<tr valign='top'><td colspan=''>General Comment and Advice for Future Study</td><td><textarea wrap='virtual' rows='7' cols='50' name='general_comment'><?php echo $dbObject->getDbField('general_comment');?></textarea></td></tr>

<tr valign='top'><td>Overall Grade</td><td><input type='text' name='overall_grade' value="<?php echo $dbObject->getDbField('overall_grade');?>" size='20' maxlength='250'></td></tr>
<tr valign='top'><td>Eligibility for the next level</td>
<td>
<input onclick="setothereligibility(this.id)" id="yes_1" type="radio" name="eligibility_1" value="Yes" <?php if($dbObject->getDbField('eligibility')=="Yes") echo"checked" ?>/>Yes&nbsp;
<input onclick="setothereligibility(this.id)" id="no_1" type="radio" name="eligibility_1" value="No" <?php if($dbObject->getDbField('eligibility')=="No") echo"checked" ?>/>No &nbsp;
<input onclick="setothereligibility(this.id)" id="other_1" type="radio" name="eligibility_1" value="Other" <?php if($dbObject->getDbField('eligibility')=="Other") echo"checked" ?>/>Other</td></tr>
<?php if( $dbObject->getDbField('eligibility')=="Other") 
{
$elig="Other"; 
}
else
{
$elig="";
}
?>
<tr valign='top'><td>&nbsp;</td>
<td style="display:none" id="othereligibility_1">
<input type='text' name='othereligibility' value="<?php echo $dbObject->getDbField('othereligibility');?>" size='20' maxlength='250'>
</td></tr>
<input type='hidden' name='createdBy' value="<?php echo $_SESSION['id'];?>" size='20' maxlength='250'>

<tr><td colspan='2'><input type='submit' name='aC' value='<?php echo $currentMode;?>'></td></tr>
</table>

<input type='hidden' name='createDate' value="<?php echo date('Y-m-d H:i:s');;?>" />
<script language="javascript">
eligibility="<?php echo $elig; ?>";
if(eligibility=="Other")
{
setothereligibility("other_1");
}
</script>
<?php

}
else
{
for($i=0; $i<$_REQUEST['student_no']; $i++)
{ ?>
<table boder='1' class='pa-nor' >

<input type='hidden' name='language[]' value="<?php echo $dbObject->getDbField('language');?>" size='20' maxlength='250'>
<input type='hidden' name='courseId[]' value="<?php echo $dbObject->getDbField('courseId');?>" size='20' maxlength='100'>
<input type='hidden' name='level[]' value="<?php echo $dbObject->getDbField('level');?>" size='20' maxlength='100'>
<input type='hidden' name='startDate[]' value="<?php echo $dbObject->getDbField('startDate');?>" size='10' maxlength='10'>
<input type='hidden' name='endDate[]' value="<?php echo $dbObject->getDbField('endDate');?>" size='10' maxlength='10'>
<tr valign='top' bgcolor="#666666"><td colspan="2" style="font-weight:bold"> Add Details of Student No.<?php echo $i+1 ?></td></tr>
<tr valign='top'><td>Name</td><td><input type='text' name='name_student[]' value="<?php echo $dbObject->getDbField('name_student');?>" size='20' maxlength='250'></td></tr>

<!--<tr valign='top'><td>Date Of Birth</td><td><input type='text' name='dob' value="<?php echo $dbObject->getDbField('dob');?>" size='10' maxlength='10'></td></tr>-->

<tr valign='top'><td colspan=''>End of Course Report Comment</td><td><textarea 
  wrap='virtual' readonly="readonly" rows='4' cols='50' name='cerification_comment[]'><?php echo $dbObject->getDbField('cerification_comment');?></textarea>
</td></tr>

<tr valign='top'><td colspan=''>Listening and Speaking Skills</td><td><textarea 
onblur="textCounter(this,document.form.ListenLen<?php echo $i ?>,400)" 
onclick="textCounter(this,document.form.ListenLen<?php echo $i ?>,400)"  
onKeyDown="textCounter(this,document.form.ListenLen<?php echo $i ?>,400)"
onKeyUp="textCounter(this,document.form.ListenLen<?php echo $i ?>,400)" wrap='virtual' rows='6' cols='50' name='listening_skill[]'><?php echo $dbObject->getDbField('listening_skill');?></textarea>

<input readonly type="text" name="ListenLen<?php echo $i ?>" size="2" maxlength="3" value="225">left
</td></tr>

<tr valign='top'><td colspan=''>General Comment and Advice for Future Study</td><td><textarea wrap='virtual' rows='7' cols='50' name='general_comment[]' 
onblur="textCounter(this,document.form.commentLen<?php echo $i ?>,400)" 
onclick="textCounter(this,document.form.commentLen<?php echo $i ?>,400)"  
onKeyDown="textCounter(this,document.form.commentLen<?php echo $i ?>,400)"
onKeyUp="textCounter(this,document.form.commentLen<?php echo $i ?>,400)"> <?php echo $dbObject->getDbField('general_comment');?></textarea>

<input readonly type="text" name="commentLen<?php echo $i ?>" size="2" maxlength="3" value="18">left</td></tr>

<tr valign='top'><td>Overall Grade</td><td><input type='text' name='overall_grade[]' value="<?php echo $dbObject->getDbField('overall_grade');?>" size='20' maxlength='250'></td></tr>
<tr valign='top'><td>Eligibility for the next level</td>
<td>
<input onclick="setothereligibility(this.id)" id="yes_<?php echo $i ?>" type="radio" name="eligibility_<?php echo $i ?>" value="Yes" />Yes&nbsp;
<input onclick="setothereligibility(this.id)" id="no_<?php echo $i ?>" type="radio" name="eligibility_<?php echo $i ?>" value="No" />No &nbsp;
<input onclick="setothereligibility(this.id)" id="other_<?php echo $i ?>" type="radio" name="eligibility_<?php echo $i ?>" value="Other" />Other</td></tr>

<tr valign='top'><td>&nbsp;</td>
<td style="display:none" id="othereligibility_<?php echo $i ?>">
<input type='text' name='othereligibility[]' value="<?php echo $dbObject->getDbField('othereligibility');?>" size='20' maxlength='250'>
</td></tr>
<input type='hidden' name='createdBy' value="<?php echo $_SESSION['id'];?>" size='20' maxlength='250'>

<tr><td colspan='2'><input type='submit' name='aC' value='<?php echo $currentMode;?>'></td></tr>
</table>

<input type='hidden' name='createDate' value="<?php echo date('Y-m-d H:i:s');;?>" />
<?php } }?>
</form>


<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%">&nbsp;</td>
					</tr>
				</tbody></table>
			</div>
		</div>
		<div class="clear"></div>
		<p class="copyright">&nbsp;</p>
  </div>
</div>
</body></html>