[ 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 require_once ('include/database/PearDatabase.php'); 12 require_once ('Smarty_setup.php'); 13 require_once ('include/utils/utils.php'); 14 require_once ('TicketStatisticsUtil.php'); 15 16 global $app_strings; 17 global $app_list_strings; 18 global $mod_strings; 19 20 global $theme; 21 $theme_path="themes/".$theme."/"; 22 $image_path=$theme_path."images/"; 23 require_once ($theme_path.'layout_utils.php'); 24 25 echo get_module_title("HelpDesk", $mod_strings['LBL_TICKETS'].": ".$mod_strings['LBL_STATISTICS'] , true); 26 echo '<br>'; 27 28 $totTickets = getTotalNoofTickets(); 29 if($totTickets == 0) 30 { 31 $singleUnit = 0; 32 } 33 else 34 { 35 $singleUnit = 80/$totTickets; 36 } 37 $totOpenTickets = getTotalNoofOpenTickets(); 38 $totClosedTickets = getTotalNoofClosedTickets(); 39 40 $smarty=new vtigerCRM_Smarty; 41 $smarty->assign("MOD", $mod_strings); 42 $smarty->assign("APP", $app_strings); 43 44 if(isset($_REQUEST['return_module'])) $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); 45 if(isset($_REQUEST['return_action'])) $smarty->assign("RETURN_ACTION", $_REQUEST['return_action']); 46 if(isset($_REQUEST['return_id'])) $smarty->assign("RETURN_ID", $_REQUEST['return_id']); 47 $smarty->assign("THEME", $theme); 48 $smarty->assign("IMAGE_PATH", $image_path); 49 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); 50 51 $smarty->assign("ALLOPEN", outBar($totOpenTickets, $image_path, $singleUnit)); 52 $smarty->assign("ALLCLOSED", outBar($totClosedTickets, $image_path, $singleUnit)); 53 $smarty->assign("ALLTOTAL", outBar($totTickets, $image_path, $singleUnit)); 54 $smarty->assign("PRIORITIES", showPriorities($image_path, $singleUnit)); 55 $smarty->assign("CATEGORIES", showCategories($image_path, $singleUnit)); 56 $smarty->assign("USERS", showUserBased($image_path, $singleUnit)); 57 58 $smarty->display('CumulStatistics.tpl');; 59 60 61 ?>
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 |