'; echo get_module_title("Users",' Profiles', true); global $adb; global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $xtpl=new XTemplate ('modules/Users/ListProfiles.html'); $sql = "select * from profile"; $profileListResult = $adb->query($sql); $noofrows = $adb->num_rows($profileListResult); $standCustFld = getStdOutput($profileListResult, $noofrows, $mod_strings); //Standard PickList Fields function getStdOutput($profileListResult, $noofrows, $mod_strings) { global $adb; //echo get_form_header("Profiles", "", false ); $standCustFld= ''; $standCustFld .= ''; $standCustFld .= ''; $standCustFld .= '
'; $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 .= ''; $profile_name = $adb->query_result($profileListResult,$i,"profilename"); $profile_id = $adb->query_result($profileListResult,$i,"profileid"); $standCustFld .= ''; $standCustFld .= ''; } $standCustFld .='
Operation
Profile Name
edit'; global $current_user; $current_profile = fetchUserProfileId($current_user->id); if($profile_id != 1 && $profile_id != 2 && $profile_id != 3 && $profile_id != 4 && $profile_id != $current_profile) { $standCustFld .= ' | del'; } $standCustFld .= '
'.$profile_name.'
'; //echo $standCustFld; return $standCustFld; } $xtpl->assign("MOD", $mod_strings); $xtpl->assign("PROFILES", $standCustFld); $xtpl->parse("main"); $xtpl->out("main"); ?>