Location: PHPKode > projects > FreeSMS (Free Student Management System) > FreeSMS/pages/data/crc_students_main.html
<?php
  if (!isset($_SESSION['uid'])) {
    echo '<meta http-equiv="refresh"' . 'content="0;URL=crc_login.php">';
  }
?>
<table width="500">
	<tr>

		<td valign="top" width="80">

			<!--
			This is the menu
			-->
			<br><br>

				<?php
					include "../common/crc_menu.html";
				?>

		</td>




		<td valign="top" align="left" width="420">
	    <!--
        This is the content
      -->
      <br><br>
      <table class="tbl">
        <tr><td valign="top">
          <?php

			$len = strlen($_SESSION['msg']);

			if ($len > 0) {
				print('<tr><td class="error"><br>' . $_SESSION['msg'] . '<br></td></tr>');
			}

			$data = $_SESSION['teacherstudentsdata'];

			print $_SESSION['name'] . ',';
			print '<p>';

			print 'Here you will find the students registered for your class. Please note that the
				  class may be subject to cancellation if less than 4 students are registered.';
			print '</p><p>';

			if (count($data) > 0) {

	                print '<table width="400" border=0 class="popcal">';
			  //print '<table border=1>';
			  print '<tr>';
			  print '  <th>Course</th>';
			  print '  <th>Name</th>';
			  print '  <th>Email</th>';
			  print '  <th>Fee</th>';
			  print '</tr>';

			  for ($i=0; $i < count($data); $i++) {

				print '<tr align="left">';
				print '<td>' . $data[$i][1] . '</td>';
				print '<td><a href="crc_handler.php?method=teacher&func=getattendance&profileid=' . $data[$i][6] . '&scheduleid=' . $data[$i][0] . '"><b>' . $data[$i][3] . ', ' . $data[$i][2] . '</b></a></td>';
				print '<td>' . $data[$i][4] . '</td>';
				print '<td align="center">' . $data[$i][5] . '</td>';
				print '</tr>';

			  }

			  print '</table>';

			} else {

			  print '<table class="green"><tr><td>Sorry there no students registered for a class at this time.</td></tr></table>';

			}

			print '</p><p>';
			print '  FreeSMS Team';
			print '  </p>';
			print '</td></tr>';

		  ?>
      </table>
    </td>
  </tr>
<table>

Return current item: FreeSMS (Free Student Management System)