foreach ($split_ups as $k => $v) {
        echo '<td>';
        Utility::inputText($v['id'] . '[]', $v['id'] . '[]', $v['split_up_name'] . ' Marks', 'mark_input');
        echo '</td>';
    }
    echo '<td>';
    Utility::inputText('total_marks[]', 'total_marks[]', 'Total Marks', 'mark_input');
    echo '</td>';
    echo '</tr>';
}
?>
</table>

<div style="padding:5px">
<?php 
Utility::inputHidden('exam_subject_id', 'exam_subject_id', $id);
Utility::submitButton('save_marks', 'save_marks', 'Save Marks');
?>
</div>
</form>


<div class="error" id="error"></div>

</div>

</div>

</div>
</div>
</tr>

<?php 
foreach ($students as $key => $value) {
    ?>
<tr id="<?php 
    echo $value['id'];
    ?>
" class="student_list">
<td><?php 
    echo $value['roll_no'];
    ?>
</td>
<td><?php 
    echo $value['name'];
    Utility::inputHidden('students[]', 'students[]', $value['id']);
    ?>
</td>
<td><?php 
    if (isset($marked[$value['id']]) && $marked[$value['id']] == 1) {
        Utility::checkBox($value['id'], $value['id'], 'presence', 1);
    } else {
        Utility::checkBox($value['id'], $value['id'], 'presence');
    }
    ?>
</td>
</tr>

<?php 
}
?>
</td>
</tr>
<?php 
foreach ($employees as $key => $value) {
    ?>
<tr id="<?php 
    echo $key;
    ?>
" class="employee_list">
<td><?php 
    echo $key;
    ?>
</td>
<td><?php 
    echo $value;
    Utility::inputHidden('employees[]', 'employees[]', $key);
    ?>
</td>
<td><?php 
    if (isset($marked[$key]) && $marked[$key] == 1) {
        Utility::checkBox($key, $key, 'presence', 1);
    } else {
        Utility::checkBox($key, $key, 'presence');
    }
    ?>
</td>
</tr>
<?php 
}
?>
</table>
<?php

include_once 'controller/utility_class.php';
?>

<div class="teacher_section_relation">
<table class="teacher_section_relation">
<?php 
$html = "";
foreach ($subject_array as $key => $value) {
    $html .= "<tr>";
    $html .= '<td class="form_input" id="' . $key . '">' . $value;
    echo $html;
    Utility::inputHidden($key, "subject[]", $key);
    $html = '</td>';
    $html .= '<td class="form_input" id="' . $key . '">';
    echo $html;
    if (array_key_exists($key, $teacher_id)) {
        Utility::dropDownListEditable($teacher_id[$key], 'fixed', 'teacher[]', 'teacher', NULL, $key, $teacher[$teacher_id[$key]], 'teacher_select');
    } else {
        Utility::dropDownList($key, 'teacher[]', 'teacher', 'teacher_select', $key);
    }
    $html = '</td>';
    $html .= "</tr>";
}
echo $html;
?>
</table>
</div>
<?php

include_once 'controller/utility_class.php';
?>
<table cellspacing="0" cellpadding="5" border="1" class="exam_timetable">
<?php 
$slot = 0;
Utility::inputHidden('check', 'check', 1);
echo '<tr class="report_list_head">';
echo '<td></td>';
foreach ($days as $n => $day) {
    echo '<td colspan="' . $slots . '">' . $day . '</td>';
}
echo '</tr>';
foreach ($section_array as $key => $value) {
    echo '<tr>';
    echo '<td class="report_list_data">';
    echo $section_name[$key];
    echo '</td>';
    for ($i = 0; $i < $slots * $numDays; $i++) {
        echo '<td>';
        $id = $days[$i / $slots] . '_' . $i % $slots . '_' . $key;
        Utility::dropDownList($id, $id, "", "text", $subject_array[$key]);
        echo '</td>';
        $slot++;
    }
    echo '</tr>';
}
?>
</table>