';
echo get_module_title("Users",'Roles', 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/listroles.html');
$sql = "select * from role";
$roleListResult = $adb->query($sql);
$noofrows = $adb->num_rows($roleListResult);
$standCustFld = getStdOutput($roleListResult, $noofrows, $mod_strings);
//Standard PickList Fields
function getStdOutput($roleListResult, $noofrows, $mod_strings)
{
global $adb;
global $app_strings;
//echo get_form_header("Profiles", "", false );
$standCustFld= '';
$standCustFld .= '';
$standCustFld .= '';
$standCustFld .= '
';
$standCustFld .= '
';
$standCustFld .= '
Operation | ';
$standCustFld .= ''.$mod_strings['LBL_ROLE_NAME'].' | '; $standCustFld .= '
';
$standCustFld .= ''.$app_strings['LNK_EDIT'].'';
global $current_user;
$current_role = fetchUserRole($current_user->id);
if($role_id != 1 && $role_id != 2 && $role_id != $current_role)
{
$standCustFld .=' | '.$app_strings['LNK_DELETE'].'';
}
$standCustFld .= ' | ';
$standCustFld .= ''.$role_name.' |