COD STYLE changes
files modified: workflow/engine/methods/cases/casesListExtJs.php
modified: workflow/engine/methods/cases/casesListExtJsRedirector.php
modified: workflow/engine/methods/cases/casesList_Ajax.php
modified: workflow/engine/methods/cases/casesMenuLoader.php
modified: workflow/engine/methods/cases/cases_Step.php
modified: workflow/engine/methods/cases/cases_StepToRevise.php
modified: workflow/engine/methods/cases/cases_StepToReviseInputs.php
modified: workflow/engine/methods/cases/cases_StepToReviseOutputs.php
modified: workflow/engine/methods/cases/cases_SupervisorSaveDocument.php
modified: workflow/engine/methods/cases/cases_ToReviseInputDocView.php
modified: workflow/engine/methods/cases/cases_ToReviseOutputDocView.php
modified: workflow/engine/methods/cases/cases_UsersReassign.php
modified: workflow/engine/methods/cases/cases_toRevise.php
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,27 +1,28 @@
|
|||||||
<script>
|
<script>
|
||||||
if (typeof window.parent != 'undefined') {
|
if (typeof window.parent != 'undefined') {
|
||||||
<?php
|
<?php
|
||||||
if (isset( $_GET['ux'] )) {
|
if (isset( $_GET['ux'] )) {
|
||||||
switch ($_GET['ux']) {
|
switch ($_GET['ux']) {
|
||||||
case 'SIMPLIFIED':
|
case 'SIMPLIFIED':
|
||||||
case 'SWITCHABLE':
|
case 'SWITCHABLE':
|
||||||
case 'SINGLE':
|
case 'SINGLE':
|
||||||
$url = '../home';
|
$url = '../home';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$url = 'casesListExtJs';
|
$url = 'casesListExtJs';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$url = 'casesListExtJs';
|
$url = 'casesListExtJs';
|
||||||
}
|
}
|
||||||
if (isset( $_GET['ux'] )) {
|
if (isset( $_GET['ux'] )) {
|
||||||
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
|
echo 'if (typeof window.parent.ux_env != \'undefined\') {';
|
||||||
}
|
}
|
||||||
echo " window.parent.location.href = '$url';";
|
echo " window.parent.location.href = '$url';";
|
||||||
if (isset( $_GET['ux'] )) {
|
if (isset( $_GET['ux'] )) {
|
||||||
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
echo '} else { window.parent.location.href = \'casesListExtJs\'; }';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -1,436 +1,450 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* casesList_Ajax.php
|
* casesList_Ajax.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
* Copyright (C) 2004 - 2008 Colosa Inc.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
require_once 'classes/model/Application.php';
|
require_once 'classes/model/Application.php';
|
||||||
require_once 'classes/model/Users.php';
|
require_once 'classes/model/Users.php';
|
||||||
require_once 'classes/model/AppThread.php';
|
require_once 'classes/model/AppThread.php';
|
||||||
require_once 'classes/model/AppDelay.php';
|
require_once 'classes/model/AppDelay.php';
|
||||||
require_once 'classes/model/Process.php';
|
require_once 'classes/model/Process.php';
|
||||||
require_once 'classes/model/Task.php';
|
require_once 'classes/model/Task.php';
|
||||||
require_once ("classes/model/AppCacheView.php");
|
require_once ("classes/model/AppCacheView.php");
|
||||||
require_once ("classes/model/AppDelegation.php");
|
require_once ("classes/model/AppDelegation.php");
|
||||||
require_once ("classes/model/AdditionalTables.php");
|
require_once ("classes/model/AdditionalTables.php");
|
||||||
require_once ("classes/model/AppDelay.php");
|
require_once ("classes/model/AppDelay.php");
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
|
|
||||||
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||||
|
|
||||||
if ($actionAjax == "processListExtJs") {
|
if ($actionAjax == "processListExtJs") {
|
||||||
$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : null;
|
$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : null;
|
||||||
$categoryUid = isset( $_REQUEST['CATEGORY_UID'] ) ? $_REQUEST['CATEGORY_UID'] : null;
|
$categoryUid = isset( $_REQUEST['CATEGORY_UID'] ) ? $_REQUEST['CATEGORY_UID'] : null;
|
||||||
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
|
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
|
||||||
|
|
||||||
global $oAppCache;
|
global $oAppCache;
|
||||||
$oAppCache = new AppCacheView();
|
$oAppCache = new AppCacheView();
|
||||||
$processes = Array ();
|
$processes = Array ();
|
||||||
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' )
|
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' )
|
||||||
);
|
);
|
||||||
|
|
||||||
//get the list based in the action provided
|
//get the list based in the action provided
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'draft':
|
case 'draft':
|
||||||
$cProcess = $oAppCache->getDraftListCriteria( $userUid ); //fast enough
|
$cProcess = $oAppCache->getDraftListCriteria( $userUid ); //fast enough
|
||||||
break;
|
break;
|
||||||
case 'sent':
|
case 'sent':
|
||||||
$cProcess = $oAppCache->getSentListProcessCriteria( $userUid ); // fast enough
|
$cProcess = $oAppCache->getSentListProcessCriteria( $userUid ); // fast enough
|
||||||
break;
|
break;
|
||||||
case 'simple_search':
|
case 'simple_search':
|
||||||
case 'search':
|
case 'search':
|
||||||
//in search action, the query to obtain all process is too slow, so we need to query directly to
|
//in search action, the query to obtain all process is too slow, so we need to query directly to
|
||||||
//process and content tables, and for that reason we need the current language in AppCacheView.
|
//process and content tables, and for that reason we need the current language in AppCacheView.
|
||||||
G::loadClass( 'configuration' );
|
G::loadClass( 'configuration' );
|
||||||
$oConf = new Configurations();
|
$oConf = new Configurations();
|
||||||
$oConf->loadConfig( $x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '' );
|
$oConf->loadConfig( $x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '' );
|
||||||
$appCacheViewEngine = $oConf->aConfig;
|
$appCacheViewEngine = $oConf->aConfig;
|
||||||
$lang = isset( $appCacheViewEngine['LANG'] ) ? $appCacheViewEngine['LANG'] : 'en';
|
$lang = isset( $appCacheViewEngine['LANG'] ) ? $appCacheViewEngine['LANG'] : 'en';
|
||||||
|
|
||||||
$cProcess = new Criteria( 'workflow' );
|
$cProcess = new Criteria( 'workflow' );
|
||||||
$cProcess->clearSelectColumns();
|
$cProcess->clearSelectColumns();
|
||||||
$cProcess->addSelectColumn( ProcessPeer::PRO_UID );
|
$cProcess->addSelectColumn( ProcessPeer::PRO_UID );
|
||||||
$cProcess->addSelectColumn( ContentPeer::CON_VALUE );
|
$cProcess->addSelectColumn( ContentPeer::CON_VALUE );
|
||||||
if ($categoryUid) {
|
if ($categoryUid) {
|
||||||
$cProcess->add( ProcessPeer::PRO_CATEGORY, $categoryUid );
|
$cProcess->add( ProcessPeer::PRO_CATEGORY, $categoryUid );
|
||||||
}
|
}
|
||||||
$del = DBAdapter::getStringDelimiter();
|
$del = DBAdapter::getStringDelimiter();
|
||||||
$conds = array ();
|
$conds = array ();
|
||||||
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID);
|
$conds[] = array (ProcessPeer::PRO_UID,ContentPeer::CON_ID);
|
||||||
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del);
|
$conds[] = array (ContentPeer::CON_CATEGORY,$del . 'PRO_TITLE' . $del);
|
||||||
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del);
|
$conds[] = array (ContentPeer::CON_LANG,$del . $lang . $del);
|
||||||
$cProcess->addJoinMC( $conds, Criteria::LEFT_JOIN );
|
$cProcess->addJoinMC( $conds, Criteria::LEFT_JOIN );
|
||||||
$cProcess->add( ProcessPeer::PRO_STATUS, 'ACTIVE' );
|
$cProcess->add( ProcessPeer::PRO_STATUS, 'ACTIVE' );
|
||||||
$oDataset = ProcessPeer::doSelectRS( $cProcess );
|
$oDataset = ProcessPeer::doSelectRS( $cProcess );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
|
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$processes[] = array ($aRow['PRO_UID'],$aRow['CON_VALUE']
|
$processes[] = array ($aRow['PRO_UID'],$aRow['CON_VALUE']
|
||||||
);
|
);
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
return print G::json_encode( $processes );
|
return print G::json_encode( $processes );
|
||||||
break;
|
break;
|
||||||
case 'unassigned':
|
case 'unassigned':
|
||||||
$cProcess = $oAppCache->getUnassignedListCriteria( $userUid );
|
$cProcess = $oAppCache->getUnassignedListCriteria( $userUid );
|
||||||
break;
|
break;
|
||||||
case 'paused':
|
case 'paused':
|
||||||
$cProcess = $oAppCache->getPausedListCriteria( $userUid );
|
$cProcess = $oAppCache->getPausedListCriteria( $userUid );
|
||||||
break;
|
break;
|
||||||
case 'to_revise':
|
case 'to_revise':
|
||||||
$cProcess = $oAppCache->getToReviseListCriteria( $userUid );
|
$cProcess = $oAppCache->getToReviseListCriteria( $userUid );
|
||||||
break;
|
break;
|
||||||
case 'to_reassign':
|
case 'to_reassign':
|
||||||
$cProcess = $oAppCache->getToReassignListCriteria();
|
$cProcess = $oAppCache->getToReassignListCriteria();
|
||||||
$cProcess->addAscendingOrderByColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
$cProcess->addAscendingOrderByColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
||||||
break;
|
break;
|
||||||
case 'gral':
|
case 'gral':
|
||||||
$cProcess = $oAppCache->getGeneralListCriteria();
|
$cProcess = $oAppCache->getGeneralListCriteria();
|
||||||
$cProcess->addAscendingOrderByColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
$cProcess->addAscendingOrderByColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
||||||
break;
|
break;
|
||||||
case 'todo':
|
case 'todo':
|
||||||
default:
|
default:
|
||||||
$cProcess = $oAppCache->getToDoListCriteria( $userUid ); //fast enough
|
$cProcess = $oAppCache->getToDoListCriteria( $userUid ); //fast enough
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//get the processes for this user in this action
|
//get the processes for this user in this action
|
||||||
$cProcess->clearSelectColumns();
|
$cProcess->clearSelectColumns();
|
||||||
$cProcess->addSelectColumn( AppCacheViewPeer::PRO_UID );
|
$cProcess->addSelectColumn( AppCacheViewPeer::PRO_UID );
|
||||||
$cProcess->addSelectColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
$cProcess->addSelectColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
||||||
$cProcess->setDistinct( AppCacheViewPeer::PRO_UID );
|
$cProcess->setDistinct( AppCacheViewPeer::PRO_UID );
|
||||||
if ($categoryUid) {
|
if ($categoryUid) {
|
||||||
$cProcess->addAlias( 'CP', 'PROCESS' );
|
$cProcess->addAlias( 'CP', 'PROCESS' );
|
||||||
$cProcess->add( 'CP.PRO_CATEGORY', $categoryUid, Criteria::EQUAL );
|
$cProcess->add( 'CP.PRO_CATEGORY', $categoryUid, Criteria::EQUAL );
|
||||||
$cProcess->addJoin( AppCacheViewPeer::PRO_UID, 'CP.PRO_UID', Criteria::LEFT_JOIN );
|
$cProcess->addJoin( AppCacheViewPeer::PRO_UID, 'CP.PRO_UID', Criteria::LEFT_JOIN );
|
||||||
$cProcess->addAsColumn( 'CATEGORY_UID', 'CP.PRO_CATEGORY' );
|
$cProcess->addAsColumn( 'CATEGORY_UID', 'CP.PRO_CATEGORY' );
|
||||||
}
|
}
|
||||||
$oDataset = AppCacheViewPeer::doSelectRS( $cProcess );
|
$oDataset = AppCacheViewPeer::doSelectRS( $cProcess );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
|
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$processes[] = array ($aRow['PRO_UID'],$aRow['APP_PRO_TITLE']
|
$processes[] = array ($aRow['PRO_UID'],$aRow['APP_PRO_TITLE']
|
||||||
);
|
);
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
return print G::json_encode( $processes );
|
return print G::json_encode( $processes );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($actionAjax == "getUsersToReassign") {
|
if ($actionAjax == "getUsersToReassign") {
|
||||||
$_SESSION['TASK'] = $_REQUEST['TAS_UID'];
|
$_SESSION['TASK'] = $_REQUEST['TAS_UID'];
|
||||||
$case = new Cases();
|
$case = new Cases();
|
||||||
$result->data = $case->getUsersToReassign( $_SESSION['TASK'], $_SESSION['USER_LOGGED'] );
|
$result->data = $case->getUsersToReassign( $_SESSION['TASK'], $_SESSION['USER_LOGGED'] );
|
||||||
print G::json_encode( $result );
|
print G::json_encode( $result );
|
||||||
}
|
}
|
||||||
if ($actionAjax == 'reassignCase') {
|
if ($actionAjax == 'reassignCase') {
|
||||||
|
|
||||||
$APP_UID = $_REQUEST["APP_UID"];
|
$APP_UID = $_REQUEST["APP_UID"];
|
||||||
$DEL_INDEX = $_REQUEST["DEL_INDEX"];
|
$DEL_INDEX = $_REQUEST["DEL_INDEX"];
|
||||||
|
|
||||||
$_SESSION['APPLICATION'] = $APP_UID;
|
$_SESSION['APPLICATION'] = $APP_UID;
|
||||||
$_SESSION['INDEX'] = $DEL_INDEX;
|
$_SESSION['INDEX'] = $DEL_INDEX;
|
||||||
|
|
||||||
$cases = new Cases();
|
$cases = new Cases();
|
||||||
$user = new Users();
|
$user = new Users();
|
||||||
$app = new Application();
|
$app = new Application();
|
||||||
|
|
||||||
$TO_USR_UID = $_POST['USR_UID'];
|
$TO_USR_UID = $_POST['USR_UID'];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$cases->reassignCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], $TO_USR_UID );
|
$cases->reassignCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], $TO_USR_UID );
|
||||||
$caseData = $app->load( $_SESSION['APPLICATION'] );
|
$caseData = $app->load( $_SESSION['APPLICATION'] );
|
||||||
$userData = $user->load( $TO_USR_UID );
|
$userData = $user->load( $TO_USR_UID );
|
||||||
//print_r($caseData);
|
//print_r($caseData);
|
||||||
$data['APP_NUMBER'] = $caseData['APP_NUMBER'];
|
$data['APP_NUMBER'] = $caseData['APP_NUMBER'];
|
||||||
$data['USER'] = $userData['USR_LASTNAME'] . ' ' . $userData['USR_FIRSTNAME']; //TODO change with the farmated username from environment conf
|
$data['USER'] = $userData['USR_LASTNAME'] . ' ' . $userData['USR_FIRSTNAME']; //TODO change with the farmated username from environment conf
|
||||||
$result->status = 0;
|
$result->status = 0;
|
||||||
$result->msg = G::LoadTranslation( 'ID_REASSIGNMENT_SUCCESS', SYS_LANG, $data );
|
$result->msg = G::LoadTranslation( 'ID_REASSIGNMENT_SUCCESS', SYS_LANG, $data );
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$result->status = 1;
|
$result->status = 1;
|
||||||
$result->msg = $e->getMessage();
|
$result->msg = $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
print G::json_encode( $result );
|
print G::json_encode( $result );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($actionAjax == 'showHistoryMessage') {
|
if ($actionAjax == 'showHistoryMessage') {
|
||||||
?>
|
?>
|
||||||
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html {
|
html {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script language="Javascript">
|
<script language="Javascript">
|
||||||
//!Code that simulated reload library javascript maborak
|
//!Code that simulated reload library javascript maborak
|
||||||
var leimnud = {};
|
var leimnud = {};
|
||||||
leimnud.exec = "";
|
leimnud.exec = "";
|
||||||
leimnud.fix = {};
|
leimnud.fix = {};
|
||||||
leimnud.fix.memoryLeak = "";
|
leimnud.fix.memoryLeak = "";
|
||||||
leimnud.browser = {};
|
leimnud.browser = {};
|
||||||
leimnud.browser.isIphone = "";
|
leimnud.browser.isIphone = "";
|
||||||
leimnud.iphone = {};
|
leimnud.iphone = {};
|
||||||
leimnud.iphone.make = function(){};
|
leimnud.iphone.make = function(){};
|
||||||
function ajax_function(ajax_server, funcion, parameters, method){
|
function ajax_function(ajax_server, funcion, parameters, method){
|
||||||
}
|
}
|
||||||
//!
|
//!
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
|
|
||||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||||
$_POST['APP_MSG_UID'] = $_REQUEST["APP_MSG_UID"];
|
$_POST['APP_MSG_UID'] = $_REQUEST["APP_MSG_UID"];
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
|
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_MessagesView', '', $oCase->getHistoryMessagesTrackerView( $_POST['APP_UID'], $_POST['APP_MSG_UID'] ) );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_MessagesView', '', $oCase->getHistoryMessagesTrackerView( $_POST['APP_UID'], $_POST['APP_MSG_UID'] ) );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
<?php
|
<?php
|
||||||
global $G_FORM;
|
global $G_FORM;
|
||||||
?>
|
?>
|
||||||
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
G::RenderPage( 'publish', 'raw' );
|
G::RenderPage( 'publish', 'raw' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($actionAjax == 'showDynaformListHistory') {
|
if ($actionAjax == 'showDynaformListHistory') {
|
||||||
|
|
||||||
//!dataIndex
|
//!dataIndex
|
||||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||||
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
||||||
$_POST["PRO_UID"] = $_REQUEST["PRO_UID"];
|
$_POST["PRO_UID"] = $_REQUEST["PRO_UID"];
|
||||||
$_POST["TAS_UID"] = $_REQUEST["TAS_UID"];
|
$_POST["TAS_UID"] = $_REQUEST["TAS_UID"];
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html {
|
html {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
body {
|
||||||
body {
|
color: black !important;
|
||||||
color: black !important;
|
}
|
||||||
}
|
</style>
|
||||||
</style>
|
<script language="Javascript">
|
||||||
<script language="Javascript">
|
globalMd5Return=function(s,raw,hexcase,chrsz){
|
||||||
globalMd5Return=function(s,raw,hexcase,chrsz){raw=raw||false;hexcase=hexcase||false;chrsz=chrsz||8;function safe_add(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}function bit_rol(num,cnt){return(num<<cnt)|(num>>>(32-cnt))}function md5_cmn(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)}function md5_ff(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)}function md5_gg(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)}function md5_hh(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)}function md5_ii(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t)}function core_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}return[a,b,c,d]}function str2binl(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}return bin}function binl2str(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str}function binl2hex(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}return str}return(raw?binl2str(core_md5(str2binl(s),s.length*chrsz)):binl2hex(core_md5(str2binl(s),s.length*chrsz)))};
|
raw=raw||false;hexcase=hexcase||false;chrsz=chrsz||8;function safe_add(x,y){
|
||||||
|
var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}
|
||||||
//!Code that simulated reload library javascript maborak
|
function bit_rol(num,cnt){return(num<<cnt)|(num>>>(32-cnt))}function md5_cmn(q,a,b,x,s,t){
|
||||||
var leimnud = {};
|
return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)}function md5_ff(a,b,c,d,x,s,t){
|
||||||
leimnud.exec = "";
|
return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)}
|
||||||
leimnud.fix = {};
|
function md5_gg(a,b,c,d,x,s,t){
|
||||||
leimnud.fix.memoryLeak = "";
|
return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)}
|
||||||
leimnud.browser = {};
|
function md5_hh(a,b,c,d,x,s,t){
|
||||||
leimnud.browser.isIphone = "";
|
return md5_cmn(b^c^d,a,b,x,s,t)}
|
||||||
leimnud.iphone = {};
|
function md5_ii(a,b,c,d,x,s,t){
|
||||||
leimnud.iphone.make = function(){};
|
return md5_cmn(c^(b|(~d)),a,b,x,s,t)}
|
||||||
function ajax_function(ajax_server, funcion, parameters, method){
|
function core_md5(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){
|
||||||
}
|
var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);
|
||||||
|
a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);
|
||||||
function toggleTable(tablename){
|
b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);
|
||||||
//table= document.getElementByName(tablename);
|
d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}
|
||||||
table= document.getElementById(tablename);
|
return[a,b,c,d]}
|
||||||
if(table.style.display == ''){
|
function str2binl(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}
|
||||||
table.style.display = 'none';
|
return bin}
|
||||||
}else{
|
function binl2str(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str}
|
||||||
table.style.display = '';
|
function binl2hex(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}
|
||||||
}
|
return str}
|
||||||
}
|
return(raw?binl2str(core_md5(str2binl(s),s.length*chrsz)):binl2hex(core_md5(str2binl(s),s.length*chrsz)))};
|
||||||
|
|
||||||
function noesFuncion(idIframe) {
|
//!Code that simulated reload library javascript maborak
|
||||||
window.parent.tabIframeWidthFix2(idIframe);
|
var leimnud = {};
|
||||||
}
|
leimnud.exec = "";
|
||||||
|
leimnud.fix = {};
|
||||||
function onResizeIframe(idIframe){
|
leimnud.fix.memoryLeak = "";
|
||||||
|
leimnud.browser = {};
|
||||||
|
leimnud.browser.isIphone = "";
|
||||||
window.onresize = noesFuncion(idIframe);
|
leimnud.iphone = {};
|
||||||
|
leimnud.iphone.make = function(){};
|
||||||
}
|
function ajax_function(ajax_server, funcion, parameters, method){
|
||||||
|
}
|
||||||
var showDynaformHistoryGlobal = {};
|
|
||||||
showDynaformHistoryGlobal.dynUID = '';
|
function toggleTable(tablename){
|
||||||
showDynaformHistoryGlobal.tablename = '';
|
//table= document.getElementByName(tablename);
|
||||||
showDynaformHistoryGlobal.dynDate = '';
|
table= document.getElementById(tablename);
|
||||||
showDynaformHistoryGlobal.dynTitle = '';
|
if(table.style.display == ''){
|
||||||
function showDynaformHistory(dynUID,tablename,dynDate,dynTitle){
|
table.style.display = 'none';
|
||||||
showDynaformHistoryGlobal.dynUID = dynUID;
|
}else{
|
||||||
showDynaformHistoryGlobal.tablename = tablename;
|
table.style.display = '';
|
||||||
showDynaformHistoryGlobal.dynDate = dynDate;
|
}
|
||||||
showDynaformHistoryGlobal.dynTitle = dynTitle;
|
}
|
||||||
|
|
||||||
var dynUID = showDynaformHistoryGlobal.dynUID;
|
function noesFuncion(idIframe) {
|
||||||
var tablename = showDynaformHistoryGlobal.tablename;
|
window.parent.tabIframeWidthFix2(idIframe);
|
||||||
var dynDate = showDynaformHistoryGlobal.dynDate;
|
}
|
||||||
var dynTitle = showDynaformHistoryGlobal.dynTitle;
|
|
||||||
|
function onResizeIframe(idIframe){
|
||||||
var idUnique = globalMd5Return(dynUID+tablename+dynDate+dynTitle);
|
|
||||||
|
|
||||||
var tabData = window.parent.Ext.util.JSON.encode(showDynaformHistoryGlobal);
|
window.onresize = noesFuncion(idIframe);
|
||||||
var tabName = 'dynaformChangeLogViewHistory'+idUnique;
|
|
||||||
var tabTitle = 'View('+dynTitle+' '+dynDate+')';
|
}
|
||||||
|
|
||||||
window.parent.ActionTabFrameGlobal.tabData = tabData;
|
var showDynaformHistoryGlobal = {};
|
||||||
window.parent.ActionTabFrameGlobal.tabName = tabName;
|
showDynaformHistoryGlobal.dynUID = '';
|
||||||
window.parent.ActionTabFrameGlobal.tabTitle = tabTitle;
|
showDynaformHistoryGlobal.tablename = '';
|
||||||
|
showDynaformHistoryGlobal.dynDate = '';
|
||||||
window.parent.Actions.tabFrame(tabName);
|
showDynaformHistoryGlobal.dynTitle = '';
|
||||||
}
|
function showDynaformHistory(dynUID,tablename,dynDate,dynTitle){
|
||||||
</script>
|
showDynaformHistoryGlobal.dynUID = dynUID;
|
||||||
<?php
|
showDynaformHistoryGlobal.tablename = tablename;
|
||||||
|
showDynaformHistoryGlobal.dynDate = dynDate;
|
||||||
require_once 'classes/model/AppHistory.php';
|
showDynaformHistoryGlobal.dynTitle = dynTitle;
|
||||||
$G_PUBLISH = new Publisher();
|
|
||||||
$G_PUBLISH->AddContent( 'view', 'cases/cases_DynaformHistory' );
|
var dynUID = showDynaformHistoryGlobal.dynUID;
|
||||||
|
var tablename = showDynaformHistoryGlobal.tablename;
|
||||||
G::RenderPage( 'publish', 'raw' );
|
var dynDate = showDynaformHistoryGlobal.dynDate;
|
||||||
}
|
var dynTitle = showDynaformHistoryGlobal.dynTitle;
|
||||||
|
|
||||||
if ($actionAjax == 'dynaformChangeLogViewHistory') {
|
var idUnique = globalMd5Return(dynUID+tablename+dynDate+dynTitle);
|
||||||
|
|
||||||
?>
|
var tabData = window.parent.Ext.util.JSON.encode(showDynaformHistoryGlobal);
|
||||||
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
var tabName = 'dynaformChangeLogViewHistory'+idUnique;
|
||||||
<style type="text/css">
|
var tabTitle = 'View('+dynTitle+' '+dynDate+')';
|
||||||
html {
|
|
||||||
color: black !important;
|
window.parent.ActionTabFrameGlobal.tabData = tabData;
|
||||||
}
|
window.parent.ActionTabFrameGlobal.tabName = tabName;
|
||||||
|
window.parent.ActionTabFrameGlobal.tabTitle = tabTitle;
|
||||||
body {
|
|
||||||
color: black !important;
|
window.parent.Actions.tabFrame(tabName);
|
||||||
}
|
}
|
||||||
</style>
|
</script>
|
||||||
<script language="Javascript">
|
<?php
|
||||||
|
|
||||||
|
require_once 'classes/model/AppHistory.php';
|
||||||
|
$G_PUBLISH = new Publisher();
|
||||||
//!Code that simulated reload library javascript maborak
|
$G_PUBLISH->AddContent( 'view', 'cases/cases_DynaformHistory' );
|
||||||
var leimnud = {};
|
|
||||||
leimnud.exec = "";
|
G::RenderPage( 'publish', 'raw' );
|
||||||
leimnud.fix = {};
|
}
|
||||||
leimnud.fix.memoryLeak = "";
|
|
||||||
leimnud.browser = {};
|
if ($actionAjax == 'dynaformChangeLogViewHistory') {
|
||||||
leimnud.browser.isIphone = "";
|
|
||||||
leimnud.iphone = {};
|
?>
|
||||||
leimnud.iphone.make = function(){};
|
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
||||||
function ajax_function(ajax_server, funcion, parameters, method){
|
<style type="text/css">
|
||||||
}
|
html {
|
||||||
//!
|
color: black !important;
|
||||||
</script>
|
}
|
||||||
<?php
|
body {
|
||||||
|
color: black !important;
|
||||||
$_POST['DYN_UID'] = $_REQUEST['DYN_UID'];
|
}
|
||||||
$_POST['HISTORY_ID'] = $_REQUEST['HISTORY_ID'];
|
</style>
|
||||||
|
<script language="Javascript">
|
||||||
global $G_PUBLISH;
|
//!Code that simulated reload library javascript maborak
|
||||||
$G_PUBLISH = new Publisher();
|
var leimnud = {};
|
||||||
$FieldsHistory = unserialize( $_SESSION['HISTORY_DATA'] );
|
leimnud.exec = "";
|
||||||
$Fields['APP_DATA'] = $FieldsHistory[$_POST['HISTORY_ID']];
|
leimnud.fix = {};
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
leimnud.fix.memoryLeak = "";
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
leimnud.browser = {};
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
leimnud.browser.isIphone = "";
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
leimnud.iphone = {};
|
||||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );
|
leimnud.iphone.make = function(){};
|
||||||
|
function ajax_function(ajax_server, funcion, parameters, method){
|
||||||
?>
|
}
|
||||||
<script language="javascript">
|
//!
|
||||||
<?php
|
</script>
|
||||||
global $G_FORM;
|
<?php
|
||||||
?>
|
|
||||||
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
$_POST['DYN_UID'] = $_REQUEST['DYN_UID'];
|
||||||
|
$_POST['HISTORY_ID'] = $_REQUEST['HISTORY_ID'];
|
||||||
}
|
|
||||||
</script>
|
global $G_PUBLISH;
|
||||||
<?php
|
$G_PUBLISH = new Publisher();
|
||||||
|
$FieldsHistory = unserialize( $_SESSION['HISTORY_DATA'] );
|
||||||
G::RenderPage( 'publish', 'raw' );
|
$Fields['APP_DATA'] = $FieldsHistory[$_POST['HISTORY_ID']];
|
||||||
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
||||||
}
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
||||||
if ($actionAjax == 'historyDynaformGridPreview') {
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
||||||
?>
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
||||||
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );
|
||||||
<style type="text/css">
|
|
||||||
html {
|
?>
|
||||||
color: black !important;
|
<script language="javascript">
|
||||||
}
|
<?php
|
||||||
|
global $G_FORM;
|
||||||
body {
|
?>
|
||||||
color: black !important;
|
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
||||||
}
|
|
||||||
</style>
|
}
|
||||||
<script language="Javascript">
|
</script>
|
||||||
|
<?php
|
||||||
//!Code that simulated reload library javascript maborak
|
G::RenderPage( 'publish', 'raw' );
|
||||||
var leimnud = {};
|
}
|
||||||
leimnud.exec = "";
|
if ($actionAjax == 'historyDynaformGridPreview') {
|
||||||
leimnud.fix = {};
|
?>
|
||||||
leimnud.fix.memoryLeak = "";
|
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
||||||
leimnud.browser = {};
|
<style type="text/css">
|
||||||
leimnud.browser.isIphone = "";
|
html {
|
||||||
leimnud.iphone = {};
|
color: black !important;
|
||||||
leimnud.iphone.make = function(){};
|
}
|
||||||
function ajax_function(ajax_server, funcion, parameters, method){
|
body {
|
||||||
}
|
color: black !important;
|
||||||
//!
|
}
|
||||||
</script>
|
</style>
|
||||||
<?php
|
<script language="Javascript">
|
||||||
|
|
||||||
//!dataIndex
|
//!Code that simulated reload library javascript maborak
|
||||||
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
var leimnud = {};
|
||||||
|
leimnud.exec = "";
|
||||||
G::LoadClass( 'case' );
|
leimnud.fix = {};
|
||||||
|
leimnud.fix.memoryLeak = "";
|
||||||
$G_PUBLISH = new Publisher();
|
leimnud.browser = {};
|
||||||
$oCase = new Cases();
|
leimnud.browser.isIphone = "";
|
||||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
leimnud.iphone = {};
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
leimnud.iphone.make = function(){};
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
function ajax_function(ajax_server, funcion, parameters, method){
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
}
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
//!
|
||||||
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
</script>
|
||||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );
|
<?php
|
||||||
|
|
||||||
?>
|
//!dataIndex
|
||||||
<script language="javascript">
|
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
||||||
<?php
|
|
||||||
global $G_FORM;
|
G::LoadClass( 'case' );
|
||||||
?>
|
|
||||||
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
$G_PUBLISH = new Publisher();
|
||||||
|
$oCase = new Cases();
|
||||||
}
|
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||||
</script>
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
||||||
<?php
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
||||||
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
||||||
G::RenderPage( 'publish', 'raw' );
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
||||||
}
|
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
||||||
|
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view' );
|
||||||
|
|
||||||
|
?>
|
||||||
|
<script language="javascript">
|
||||||
|
<?php
|
||||||
|
global $G_FORM;
|
||||||
|
?>
|
||||||
|
function loadForm_<?php echo $G_FORM->id;?>(parametro1){
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
G::RenderPage( 'publish', 'raw' );
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,138 +1,138 @@
|
|||||||
<?php
|
<?php
|
||||||
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'default';
|
$action = isset( $_GET['action'] ) ? $_GET['action'] : 'default';
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'getAllCounters':
|
case 'getAllCounters':
|
||||||
getAllCounters();
|
getAllCounters();
|
||||||
break;
|
break;
|
||||||
case 'getProcess':
|
case 'getProcess':
|
||||||
getProcess();
|
getProcess();
|
||||||
break;
|
break;
|
||||||
default: //this is the starting call
|
default: //this is the starting call
|
||||||
getLoadTreeMenuData();
|
getLoadTreeMenuData();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLoadTreeMenuData ()
|
function getLoadTreeMenuData ()
|
||||||
{
|
{
|
||||||
header( "content-type: text/xml" );
|
header( "content-type: text/xml" );
|
||||||
|
|
||||||
global $G_TMP_MENU;
|
global $G_TMP_MENU;
|
||||||
$oMenu = new Menu();
|
$oMenu = new Menu();
|
||||||
$oMenu->load( 'cases' );
|
$oMenu->load( 'cases' );
|
||||||
|
|
||||||
$oCases = new Cases();
|
$oCases = new Cases();
|
||||||
$aTypes = Array ('to_do','draft','cancelled','sent','paused','completed','selfservice');
|
$aTypes = Array ('to_do','draft','cancelled','sent','paused','completed','selfservice');
|
||||||
//'to_revise',
|
//'to_revise',
|
||||||
//'to_reassign'
|
//'to_reassign'
|
||||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice');
|
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice');
|
||||||
//'CASES_TO_REVISE'=>'to_revise',
|
//'CASES_TO_REVISE'=>'to_revise',
|
||||||
//'CASES_TO_REASSIGN'=>'to_reassign'
|
//'CASES_TO_REASSIGN'=>'to_reassign'
|
||||||
$list = array ();
|
$list = array ();
|
||||||
$list['count'] = ' ';
|
$list['count'] = ' ';
|
||||||
|
|
||||||
$empty = array ();
|
$empty = array ();
|
||||||
foreach ($aTypes as $key => $val) {
|
foreach ($aTypes as $key => $val) {
|
||||||
$empty[$val] = $list;
|
$empty[$val] = $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
$aCount = $empty; //$oCases->getAllConditionCasesCount($aTypes, true);
|
$aCount = $empty; //$oCases->getAllConditionCasesCount($aTypes, true);
|
||||||
$processNameMaxSize = 20;
|
$processNameMaxSize = 20;
|
||||||
|
|
||||||
//now drawing the treeview using the menu options from menu/cases.php
|
//now drawing the treeview using the menu options from menu/cases.php
|
||||||
$menuCases = array ();
|
$menuCases = array ();
|
||||||
foreach ($oMenu->Options as $i => $option) {
|
foreach ($oMenu->Options as $i => $option) {
|
||||||
if ($oMenu->Types[$i] == 'blockHeader') {
|
if ($oMenu->Types[$i] == 'blockHeader') {
|
||||||
$CurrentBlockID = $oMenu->Id[$i];
|
$CurrentBlockID = $oMenu->Id[$i];
|
||||||
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
||||||
if ($oMenu->Options[$i] != "") {
|
if ($oMenu->Options[$i] != "") {
|
||||||
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
||||||
}
|
}
|
||||||
} elseif ($oMenu->Types[$i] == 'blockNestedTree') {
|
} elseif ($oMenu->Types[$i] == 'blockNestedTree') {
|
||||||
$CurrentBlockID = $oMenu->Id[$i];
|
$CurrentBlockID = $oMenu->Id[$i];
|
||||||
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
||||||
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
||||||
$menuCases[$CurrentBlockID]['loaderurl'] = $oMenu->Options[$i];
|
$menuCases[$CurrentBlockID]['loaderurl'] = $oMenu->Options[$i];
|
||||||
} elseif ($oMenu->Types[$i] == 'blockHeaderNoChild') {
|
} elseif ($oMenu->Types[$i] == 'blockHeaderNoChild') {
|
||||||
$CurrentBlockID = $oMenu->Id[$i];
|
$CurrentBlockID = $oMenu->Id[$i];
|
||||||
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
$menuCases[$CurrentBlockID]['blockTitle'] = $oMenu->Labels[$i];
|
||||||
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
||||||
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
||||||
} else {
|
} else {
|
||||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]] = Array ('label' => $oMenu->Labels[$i],'link' => $oMenu->Options[$i],'icon' => (isset( $oMenu->Icons[$i] ) && $oMenu->Icons[$i] != '') ? $oMenu->Icons[$i] : 'kcmdf.png');
|
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]] = Array ('label' => $oMenu->Labels[$i],'link' => $oMenu->Options[$i],'icon' => (isset( $oMenu->Icons[$i] ) && $oMenu->Icons[$i] != '') ? $oMenu->Icons[$i] : 'kcmdf.png');
|
||||||
|
|
||||||
if (isset( $aTypesID[$oMenu->Id[$i]] )) {
|
if (isset( $aTypesID[$oMenu->Id[$i]] )) {
|
||||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]]['cases_count'] = $aCount[$aTypesID[$oMenu->Id[$i]]]['count'];
|
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]]['cases_count'] = $aCount[$aTypesID[$oMenu->Id[$i]]]['count'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//now build the menu in xml format
|
//now build the menu in xml format
|
||||||
$xml = '<menu_cases>';
|
$xml = '<menu_cases>';
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($menuCases as $menu => $aMenuBlock) {
|
foreach ($menuCases as $menu => $aMenuBlock) {
|
||||||
if (isset( $aMenuBlock['blockItems'] ) && sizeof( $aMenuBlock['blockItems'] ) > 0) {
|
if (isset( $aMenuBlock['blockItems'] ) && sizeof( $aMenuBlock['blockItems'] ) > 0) {
|
||||||
$urlProperty = "";
|
$urlProperty = "";
|
||||||
if ((isset( $aMenuBlock['link'] )) && ($aMenuBlock['link'] != "")) {
|
if ((isset( $aMenuBlock['link'] )) && ($aMenuBlock['link'] != "")) {
|
||||||
$urlProperty = "url='" . $aMenuBlock['link'] . "'";
|
$urlProperty = "url='" . $aMenuBlock['link'] . "'";
|
||||||
}
|
}
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" id="' . $menu . '" ' . $urlProperty . '>';
|
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" id="' . $menu . '" ' . $urlProperty . '>';
|
||||||
foreach ($aMenuBlock['blockItems'] as $id => $aMenu) {
|
foreach ($aMenuBlock['blockItems'] as $id => $aMenu) {
|
||||||
$i ++;
|
$i ++;
|
||||||
if (isset( $aMenu['cases_count'] ) && $aMenu['cases_count'] !== '') {
|
if (isset( $aMenu['cases_count'] ) && $aMenu['cases_count'] !== '') {
|
||||||
$nofifier = "cases_count=\"{$aMenu['cases_count']}\" ";
|
$nofifier = "cases_count=\"{$aMenu['cases_count']}\" ";
|
||||||
} else {
|
} else {
|
||||||
$nofifier = '';
|
$nofifier = '';
|
||||||
}
|
}
|
||||||
$xml .= '<option title="' . $aMenu['label'] . '" id="' . $id . '" ' . $nofifier . ' url="' . $aMenu['link'] . '">';
|
$xml .= '<option title="' . $aMenu['label'] . '" id="' . $id . '" ' . $nofifier . ' url="' . $aMenu['link'] . '">';
|
||||||
$xml .= '</option>';
|
$xml .= '</option>';
|
||||||
}
|
}
|
||||||
$xml .= '</menu_block>';
|
$xml .= '</menu_block>';
|
||||||
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockNestedTree") {
|
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockNestedTree") {
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockNestedTree = "' . $aMenuBlock['loaderurl'] . '" id="' . $menu . '" folderId="0">';
|
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockNestedTree = "' . $aMenuBlock['loaderurl'] . '" id="' . $menu . '" folderId="0">';
|
||||||
$xml .= '</menu_block>';
|
$xml .= '</menu_block>';
|
||||||
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockHeaderNoChild") {
|
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockHeaderNoChild") {
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockHeaderNoChild="blockHeaderNoChild" url = "' . $aMenuBlock['link'] . '" id="' . $menu . '">';
|
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockHeaderNoChild="blockHeaderNoChild" url = "' . $aMenuBlock['link'] . '" id="' . $menu . '">';
|
||||||
//$xml .= '<option title="" id="" ></option>';
|
//$xml .= '<option title="" id="" ></option>';
|
||||||
$xml .= '</menu_block>';
|
$xml .= '</menu_block>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$xml .= '</menu_cases>';
|
$xml .= '</menu_cases>';
|
||||||
|
|
||||||
print $xml;
|
print $xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the process summary of specific case list type,
|
// get the process summary of specific case list type,
|
||||||
function getProcess ()
|
function getProcess ()
|
||||||
{
|
{
|
||||||
global $G_TMP_MENU;
|
global $G_TMP_MENU;
|
||||||
global $userId;
|
global $userId;
|
||||||
if (! isset( $_GET['item'] )) {
|
if (! isset( $_GET['item'] )) {
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
$oMenu = new Menu();
|
$oMenu = new Menu();
|
||||||
$oMenu->load( 'cases' );
|
$oMenu->load( 'cases' );
|
||||||
$type = $_GET['item'];
|
$type = $_GET['item'];
|
||||||
$oCases = new AppCacheView();
|
$oCases = new AppCacheView();
|
||||||
|
|
||||||
$aTypesID = array ();
|
$aTypesID = array ();
|
||||||
$aTypesID['CASES_INBOX'] = 'to_do';
|
$aTypesID['CASES_INBOX'] = 'to_do';
|
||||||
$aTypesID['CASES_DRAFT'] = 'draft';
|
$aTypesID['CASES_DRAFT'] = 'draft';
|
||||||
$aTypesID['CASES_CANCELLED'] = 'cancelled';
|
$aTypesID['CASES_CANCELLED'] = 'cancelled';
|
||||||
$aTypesID['CASES_SENT'] = 'sent';
|
$aTypesID['CASES_SENT'] = 'sent';
|
||||||
$aTypesID['CASES_PAUSED'] = 'paused';
|
$aTypesID['CASES_PAUSED'] = 'paused';
|
||||||
$aTypesID['CASES_COMPLETED'] = 'completed';
|
$aTypesID['CASES_COMPLETED'] = 'completed';
|
||||||
$aTypesID['CASES_SELFSERVICE'] = 'selfservice';
|
$aTypesID['CASES_SELFSERVICE'] = 'selfservice';
|
||||||
//$aTypesID['CASES_TO_REVISE'] = 'to_revise';
|
//$aTypesID['CASES_TO_REVISE'] = 'to_revise';
|
||||||
//$aTypesID['CASES_TO_REASSIGN'] = 'to_reassign';
|
//$aTypesID['CASES_TO_REASSIGN'] = 'to_reassign';
|
||||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice','CASES_TO_REVISE' => 'to_revise','CASES_TO_REASSIGN' => 'to_reassign');
|
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice','CASES_TO_REVISE' => 'to_revise','CASES_TO_REASSIGN' => 'to_reassign');
|
||||||
|
|
||||||
$aCount = $oCases->getAllCounters( Array ($aTypesID[$type]
|
$aCount = $oCases->getAllCounters( Array ($aTypesID[$type]
|
||||||
), $userId, true );
|
), $userId, true );
|
||||||
|
|
||||||
$response = Array ();
|
$response = Array ();
|
||||||
//disabling the summary...
|
//disabling the summary...
|
||||||
/*
|
/*
|
||||||
$i=0;
|
$i=0;
|
||||||
@@ -145,7 +145,7 @@ function getProcess ()
|
|||||||
$response[$i]->loaded = true;
|
$response[$i]->loaded = true;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
//ordering
|
//ordering
|
||||||
/*for($i=0; $i<=count($response)-1; $i++){
|
/*for($i=0; $i<=count($response)-1; $i++){
|
||||||
for($j=$i+1; $j<=count($response); $j++){
|
for($j=$i+1; $j<=count($response); $j++){
|
||||||
@@ -157,48 +157,48 @@ function getProcess ()
|
|||||||
$response[$j] = $x;
|
$response[$j] = $x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
echo G::json_encode( $response );
|
echo G::json_encode( $response );
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAllCounters ()
|
function getAllCounters ()
|
||||||
{
|
{
|
||||||
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
|
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
|
||||||
$oAppCache = new AppCacheView();
|
$oAppCache = new AppCacheView();
|
||||||
$aTypes = Array ();
|
$aTypes = Array ();
|
||||||
$aTypes['to_do'] = 'CASES_INBOX';
|
$aTypes['to_do'] = 'CASES_INBOX';
|
||||||
$aTypes['draft'] = 'CASES_DRAFT';
|
$aTypes['draft'] = 'CASES_DRAFT';
|
||||||
$aTypes['cancelled'] = 'CASES_CANCELLED';
|
$aTypes['cancelled'] = 'CASES_CANCELLED';
|
||||||
$aTypes['sent'] = 'CASES_SENT';
|
$aTypes['sent'] = 'CASES_SENT';
|
||||||
$aTypes['paused'] = 'CASES_PAUSED';
|
$aTypes['paused'] = 'CASES_PAUSED';
|
||||||
$aTypes['completed'] = 'CASES_COMPLETED';
|
$aTypes['completed'] = 'CASES_COMPLETED';
|
||||||
$aTypes['selfservice'] = 'CASES_SELFSERVICE';
|
$aTypes['selfservice'] = 'CASES_SELFSERVICE';
|
||||||
//$aTypes['to_revise'] = 'CASES_TO_REVISE';
|
//$aTypes['to_revise'] = 'CASES_TO_REVISE';
|
||||||
//$aTypes['to_reassign'] = 'CASES_TO_REASSIGN';
|
//$aTypes['to_reassign'] = 'CASES_TO_REASSIGN';
|
||||||
|
|
||||||
if ((($solrConf = System::solrEnv()) !== false)) {
|
if ((($solrConf = System::solrEnv()) !== false)) {
|
||||||
G::LoadClass( 'AppSolr' );
|
G::LoadClass( 'AppSolr' );
|
||||||
$ApplicationSolrIndex = new AppSolr( $solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance'] );
|
$ApplicationSolrIndex = new AppSolr( $solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance'] );
|
||||||
|
|
||||||
$aCount = $ApplicationSolrIndex->getCasesCount( $userUid );
|
$aCount = $ApplicationSolrIndex->getCasesCount( $userUid );
|
||||||
|
|
||||||
//get paused count
|
//get paused count
|
||||||
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'), $userUid );
|
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'), $userUid );
|
||||||
|
|
||||||
$aCount = array_merge( $aCount, $aCountMissing );
|
$aCount = array_merge( $aCount, $aCountMissing );
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$aCount = $oAppCache->getAllCounters( array_keys( $aTypes ), $userUid );
|
$aCount = $oAppCache->getAllCounters( array_keys( $aTypes ), $userUid );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = Array ();
|
$response = Array ();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($aCount as $type => $count) {
|
foreach ($aCount as $type => $count) {
|
||||||
$response[$i]->item = $aTypes[$type];
|
$response[$i]->item = $aTypes[$type];
|
||||||
$response[$i]->count = $count;
|
$response[$i]->count = $count;
|
||||||
$i ++;
|
$i ++;
|
||||||
}
|
}
|
||||||
echo G::json_encode( $response );
|
echo G::json_encode( $response );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,74 +1,74 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_Step.php
|
* cases_Step.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
// die("first");
|
// die("first");
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((int) $_SESSION['INDEX'] < 1) {
|
if ((int) $_SESSION['INDEX'] < 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
G::LoadClass( 'derivation' );
|
G::LoadClass( 'derivation' );
|
||||||
|
|
||||||
/* GET , POST & $_SESSION Vars */
|
/* GET , POST & $_SESSION Vars */
|
||||||
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
||||||
|
|
||||||
|
|
||||||
/* Menues */
|
/* Menues */
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
|
|
||||||
/* Prepare page before to show */
|
/* Prepare page before to show */
|
||||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
||||||
$oTemplatePower->prepare();
|
$oTemplatePower->prepare();
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addScriptCode( "
|
$oHeadPublisher->addScriptCode( "
|
||||||
if (typeof parent != 'undefined') {
|
if (typeof parent != 'undefined') {
|
||||||
if (parent.showCaseNavigatorPanel) {
|
if (parent.showCaseNavigatorPanel) {
|
||||||
parent.showCaseNavigatorPanel('{$Fields['APP_STATUS']}');
|
parent.showCaseNavigatorPanel('{$Fields['APP_STATUS']}');
|
||||||
}
|
}
|
||||||
}" );
|
}" );
|
||||||
// DEPRECATED this script call is marked for removal since almost all the interface is extJS based
|
// DEPRECATED this script call is marked for removal since almost all the interface is extJS based
|
||||||
$oHeadPublisher->addScriptCode( '
|
$oHeadPublisher->addScriptCode( '
|
||||||
var Cse = {};
|
var Cse = {};
|
||||||
@@ -84,49 +84,49 @@ $oHeadPublisher->addScriptCode( '
|
|||||||
leimnud.event.add(window,"load",function(){
|
leimnud.event.add(window,"load",function(){
|
||||||
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '
|
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '
|
||||||
});
|
});
|
||||||
' );
|
' );
|
||||||
// DEPRECATED this script call is marked for removal
|
// DEPRECATED this script call is marked for removal
|
||||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||||
|
|
||||||
if (! isset( $_GET['type'] )) {
|
if (! isset( $_GET['type'] )) {
|
||||||
$_GET['type'] = 'DYNAFORM';
|
$_GET['type'] = 'DYNAFORM';
|
||||||
}
|
}
|
||||||
if (! isset( $_GET['position'] )) {
|
if (! isset( $_GET['position'] )) {
|
||||||
$_GET['position'] = 1;
|
$_GET['position'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$_SESSION['STEP_POSITION'] = (int) $_GET['position'];
|
$_SESSION['STEP_POSITION'] = (int) $_GET['position'];
|
||||||
|
|
||||||
//Obtain previous and next step - Start
|
//Obtain previous and next step - Start
|
||||||
if (isset( $_GET['type'] )) {
|
if (isset( $_GET['type'] )) {
|
||||||
$sType = $_GET['type'];
|
$sType = $_GET['type'];
|
||||||
} else {
|
} else {
|
||||||
$sType = '';
|
$sType = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Added By erik
|
* Added By erik
|
||||||
* date: 16-05-08
|
* date: 16-05-08
|
||||||
* Description: this was added for the additional database connections
|
* Description: this was added for the additional database connections
|
||||||
*/
|
*/
|
||||||
G::LoadClass( 'dbConnections' );
|
G::LoadClass( 'dbConnections' );
|
||||||
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||||
$oDbConnections->loadAdditionalConnections();
|
$oDbConnections->loadAdditionalConnections();
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
if ($_GET['DYN_UID'] != '') {
|
if ($_GET['DYN_UID'] != '') {
|
||||||
$_SESSION['CURRENT_DYN_UID'] = $_GET['DYN_UID'];
|
$_SESSION['CURRENT_DYN_UID'] = $_GET['DYN_UID'];
|
||||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['DYN_UID'], '', $Fields['APP_DATA'], 'cases_SaveDataSupervisor?UID=' . $_GET['DYN_UID'] );
|
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['DYN_UID'], '', $Fields['APP_DATA'], 'cases_SaveDataSupervisor?UID=' . $_GET['DYN_UID'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
if (! isset( $_GET['ex'] )) {
|
if (! isset( $_GET['ex'] )) {
|
||||||
$_GET['ex'] = $_GET['position'];
|
$_GET['ex'] = $_GET['position'];
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -147,5 +147,7 @@ function setSelect()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -1,65 +1,65 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_Step.php
|
* cases_Step.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
//die("second");
|
//die("second");
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((int) $_SESSION['INDEX'] < 1) {
|
if ((int) $_SESSION['INDEX'] < 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
G::LoadClass( 'derivation' );
|
G::LoadClass( 'derivation' );
|
||||||
|
|
||||||
/* GET , POST & $_SESSION Vars */
|
/* GET , POST & $_SESSION Vars */
|
||||||
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
||||||
|
|
||||||
|
|
||||||
/* Menues */
|
/* Menues */
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
|
|
||||||
/* Prepare page before to show */
|
/* Prepare page before to show */
|
||||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
||||||
$oTemplatePower->prepare();
|
$oTemplatePower->prepare();
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
// Check if these code needs to be removed since the interface ar now moving to ExtJS
|
// Check if these code needs to be removed since the interface ar now moving to ExtJS
|
||||||
$oHeadPublisher->addScriptCode( '
|
$oHeadPublisher->addScriptCode( '
|
||||||
var Cse = {};
|
var Cse = {};
|
||||||
@@ -75,60 +75,60 @@ $oHeadPublisher->addScriptCode( '
|
|||||||
leimnud.event.add(window,"load",function(){
|
leimnud.event.add(window,"load",function(){
|
||||||
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '
|
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '
|
||||||
});
|
});
|
||||||
' );
|
' );
|
||||||
// Check if these code needs to be removed since the interface ar now moving to ExtJS
|
// Check if these code needs to be removed since the interface ar now moving to ExtJS
|
||||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||||
|
|
||||||
if (! isset( $_GET['position'] )) {
|
if (! isset( $_GET['position'] )) {
|
||||||
$_GET['position'] = 1;
|
$_GET['position'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$_SESSION['STEP_POSITION'] = (int) $_GET['position'];
|
$_SESSION['STEP_POSITION'] = (int) $_GET['position'];
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
if (! isset( $_GET['ex'] )) {
|
if (! isset( $_GET['ex'] )) {
|
||||||
$_GET['ex'] = 0;
|
$_GET['ex'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset( $_GET['INP_DOC_UID'] )) {
|
if (! isset( $_GET['INP_DOC_UID'] )) {
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_InputdocsListToRevise', $oCase->getInputDocumentsCriteriaToRevise( $_SESSION['APPLICATION'] ), '' );
|
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_InputdocsListToRevise', $oCase->getInputDocumentsCriteriaToRevise( $_SESSION['APPLICATION'] ), '' );
|
||||||
} else {
|
} else {
|
||||||
$oInputDocument = new InputDocument();
|
$oInputDocument = new InputDocument();
|
||||||
$Fields = $oInputDocument->load( $_GET['INP_DOC_UID'] );
|
$Fields = $oInputDocument->load( $_GET['INP_DOC_UID'] );
|
||||||
switch ($Fields['INP_DOC_FORM_NEEDED']) {
|
switch ($Fields['INP_DOC_FORM_NEEDED']) {
|
||||||
case 'REAL':
|
case 'REAL':
|
||||||
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_NEW' );
|
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_NEW' );
|
||||||
$sXmlForm = 'cases/cases_AttachInputDocument2';
|
$sXmlForm = 'cases/cases_AttachInputDocument2';
|
||||||
break;
|
break;
|
||||||
case 'VIRTUAL':
|
case 'VIRTUAL':
|
||||||
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_ATTACH' );
|
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_ATTACH' );
|
||||||
$sXmlForm = 'cases/cases_AttachInputDocument1';
|
$sXmlForm = 'cases/cases_AttachInputDocument1';
|
||||||
break;
|
break;
|
||||||
case 'VREAL':
|
case 'VREAL':
|
||||||
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_ATTACH' );
|
$Fields['TYPE_LABEL'] = G::LoadTranslation( 'ID_ATTACH' );
|
||||||
$sXmlForm = 'cases/cases_AttachInputDocument3';
|
$sXmlForm = 'cases/cases_AttachInputDocument3';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$Fields['MESSAGE1'] = G::LoadTranslation( 'ID_PLEASE_ENTER_COMMENTS' );
|
$Fields['MESSAGE1'] = G::LoadTranslation( 'ID_PLEASE_ENTER_COMMENTS' );
|
||||||
$Fields['MESSAGE2'] = G::LoadTranslation( 'ID_PLEASE_SELECT_FILE' );
|
$Fields['MESSAGE2'] = G::LoadTranslation( 'ID_PLEASE_SELECT_FILE' );
|
||||||
$docName = $Fields['INP_DOC_TITLE'];
|
$docName = $Fields['INP_DOC_TITLE'];
|
||||||
$oHeadPublisher->addScriptCode( 'var documentName=\'Reviewing Input Document<br>' . $docName . '\';' );
|
$oHeadPublisher->addScriptCode( 'var documentName=\'Reviewing Input Document<br>' . $docName . '\';' );
|
||||||
// $G_PUBLISH->AddContent('xmlform', 'xmlform', $sXmlForm, '', $Fields, 'cases_SupervisorSaveDocument?UID=' .
|
// $G_PUBLISH->AddContent('xmlform', 'xmlform', $sXmlForm, '', $Fields, 'cases_SupervisorSaveDocument?UID=' .
|
||||||
//$_GET['INP_DOC_UID'] . '&APP_UID=' . $_GET['APP_UID'] . '&position=' . $_GET['position']);
|
//$_GET['INP_DOC_UID'] . '&APP_UID=' . $_GET['APP_UID'] . '&position=' . $_GET['position']);
|
||||||
$G_PUBLISH->AddContent( 'propeltable', 'cases/paged-table-inputDocumentsToRevise', 'cases/cases_ToReviseInputdocsList', $oCase->getInputDocumentsCriteria( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_GET['INP_DOC_UID'] ), array_merge( array ('DOC_UID' => $_GET['INP_DOC_UID']
|
$G_PUBLISH->AddContent( 'propeltable', 'cases/paged-table-inputDocumentsToRevise', 'cases/cases_ToReviseInputdocsList', $oCase->getInputDocumentsCriteria( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_GET['INP_DOC_UID'] ), array_merge( array ('DOC_UID' => $_GET['INP_DOC_UID']
|
||||||
), $Fields ) );
|
), $Fields ) );
|
||||||
//$aFields
|
//$aFields
|
||||||
// $G_PUBLISH->AddContent('propeltable', 'cases/paged-table-inputDocuments', 'cases/cases_InputdocsList',
|
// $G_PUBLISH->AddContent('propeltable', 'cases/paged-table-inputDocuments', 'cases/cases_InputdocsList',
|
||||||
//$oCase->getInputDocumentsCriteria($_SESSION['APPLICATION']));//$aFields
|
//$oCase->getInputDocumentsCriteria($_SESSION['APPLICATION']));//$aFields
|
||||||
}
|
}
|
||||||
|
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -149,5 +149,7 @@ function setSelect()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -1,55 +1,55 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_StepToReviseOutputs.php
|
* cases_StepToReviseOutputs.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
|
|
||||||
/* Menues */
|
/* Menues */
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
|
|
||||||
/* Prepare page before to show */
|
/* Prepare page before to show */
|
||||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
||||||
$oTemplatePower->prepare();
|
$oTemplatePower->prepare();
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
// check if the code for the addScriptCode is necessary since the interface is now based in ExtJs
|
// check if the code for the addScriptCode is necessary since the interface is now based in ExtJs
|
||||||
$oHeadPublisher->addScriptCode( '
|
$oHeadPublisher->addScriptCode( '
|
||||||
var Cse = {};
|
var Cse = {};
|
||||||
@@ -64,15 +64,15 @@ leimnud.Package.Load("processmap",{Type:"file",Absolute:true,Path:"/jscore/proce
|
|||||||
leimnud.exec(leimnud.fix.memoryLeak);
|
leimnud.exec(leimnud.fix.memoryLeak);
|
||||||
leimnud.event.add(window,"load",function(){
|
leimnud.event.add(window,"load",function(){
|
||||||
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '});
|
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '});
|
||||||
' );
|
' );
|
||||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_OutputdocsListToRevise', $oCase->getOutputDocumentsCriteriaToRevise( $_SESSION['APPLICATION'] ), '' );
|
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_OutputdocsListToRevise', $oCase->getOutputDocumentsCriteriaToRevise( $_SESSION['APPLICATION'] ), '' );
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
if (! isset( $_GET['ex'] )) {
|
if (! isset( $_GET['ex'] )) {
|
||||||
$_GET['ex'] = 0;
|
$_GET['ex'] = 0;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
@@ -94,5 +94,5 @@ function setSelect()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,72 +1,72 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_SupervisorSaveDocument.php
|
* cases_SupervisorSaveDocument.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//save info
|
//save info
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
|
|
||||||
$oAppDocument = new AppDocument();
|
$oAppDocument = new AppDocument();
|
||||||
$aFields = array ('APP_UID' => $_GET['APP_UID'],'DEL_INDEX' => 100000,'USR_UID' => $_SESSION['USER_LOGGED'],'DOC_UID' => $_GET['UID'],'APP_DOC_TYPE' => $_POST['form']['APP_DOC_TYPE'],'APP_DOC_CREATE_DATE' => date( 'Y-m-d H:i:s' ),'APP_DOC_COMMENT' => isset( $_POST['form']['APP_DOC_COMMENT'] ) ? $_POST['form']['APP_DOC_COMMENT'] : '','APP_DOC_TITLE' => '','APP_DOC_FILENAME' => isset( $_FILES['form']['name']['APP_DOC_FILENAME'] ) ? $_FILES['form']['name']['APP_DOC_FILENAME'] : ''
|
$aFields = array ('APP_UID' => $_GET['APP_UID'],'DEL_INDEX' => 100000,'USR_UID' => $_SESSION['USER_LOGGED'],'DOC_UID' => $_GET['UID'],'APP_DOC_TYPE' => $_POST['form']['APP_DOC_TYPE'],'APP_DOC_CREATE_DATE' => date( 'Y-m-d H:i:s' ),'APP_DOC_COMMENT' => isset( $_POST['form']['APP_DOC_COMMENT'] ) ? $_POST['form']['APP_DOC_COMMENT'] : '','APP_DOC_TITLE' => '','APP_DOC_FILENAME' => isset( $_FILES['form']['name']['APP_DOC_FILENAME'] ) ? $_FILES['form']['name']['APP_DOC_FILENAME'] : ''
|
||||||
);
|
);
|
||||||
$oAppDocument->create( $aFields );
|
$oAppDocument->create( $aFields );
|
||||||
$sAppDocUid = $oAppDocument->getAppDocUid();
|
$sAppDocUid = $oAppDocument->getAppDocUid();
|
||||||
$info = pathinfo( $oAppDocument->getAppDocFilename() );
|
$info = pathinfo( $oAppDocument->getAppDocFilename() );
|
||||||
$ext = (isset( $info['extension'] ) ? $info['extension'] : '');
|
$ext = (isset( $info['extension'] ) ? $info['extension'] : '');
|
||||||
//save the file
|
//save the file
|
||||||
if (! empty( $_FILES['form'] )) {
|
if (! empty( $_FILES['form'] )) {
|
||||||
if ($_FILES['form']['error']['APP_DOC_FILENAME'] == 0) {
|
if ($_FILES['form']['error']['APP_DOC_FILENAME'] == 0) {
|
||||||
$sPathName = PATH_DOCUMENT . $_GET['APP_UID'] . PATH_SEP;
|
$sPathName = PATH_DOCUMENT . $_GET['APP_UID'] . PATH_SEP;
|
||||||
$sFileName = $sAppDocUid . '.' . $ext;
|
$sFileName = $sAppDocUid . '.' . $ext;
|
||||||
G::uploadFile( $_FILES['form']['tmp_name']['APP_DOC_FILENAME'], $sPathName, $sFileName );
|
G::uploadFile( $_FILES['form']['tmp_name']['APP_DOC_FILENAME'], $sPathName, $sFileName );
|
||||||
|
|
||||||
//Plugin Hook PM_UPLOAD_DOCUMENT for upload document
|
//Plugin Hook PM_UPLOAD_DOCUMENT for upload document
|
||||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||||
if ($oPluginRegistry->existsTrigger( PM_UPLOAD_DOCUMENT ) && class_exists( 'uploadDocumentData' )) {
|
if ($oPluginRegistry->existsTrigger( PM_UPLOAD_DOCUMENT ) && class_exists( 'uploadDocumentData' )) {
|
||||||
$oData['APP_UID'] = $_GET['APP_UID'];
|
$oData['APP_UID'] = $_GET['APP_UID'];
|
||||||
$documentData = new uploadDocumentData( $_GET['APP_UID'], $_SESSION['USER_LOGGED'], $sPathName . $sFileName, $aFields['APP_DOC_FILENAME'], $sAppDocUid );
|
$documentData = new uploadDocumentData( $_GET['APP_UID'], $_SESSION['USER_LOGGED'], $sPathName . $sFileName, $aFields['APP_DOC_FILENAME'], $sAppDocUid );
|
||||||
$oPluginRegistry->executeTriggers( PM_UPLOAD_DOCUMENT, $documentData );
|
$oPluginRegistry->executeTriggers( PM_UPLOAD_DOCUMENT, $documentData );
|
||||||
unlink( $sPathName . $sFileName );
|
unlink( $sPathName . $sFileName );
|
||||||
}
|
}
|
||||||
//end plugin
|
//end plugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//go to the next step
|
//go to the next step
|
||||||
if (! isset( $_POST['form']['MORE'] )) {
|
if (! isset( $_POST['form']['MORE'] )) {
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$aFields = $oCase->loadCase( $_GET['APP_UID'] );
|
$aFields = $oCase->loadCase( $_GET['APP_UID'] );
|
||||||
$aNextStep = $oCase->getNextSupervisorStep( $aFields['PRO_UID'], $_GET['position'], 'INPUT_DOCUMENT' );
|
$aNextStep = $oCase->getNextSupervisorStep( $aFields['PRO_UID'], $_GET['position'], 'INPUT_DOCUMENT' );
|
||||||
G::header( 'location: ' . 'cases_StepToReviseInputs?type=INPUT_DOCUMENT&INP_DOC_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' );
|
G::header( 'location: ' . 'cases_StepToReviseInputs?type=INPUT_DOCUMENT&INP_DOC_UID=' . $aNextStep['UID'] . '&position=' . $aNextStep['POSITION'] . '&APP_UID=' . $_GET['APP_UID'] . '&DEL_INDEX=' );
|
||||||
die();
|
die();
|
||||||
} else {
|
} else {
|
||||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
/* Render Error page */
|
/* Render Error page */
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,79 +1,79 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_Step.php
|
* cases_Step.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((int) $_SESSION['INDEX'] < 1) {
|
if ((int) $_SESSION['INDEX'] < 1) {
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
G::LoadClass( 'derivation' );
|
G::LoadClass( 'derivation' );
|
||||||
|
|
||||||
/* GET , POST & $_SESSION Vars */
|
/* GET , POST & $_SESSION Vars */
|
||||||
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
||||||
|
|
||||||
|
|
||||||
/* Menues */
|
/* Menues */
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
|
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||||
|
|
||||||
require_once 'classes/model/AppDocument.php';
|
require_once 'classes/model/AppDocument.php';
|
||||||
require_once 'classes/model/Users.php';
|
require_once 'classes/model/Users.php';
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$oAppDocument = new AppDocument();
|
$oAppDocument = new AppDocument();
|
||||||
$oAppDocument->Fields = $oAppDocument->load( $_GET['DOC'] );
|
$oAppDocument->Fields = $oAppDocument->load( $_GET['DOC'] );
|
||||||
$oo = $oAppDocument->load( $_GET['DOC'] );
|
$oo = $oAppDocument->load( $_GET['DOC'] );
|
||||||
|
|
||||||
$oUser = new Users();
|
$oUser = new Users();
|
||||||
$aUser = $oUser->load( $oAppDocument->Fields['USR_UID'] );
|
$aUser = $oUser->load( $oAppDocument->Fields['USR_UID'] );
|
||||||
$Fields['CREATOR'] = $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'];
|
$Fields['CREATOR'] = $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'];
|
||||||
|
|
||||||
$oAppDocument->Fields['VIEW'] = G::LoadTranslation( 'ID_OPEN' );
|
$oAppDocument->Fields['VIEW'] = G::LoadTranslation( 'ID_OPEN' );
|
||||||
$oAppDocument->Fields['FILE'] = 'cases_ShowDocument?a=' . $_GET['DOC'] . '&r=' . rand();
|
$oAppDocument->Fields['FILE'] = 'cases_ShowDocument?a=' . $_GET['DOC'] . '&r=' . rand();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ViewInputDocumentToRevise', '', G::array_merges( $Fields, $oAppDocument->Fields ), '' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ViewInputDocumentToRevise', '', G::array_merges( $Fields, $oAppDocument->Fields ), '' );
|
||||||
|
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
|
|
||||||
|
|||||||
@@ -1,56 +1,56 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_ToReviseOutputDocView.php
|
* cases_ToReviseOutputDocView.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
|
|
||||||
/* Menues */
|
/* Menues */
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
|
|
||||||
/* Prepare page before to show */
|
/* Prepare page before to show */
|
||||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
||||||
$oTemplatePower->prepare();
|
$oTemplatePower->prepare();
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|
||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addScriptCode( '
|
$oHeadPublisher->addScriptCode( '
|
||||||
var Cse = {};
|
var Cse = {};
|
||||||
Cse.panels = {};
|
Cse.panels = {};
|
||||||
@@ -64,37 +64,38 @@ leimnud.Package.Load("processmap",{Type:"file",Absolute:true,Path:"/jscore/proce
|
|||||||
leimnud.exec(leimnud.fix.memoryLeak);
|
leimnud.exec(leimnud.fix.memoryLeak);
|
||||||
leimnud.event.add(window,"load",function(){
|
leimnud.event.add(window,"load",function(){
|
||||||
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '});
|
' . (isset( $_SESSION['showCasesWindow'] ) ? 'try{' . $_SESSION['showCasesWindow'] . '}catch(e){}' : '') . '});
|
||||||
' );
|
' );
|
||||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||||
//
|
//
|
||||||
require_once 'classes/model/OutputDocument.php';
|
require_once 'classes/model/OutputDocument.php';
|
||||||
$oOutputDocument = new OutputDocument();
|
$oOutputDocument = new OutputDocument();
|
||||||
$aOD = $oOutputDocument->load( $_GET['UID'] );
|
$aOD = $oOutputDocument->load( $_GET['UID'] );
|
||||||
require_once 'classes/model/AppDocument.php';
|
require_once 'classes/model/AppDocument.php';
|
||||||
$oAppDocument = new AppDocument();
|
$oAppDocument = new AppDocument();
|
||||||
$aFields = $oAppDocument->load( $_GET['DOC'] );
|
$aFields = $oAppDocument->load( $_GET['DOC'] );
|
||||||
$aFields['VIEW'] = G::LoadTranslation( 'ID_OPEN' );
|
$aFields['VIEW'] = G::LoadTranslation( 'ID_OPEN' );
|
||||||
switch ($aOD['OUT_DOC_GENERATE']) {
|
switch ($aOD['OUT_DOC_GENERATE']) {
|
||||||
case 'DOC':
|
case 'DOC':
|
||||||
$aFields['FILE1'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=doc&random=' . rand();
|
$aFields['FILE1'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=doc&random=' . rand();
|
||||||
break;
|
break;
|
||||||
case 'PDF':
|
case 'PDF':
|
||||||
$aFields['FILE2'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=pdf&random=' . rand();
|
$aFields['FILE2'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=pdf&random=' . rand();
|
||||||
break;
|
break;
|
||||||
case 'BOTH':
|
case 'BOTH':
|
||||||
$aFields['FILE1'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=doc&random=' . rand();
|
$aFields['FILE1'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=doc&random=' . rand();
|
||||||
$aFields['FILE2'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=pdf&random=' . rand();
|
$aFields['FILE2'] = 'cases_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=pdf&random=' . rand();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ViewOutputDocumentToRevise', '', G::array_merges( $aOD, $aFields ), '' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ViewOutputDocumentToRevise', '', G::array_merges( $aOD, $aFields ), '' );
|
||||||
//
|
//
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
if (! isset( $_GET['ex'] ))
|
if (! isset( $_GET['ex'] )) {
|
||||||
$_GET['ex'] = 0;
|
$_GET['ex'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/*------------------------------ To Revise Routines ---------------------------*/
|
/*------------------------------ To Revise Routines ---------------------------*/
|
||||||
@@ -115,5 +116,6 @@ function setSelect()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -1,74 +1,74 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* cases_UsersReassign.php
|
* cases_UsersReassign.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
switch ($RBAC->userCanAccess( 'PM_REASSIGNCASE' )) {
|
switch ($RBAC->userCanAccess( 'PM_REASSIGNCASE' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
$aCases = array ();
|
$aCases = array ();
|
||||||
$aUsers = array ();
|
$aUsers = array ();
|
||||||
if (isset( $_POST['USERS'] ) && is_array( $_POST['USERS'] )) {
|
if (isset( $_POST['USERS'] ) && is_array( $_POST['USERS'] )) {
|
||||||
foreach ($_POST['USERS'] as $sKey => $sUser) {
|
foreach ($_POST['USERS'] as $sKey => $sUser) {
|
||||||
if ($sUser != '') {
|
if ($sUser != '') {
|
||||||
$oCase->reassignCase( $_POST['APPLICATIONS'][$sKey], $_POST['INDEXES'][$sKey], $_POST['USR_UID'], $sUser );
|
$oCase->reassignCase( $_POST['APPLICATIONS'][$sKey], $_POST['INDEXES'][$sKey], $_POST['USR_UID'], $sUser );
|
||||||
$aCases[] = $_POST['APPLICATIONS'][$sKey];
|
$aCases[] = $_POST['APPLICATIONS'][$sKey];
|
||||||
$aUsers[] = $sUser;
|
$aUsers[] = $sUser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
require_once 'classes/model/Users.php';
|
require_once 'classes/model/Users.php';
|
||||||
$oUser = new Users();
|
$oUser = new Users();
|
||||||
$sText = '';
|
$sText = '';
|
||||||
foreach ($aCases as $sKey => $sCase) {
|
foreach ($aCases as $sKey => $sCase) {
|
||||||
$aCase = $oCase->loadCase( $sCase );
|
$aCase = $oCase->loadCase( $sCase );
|
||||||
$aUser = $oUser->load( $aUsers[$sKey] );
|
$aUser = $oUser->load( $aUsers[$sKey] );
|
||||||
$sText .= '(' . $aCase['APP_NUMBER'] . ') ' . $aCase['TITLE'] . ' => ' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' (' . $aUser['USR_USERNAME'] . ')' . '<br />';
|
$sText .= '(' . $aCase['APP_NUMBER'] . ') ' . $aCase['TITLE'] . ' => ' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' (' . $aUser['USR_USERNAME'] . ')' . '<br />';
|
||||||
}
|
}
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_SUB_MENU = 'cases';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REASSIGN';
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REASSIGN';
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$aMessage['MESSAGE'] = $sText;
|
$aMessage['MESSAGE'] = $sText;
|
||||||
$aMessage['URL'] = 'cases_ReassignByUser?REASSIGN_USER=' . $_POST['USR_UID'];
|
$aMessage['URL'] = 'cases_ReassignByUser?REASSIGN_USER=' . $_POST['USR_UID'];
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ReassignShowInfo', '', $aMessage );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_ReassignShowInfo', '', $aMessage );
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
die( $oException->getMessage() );
|
die( $oException->getMessage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||||
case - 2:
|
case - 2:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
case - 1:
|
case - 1:
|
||||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||||
G::header( 'location: ../login/login' );
|
G::header( 'location: ../login/login' );
|
||||||
die();
|
die();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1)
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||||
return $RBAC_Response;
|
return $RBAC_Response;
|
||||||
|
}
|
||||||
$G_MAIN_MENU = 'processmaker';
|
|
||||||
$G_SUB_MENU = 'cases';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
$G_ID_MENU_SELECTED = 'CASES';
|
$G_SUB_MENU = 'cases';
|
||||||
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
$G_ID_MENU_SELECTED = 'CASES';
|
||||||
|
$G_ID_SUB_MENU_SELECTED = 'CASES_TO_REVISE';
|
||||||
$G_PUBLISH = new Publisher();
|
|
||||||
$G_PUBLISH->AddContent( 'view', 'cases/cases_toRevise' );
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_toReviseIn', '', '', array () );
|
$G_PUBLISH->AddContent( 'view', 'cases/cases_toRevise' );
|
||||||
|
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_toReviseIn', '', '', array () );
|
||||||
G::RenderPage( "publish-treeview" );
|
|
||||||
|
G::RenderPage( "publish-treeview" );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user