[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/include/utils/ -> ExportRecords.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  require_once ('include/database/PearDatabase.php');
  12  require_once ('include/utils/utils.php');
  13  global $app_strings,$mod_strings, $list_max_entries_per_page, $currentModule, $theme, $current_language, $current_user;
  14  
  15  $smarty = new vtigerCRM_Smarty();
  16  $category = getParentTab();
  17  
  18  $theme_path="themes/".$theme."/";
  19  $image_path=$theme_path."images/";
  20  require_once ('modules/Vtiger/layout_utils.php');
  21  
  22  $smarty->assign("SESSION_WHERE",$_SESSION['export_where']);
  23  
  24  $smarty->assign('APP',$app_strings);
  25  $smarty->assign('MOD',$mod_strings);
  26  $smarty->assign("THEME", $theme_path);
  27  $smarty->assign("IMAGE_PATH", $image_path);
  28  $smarty->assign("CATEGORY",$category);
  29  $smarty->assign("MODULE",$currentModule);
  30  $smarty->assign("MODULELABEL",getTranslatedString($currentModule));
  31  $smarty->assign("IDSTRING",vtlib_purify($_REQUEST['idstring']));
  32  $smarty->assign("EXCLUDED_RECORDS",vtlib_purify($_REQUEST['excludedRecords']));
  33  $smarty->assign("PERPAGE",$list_max_entries_per_page);
  34  
  35  if(!is_admin($current_user) && (isPermitted($currentModule, 'Export') != 'yes')) {    
  36      $smarty->display(vtlib_getModuleTemplate('Vtiger','OperationNotPermitted.tpl'));    
  37  } else {
  38      $smarty->display('ExportRecords.tpl');
  39  }
  40  
  41  
  42  ?>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1