[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 /********************************************************************************* 4 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 ********************************************************************************/ 11 12 require_once ('Smarty_setup.php'); 13 require_once ('data/Tracker.php'); 14 require_once ('modules/Users/AuditTrail.php'); 15 require_once ('modules/Users/Users.php'); 16 require_once('themes/'.$theme.'/layout_utils.php'); 17 require_once ('include/logging.php'); 18 require_once ('include/database/PearDatabase.php'); 19 require_once ('include/utils/utils.php'); 20 21 global $app_strings; 22 global $mod_strings; 23 global $app_list_strings; 24 global $current_language, $current_user, $adb; 25 $current_module_strings = return_module_language($current_language, 'Settings'); 26 27 global $list_max_entries_per_page; 28 global $urlPrefix; 29 30 $log = LoggerManager::getLogger('audit_trial'); 31 32 global $currentModule; 33 34 global $theme; 35 $theme_path="themes/".$theme."/"; 36 $image_path=$theme_path."images/"; 37 38 $focus = new AuditTrail(); 39 40 $smarty = new vtigerCRM_Smarty; 41 42 $category = getParenttab(); 43 44 $userid = $_REQUEST['userid']; 45 $qry = "select * from vtiger_audit_trial where userid = $userid "; 46 $qry_result = $adb->query($qry); 47 $no_of_rows = $adb->num_rows($qry_result); 48 49 //Retreiving the start value from request 50 if(isset($_REQUEST['start']) && $_REQUEST['start'] != '') 51 { 52 $start = $_REQUEST['start']; 53 } 54 else 55 $start=1; 56 57 //Retreive the Navigation array 58 $navigation_array = getNavigationValues($start, $no_of_rows, '100'); 59 60 $start_rec = $navigation_array['start']; 61 $end_rec = $navigation_array['end_val']; 62 $record_string= $app_strings[LBL_SHOWING]." " .$start_rec." - ".$end_rec." " .$app_strings[LBL_LIST_OF] ." ".$no_of_rows; 63 64 $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string,"Users","ShowAuditTrail",''); 65 66 $smarty->assign("MOD", $current_module_strings); 67 $smarty->assign("CMOD", $mod_strings); 68 $smarty->assign("APP", $app_strings); 69 $smarty->assign("IMAGE_PATH",$image_path); 70 $smarty->assign("THEME_PATH",$theme_path); 71 $smarty->assign("LIST_HEADER",$focus->getAuditTrailHeader()); 72 $smarty->assign("LIST_ENTRIES",$focus->getAuditTrailEntries($userid, $navigation_array, $sorder, $sortby)); 73 $smarty->assign("RECORD_COUNTS", $record_string); 74 $smarty->assign("NAVIGATION", $navigationOutput); 75 $smarty->assign("USERID", $userid); 76 $smarty->assign("CATEGORY",$category); 77 78 79 if($_REQUEST['ajax'] !='') 80 $smarty->display("ShowAuditTrailContents.tpl"); 81 else 82 $smarty->display("ShowAuditTrail.tpl"); 83 84 ?>
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 |