HOR-4527
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
parent
abe71a6ffe
commit
0d533e19d9
@@ -25,22 +25,22 @@
|
||||
/*$access = $RBAC->userCanAccess('PM_FACTORY');
|
||||
if( $access != 1 ) {
|
||||
switch ($access) {
|
||||
case -2:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
break;
|
||||
case -2:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
break;
|
||||
case -1:
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
break;
|
||||
}
|
||||
exit();
|
||||
}*/
|
||||
//next two variables store the current process uid and the last processmap used
|
||||
//print_r ($_SESSION['PROCESS'] );
|
||||
//print_r ($_SESSION['PROCESSMAP'] );
|
||||
$RBAC->requirePermissions( 'PM_FACTORY' );
|
||||
$RBAC->requirePermissions('PM_FACTORY');
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'process';
|
||||
@@ -48,13 +48,13 @@ $G_ID_MENU_SELECTED = 'PROCESSES';
|
||||
$G_ID_SUB_MENU_SELECTED = '-';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile('/jscore/src/PM.js');
|
||||
$oHeadPublisher->addScriptFile('/jscore/src/Sessions.js');
|
||||
$G_PUBLISH->AddContent( 'view', 'processes/mainLoad' );
|
||||
|
||||
if (isset( $_GET['type'] ))
|
||||
G::RenderPage( "publishBlank", "blank" );
|
||||
else
|
||||
G::RenderPage( "publish" );
|
||||
$G_PUBLISH->AddContent('view', 'processes/mainLoad');
|
||||
|
||||
if (isset($_GET['type'])) {
|
||||
G::RenderPage("publishBlank", "blank");
|
||||
} else {
|
||||
G::RenderPage("publish");
|
||||
}
|
||||
|
||||
@@ -25,34 +25,33 @@
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
//$oHeadPublisher = & headPublisher::getSingleton();
|
||||
global $RBAC;
|
||||
$RBAC->requirePermissions( 'PM_FACTORY' );
|
||||
$RBAC->requirePermissions('PM_FACTORY');
|
||||
|
||||
$conf = new Configurations();
|
||||
|
||||
$pmVersion = (preg_match("/^([\d\.]+).*$/", System::getVersion(), $arrayMatch))? $arrayMatch[1] : ""; //Otherwise: Branch master
|
||||
$pmVersion = (preg_match("/^([\d\.]+).*$/", System::getVersion(), $arrayMatch)) ? $arrayMatch[1] : ""; //Otherwise: Branch master
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (true) {
|
||||
$arrayFlagImportFileExtension = array("pm", "pmx", "pmx2", "bpmn");
|
||||
} else {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$arrayFlagImportFileExtension = array("pm", "pmx", "bpmn");
|
||||
/*----------------------------------********---------------------------------*/
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
$arrayFlagMenuNewOption = array("pm" => true, "bpmn" => true);
|
||||
$arrayFlagMenuNewOption = array("pm" => true, "bpmn" => true);
|
||||
|
||||
if ($pmVersion != "") {
|
||||
$arrayFlagImportFileExtension = (version_compare($pmVersion . "", "3", ">="))? $arrayFlagImportFileExtension : array("pm");
|
||||
$arrayFlagMenuNewOption = (version_compare($pmVersion . "", "3", ">="))? array("bpmn" => true) : array("pm" => true);
|
||||
$arrayFlagImportFileExtension = (version_compare($pmVersion . "", "3", ">=")) ? $arrayFlagImportFileExtension : array("pm");
|
||||
$arrayFlagMenuNewOption = (version_compare($pmVersion . "", "3", ">=")) ? array("bpmn" => true) : array("pm" => true);
|
||||
}
|
||||
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
|
||||
$arrayMenuNewOptionPlugin = array();
|
||||
$arrayMenuNewOptionPlugin = array();
|
||||
$arrayContextMenuOptionPlugin = array();
|
||||
|
||||
foreach ($oPluginRegistry->getDesignerMenu() as $value) {
|
||||
@@ -79,12 +78,12 @@ foreach ($oPluginRegistry->getDesignerMenu() as $value) {
|
||||
}
|
||||
}
|
||||
|
||||
$oHeadPublisher->addExtJsScript( 'processes/main', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'processes/main' ); //adding a html file .html.
|
||||
$oHeadPublisher->addExtJsScript('processes/main', true); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent('processes/main'); //adding a html file .html.
|
||||
|
||||
$partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false;
|
||||
$oHeadPublisher->assign( 'PARTNER_FLAG', $partnerFlag );
|
||||
$oHeadPublisher->assign( 'pageSize', $conf->getEnvSetting( 'casesListRowNumber' ) );
|
||||
$oHeadPublisher->assign('PARTNER_FLAG', $partnerFlag);
|
||||
$oHeadPublisher->assign('pageSize', $conf->getEnvSetting('casesListRowNumber'));
|
||||
$oHeadPublisher->assign("arrayFlagImportFileExtension", $arrayFlagImportFileExtension);
|
||||
$oHeadPublisher->assign("arrayFlagMenuNewOption", $arrayFlagMenuNewOption);
|
||||
$oHeadPublisher->assign("arrayMenuNewOptionPlugin", $arrayMenuNewOptionPlugin);
|
||||
@@ -100,27 +99,26 @@ $oHeadPublisher->assign('credentials', base64_encode(G::json_encode($designer->g
|
||||
|
||||
$deleteCasesFlag = false;
|
||||
global $RBAC;
|
||||
if($RBAC->userCanAccess('PM_DELETE_PROCESS_CASES') === 1) {
|
||||
if ($RBAC->userCanAccess('PM_DELETE_PROCESS_CASES') === 1) {
|
||||
$deleteCasesFlag = true;
|
||||
}
|
||||
$oHeadPublisher->assign('deleteCasesFlag', $deleteCasesFlag);
|
||||
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$callBackFile = $oPluginRegistry->getImportProcessCallback();
|
||||
$file = false;
|
||||
if(sizeof($callBackFile)) {
|
||||
$file = false;
|
||||
if (count($callBackFile)) {
|
||||
$file = $callBackFile[0]->getCallBackFile() != "" ? $callBackFile[0]->getCallBackFile() : false;
|
||||
}
|
||||
$oHeadPublisher->assign("importProcessCallbackFile", $file);
|
||||
|
||||
$isGranularFeature = false;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=')) {
|
||||
$isGranularFeature = true;
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oHeadPublisher->assign("isGranularFeature", $isGranularFeature);
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
require_once 'classes/model/Process.php';
|
||||
|
||||
$start = isset( $_POST['start'] ) ? $_POST['start'] : 0;
|
||||
$limit = isset( $_POST['limit'] ) ? $_POST['limit'] : '';
|
||||
$dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'ASC';
|
||||
$sort = isset( $_POST['sort'] ) ? $_POST['sort'] : '';
|
||||
$start = isset($_POST['start']) ? $_POST['start'] : 0;
|
||||
$limit = isset($_POST['limit']) ? $_POST['limit'] : '';
|
||||
$dir = isset($_POST['dir']) ? $_POST['dir'] : 'ASC';
|
||||
$sort = isset($_POST['sort']) ? $_POST['sort'] : '';
|
||||
|
||||
$oProcess = new Process();
|
||||
$oProcess->dir = $dir;
|
||||
@@ -36,19 +36,20 @@ $oProcess->sort = $sort;
|
||||
$memkey = 'no memcache';
|
||||
$memcacheUsed = 'not used';
|
||||
$totalCount = 0;
|
||||
if (isset( $_POST['category'] ) && $_POST['category'] !== '<reset>') {
|
||||
if (isset( $_POST['processName'] ))
|
||||
$proData = $oProcess->getAllProcesses( $start, $limit, $_POST['category'], $_POST['processName'], true, false, $_SESSION["USER_LOGGED"]);
|
||||
else
|
||||
$proData = $oProcess->getAllProcesses( $start, $limit, $_POST['category'], null, true, false, $_SESSION["USER_LOGGED"]);
|
||||
if (isset($_POST['category']) && $_POST['category'] !== '<reset>') {
|
||||
if (isset($_POST['processName'])) {
|
||||
$proData = $oProcess->getAllProcesses($start, $limit, $_POST['category'], $_POST['processName'], true, false, $_SESSION["USER_LOGGED"]);
|
||||
} else {
|
||||
$proData = $oProcess->getAllProcesses($start, $limit, $_POST['category'], null, true, false, $_SESSION["USER_LOGGED"]);
|
||||
}
|
||||
} else {
|
||||
if (isset( $_POST['processName'] )) {
|
||||
if (isset($_POST['processName'])) {
|
||||
$memkey = 'processList-' . $start . '-' . $limit . '-' . $_POST['processName'];
|
||||
$memcacheUsed = 'yes';
|
||||
$proData = $memcache->get( $memkey );
|
||||
$proData = $memcache->get($memkey);
|
||||
if ($proData === false) {
|
||||
$proData = $oProcess->getAllProcesses( $start, $limit, null, $_POST['processName'], true, false, $_SESSION["USER_LOGGED"]);
|
||||
$memcache->set( $memkey, $proData, PMmemcached::ONE_HOUR );
|
||||
$proData = $oProcess->getAllProcesses($start, $limit, null, $_POST['processName'], true, false, $_SESSION["USER_LOGGED"]);
|
||||
$memcache->set($memkey, $proData, PMmemcached::ONE_HOUR);
|
||||
$totalCount = count($proData);
|
||||
$proData = array_splice($proData, $start, $limit);
|
||||
$memcacheUsed = 'no';
|
||||
@@ -61,18 +62,18 @@ if (isset( $_POST['category'] ) && $_POST['category'] !== '<reset>') {
|
||||
$memkey = 'processList-allProcesses-' . $start . '-' . $limit;
|
||||
$memkeyTotal = $memkey . '-total';
|
||||
$memcacheUsed = 'yes';
|
||||
if (($proData = $memcache->get( $memkey )) === false || ($totalCount = $memcache->get( $memkeyTotal )) === false) {
|
||||
$proData = $oProcess->getAllProcesses( $start, $limit, null, null, true, false, $_SESSION["USER_LOGGED"]);
|
||||
if (($proData = $memcache->get($memkey)) === false || ($totalCount = $memcache->get($memkeyTotal)) === false) {
|
||||
$proData = $oProcess->getAllProcesses($start, $limit, null, null, true, false, $_SESSION["USER_LOGGED"]);
|
||||
$totalCount = count($proData);
|
||||
$proData = array_splice($proData, $start, $limit);
|
||||
$memcache->set( $memkey, $proData, PMmemcached::ONE_HOUR );
|
||||
$memcache->set( $memkeyTotal, $totalCount, PMmemcached::ONE_HOUR );
|
||||
$memcache->set($memkey, $proData, PMmemcached::ONE_HOUR);
|
||||
$memcache->set($memkeyTotal, $totalCount, PMmemcached::ONE_HOUR);
|
||||
$memcacheUsed = 'no';
|
||||
} else {
|
||||
$proData = $oProcess->orderMemcache($proData, $start, $limit);
|
||||
$proData = $oProcess->orderMemcache($proData, $start, $limit);
|
||||
$totalCount = $proData->totalCount;
|
||||
$proData = $proData->dataMemcache;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$r = new stdclass();
|
||||
@@ -81,4 +82,4 @@ $r->memcache = $memcacheUsed;
|
||||
$r->data = \ProcessMaker\Util\DateTime::convertUtcToTimeZone($proData);
|
||||
$r->totalCount = $totalCount;
|
||||
|
||||
echo G::json_encode( $r );
|
||||
echo G::json_encode($r);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -22,22 +22,22 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
global $RBAC;
|
||||
$access = $RBAC->userCanAccess( 'PM_FACTORY' );
|
||||
$access = $RBAC->userCanAccess('PM_FACTORY');
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
}
|
||||
@@ -47,14 +47,14 @@ if ($access != 1) {
|
||||
* ***********************
|
||||
*/
|
||||
|
||||
function parseItemArray ($array)
|
||||
function parseItemArray($array)
|
||||
{
|
||||
if (! isset( $array->item ) && ! is_array( $array )) {
|
||||
if (! isset($array->item) && ! is_array($array)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$result = array ();
|
||||
if (isset( $array->item )) {
|
||||
$result = array();
|
||||
if (isset($array->item)) {
|
||||
foreach ($array->item as $key => $value) {
|
||||
$result[$value->key] = $value->value;
|
||||
}
|
||||
@@ -71,29 +71,29 @@ try {
|
||||
$oProcess->ws_open_public();
|
||||
|
||||
$result = $oProcess->ws_ProcessList();
|
||||
$processes[] = array ('uid' => 'char','name' => 'char','age' => 'integer','balance' => 'float'
|
||||
$processes[] = array('uid' => 'char','name' => 'char','age' => 'integer','balance' => 'float'
|
||||
);
|
||||
|
||||
if ($result->status_code == 0 && isset( $result->processes )) {
|
||||
if ($result->status_code == 0 && isset($result->processes)) {
|
||||
foreach ($result->processes as $key => $val) {
|
||||
$process = parseItemArray( $val );
|
||||
$process = parseItemArray($val);
|
||||
$processes[] = $process;
|
||||
}
|
||||
}
|
||||
$_DBArray['processes'] = $processes;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'processes' );
|
||||
$c = new Criteria('dbarray');
|
||||
$c->setDBArrayTable('processes');
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'processes/processes_ListPublic', $c );
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'processes/processes_ListPublic', $c);
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
//$oHeadPublisher->addScriptCode('leimnud.Package.Load("newAccount",{Type:"file",Absolute:true,Path:"/jscore/newAccount.js"});');
|
||||
$oHeadPublisher->addScriptCode( "
|
||||
$oHeadPublisher->addScriptCode("
|
||||
var oPanel;
|
||||
var oPanel2;
|
||||
var showDetails = function(sUID) {
|
||||
@@ -124,11 +124,11 @@ try {
|
||||
}.extend(this);
|
||||
oRPC.make();
|
||||
};
|
||||
" );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
");
|
||||
G::RenderPage('publish', 'blank');
|
||||
} catch (Exception $e) {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
}
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
|
||||
G::RenderPage('publish', 'blank');
|
||||
}
|
||||
|
||||
@@ -22,22 +22,22 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
global $RBAC;
|
||||
$access = $RBAC->userCanAccess( 'PM_FACTORY' );
|
||||
$access = $RBAC->userCanAccess('PM_FACTORY');
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die();
|
||||
break;
|
||||
}
|
||||
@@ -50,7 +50,8 @@ $criteria->add(ProcessPeer::PRO_UID, $_GET["PRO_UID"], Criteria::EQUAL);
|
||||
|
||||
$criteria->add(
|
||||
$criteria->getNewCriterion(ProcessPeer::PRO_CREATE_USER, $_SESSION["USER_LOGGED"], Criteria::EQUAL)->addOr(
|
||||
$criteria->getNewCriterion(ProcessPeer::PRO_TYPE_PROCESS, "PUBLIC", Criteria::EQUAL))
|
||||
$criteria->getNewCriterion(ProcessPeer::PRO_TYPE_PROCESS, "PUBLIC", Criteria::EQUAL)
|
||||
)
|
||||
);
|
||||
|
||||
$rsCriteria = ProcessPeer::doSelectRS($criteria);
|
||||
@@ -66,7 +67,7 @@ $processUID = $_GET['PRO_UID'];
|
||||
$_SESSION['PROCESS'] = $processUID;
|
||||
$_SESSION['PROCESSMAP'] = 'LEIMNUD';
|
||||
|
||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'processes/processes_Map.html' );
|
||||
$oTemplatePower = new TemplatePower(PATH_TPL . 'processes/processes_Map.html');
|
||||
$oTemplatePower->prepare();
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
@@ -75,20 +76,20 @@ $G_SUB_MENU = 'processes';
|
||||
$G_ID_SUB_MENU_SELECTED = '_';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||
$G_PUBLISH->AddContent('template', '', '', '', $oTemplatePower);
|
||||
|
||||
$consolidated = 0;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||
$consolidated = 1;
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile( '/jscore/dbConnections/main.js' );
|
||||
$oHeadPublisher->addScriptCode( '
|
||||
var maximunX = ' . ProcessMap::getMaximunTaskX( $processUID ) . ';
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile('/jscore/dbConnections/main.js');
|
||||
$oHeadPublisher->addScriptCode('
|
||||
var maximunX = ' . ProcessMap::getMaximunTaskX($processUID) . ';
|
||||
var leimnud = new maborak();
|
||||
leimnud.make();
|
||||
leimnud.Package.Load("rpc,drag,drop,panel,app,validator,fx,dom,abbr",{Instance:leimnud,Type:"module"});
|
||||
@@ -111,9 +112,10 @@ $oHeadPublisher->addScriptCode( '
|
||||
}
|
||||
Pm.make();
|
||||
});
|
||||
var changesSavedLabel = "' . addslashes( G::LoadTranslation( 'ID_SAVED_SUCCESSFULLY' ) ) . '";' );
|
||||
var changesSavedLabel = "' . addslashes(G::LoadTranslation('ID_SAVED_SUCCESSFULLY')) . '";');
|
||||
|
||||
if (! isset( $_GET['raw'] ))
|
||||
G::RenderPage( 'publish', 'green-submenu' );
|
||||
else
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
if (! isset($_GET['raw'])) {
|
||||
G::RenderPage('publish', 'green-submenu');
|
||||
} else {
|
||||
G::RenderPage('publish', 'raw');
|
||||
}
|
||||
|
||||
@@ -23,28 +23,18 @@
|
||||
*/
|
||||
|
||||
if ($_GET['NAVIGATOR'] == 'ie') {
|
||||
$oForm = new Form( 'processes/processes_UploadFilesForm', '', SYS_LANG );
|
||||
$oForm = new Form('processes/processes_UploadFilesForm', '', SYS_LANG);
|
||||
$oForm->action = 'processes_UploadFiles';
|
||||
$oForm->values = array ('PRO_UID' => $_GET['PRO_UID'],'MAIN_DIRECTORY' => $_GET['MAIN_DIRECTORY'],'CURRENT_DIRECTORY' => $_GET['CURRENT_DIRECTORY']
|
||||
$oForm->values = array('PRO_UID' => $_GET['PRO_UID'],'MAIN_DIRECTORY' => $_GET['MAIN_DIRECTORY'],'CURRENT_DIRECTORY' => $_GET['CURRENT_DIRECTORY']
|
||||
);
|
||||
echo '<link rel="stylesheet" type="text/css" href="/skins/' . SYS_SKIN . '/style.css"/>' . $oForm->render( PATH_CORE . 'templates/xmlform.html', $scriptCode = '' );
|
||||
|
||||
echo '<link rel="stylesheet" type="text/css" href="/skins/' . SYS_SKIN . '/style.css"/>' . $oForm->render(PATH_CORE . 'templates/xmlform.html', $scriptCode = '');
|
||||
} else {
|
||||
$params = Array ('PRO_UID' => $_GET['PRO_UID'],'MAIN_DIRECTORY' => $_GET['MAIN_DIRECTORY'],'CURRENT_DIRECTORY' => $_GET['CURRENT_DIRECTORY']
|
||||
$params = array('PRO_UID' => $_GET['PRO_UID'],'MAIN_DIRECTORY' => $_GET['MAIN_DIRECTORY'],'CURRENT_DIRECTORY' => $_GET['CURRENT_DIRECTORY']
|
||||
);
|
||||
|
||||
$_SESSION['processes_upload'] = $params;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$G_PUBLISH->AddContent( 'view', 'processes/processes_Upload' );
|
||||
G::RenderPage( "publish", "raw" );
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
$G_PUBLISH->AddContent('view', 'processes/processes_Upload');
|
||||
G::RenderPage("publish", "raw");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -32,27 +32,26 @@
|
||||
|
||||
try {
|
||||
//$oJSON = new Services_JSON();
|
||||
$stdObj = Bootstrap::json_decode( stripslashes( $_POST['data'] ) );
|
||||
if (isset( $stdObj->pro_uid ))
|
||||
$stdObj = Bootstrap::json_decode(stripslashes($_POST['data']));
|
||||
if (isset($stdObj->pro_uid)) {
|
||||
$sProUid = $stdObj->pro_uid;
|
||||
else
|
||||
throw (new Exception( 'the process uid is not defined!.' ));
|
||||
} else {
|
||||
throw (new Exception('the process uid is not defined!.'));
|
||||
}
|
||||
|
||||
$oProcessMap = new ProcessMap();
|
||||
$c = $oProcessMap->listProcessesUser( $sProUid );
|
||||
$c = $oProcessMap->listProcessesUser($sProUid);
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile( '/jscore/processmap/core/processUser.js' );
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile('/jscore/processmap/core/processUser.js');
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'processes/processes_User', $c, array ('PRO_UID' => $sProUid
|
||||
) );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'processes/processes_User', $c, array('PRO_UID' => $sProUid
|
||||
));
|
||||
G::RenderPage('publish', 'raw');
|
||||
} catch (Exception $e) {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
|
||||
G::RenderPage('publish', 'raw');
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user