echo $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; ?> " method="post"> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="header"> <tr><td style="width:66px; height:55px; background-color:white; border-bottom:1px solid #CCD9EA; text-align:center"><img src="../artwork/user_accounts_icon.png" width="48" height="48 alt="Members" /></td><td class="dkblue_header" style="background-color:white; font-size:150%; border-bottom:1px solid #CCD9EA"><strong><?php echo $string['teammembers']; ?> </strong><?php echo $module_details['moduleid']; ?> </td></tr> </table> <?php $team_members = UserUtils::get_staff_modules_list_by_modID($_GET['module'], $mysqli); echo "<div class=\"content\" id=\"list\">"; $staff_no = 0; $old_letter = ''; $tmp_role = 'Staff%'; $result = $mysqli->prepare("SELECT DISTINCT id, surname, initials, first_names, title FROM users WHERE surname != '' AND roles LIKE ? AND grade != 'left' AND user_deleted IS NULL ORDER BY surname, initials"); $result->bind_param('s', $tmp_role); $result->execute(); $result->store_result(); $result->bind_result($tmp_id, $tmp_surname, $tmp_initials, $tmp_first_names, $tmp_title); while ($result->fetch()) { if ($old_letter != strtoupper(substr($tmp_surname, 0, 1))) { echo "<div class=\"subsect_table\"><div class=\"subsect_title\"><nobr>" . strtoupper(substr($tmp_surname, 0, 1)) . "</nobr></div><div class=\"subsect_hr\"><hr noshade=\"noshade\" /></div></div>"; } $match = false; foreach ($team_members as $member) {