$i = 0; foreach ($arr as $row) { $arr_grp_name[$i] = $row['grp_name']; $arr_grp_ID[$i] = $row['grp_ID']; $i++; } $tpl->assign('arr_grp_ID', $arr_grp_ID); $tpl->assign('arr_grp_name', $arr_grp_name); $tpl->assign('usr_details', $usr_details); $tpl->display("edituser.tpl"); break; case "editGrp": // ============================= // = Builds edit-group dialogue = // ============================= $grp_details = grp_get_data($_REQUEST['id']); $arr = get_arr_usr(); $i = 0; foreach ($arr as $row) { $arr_usr_name[$i] = $row['usr_name']; $arr_usr_ID[$i] = $row['usr_ID']; $i++; } $grp_selection = grp_get_ldrs($_REQUEST['id']); $tpl->assign('grp_selection', $grp_selection); $tpl->assign('arr_usr_ID', $arr_usr_ID); $tpl->assign('arr_usr_name', $arr_usr_name); $tpl->assign('grp_details', $grp_details); $tpl->display("editgroup.tpl"); break; }
} if (count($arr_evt) > 0) { $tpl->assign('arr_evt', $arr_evt); } else { $tpl->assign('arr_evt', '0'); } $tpl->assign('evt_display', $tpl->fetch("evt.tpl")); $tpl->assign('selected_evt_filter', -2); $tpl->assign('curr_user', $kga['usr']['usr_name']); if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_grp', get_arr_grp(get_cookie('ap_ext_show_deleted_groups', 0))); } else { $tpl->assign('arr_grp', get_arr_grp_by_leader($kga['usr']['usr_ID'], get_cookie('ap_ext_show_deleted_groups', 0))); } if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_usr', get_arr_usr(get_cookie('ap_ext_show_deleted_users', 0))); } else { $tpl->assign('arr_usr', get_arr_watchable_users($kga['usr']['usr_ID'])); } $tpl->assign('showDeletedGroups', get_cookie('ap_ext_show_deleted_groups', 0)); $tpl->assign('showDeletedUsers', get_cookie('ap_ext_show_deleted_users', 0)); $tpl->assign('languages', langs()); $tpl->assign('timezones', timezoneList()); $admin['users'] = $tpl->fetch("users.tpl"); $admin['groups'] = $tpl->fetch("groups.tpl"); $admin['advanced'] = $tpl->fetch("advanced.tpl"); if ($kga['show_sensible_data']) { $admin['database'] = $tpl->fetch("database.tpl"); } else { $admin['database'] = "You don't have permission to see this information ..."; }