[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Users/ -> ShowHistory.php (source)

   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/LoginHistory.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('modules/Users/Users.php');
  20  require_once ('include/utils/utils.php');
  21  
  22  global $app_strings;
  23  global $mod_strings;
  24  global $app_list_strings;
  25  global $current_language, $current_user, $adb;
  26  
  27  global $list_max_entries_per_page;
  28  global $urlPrefix;
  29  
  30  $log = LoggerManager::getLogger('login_list');
  31  
  32  global $currentModule;
  33  
  34  global $theme;
  35  $theme_path="themes/".$theme."/";
  36  $image_path=$theme_path."images/";
  37  
  38  $focus = new LoginHistory();
  39  
  40  $smarty = new vtigerCRM_Smarty;
  41  
  42  $category = getParenttab();
  43  
  44  $userid = $_REQUEST['record'];
  45  $username = getUserName($userid);
  46  $qry = "Select * from vtiger_loginhistory where user_name= '$username'";
  47  $qry_result = $adb->query($qry);
  48  $no_of_rows = $adb->num_rows($qry_result);
  49  
  50  //Retreiving the start value from request
  51  if(isset($_REQUEST['start']) && $_REQUEST['start'] != '')
  52  {
  53          $start = $_REQUEST['start'];
  54  }
  55  else
  56      $start=1;
  57  
  58  //Retreive the Navigation array
  59  $navigation_array = getNavigationValues($start, $no_of_rows, '10');
  60  
  61  
  62  $start_rec = $navigation_array['start'];
  63  $end_rec = $navigation_array['end_val'];
  64  $record_string= $app_strings[LBL_SHOWING]." " .$start_rec." - ".$end_rec." " .$app_strings[LBL_LIST_OF] ." ".$no_of_rows;
  65  
  66  $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string,"Users","ShowHistory",'');
  67  
  68  $smarty->assign("CMOD", $mod_strings);
  69  $smarty->assign("MOD", return_module_language($current_language, "Settings"));
  70  $smarty->assign("APP", $app_strings);
  71  $smarty->assign("IMAGE_PATH",$image_path);
  72  $smarty->assign("LIST_HEADER",$focus->getHistoryListViewHeader());
  73  $smarty->assign("LIST_ENTRIES",$focus->getHistoryListViewEntries($username, $navigation_array, $sorder, $sortby));
  74  $smarty->assign("RECORD_COUNTS", $record_string);
  75  $smarty->assign("NAVIGATION", $navigationOutput);
  76  $smarty->assign("CATEGORY",$category);
  77  
  78  $smarty->display("ShowHistoryContents.tpl");
  79  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7