<?php } else { ?> <?php } ?> </td> <?php for ($j = 0; $j < count($headings); $j++) { if (!isset($this->getArr['sortOrder' . $j])) { $this->getArr['sortOrder' . $j] = 'null'; } $sortOrder = $this->getArr['sortOrder' . $j]; $nextSortOrder = getNextSortOrder($sortOrder); $nextSortInWords = nextSortOrderInWords($sortOrder); ?> <td scope="col"> <a href="#" class="<?php echo $sortOrder; ?> " onclick="sortAndSearch(<?php echo $j; ?> , '<?php echo $nextSortOrder; ?> ');" title="<?php echo $nextSortInWords;
<?php /* Show supervisor only for admin users, not for supervisors */ if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin'] == 'Yes') { $j = 10; $sortOrder = $this->getArr['sortOrder' . $j]; ?> <td scope="col"> <a href="#" onclick="sortAndSearch(<?php echo $j; ?> , '<?php echo getNextSortOrder($sortOrder); ?> ');" title="<?php echo nextSortOrderInWords($sortOrder); ?> " class="<?php echo $sortOrder; ?> "><?php echo $lang_empview_Supervisor; ?> </a> </td> <?php } ?> </tr> </thead>