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

45 lines
1.7 KiB
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
require_once('modules/Conditionals/Conditionals.php');
global $app_strings;
global $currentModule, $current_user;
if($current_user->is_admin != 'on')
{
die("<br><br><center>".$app_strings['LBL_PERMISSION']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
}
$log = LoggerManager::getLogger('conditionals_list');
$conditionals_obj = CRMEntity::getInstance('Conditionals'); //crmv@36505
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
$mod_strings = return_module_language($current_language, 'Conditionals');
$category = getParentTab();
//Display the mail send status
$smarty = new VteSmarty();
$smarty->assign("MOD", return_module_language($current_language,'Settings'));
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("CURRENT_USERID", $current_user->id);
$smarty->assign("IMAGE_PATH",$image_path);
$smarty->assign("CATEGORY",$category);
$list_header = $conditionals_obj->wui_getFpofvListViewRulesHeader(); //crmv@36505
$smarty->assign("LIST_HEADER", $list_header);
$ListEntries = $conditionals_obj->wui_getFpofvListViewRulesEntries($fields_columnnames); //crmv@36505
$smarty->assign("LIST_ENTRIES", $ListEntries);
$smarty->assign("USER_COUNT",$no_of_users);
$smarty->assign("RECORD_COUNTS", $record_string);
if($_REQUEST['ajax'] !='')
$smarty->display("modules/Conditionals/ListViewContents.tpl");
else
$smarty->display("modules/Conditionals/ListView.tpl");
?>