echo form_close(); ?> <?php if ($records) { echo ' <table class="records"> <tr> <th>A.Y. Semester</th> <th>College</th> <th>College Code</th> <th width="10%"></th> </tr>'; $i = 0; foreach ($records['path'] as $link) { echo "<tr>\n\t\t\t\t\t\t\t\t<td>" . convertToString($records['sem_ay'][$i]) . "</td>\n\t\t\t\t\t\t\t\t<td align='center'>" . $records['college_name'][$i] . "</td>\n\t\t\t\t\t\t\t\t<td align='center'>" . $records['college_code'][$i] . "</td>\n\t\t\t\t\t\t\t\t<td align='center'>\n\t\t\t\t\t\t\t\t<a href='" . base_url($link) . ".doc'>\n\t\t\t\t\t\t\t\t\tDownload</a></td>\n\t\t \t\t\t\t\t </tr>"; $i++; } echo '</table>'; } else { echo 'No report found.'; } if ($search['sem_ay'] != "") { echo '<br/><br/><a href="' . base_url('index.php/clerk/reportmanagement/facultysummarizedreportarchive') . '">Back to all reports</a>'; } ?> </div> <br/><br/> </div>
<td>A.Y. Sem: <select name="sem_ay"> <?php if (!isset($search['sem_ay'])) { $search['sem_ay'] = ""; } if (isset($sem_ay)) { foreach ($sem_ay as $s) { echo '<option value="' . $s . '"'; if ($search['sem_ay'] == $s) { echo " selected"; } echo '>' . convertToString($s) . '</option>'; } } else { echo '<option value =' . $SET['semester'] . '>' . convertToString($SET['semester']) . '</option>'; } ?> </select> </td> <td>Department: <select name="department"> <option value = "">All departments</option> <?php if (!isset($search['department'])) { $search['department'] = ""; } for ($i = 0; $i < count($departments['department_code']); $i++) { echo '<option value="' . $departments['department_code'][$i] . '"'; if ($search['department'] == $departments['department_code'][$i]) { echo " selected";