'; 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/ListFldProfiles.html'); $sql = "select * from profile"; $profileListResult = $adb->query($sql); $noofrows = $adb->num_rows($profileListResult); $standCustFld = getStdOutput($profileListResult, $noofrows, $mod_strings, $fld_module); //Standard PickList Fields function getStdOutput($profileListResult, $noofrows, $mod_strings, $fld_module) { global $adb; echo '
'; echo get_form_header("Profiles", "", false ); echo '
'; $standCustFld= ''; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= ''; $row=1; for($i=0; $i<$noofrows; $i++,$row++) { if ($row%2==0) { $trowclass = 'evenListRow'; } else { $trowclass = 'oddListRow'; } $standCustFld .= ''; $profile_name = $adb->query_result($profileListResult,$i,"profilename"); $profile_id = $adb->query_result($profileListResult,$i,"profileid"); $standCustFld .= ''; } $standCustFld .='
'.$mod_strings['LBL_NEW_PROFILE_NAME'].'
'.$profile_name.'
'; //echo $standCustFld; return $standCustFld; } $xtpl->assign("MOD", $mod_strings); $xtpl->assign("FIELDPROFILES", $standCustFld); $xtpl->parse("main"); $xtpl->out("main"); ?>