Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/projectaug2017/
Upload File :
Current File : /var/www/html/venkat/projectaug2017/create.php

<?php
include("phome.php");

$quer1=mysql_query("select * from projectsubmit where rollno='$r'") or die("Invalid Access3 !!!");
$quer2=mysql_query("select summer from projectstudent where rollno='$r'") or die("Invalid Access3 !!!");

if ($row2 = mysql_fetch_array( $quer1 )) {
	$summersubmit = $row2['summer'];
}
if ($row1 = mysql_fetch_array( $quer2 )) {
	$summer = $row1['summer'];
} 
$rowcount = mysql_num_rows( $quer1 ); 
$rowcount1 = mysql_num_rows( $quer2 );
 
//if($rowcount == 2 || ($summer == "no" && $rowcount == 2) || $summersubmit == "yes") {
if(($rowcount == 2 && $rowcount1 == 2) ||  ($rowcount == 1 && $rowcount1 == 1)){
	func($r);
}
else {
	if($rowcount == 1) {
		func($r);
	}

	if($ndate >= $my_t) {
?>
		<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
		<tr>
		<form name="form1" enctype="multipart/form-data" method="post" action="pchoose.php">
		<td>
		<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
		<tr>
		<td colspan="3"><strong>Choose your option</strong></td>
		</tr>
<?php
		include("size.php");
?>


		<tr>
		<td width="100"> </td>
		<td width="16"></td>
		<td align="right" width="25"><input type="submit" value="Submit" /></td>
		</tr>
		</form>
		
		</table>
		</td>
		
		</tr>
		</table>

<?php
	}
}

function func($r)
{
?>	<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="11"><strong>Project Details (if not verified please verify)</strong></td>
	</tr>

	<tr>
	<td><b>Project Id</font></td>
	<td><b>Roll No.</font></td>
	<td><b>Name</font></td>
<!--	<td><b><center>Title </center></font></td> -->
	<td><b>Guide</font></td>
	<td><b>Co-Guide</font></td>
	<td><b>Date of Cre./Veri.</font></td>
	<td><b>Verified</font></td>
	<td><b>Summer</font></td>
	<td><b>Accepted</font></td>
	<td><b> <center> Verify </center></font></td>
	</tr>
<?php
	$pid = "s";
	$slno = 1;
	$quer1 = mysql_query("select projectid,verified from projectsubmit where rollno='$r'") or die("Invalid Access2 !!!");
	while($row = mysql_fetch_array( $quer1 )) {
		$id = $row['projectid'];
		$verify = $row['verified'];
		$quer2 = mysql_query("select * from projectsubmit where projectid='$id'") or die("Invalid Access3 !!!");
		while ($row = mysql_fetch_array( $quer2 )) {
			$id = $row['projectid'];
			$rollno = $row['rollno'];
			$name = $row['name'];
			$title = $row['title'];
			$faculty = $row['guide'];
			$coguide = $row['coguide'];
			$date = $row['date']; 
			$verified = $row['verified'];
			$accepted = $row['accepted'];
			$register = $row['register'];
			$summer = $row['summer'];
			if($accepted == '1') {
				$accepted1 = "rejected";
			}
			elseif($accepted == 'n') {
				$accepted1 = "Pending";
			}
			else {
				$accepted1 = "yes";
			}
			if($pid != $id) {
                		echo "<tr><td><b>".$slno.":".$id."</td>  <td colspan ='10'> <b> Title: ".$title."</td>  </tr>";
                		$pid=$id;
               			$slno++;
        		}
?>
			<tr>
			<td><?php echo($id); ?></font></td>
			<td><?php if ($rollno == $register) { echo "<b>";  } echo($rollno); ?></font></td>
			<td><?php echo($name); ?></font></td>
<!--			<td><?php //echo($title); ?></font></td>-->
			<td><?php echo($faculty); ?></font></td>
			<td><?php echo($coguide); ?></font></td>
			<td><?php echo($date); ?></font></td>
			<td><?php echo($verified); ?></font></td>
			<td><?php echo($summer); ?></font></td>
			<td><?php echo($accepted1); ?></font></td>
<?php
		
//echo $rollno; echo $register; echo $r; echo $verified;
			$rollno = strtolower($rollno);		
			if($verify == "no" && $register != $r && $rollno == $r)  {
?>
				<td> <input type="submit" name = "projectid" value = "<?php echo($id); ?>"> </td>
				</td> 
<?php
			}
			else {
?>
				<td colspan = "6"> Done </td>
				</td> 
<?php
			}
			echo "</tr>";
		}
	}
?>	</form>
	</table>
	</td>
	</tr>
	</table>
	<br><center> <font color ="red"> If Project group is rejected by your guide then Please recreate that project. </font> 
	<center> <br><font color ="blue">  If Project group is not yet accepted by your guide then Request your guide to accept it. </center></font> 

<?php
/*
	if($accepted=="1"){
?>
		<tr>
		<td colspan = "4"> <font color ="red"> Some Project group is rejected by your guide. Please recreate that project. </font> </td>
		</tr>
<?php
	}
?>
	</form>
	</table>
	</td>
	</tr>
	</table>	
<?php
	if($accepted=="n"){
?>
		<center> <br><font color ="blue">  Some Project group is not yet accepted by your guide. Request your guide to accept it. </center></font> 
<?php
	}
*/
}

?>