[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 13 <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> 14 15 <br> 16 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 17 <tbody><tr> 18 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 19 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 20 <form action="index.php" method="post" name="AuditTrail" id="form"> 21 <input type='hidden' name='module' value='Users'> 22 <input type='hidden' name='action' value='AuditTrail'> 23 <input type='hidden' name='return_action' value='ListView'> 24 <input type='hidden' name='return_module' value='Users'> 25 <input type='hidden' name='parenttab' value='Settings'> 26 27 <br> 28 29 <div align=center> 30 {include file='SetMenu.tpl'} 31 <!-- DISPLAY --> 32 <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> 33 <tr> 34 <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}audit.gif" alt="{$MOD.LBL_AUDIT_TRAIL}" width="48" height="48" border=0 title="{$MOD.LBL_AUDIT_TRAIL}"></td> 35 <td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_AUDIT_TRAIL}</b></td> 36 </tr> 37 <tr> 38 <td valign=top class="small">{$MOD.LBL_AUDIT_TRAIL_DESC}</td> 39 </tr> 40 </table> 41 42 <br> 43 <table border=0 cellspacing=0 cellpadding=10 width=100% > 44 <tr> 45 <td> 46 47 <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> 48 <tr> 49 <td class="big" height="40px;" width="70%"><strong>{$MOD.LBL_AUDIT_TRAIL}</strong></td> 50 <td class="small" align="center" width="30%"> 51 <span id="audit_info" class="crmButton small cancel" style="display:none;"></span> 52 </td> 53 </tr> 54 </table> 55 56 <table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow"> 57 <tr> 58 <td class="small" valign=top ><table width="100%" border="0" cellspacing="0" cellpadding="5"> 59 <tr> 60 <td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_ENABLE_AUDIT_TRAIL} </strong></td> 61 <td width="80%" class="small cellText"> 62 {if $AuditStatus eq 'enabled'} 63 <input type="checkbox" checked name="enable_audit" onclick="auditenabled(this)"></input> 64 {else} 65 <input type="checkbox" name="enable_audit" onclick="auditenabled(this)"></input> 66 {/if} 67 </td> 68 </tr> 69 <tr valign="top"> 70 <td nowrap class="small cellLabel"><strong>{$MOD.LBL_USER_AUDIT}</strong></td> 71 <td class="small cellText"> 72 <select name="user_list" id="user_list"> 73 {$USERLIST} 74 </select> 75 </td> 76 <td class="small cellText" align=right> 77 <input title="{$MOD.LBL_VIEW_AUDIT_TRAIL}" class="crmButton small edit" onclick="showAuditTrail();" type="button" name="button" value="{$MOD.LBL_VIEW_AUDIT_TRAIL}" > 78 </td> 79 </tr> 80 81 </table> 82 </td> 83 </tr> 84 </table> 85 <table border=0 cellspacing=0 cellpadding=5 width=100% > 86 <tr> 87 <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td> 88 </tr> 89 </table> 90 91 </td> 92 </tr> 93 </table> 94 95 96 97 </td> 98 </tr> 99 </table> 100 </td> 101 </tr> 102 </table> 103 104 </div> 105 106 </td> 107 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 108 </tr> 109 </tbody> 110 </form> 111 </table> 112 113 {literal} 114 <script> 115 116 function auditenabled(ochkbox) 117 { 118 if(ochkbox.checked == true) 119 { 120 var status='enabled'; 121 $('audit_info').innerHTML = 'Audit Trail Enabled'; 122 $('audit_info').style.display = 'block'; 123 124 125 } 126 else 127 { 128 var status = 'disabled'; 129 $('audit_info').innerHTML = 'Audit Trail Disabled'; 130 $('audit_info').style.display = 'block'; 131 132 } 133 $("status").style.display="block"; 134 new Ajax.Request( 135 'index.php', 136 {queue: {position: 'end', scope: 'command'}, 137 method: 'post', 138 postBody: 'module=Users&action=UsersAjax&file=SaveAuditTrail&ajax=true&audit_trail='+status, 139 onComplete: function(response) { 140 $("status").style.display="none"; 141 } 142 } 143 ); 144 145 setTimeout("hide('audit_info')",3000); 146 } 147 148 function showAuditTrail() 149 { 150 151 var userid = $('user_list').options[$('user_list').selectedIndex].value; 152 window.open("index.php?module=Users&action=UsersAjax&file=ShowAuditTrail&userid="+userid,"","width=645,height=750,resizable=0,scrollbars=1,left=100"); 153 154 155 } 156 </script> 157 {/literal}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |