vtenext/modules/VteCore/ExportRecords.php
2021-04-28 20:10:26 +02:00

35 lines
1.2 KiB
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
/* crmv@151308 */
global $app_strings,$mod_strings, $list_max_entries_per_page, $currentModule, $theme, $current_language, $current_user;
$smarty = new VteSmarty();
$category = getParentTab();
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
$idstring = rtrim($_REQUEST['idstring'],",");
$smarty->assign("SESSION_WHERE",VteSession::get('export_where'));
$smarty->assign('APP',$app_strings);
$smarty->assign('MOD',$mod_strings);
$smarty->assign("THEME", $theme); //crmv@21719
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("CATEGORY",$category);
$smarty->assign("MODULE",$currentModule);
$smarty->assign("MODULELABEL",getTranslatedString($currentModule));
$smarty->assign("IDSTRING",$idstring);
$smarty->assign("PERPAGE",$list_max_entries_per_page);
if(!is_admin($current_user) && (isPermitted($currentModule, 'Export') != 'yes')) {
$smarty->display(vtlib_getModuleTemplate('VteCore','OperationNotPermitted.tpl'));
} else {
$smarty->display('ExportRecords.tpl');
}