assign("MOD", return_module_language($current_language,'Settings')); $smarty->assign("IMAGE_PATH",$image_path); $smarty->assign("APP", $app_strings); $smarty->assign("CMOD", $mod_strings); $smarty->assign("THEME", $theme); $parentname=getRoleName($parent); $smarty->assign("RETURN_ACTION",vtlib_purify($_REQUEST['returnaction'])); $smarty->assign("ROLEID",$roleid); $smarty->assign("MODE",$mode); $smarty->assign("PARENT",$parent); $smarty->assign("PARENTNAME",$parentname); $smarty->assign("ROLENAME",$rolename); $profile_entries=array(); foreach($profDetails as $profId=>$profName) { $profile_entries[]=$profId; $profile_entries[]=$profName; } $profile_entries=array_chunk($profile_entries,2); $smarty->assign("PROFILELISTS",$profile_entries); if($mode == 'edit') { $selected_profiles = array(); foreach($roleRelatedProfiles as $relProfId => $relProfName) { $selected_profiles[]=$relProfId; $selected_profiles[]=$relProfName; } $selected_profiles=array_chunk($selected_profiles,2); $smarty->assign("SELPROFILELISTS",$selected_profiles); } $smarty->display("RoleEditView.tpl"); ?>