'; 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/OrgSharingDetailView.html'); $defSharingPermissionData = getDefaultSharingAction(); $output .= ''; $output .= ''; $output .= '


'; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $row=1; foreach($defSharingPermissionData as $tab_id => $def_perr) { $entity_name = getTabname($tab_id); if($entity_name != "Notes" && $entity_name != "Products" && $entity_name != "Faq" && $entity_name != "Vendor" && $entity_name != "PriceBook" && $entity_name != 'Events' && $entity_name != 'SalesOrder') { if($def_perr == 0) { $entity_perr = $mod_strings['LBL_READ_ONLY']; } elseif($def_perr == 1) { $entity_perr = $mod_strings['LBL_EDIT_CREATE_ONLY']; } elseif($def_perr == 2) { $entity_perr = $mod_strings['LBL_READ_CREATE_EDIT_DEL']; } elseif($def_perr == 3) { $entity_perr = $mod_strings['LBL_PRIVATE']; } if ($row%2==0) $output .= ''; else $output .= ''; $output .= ''; $output .= ''; $output .= ''; $row++; } } $output .= '
'.$mod_strings['LBL_ORG_SHARING_PRIVILEGES'].'Access Privilege
'.$entity_name.''.$entity_perr.'

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