This commit is contained in:
Marco Antonio Nina Mena
2017-12-04 13:25:35 +00:00
committed by Julio Cesar Laura Avendaño
parent abe71a6ffe
commit 0d533e19d9
363 changed files with 23948 additions and 44623 deletions

View File

@@ -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');
}