| Current Path : /var/www/html/venkat/project-june2016/ |
| Current File : /var/www/html/venkat/project-june2016/fpending.php |
<?php
include("fhome.php");
include("fpendinglink.php");
/*$name1 = "hello";
$quer1=mysql_query("select name from faculty where id='$r'") or die("Invalid Access3 !!!");
if($row=mysql_fetch_array( $quer1 )) {
$name1=$row['name'];
}
?>
<center> <font color="red">
<!--No. of Vacancies under you : <?php echo($available);?></font> -->
<br>
</center>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="accept.php">
<td>
<table width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="6"><strong>Following are your students Project pending for your approval </strong></td>
</tr>
<tr>
<td><b>Semester </b> </td>
<td><b>Roll No. </b> </td>
<td><b>Name </b> </td>
<td><b><center>Title </center> </b> </td>
<td><b>Date of Cre./Veri. </b> </td>
<td><b>Proposal </b> </td>
<td><b>Verified by Students </b> </td>
</tr>
<?php
$pid="s";
$mid = 0;
$slno = 1;
$quer2=mysql_query("select * from projectsubmit where guide='$name1' and accepted = 'n' order by projectid") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer2 )) {
$id=$row['projectid'];
$rollno=$row['rollno'];
$semester=$row['semester'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$title=$row['title'];
$verified=$row['verified'];
$proposal=$row['proposal'];
$mid++;
$k = 0;
if($pid!=$id) {
echo "<tr> <td> <b> ". $slno. ": Group Id: ".$id."</td> <td><input type='submit' name ='a/r' value='Reject:$id'></td> <td><input type='submit' name ='a/r' value='Accept:$id'></td></tr>";
$pid=$id;
$k = 1;
$slno++;
}
?>
<tr>
<td> <center> <?php echo($semester); ?> </center> </font></td>
<td><?php echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($title); ?></font></td>
<td><?php echo($date); ?></font></td>
<td><?php echo($proposal); ?></font></td>
<td><?php echo($verified); ?></font></td>
</tr>
<?php
}
/*if($mid >= 1)
{
?>
<tr> <td> <input type="submit" STYLE="color: green" name ="a/r" value="Accept All"> </font> </td> </tr>
<?php
}*/
?>
</form>
</table>
</td>
</tr>
</table>
</html>