[Vtigercrm-commits] [vtiger-commits] r10486 - in /vtigercrm/branches/5.0.3: Smarty/templates/UserDetailView.tpl modules/Users/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 20 05:53:02 EDT 2007
Author: saraj
Date: Tue Mar 20 03:52:55 2007
New Revision: 10486
Log:
Though we are disable to view audittrail, the button ViewAuditTrail was displaying
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/UserDetailView.tpl
vtigercrm/branches/5.0.3/modules/Users/DetailView.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/UserDetailView.tpl Tue Mar 20 03:52:55 2007
@@ -80,7 +80,7 @@
<tr><td colspan="2"> </td></tr>
<tr>
<td colspan="2" nowrap align="right">
- {if $IS_ADMIN eq 'true'}
+ {if $IS_ADMIN eq 'true' && $AUDITTRAIL eq 'true'}
<input type="button" onclick="showAuditTrail();" value="{$MOD.LBL_VIEW_AUDIT_TRAIL}" class="crmButton small save"></input>
{/if}
{if $CATEGORY eq 'Settings'}
@@ -157,10 +157,10 @@
<tr><td class="dvtCellLabel" align="right" width="30%">{$UMOD.$values}</td>
{if $homeitems neq ''}
<td class="dvtCellInfo" align="center" width="5%">
- <img src="{$IMAGE_PATH}prvPrfSelectedTick.gif" alt="{$UMOD.LBL_SHOWN}" height="12" width="12"></td><td class="dvtCellInfo" align="left">{$UMOD.LBL_SHOWN}</td>
+ <img src="{$IMAGE_PATH}prvPrfSelectedTick.gif" alt="{$UMOD.LBL_SHOWN}" title="{$UMOD.LBL_SHOWN}" height="12" width="12"></td><td class="dvtCellInfo" align="left">{$UMOD.LBL_SHOWN}</td>
{else}
<td class="dvtCellInfo" align="center" width="5%">
- <img src="{$IMAGE_PATH}no.gif" alt="{$UMOD.LBL_HIDDEN}" height="12" width="12"></td><td class="dvtCellInfo" align="left">{$UMOD.LBL_HIDDEN}</td>
+ <img src="{$IMAGE_PATH}no.gif" alt="{$UMOD.LBL_HIDDEN}" title="{$UMOD.LBL_HIDDEN}" height="12" width="12"></td><td class="dvtCellInfo" align="left">{$UMOD.LBL_HIDDEN}</td>
{/if}
</tr>
{/foreach}
Modified: vtigercrm/branches/5.0.3/modules/Users/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/DetailView.php Tue Mar 20 03:52:55 2007
@@ -28,6 +28,8 @@
require_once('include/utils/UserInfoUtil.php');
require_once('include/database/PearDatabase.php');
require_once('include/utils/GetUserGroups.php');
+//to check audittrail if enable or not
+require_once('user_privileges/audit_trail.php');
global $current_user;
global $theme;
@@ -193,6 +195,8 @@
$smarty->assign("HOMEORDER",$focus->getHomeOrder($focus->id));
$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
$smarty->assign("USERNAME",$focus->last_name.' '.$focus->first_name);
+//for check audittrail if it is enable or not
+$smarty->assign("AUDITTRAIL",$audit_trail);
$smarty->display("UserDetailView.tpl");
}
More information about the vtigercrm-commits
mailing list