| Current Path : /var/www/html/venkat/projectjan2016/project2/ |
| Current File : /var/www/html/venkat/projectjan2016/project2/hprojectview.php |
<script src="jquery.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$('#discipline').change(function() {
$.ajax({
type: "GET",
url: 'disciplineh.php',
data: "discipline=" + $('#discipline').val(),
dataType: "html",
success: function(Response){
$("#subject1").children().remove();
$("#subject1").html(Response);
}
});
});
});
</script>
<?php
include("hview.php");
?>
<?php
$option1 = addslashes($_POST['option1']);
$k1 = substr($option1,0,8);
$k2 = substr($option1,9,9);
if($option1=="Faculty")
{
?>
<br>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="5"><strong>Faculty wise project numbers</strong></td>
</tr>
<tr>
<td><b>Sl.No</font></td>
<td><b>Name</font></td>
<td><b>IIITA - B.Tech(IT)</font></td>
<td><b>IIITA - B.Tech(EC)</font></td>
<td><b>IIITA - M.Tech</font></td>
<td><b>RGIIT</font></td>
</tr>
<?php
$slno=0;
$quer1=mysql_query("select * from faculty") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 )) {
$name=$row['name'];
$it=$row['it'];
$mi=$row['mi'];
$ri=$row['ri'];
$ec=$row['ec'];
$it1=$row['it1'];
$mi1=$row['mi1'];
$ri1=$row['ri1'];
$ec1=$row['ec1'];
$slno++;
$it = $it1 - $it;
$mi = $mi1 - $mi;
$ri = $ri1 - $ri;
$ec = $ec1 - $ec;
?>
<tr>
<td><?php echo($slno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($it); ?></font></td>
<td><?php echo($ec); ?></font></td>
<td><?php echo($mi); ?></font></td>
<td><?php echo($ri); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($k1=="semester")
{
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="8"><strong>Following are <?php echo($k2);?> Semster Project Students List (Project Id wise)</strong></td>
</tr>
<tr>
<td><b>Sl.No.</font></td>
<td><b>Dept.</font></td>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Guide</font></td>
<td><b>Title</font></td>
<!-- <td><b>Verified</font></td> -->
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select projectid, rollno, name, guide, title, verified, discipline from projectsubmit where semester='$k2' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$dept=$row['discipline'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
//$verified=$row['verified'];
$title=$row['title'];
$slno++;
?>
<tr>
<td><?php echo($slno); ?></font></td>
<td><?php echo($dept); ?></font></td>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($faculty); ?></font></td>
<td><?php echo($title); ?></font></td>
<!-- <td><?php echo($date); ?></font></td>
<td><?php echo($verified); ?></font></td>-->
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($option1=="projectid")
{
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Following are <?php echo($discipline);?> Project Students List (Project Id wise)</strong></td>
</tr>
<tr>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Date of Cre./Veri.</font></td>
<td><b>Project Type</font></td>
<td><b>Verified</font></td>
</tr>
<?php
$pid="s";
$d=0;
$quer1=mysql_query("select * from projectsubmit where discipline='$discipline' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$verified=$row['verified'];
$projecttype=$row['projecttype'];
if($pid!=$id)
{
$d++;
echo "<tr> <td><b><font color='red'>". $d. ": Group Id: ".$id."</font></td></tr>";
$pid=$id;
}
?>
<tr>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($date); ?></font></td>
<td><?php echo($projecttype); ?></font></td>
<td><?php echo($verified); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($option1 == "verified")
{
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="7"><strong>Following are Project Students List (Not Verified)</strong></td>
</tr>
<tr>
<td><b>Sl.No.</font></td>
<td><b>Department</font></td>
<td><b>Semester</font></td>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Date of Creation</font></td>
<td><b>Verified</font></td>
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select * from projectsubmit where verified='no' order by rollno") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$verified=$row['verified'];
$dept=$row['discipline'];
$semester=$row['semester'];
$slno++;
?>
<tr>
<td><?php echo($slno); ?></font></td>
<td><?php echo($dept); ?></font></td>
<td><?php echo($semester); ?></font></td>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($date); ?></font></td>
<td><?php echo($verified); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($option1 == "pending")
{
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="7"><strong>Following are Pending Projects</strong></td>
</tr>
<tr>
<td><b>Sl.No.</font></td>
<td><b>Department</font></td>
<td><b>Semester</font></td>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Date of Creation</font></td>
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select * from projectsubmit where accepted='n' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$verified=$row['verified'];
$dept=$row['discipline'];
$semester=$row['semester'];
$slno++;
?>
<tr>
<td><?php echo($slno); ?></font></td>
<td><?php echo($dept); ?></font></td>
<td><?php echo($semester); ?></font></td>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($date); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($option1 == "rejected")
{
?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="7"><strong>Following are Rejected Projects</strong></td>
</tr>
<tr>
<td><b>Sl.No.</font></td>
<td><b>Department</font></td>
<td><b>Semester</font></td>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Guide</font></td>
<td><b>Date of Creation</font></td>
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select * from projectsubmit where accepted='1' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$verified=$row['verified'];
$dept=$row['discipline'];
$semester=$row['semester'];
$slno++;
?>
<tr>
<td><?php echo($slno); ?></font></td>
<td><?php echo($dept); ?></font></td>
<td><?php echo($semester); ?></font></td>
<td><?php echo($id); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($faculty); ?></font></td>
<td><?php echo($date); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
if($option1=="submitted")
{
?>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="6"><strong>Following are Project Students List (Not registeret their projects)</strong></td>
</tr>
<tr>
<td><b>Sl.No</font></td>
<td><b>Dept.</font></td>
<td><b>Semester</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
</tr>
<?php
$query="SELECT Table2.dept,Table2.rollno,Table2.name,Table2.semester FROM projectstudent Table2 where Table2.rollno not in (SELECT rollno FROM projectsubmit T1) order by Table2.rollno";
$result=mysql_query($query)or die("Invalid Access1 !!!");
$num=mysql_numrows($result);
$i=0;
while ($i < $num)
{
$rollno=mysql_result($result,$i,"rollno");
$name=mysql_result($result,$i,"name");
$semester=mysql_result($result,$i,"semester");
$dept=mysql_result($result,$i,"dept");
?>
<tr>
<td><?php echo($i+1); ?></font></td>
<td><?php echo($dept); ?></font></td>
<td><?php echo($semester); ?></font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
</tr>
<?php
$i++;
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
?><br>
<center>
<a href="r.pdf" onClick="window.print();return false">Click here to download the printable version</a>
<br>
<br>
</center>