</td> <td class="field"> </td> </tr> <tr> <td nowrap="nowrap" class="label">Staff Group:</td> <td class="field" nowrap="nowrap"> <table> <tr> <td> <?php #User group details if ($this->session->userdata('usertype') == 'SCHOOL') { $usergroup = get_user_group_details($this, check_empty_value($this->session->userdata('usergroup'), 0)); if (empty($usergroup)) { $usergroup['groupname'] = '<i>N/A</i>'; } } else { $usergroup['groupname'] = '<i>Administrator</i>'; } echo "<span class='viewtext'>" . $usergroup['groupname'] . "</span>"; ?> </td> <td> </td> </tr> </table> </td>
$counter = 0; foreach ($page_list as $row) { #User group details $usergroup = get_user_group_details($this, $row['usergroup']); if (empty($usergroup)) { $usergroup['groupname'] = ''; } #Show one row at a time echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>"; #if(check_user_access($this,'delete_deal')){ echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "user/delete_staff/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this user? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove this user.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>"; #} #if(check_user_access($this,'update_deals')){ echo " <a class='fancybox fancybox.ajax' href='" . base_url() . "user/load_staff_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this user details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>"; #} echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . ucwords(strtolower($row['firstname'] . " " . $row['lastname'])) . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['username'] . "</td>\r\r\n\t\t<td valign='top'>" . check_empty_value($usergroup['groupname'], 'N/A') . "</td>\t\t\r\r\n\t\t<td valign='top' nowrap>" . $row['telephone'] . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['emailaddress'] . "</td>\r\r\n\t\t<td valign='top' class='rightListCell'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>"; $counter++; } echo "<tr>\r\r\n\t<td colspan='5' align='right' class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "user/manage_staff/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>"; } else { echo "<div>No users have been registered.</div"; } ?> </div> </td> </tr> </table> </div>
?> <div id='searchuserlist'> <?php if (!empty($msg)) { echo format_notice($msg) . "<BR>"; } #Show any users if some are already selected if (!empty($page_list)) { foreach ($page_list as $row) { #Show one row at a time echo "<div id='user_" . $row['id'] . "_layer' style='border-top: solid 1px #EEE;'>\r\r\n\t\t\t<table width='100%' border='0' cellspacing='0' cellpadding='5' style='background-color:#FFF;'>\r\r\n\t\t\t<tr>\r\r\n\t\t<td valign='top' width='1%' nowrap><div id='user_action_" . $row['id'] . "_layer'>"; echo "<a href='javascript:void(0)' onClick=\"confirmRemoveUserReportAccessAction('" . base_url() . "reports/remove_report_user/i/" . encryptValue($row['id']) . "', 'user_" . $row['id'] . "_layer', 'searchuserlist', 'remove this user')\" title=\"Click to remove this user from the access list.\"><img src='" . base_url() . "images/delete.png' border='0'/></a> </div></td>\r\r\n\t\t\r\r\n\t\t<td width='97%' valign='top'>" . wordwrap("<b>" . $row['firstname'] . " " . $row['lastname'] . "</b> (User Name: <i>" . $row['username'] . "</i> Email: <i>" . $row['emailaddress'] . " Organization: <i>" . check_empty_value($row['organizationname'], 'N/A') . "</i>", 90, "<BR>") . ")</td><td valign='top' width='1%' nowrap></td>" . "</tr>\r\r\n\t\t</table></div>"; } } elseif (empty($page_list) && !empty($report_details)) { echo format_notice("No users have been added yet."); } ?> </div> </div> </td> </tr> </table>
echo base_url() . ($this->session->userdata('usertype') == '' ? 'images/small-no-photo.jpg' : 'downloads/users/' . student_photo_thumb($user_photo)); ?> " /> </div> <?php } ?> <div style="float:left"> <span class="fullname"><?php echo wordwrap($this->session->userdata('names')); ?> </span><br /> <span class="usertype"><?php echo $this->session->userdata('usertype') == 'MSR' ? 'ADMINISTRATOR' : check_empty_value($this->session->userdata('usergroupname'), 'STANDARD USER'); ?> </span> <table style="margin-top: 15px"> <tr> <td><a id="mysettings" onclick="updateFieldLayer('<?php echo base_url() . 'account/settings'; ?> ','','','contentdiv','')" href="javascript:void(0);"><div>MY SETTINGS</div></a></td> <td><a id="logout" href="<?php echo base_url(); ?> admin/logout"><div>LOG OUT</div></a></td> </tr> </table> </div>
$counter = 0; foreach ($page_list as $row) { #Show one row at a time $table_HTML .= "<tr align='left' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t\t\t<td valign='top' nowrap>"; $table_HTML .= "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['firstname'] . "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['lastname'] . "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['username'] . "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['emailaddress'] . "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['deskid'] . "</td>\r\r\n\t\t\t\t\t<td valign='top'>" . $row['organizationname'] . "</td>\r\r\n\t\t\t\t\t</tr>"; $counter++; } $table_HTML .= "</table>"; } else { foreach ($page_list as $row) { #Show one row at a time $table_HTML .= "<div id='user_" . $row['id'] . "_layer' style='border-top: solid 1px #EEE;'>\r\r\n\t\t\t\t\t<table width='100%' border='0' cellspacing='0' cellpadding='5' style='background-color:#FFF;'>\r\r\n\t\t\t\t\t<tr align='left' >\r\r\n\t\t\t\t\t<td valign='top' width='1%' nowrap><div id='user_action_" . $row['id'] . "_layer'>"; if (empty($isviewing)) { $table_HTML .= "<a href='javascript:void(0)' onClick=\"confirmRemoveUserReportAccessAction('" . base_url() . "reports/remove_report_user/i/" . encryptValue($row['id']) . "', 'user_" . $row['id'] . "_layer', 'searchuserlist', 'remove this user')\" title=\"Click to remove this user from the access list.\"><img src='" . base_url() . "images/delete.png' border='0'/></a> </div></td>"; } $table_HTML .= "<td width='97%' valign='top'>" . wordwrap("<b>" . $row['firstname'] . " " . $row['lastname'] . "</b> (User Name: <i>" . $row['username'] . "</i> Email: <i>" . $row['emailaddress'] . "</i> Desk ID: <i>" . $row['deskid'] . "</i> Organization: <i>" . check_empty_value($row['organizationname'], 'N/A') . "</i>", 90, "<BR>") . ")</td>" . "<td valign='top' width='1%' nowrap></td>" . "</tr>" . "</table></div>"; } } } else { $table_HTML .= format_notice("No users in report access list."); } } else { if (!empty($area) && $area == 'selected_invitation_users') { $table_HTML .= $combined_js_HTML; if (!empty($page_list)) { if (!empty($msg)) { $table_HTML .= format_notice($msg) . "<BR>"; } foreach ($page_list as $row) { #Show one row at a time $table_HTML .= "<div id='user_" . $row['id'] . "_layer' style='border-top: solid 1px #EEE;'>\r\r\n\t\t\t<table width='100%' border='0' cellspacing='0' cellpadding='5' style='background-color:#FFF;'>\r\r\n\t\t\t<tr>\r\r\n\t\t<td valign='top' width='1%' nowrap><div id='user_action_" . $row['id'] . "_layer'>";