[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 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 require_once ('include/utils/utils.php'); 13 require_once ('Smarty_setup.php'); 14 global $app_strings; 15 global $list_max_entries_per_page; 16 17 $log = LoggerManager::getLogger('user_list'); 18 19 global $mod_strings; 20 global $currentModule, $current_user; 21 global $theme; 22 $theme_path="themes/".$theme."/"; 23 $image_path=$theme_path."images/"; 24 global $current_language; 25 $mod_strings = return_module_language($current_language,'Users'); 26 $category = getParentTab(); 27 $focus = new Users(); 28 $smarty = new vtigerCRM_Smarty; 29 $no_of_users=UserCount(); 30 //Retreiving the start value from request 31 if(isset($_REQUEST['start']) && $_REQUEST['start'] != '') 32 { 33 $start = $_REQUEST['start']; 34 } 35 elseif($_SESSION['user_pagestart'] != '') 36 { 37 $start = $_SESSION['user_pagestart']; 38 } 39 else 40 $start=1; 41 42 $list_query = getListQuery("Users"); 43 44 $_SESSION['user_pagestart'] = $start; 45 if($_REQUEST['sorder'] !='') 46 $sorder = $_REQUEST['sorder']; 47 elseif($_SESSION['user_sorder'] != '') 48 $sorder = $_SESSION['user_sorder']; 49 else 50 $sorder = 'ASC'; 51 $_SESSION['user_sorder'] = $sorder; 52 if($_REQUEST['order_by'] != '') 53 $order_by = $_REQUEST['order_by']; 54 elseif($_SESSION['user_orderby'] != '') 55 $order_by = $_SESSION['user_orderby']; 56 else 57 $order_by = 'last_name'; 58 $_SESSION['user_orderby'] = $orderby; 59 $list_query .= ' ORDER BY '.$order_by.' '.$sorder; 60 $list_result = $adb->query($list_query); 61 //Retreive the Navigation array 62 $navigation_array = getNavigationValues($start, $adb->num_rows($list_result), $no_of_users['user']); 63 64 $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string,"Administration","index",''); 65 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 66 $smarty->assign("CMOD", $mod_strings); 67 $smarty->assign("APP", $app_strings); 68 $smarty->assign("CURRENT_USERID", $current_user->id); 69 $smarty->assign("IMAGE_PATH",$image_path); 70 $smarty->assign("CATEGORY",$category); 71 $smarty->assign("LIST_HEADER",getListViewHeader($focus,"Users",$url_string,$sorder,$order_by,"","")); 72 $smarty->assign("LIST_ENTRIES",getListViewEntries($focus,"Users",$list_result,$navigation_array,"","","EditView","Delete","")); 73 $smarty->assign("USER_COUNT",$no_of_users); 74 $smarty->assign("RECORD_COUNTS", $record_string); 75 $smarty->assign("NAVIGATION", $navigationOutput); 76 $smarty->assign("USER_IMAGES",getUserImageNames()); 77 if($_REQUEST['ajax'] !='') 78 $smarty->display("UserListViewContents.tpl"); 79 else 80 $smarty->display("UserListView.tpl"); 81 82 ?>
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 |