[Vtigercrm-commits] [vtiger-commits] r7874 - /vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jul 5 12:19:24 EDT 2006
Author: saraj
Date: Wed Jul 5 10:19:20 2006
New Revision: 7874
Log:
Audit trail button added in the deetail view - ahmed
Modified:
vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
Modified: vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserDetailView.tpl Wed Jul 5 10:19:20 2006
@@ -34,7 +34,7 @@
<td class="padTab" align="left">
<form name="DetailView" method="POST" action="index.php" ENCTYPE="multipart/form-data" id="form">
<input type="hidden" name="module" value="Users">
- <input type="hidden" name="record" value="{$ID}">
+ <input type="hidden" name="record" id="userid" value="{$ID}">
<input type="hidden" name="isDuplicate" value=false>
<input type="hidden" name="action">
<input type="hidden" name="changepassword">
@@ -79,6 +79,7 @@
<tr><td colspan="2"> </td></tr>
<tr>
<td rowspan="2" nowrap align="right">
+ <input type="button" onclick="showAuditTrail();" value="{$MOD.LBL_VIEW_AUDIT_TRAIL}" class="crmButton small save"></input>
{if $CATEGORY eq 'Settings'}
{$DUPLICATE_BUTTON}
{/if}
@@ -291,5 +292,11 @@
}
);
}
+function showAuditTrail()
+{
+ var userid = document.getElementById('userid').value;
+ window.open("index.php?module=Users&action=UsersAjax&file=ShowAuditTrail&userid="+userid,"","width=650,height=800,resizable=0,scrollbars=1,left=100");
+}
+
{/literal}
</script>
More information about the vtigercrm-commits
mailing list