Your IP : 10.1.73.149


Current Path : /home/bolconlineco/public_html/aaaaaa/coordinator/
Upload File :
Current File : //home/bolconlineco/public_html/aaaaaa/coordinator/viewtutor.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> Coordinator Panel </h2><span class="right"></span>
	<div id="frm">
  
					
					
</div>
                      
                <div id="data">
                <?php
				
                
				$result=mysql_query("select * from tutor");
                 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">status</th>
                            
                            <th class="small">View Info</th>
							<!--<th class="small">Action</th>-->
						</tr><!-- end title -->	
                       																											
                       <?php
					   
					    
						while($row=mysql_fetch_array($result))
						 {
							 extract($row);
					   ?>
						 <tr class="values even">
							<td class="small"><?php echo $firstname.' '.$lastname;?></td>
							
							
							<td class="small"><?php echo $email; ?></td>							
							
                            <td class="small"><?php  if($tutorstatus==0)
							   {
								 echo "InActive";   
							   }
							   else if($tutorstatus==1)
							   {
								   echo "Active";
							   }
							 ?></td>
                             <td class="small"><a href="tutorInfo.php?Id=<?php echo $tutorId; ?>">View Info</a></td>
                             <!--
							<td class="action">
                            	<a href="update_tutor.php?tutorId=<?php //echo $tutorId; ?>"><img src="../images/edit-icon.png" alt="Edit"/></a>
                                <a href="deletestudent.php?studentId=<?php //echo $tutorId; ?>" onclick="return confirm('Are you sure to delete?')"> <img src="../images/delete-icon.png" alt="Delete" /></a>
                            </td>-->
                            </tr><!-- end values -->
                            <?php
						 }
				  }
				  else
				  {
					echo "<h3>There are no tutor yet<h3>";  
				  }
							?>
						

				</table>																											
				</div><!-- end data -->
                                                   
           </div> <!-- end content  -->
          
        </div><!-- end wrapper -->   


  <?php include('../includes/footer.php');?>