| Current Path : /home/bolconlineco/public_html/coordinator/ |
| Current File : /home/bolconlineco/public_html/coordinator/assigncourse.php |
<?php
ob_start();
session_start();
?>
<?php include('includes/header.php'); ?>
<?php
if(!isset($_SESSION['coordinator']) || $_SESSION['coordinatorrole'] != 2)
{
header("location:../index.php");
exit();
}
?>
<div id="content">
<span class="left"> </span><h2> Assigned Courses </h2><span class="right"></span>
<div id="frm">
</div>
<?php
if(isset($_GET['msg']))
{
echo "<h3>".$_GET['msg']."</h3>";
}
?>
<div id="data">
<?php
$result=mysql_query("select * from student where rollno not in(select rollno from assigncourse) and studentstatus=1");
if(mysql_num_rows($result) > 0)
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr id="title">
<th class="small">Name</th>
<th class="small">Email</th>
<th class="small">Country</th>
<th class="small">Assign course</th>
</tr><!-- end title -->
<?php
while($row=mysql_fetch_array($result))
{
extract($row);
?>
<tr class="values even">
<td class="small"><?php echo $title." ".$fname." ".$lname;?></td>
<td class="small"><?php echo $email; ?></td>
<td class="small"><?php echo $country; ?></td>
<td class="small"><a href="courseassign.php?rollno=<?php echo $rollno; ?>">Assign course</a></td>
</tr><!-- end values -->
<?php
}
?>
</table>
<?php
}else
{
echo "<h3>No Student to assign course </h3>";
}
?>
</div><!-- end data -->
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php include('../includes/footer.php');?>