if ($account_username != Null) { $sector = new Sector(); $sectorList = $sector->listOfSectors(); foreach ($sectorList as $list) { echo '<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->sector_id . '"/>'; echo '<td width="60%" >' . $list->name . '</td>'; echo '<td width="10%" ><a href = "index.php?view=edit&id=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view§orId=' . $list->sector_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } //} } else { $sector = new sector(); $sectorList = $sector->listOfsectors(); foreach ($sectorList as $list) { echo '<tr>'; echo "nothing to display"; echo '</tr>'; } } ?> </tbody> </table> <?php if ($_SESSION['ACCOUNT_TYPE'] == 'consultant') {