Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/feedback/
Upload File :
Current File : /var/www/html/venkat/feedback/fstatsubmit.php

<?php
include("fstat.php");
echo("<br>");
$subject= addslashes($_POST['subject1']);

$quer1=mysql_query("select count(course),session, course, code, teacher from feedback where course = '$subject'") or die("Invalid Access !!!"); 

if ($row = mysql_fetch_array( $quer1 )) {
	$session = $row['session'];		
	$count = $row['count(course)'];		
	$course = $row['course'];		
	$code = $row['code'];		
	$teacher = $row['teacher'];		

}?>
<center>
<table width = 80% border = "1">
<tr>
<td> Session : <?php echo($session); ?> </td>
<td> Course Name : <?php echo($course); ?> </td>
<td> Course Code : <?php echo($code); ?> </td>
<td> Faculty Name : <?php echo($teacher); ?> </td>
<td> Total Submission : <?php echo($count); ?> </td>
</tr>
</table>
<br>
<table width = 80% border = "1">
<tr>
<td colspan="2"> <b> <center> Section - B (for Lab) </center> </b></td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q1), q1 FROM `feedback` where course='$course' group by q1 order by q1") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q1'];
	$a[$s0]=$row['count(q1)'];
}?>

<tr>
<td>
Clarity of the teacher while teaching the course: 
</td>
<td>
Extraordinary: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Good: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Average: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Poor: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Unacceptable: <?php echo($a[5]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>


<?php

$quer1=mysql_query("SELECT count(q2), q2 FROM `feedback` where course='$course' group by q2 order by q2") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q2'];
	$a[$s0]=$row['count(q2)'];
}?>

<tr>
<td>
Punctuality of the Teacher: 
</td>
<td>
Regular: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Almost Regular: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Average: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Poor: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Irregular: <?php echo($a[5]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>


<?php

$quer1=mysql_query("SELECT max(q3) FROM `feedback` where course='$course'") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['max(q3)'];
	//$a[$s0]=$row['count(q4)'];
}?>

<tr>
<td>
Approximate Number of Lecture classes held so far: 
</td>
<td>
Maximum of all entries: <?php echo($s0); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>




<?php

$quer1=mysql_query("SELECT count(q4), q4 FROM `feedback` where course='$course' group by q4 order by q4") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q4'];
	$a[$s0]=$row['count(q4)'];
}?>

<tr>
<td>
Sincerity of the teacher in explaining your doubts: 
</td>
<td>
Extraordinary: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Good: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Average: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Poor: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Unacceptable: <?php echo($a[5]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q5), q5 FROM `feedback` where course='$course' group by q5 order by q5") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q5'];
	$a[$s0]=$row['count(q5)'];
}?>

<tr>
<td>
Capability of the teacher in answering your doubts satisfactorily: 
</td>
<td>
Extraordinary: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Good: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Average: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Poor: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Unacceptable: <?php echo($a[5]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q6), q6 FROM `feedback` where course='$course' group by q6 order by q6") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q6'];
	$a[$s0]=$row['count(q6)'];
}?>

<tr>
<td>
How teacher is approachable to the students: 
</td>
<td>
Always: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Most of the time: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Sometimes: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Difficult to get him/her: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Never: <?php echo($a[5]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q7), q7 FROM `feedback` where course='$course' group by q7 order by q7") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q7'];
	$a[$s0]=$row['count(q7)'];
}?>

<tr>
<td>
Was the syllabus of the subject(s) revealed at the beginning? 
</td>
<td>
Yes: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
No: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>


<?php

$quer1=mysql_query("SELECT count(q8), q8 FROM `feedback` where course='$course' group by q8 order by q8") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q8'];
	$a[$s0]=$row['count(q8)'];
}?>

<tr>
<td>
Overall ranking of the teacher: 
</td>
<td>
Among top 5 %: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Among top 10 %: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Average: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Below Average: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<tr>
<td colspan ="2"><center><b> Section - B (for Lab)</b> </center> </td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q9), q9 FROM `feedback` where course='$course' group by q9 order by q9") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q9'];
	$a[$s0]=$row['count(q9)'];
}?>


<tr>
<td>
Whether the labs were held regularly? 
</td>
<td>
Yes: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
No: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q10), q10 FROM `feedback` where course='$course' group by q10 order by q10") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q10'];
	$a[$s0]=$row['count(q10)'];
}?>

<tr>
<td>
Whether the labs assignments offered enough supplements for the theory courses? 
</td>
<td>
Yes: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
No: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>

<?php

$quer1=mysql_query("SELECT count(q11), q11 FROM `feedback` where course='$course' group by q11 order by q11") or die ("Invalid Access");
$a =array(0,0,0,0,0,0);
while($row = mysql_fetch_array( $quer1 )){
	$s0=$row['q11'];
	$a[$s0]=$row['count(q11)'];
}?>

<tr>
<td>
The involvement of the teacher in conduction of the laboratory classes was: 
</td>
<td>
Full: <?php echo($a[1]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Partial: <?php echo($a[2]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Marginal: <?php echo($a[3]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Almost Zero: <?php echo($a[4]); ?>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</td>
</tr>
</table>
<br>
<FORM>
<INPUT TYPE="submit"  value ="Print" Name ="print" onClick="window.print()">
</FORM>
</center>