[Vtigercrm-commits] [vtiger-commits] r7336 - /vtigercrm/trunk/modules/Users/RoleDetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 04:45:41 EDT 2006
Author: saraj
Date: Wed Jun 21 02:45:37 2006
New Revision: 7336
Log:
Update role detail view
Modified:
vtigercrm/trunk/modules/Users/RoleDetailView.php
Modified: vtigercrm/trunk/modules/Users/RoleDetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Users/RoleDetailView.php (original)
+++ vtigercrm/trunk/modules/Users/RoleDetailView.php Wed Jun 21 02:45:37 2006
@@ -14,6 +14,7 @@
require_once('include/database/PearDatabase.php');
require_once('themes/'.$theme.'/layout_utils.php');
require_once('include/utils/UserInfoUtil.php');
+require_once('include/utils/utils.php');
global $mod_strings;
global $app_strings;
@@ -26,7 +27,6 @@
require_once($theme_path.'layout_utils.php');
$smarty = new vtigerCRM_Smarty;
-
$roleid= $_REQUEST['roleid'];
//Standard PickList Fields
@@ -64,7 +64,19 @@
return $return_data;
}
+if(isset($_REQUEST['roleid']) && $_REQUEST['roleid'] != '')
+{
+ $roleid= $_REQUEST['roleid'];
+ $mode = $_REQUEST['mode'];
+ $roleInfo=getRoleInformation($roleid);
+ $thisRoleDet=$roleInfo[$roleid];
+ $rolename = $thisRoleDet[0];
+ $parent = $thisRoleDet[3];
+ //retreiving the vtiger_profileid
+ $roleRelatedProfiles=getRoleRelatedProfiles($roleid);
+}
+$parentname=getRoleName($parent);
//Retreiving the Role Info
$roleInfoArr=getRoleInformation($roleid);
$rolename=$roleInfoArr[$roleid][0];
@@ -75,8 +87,9 @@
$smarty->assign("APP", $app_strings);
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("ROLEINFO",getStdOutput($roleid));
+$smarty->assign("PARENTNAME",$parentname);
-$smarty->display("RoleDetailView.tpl");
+$smarty->display("RoleDetailViewN.tpl");
?>
More information about the vtigercrm-commits
mailing list