'; echo get_module_title("Users", $_REQUEST['fld_module'].': '.$mod_strings['LBL_FIELD_LEVEL_ACCESS'], true); echo '
'; global $adb; global $theme; global $theme_path; global $image_path; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $fld_module = $_REQUEST["fld_module"]; //Retreiving the fields array $xtpl=new XTemplate ('modules/Users/DefaultFieldPermissions.html'); $fieldListResult = getDefOrgFieldList($fld_module); $noofrows = $adb->num_rows($fieldListResult); $standCustFld = getStdOutput($fieldListResult, $noofrows, $mod_strings,$profileid); //Standard PickList Fields function getStdOutput($fieldListResult, $noofrows, $mod_strings,$profileid) { global $image_path; global $adb; global $app_strings; $standCustFld = ''; $standCustFld .= ''; $standCustFld .= ''; //$standCustFld .= ''; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= '

'; $standCustFld .= '
'; $standCustFld .= get_form_header($mod_strings['LBL_FIELD_PERMISSIOM_TABLE_HEADER'], "", false ); $standCustFld .= '
'; $standCustFld .= '
'; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= ''; $row=1; for($i=0; $i<$noofrows; $i++,$row++) { if ($row%2==0) { $trowclass = 'evenListRow'; } else { $trowclass = 'oddListRow'; } $standCustFld .= ''; $uitype = $adb->query_result($fieldListResult,$i,"uitype"); $mandatory = ''; if($uitype == 2 || $uitype == 51 || $uitype == 6 || $uitype == 22) { //$mandatory = ''.$app_strings['LBL_REQUIRED_SYMBOL'].''; } $standCustFld .= ''; if($adb->query_result($fieldListResult,$i,"visible") == 0) { $visible = ""; } else { $visible = ""; } $standCustFld .= ''; } $standCustFld .='
'.$mod_strings['LBL_FIELD_PERMISSION_FIELD_NAME'].'
'.$mod_strings['LBL_FIELD_PERMISSION_VISIBLE'].'
'.$mandatory.' '.$adb->query_result($fieldListResult,$i,"fieldlabel").'
'.$visible.'
'; //echo $standCustFld; return $standCustFld; } $xtpl->assign("MOD", $mod_strings); $xtpl->assign("STANDARDFIELDS", $standCustFld); $xtpl->parse("main"); $xtpl->out("main"); ?>