'; echo get_module_title("Security", "Default Organisation Sharing Privileges", true); global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $xtpl=new XTemplate ('modules/Users/OrgSharingEditView.html'); $defSharingPermissionData = getDefaultSharingAction(); $output = ''; $output .= ''; $output .= ''; $output .= '


'; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $row=1; foreach($defSharingPermissionData as $tab_id => $def_perr) { if($tab_id != 8 && $tab_id != 14 && $tab_id != 15 && $tab_id != 18 && $tab_id != 19 && $tab_id != 16 && $tab_id != 22) { $selected_a = ''; $selected_b = ''; $selected_c = ''; $selected_d = ''; $entity_name = getTabname($tab_id); if($def_perr == 0) { $entity_perr = $mod_stings['LBL_READ_ONLY']; $selected_a = 'selected'; } elseif($def_perr == 1) { $entity_perr = $mod_strings['LBL_EDIT_CREATE_ONLY']; $selected_b = 'selected'; } elseif($def_perr == 2) { $entity_perr = $mod_strings['LBL_READ_CREATE_EDIT_DEL']; $selected_c = 'selected'; } elseif($def_perr == 3) { $entity_perr = $mod_strings['LBL_PRIVATE'];; $selected_d = 'selected'; } if ($row%2==0) $output .= ''; else $output .= ''; $output .= ''; $output .= ''; $output .= ''; $row++; } } $output .= '
'.$mod_strings['LBL_ORG_SHARING_PRIVILEGES'].'Access Privilege
'.$entity_name.''; $output .= ''; $output .= '

'; $xtpl->assign("DEFAULT_SHARING", $output); $xtpl->assign("MOD", $mod_strings); $xtpl->parse("main"); $xtpl->out("main"); ?>