Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/projectaug2017/
Upload File :
Current File : /var/www/html/venkat/projectaug2017/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);
$k3 = substr($option1,0,6);
$k4 = substr($option1,7,9);
$k2 = substr($option1,9,9);

//echo $k11 = explode('-',$option1,0);
$k11 = strstr($option1,"-",true);
$k14 = substr($option1, strpos($option1, "-") + 1);    

$k21 = strstr($k14,":",true);

$k31 = substr($k14, strpos($k14, ":") + 1);    

//echo $k13 = strstr($k13,":",true);
//echo $k11 = substr($option1,0,3);
//echo $k21 = substr($option1,5,5);
//echo $k31 = substr($option1,8,8);



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="14"><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(IT-8sem)</font></td>
<td><b>IIITA - B.Tech(EC)</font></td>
<td><b>IIITA - M.Tech(BM)</font></td>
<td><b>IIITA - M.Tech</font></td>
<td><b>RGIIT</font></td>
<td><b>Summer Project</font></td>
<td><b>Summer Project (IT - 8) </font></td>
<td><b>Summer Project (IT - 6) </font></td>
<td><b>Summer Project (IT - 2) </font></td>
<td><b>Summer Project (EC) </font></td>
<td><b>Summer Project (BM) </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'];
	$ii=$row['ii'];
	$bm=$row['bm'];
	$su=$row['su'];
	$it1=$row['it1'];
	$mi1=$row['mi1'];
	$ri1=$row['ri1'];
	$ec1=$row['ec1'];
	$bm1=$row['bm1'];
	$ii1=$row['ii1'];
	$su1=$row['su1'];
	$i8 = $row['i8'];
	$i6 = $row['i6'];
	$i2 = $row['i2'];
	$es = $row['es'];
	$bs = $row['bs'];
	$i81 = $row['i81'];
	$i61 = $row['i61'];
	$i21 = $row['i21'];
	$es1 = $row['es1'];
	$bs1 = $row['bs1'];
	$slno++;
	$it = $it1 - $it;
	$ii = $ii1 - $ii;
	$mi = $mi1 - $mi;
	$ri = $ri1 - $ri;
	$ec = $ec1 - $ec;
	$bm = $bm1 - $bm;
	$su = $su1 - $su;
	$i8 = $i81 - $i8;
	$i6 = $i61 - $i6;
	$i2 = $i21 - $i2;
	$es = $es1 - $es;
	$bs = $bs1 - $bs;
?>
	<tr>
	<td><?php echo($slno); ?></font></td>
	<td><?php echo($name); ?></font></td>
	<td><?php echo($it); ?></font></td>
	<td><?php echo($ii); ?></font></td>
	<td><?php echo($ec); ?></font></td>
	<td><?php echo($bm); ?></font></td>
	<td><?php echo($mi); ?></font></td>
	<td><?php echo($ri); ?></font></td>
	<td><?php echo($su); ?></font></td>
	<td><?php echo($i8); ?></font></td>
	<td><?php echo($i6); ?></font></td>
	<td><?php echo($i2); ?></font></td>
	<td><?php echo($es); ?></font></td>
	<td><?php echo($bs); ?></font></td>
	</tr>
	<?php
}


?>
</form>

</table>
</td>

</tr>
</table>


<?php
}


if($k11 == "dept") {
?>
<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($k21. "-" . $k31);?> 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>Co-Guide</font></td>
<td><b>Title</font></td>
<td><b>Status</font></td> 
<td><b>Summer</font></td> 
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select projectid, rollno, name, guide, coguide, title, accepted, discipline, summer from projectsubmit where semester='$k31' and discipline = '$k21'and accepted != '1' 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'];
	$coguide=$row['coguide'];
	$accepted=$row['accepted'];
	$title=$row['title'];
	$summer=$row['summer'];
	$slno++;
	if($accepted == "yes") {
		$accepted = "Accepted";
	} else if($accepted == "n") {
		$accepted = "Not yet Accepted";
	} else if($accepted == "1") {
		$accepted = "Rejected";
	}		
	?>
	<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($coguide); ?></font></td>
	<td><?php echo($title); ?></font></td>
	<!-- <td><?php echo($date); ?></font></td> 
	<td><?php echo($verified); ?></font></td>-->
	<td><?php echo($accepted); ?></font></td>
	<td><?php echo($summer); ?></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>Co-Guide</font></td>
<td><b>Title</font></td>
<td><b>Status</font></td> 
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select projectid, rollno, name, guide, coguide, title, accepted, 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'];
	$coguide=$row['coguide'];
	$accepted=$row['accepted'];
	$title=$row['title'];
	$slno++;
	if($accepted == "yes") {
		$accepted = "Accepted";
	} else if($accepted == "n") {
		$accepted = "Not yet Accepted";
	} else if($accepted == "1") {
		$accepted = "Rejected";
	}		
	?>
	<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($coguide); ?></font></td>
	<td><?php echo($title); ?></font></td>
	<!-- <td><?php echo($date); ?></font></td> 
	<td><?php echo($verified); ?></font></td>-->
	<td><?php echo($accepted); ?></font></td>
	</tr>
	<?php
}


?>
</form>

</table>
</td>

</tr>
</table>


<?php
}



if($k3 == "summer") {
?>
<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($k4);?> 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>Co-Guide</font></td>
<td><b>Title</font></td>
<td><b>Status</font></td> 
</tr>
<?php
$slno = 0;
$quer1=mysql_query("select projectid, rollno, name, guide, coguide, title, accepted, discipline from projectsubmit where degree='$k4' 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'];
	$coguide=$row['coguide'];
	$accepted=$row['accepted'];
	$title=$row['title'];
	$slno++;
	if($accepted == "yes") {
		$accepted = "Accepted";
	} else if($accepted == "n") {
		$accepted = "Not yet Accepted";
	} else if($accepted == "1") {
		$accepted = "Rejected";
	}		
	?>
	<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($coguide); ?></font></td>
	<td><?php echo($title); ?></font></td>
	<!-- <td><?php echo($date); ?></font></td> 
	<td><?php echo($verified); ?></font></td>-->
	<td><?php echo($accepted); ?></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 date desc") 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>Co-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'];
$coguide=$row['coguide'];
$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($coguide); ?></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>
<td><b>Summer</font></td>


</tr>
<?php


$query="SELECT Table2.dept,Table2.rollno,Table2.name,Table2.semester, Table2.summer 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");
	$summer=mysql_result($result,$i,"summer");

?>
	<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>
	<td><?php echo($summer); ?></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>