Files
luos/workflow/engine/methods/mails/emailList.php

48 lines
1.6 KiB
PHP
Raw Normal View History

<?php
global $RBAC;
2017-08-04 09:32:25 -04:00
use ProcessMaker\Plugins\PluginRegistry;
2017-11-06 14:27:06 -04:00
use ProcessMaker\BusinessModel\Process as BmProcess;
2017-08-04 09:32:25 -04:00
2016-03-03 12:09:38 -04:00
$resultRbac = $RBAC->requirePermissions('PM_SETUP_ADVANCE', 'PM_SETUP_LOGS');
if (!$resultRbac) {
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die();
}
$c = new Configurations();
2016-03-03 12:09:38 -04:00
$configPage = $c->getConfiguration('eventList', 'pageSize', '', $_SESSION['USER_LOGGED']);
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
$G_MAIN_MENU = 'processmaker';
$G_SUB_MENU = 'logs';
$G_ID_MENU_SELECTED = 'logs';
$G_ID_SUB_MENU_SELECTED = 'EMAILS';
//get values for the comboBoxes
2016-03-03 12:09:38 -04:00
$userUid = (isset($_SESSION['USER_LOGGED']) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
2018-04-04 09:21:59 -04:00
//Get the status values
$status = AppMessage::getAllStatus();
2016-08-03 13:15:16 -04:00
2018-04-04 09:21:59 -04:00
//Get the process values
2017-11-06 14:27:06 -04:00
$process = new BmProcess();
2018-04-04 09:21:59 -04:00
$processes = $process->getProcessList('', true);
//Review if the plugin External is enable
$pluginRegistry = PluginRegistry::loadSingleton();
$flagER = $pluginRegistry->isEnable('externalRegistration') ? 1 : 0;
$G_PUBLISH = new Publisher();
2017-12-04 13:25:35 +00:00
$oHeadPublisher = headPublisher::getSingleton();
2016-03-03 12:09:38 -04:00
$oHeadPublisher->addExtJsScript('mails/emailList', false); //adding a javascript file .js
$oHeadPublisher->addContent('mails/emailList'); //adding a html file .html.
//sending the columns to display in grid
2016-03-03 12:09:38 -04:00
$oHeadPublisher->assign('statusValues', $status);
$oHeadPublisher->assign('processValues', $processes);
2016-08-03 13:15:16 -04:00
$oHeadPublisher->assign('flagER', $flagER);
G::RenderPage( 'publish', 'extJs' );