'; echo get_module_title("Users", $_REQUEST['fld_module'].': '.$mod_strings['LBL_FIELD_LEVEL_ACCESS'], true); echo '
'; //echo get_form_header("Standard Fields", "", false ); global $adb; global $theme; $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/EditFieldLevelAccess.html'); $profileid = $_REQUEST['profileid']; $fieldListResult = getProfile2FieldList($fld_module, $profileid); $noofrows = $adb->num_rows($fieldListResult); $standCustFld = getStdOutput($fieldListResult, $noofrows, $mod_strings,$profileid); //Standard PickList Fields function getStdOutput($fieldListResult, $noofrows, $mod_strings,$profileid) { global $adb; $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 = ''; $readonly = ''; if($uitype == 2 || $uitype == 51 || $uitype == 6 || $uitype == 22 || $uitype == 73 || $uitype == 24 || $uitype == 81 || $uitype == 50 || $uitype == 23 || $uitype == 16) { $mandatory = '*'; $readonly = 'disabled'; } $standCustFld .= ''; if($adb->query_result($fieldListResult,$i,"visible") == 0) { $visible = "checked"; } else { $visible = ""; } $standCustFld .= ''; } $standCustFld .= '
'.$mod_strings['LBL_FIELD_PERMISSION_FIELD_NAME'].'
'.$mod_strings['LBL_FIELD_PERMISSION_VISIBLE'].'
'.$mandatory.' '.$adb->query_result($fieldListResult,$i,"fieldlabel").'
'; $standCustFld .= '
'; $standCustFld .= ''; //echo $standCustFld; return $standCustFld; } $xtpl->assign("MOD", $mod_strings); $xtpl->assign("STANDARDFIELDS", $standCustFld); $xtpl->parse("main"); $xtpl->out("main"); ?>