<tr>
                                                <th>Name</th>
                                                <th>Privilege</th>
                                                <th>Department</th>
                                                <th>Email</th>
                                                <th>Mobile</th>
                                                <th>Approved</th>
                                                <th>Blocked</th>
                                                <th>&nbsp;</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        	<?php 
$i = 0;
$t = new Teacher();
$teachers = $t->getAllTeachers();
while ($teacher = $teachers->fetch_object()) {
    if (Session::exists('teacher_id') && Session::get('teacher_id') == $teacher->teacher_id) {
        $i++;
    } else {
        $i++;
        ?>
                                            <tr id="<?php 
        echo "teacher_row_id" . $i;
        ?>
">
                                                <td><?php 
        echo $teacher->name;
        ?>
</td>
                                                <td><?php 
			        <td><input type="hidden" name="semester" value="<?php 
    echo Input::get('cs');
    ?>
"><?php 
    echo Input::get('cs');
    ?>
</td>
			    </tr>
				<tr>  
			        <th>Appointed Teacher</th>
			        <td>
						<select name="teacher" class="box dept_input">
						<option value="" selected>Teacher</option>
						<?php 
    $t = new Teacher();
    $tt = $t->getAllTeachers();
    while ($teacher = $tt->fetch_object()) {
        ?>
						<option value="<?php 
        echo $teacher->teacher_id;
        ?>
" <?php 
        echo $course->teacher_id == $teacher->teacher_id ? 'selected' : '';
        ?>
><?php 
        echo $teacher->name;
        ?>
</option>
						<?php 
    }
    ?>