[Vtigercrm-commits] [vtiger-commits] r6133 - in /vtigercrm/trunk/modules/Users: EditView.php RolePopup.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 17 15:20:58 EDT 2006
Author: don
Date: Wed May 17 13:20:52 2006
New Revision: 6133
Log:
Role Popup done
Added:
vtigercrm/trunk/modules/Users/RolePopup.php (with props)
Modified:
vtigercrm/trunk/modules/Users/EditView.php
Modified: vtigercrm/trunk/modules/Users/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Users/EditView.php (original)
+++ vtigercrm/trunk/modules/Users/EditView.php Wed May 17 13:20:52 2006
@@ -185,43 +185,25 @@
}
if (is_admin($current_user)) {
-
- $ROLE_SELECT_OPTION = '<select name="user_role">';
+
+
+ $opt = '<a href="javascript:openPopup();"><img src="'.$image_path.'select.gif" border="0" align="absmiddle"></a>';
+ $smarty->assign("ROLEPOPUPBUTTON", $opt);
+
}
-else
-{
- $ROLE_SELECT_OPTION = '<select name="user_role" disabled>'; }
if($focus->id != '')
{
$roleselectedid=fetchUserRole($focus->id);
$roleselected=getRoleName($roleselectedid);
+ $smarty->assign("USERROLE", $roleselectedid);
+ $smarty->assign("ROLENAME", $roleselected);
}
- $allRoleDetails=getAllRoleDetails();
- foreach($allRoleDetails as $roleid=>$roleInfoArr)
- {
- if($roleid != 'H1')
- {
- $rolename=$roleInfoArr[0];
- $selected = '';
- if($roleselected != '' && $rolename == $roleselected)
- {
- $selected = 'selected';
- }
-
- $ROLE_SELECT_OPTION .= '<option value="'.$roleid .'" '.$selected .'>';
- $ROLE_SELECT_OPTION .= $rolename;
- $ROLE_SELECT_OPTION .= '</option>';
- }
-
-
- }
- $ROLE_SELECT_OPTION .= ' </select>';
+
- $smarty->assign("USER_ROLE", $ROLE_SELECT_OPTION);
More information about the vtigercrm-commits
mailing list