CODE Style changes
files modified: workflow/engine/methods/dynaforms/dynaforms_Editor.php
workflow/engine/methods/dynaforms/dynaforms_FlatEditor.php
workflow/engine/methods/events/eventList.php
workflow/engine/methods/events/eventsAjax.php
workflow/engine/methods/events/eventsCompleted.php
workflow/engine/methods/events/eventsDelete.php
workflow/engine/methods/events/eventsEdit.php
workflow/engine/methods/events/eventsEditAction.php
workflow/engine/methods/events/eventsPending.php
workflow/engine/methods/events/eventsSave.php
workflow/engine/methods/events/eventsSetupGraph.php
workflow/engine/methods/events/triggersSave.php
This commit is contained in:
@@ -20,9 +20,10 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
/*
|
||||
* Created on 21/12/2007
|
||||
*
|
||||
@@ -41,29 +42,23 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
$DYN_UID = (isset( $_GET['DYN_UID'] )) ? urldecode( $_GET['DYN_UID'] ) : '0';
|
||||
$_SESSION['PROCESS'] = $_GET['PRO_UID'];
|
||||
|
||||
|
||||
if ($PRO_UID==='0') return;
|
||||
$process = new Process;
|
||||
if ($process->exists($PRO_UID))
|
||||
{
|
||||
$process->load( $PRO_UID );
|
||||
if ($PRO_UID === '0') {
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
$process = new Process();
|
||||
if ($process->exists( $PRO_UID )) {
|
||||
$process->load( $PRO_UID );
|
||||
} else {
|
||||
//TODO
|
||||
print ("$PRO_UID doesn't exist, continue? yes") ;
|
||||
}
|
||||
|
||||
$dynaform = new dynaform();
|
||||
|
||||
$dynaform = new dynaform;
|
||||
|
||||
if ($dynaform->exists($DYN_UID))
|
||||
{
|
||||
if ($dynaform->exists( $DYN_UID )) {
|
||||
$dynaform->load( $DYN_UID );
|
||||
$_SESSION['CURRENT_DYN_UID'] = $DYN_UID;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
/* New Dynaform
|
||||
*
|
||||
*/
|
||||
@@ -71,11 +66,11 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
}
|
||||
|
||||
//creating SESSION for redirecting to new bpmn editor after closing Dynaform
|
||||
if(isset($_GET['bpmn']) && $_GET['bpmn'] == '1')
|
||||
{$_SESSION['dynaform_editor'] = 'bpmn';}
|
||||
else if(!isset($_GET['bpmn']))
|
||||
{$_SESSION['dynaform_editor'] = 'processmap';}
|
||||
|
||||
if (isset( $_GET['bpmn'] ) && $_GET['bpmn'] == '1') {
|
||||
$_SESSION['dynaform_editor'] = 'bpmn';
|
||||
} elseif (! isset( $_GET['bpmn'] )) {
|
||||
$_SESSION['dynaform_editor'] = 'processmap';
|
||||
}
|
||||
|
||||
$editor = new dynaformEditor( $_POST );
|
||||
$editor->file = $dynaform->getDynFilename();
|
||||
@@ -90,4 +85,3 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
||||
$editor->_setUseTemporalCopy( true );
|
||||
$editor->_render();
|
||||
|
||||
?>
|
||||
@@ -211,3 +211,4 @@ G::RenderPage( "publish", "raw" );
|
||||
return myPanel;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* eventList.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
//$req = $_POST['request'];
|
||||
$req = (isset($_POST['request']))? $_POST['request']:((isset($_REQUEST['request']))? $_REQUEST['request'] : 'No hayyy tal');
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* eventsCompleted.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events_Delete.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events_Edit.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events_EditAction.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* eventsPending.php
|
||||
*
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events_Save.php
|
||||
*
|
||||
|
||||
@@ -70,7 +70,6 @@ imagerectangle( $im, 0, 0, $w - 1, $h - 1, $gray );
|
||||
// imageline($im, $x +$mean, $h , $x + $mean, $h-1, $red);
|
||||
// }
|
||||
|
||||
|
||||
function drawTask ($im, $x1, $x2, $y, $h)
|
||||
{
|
||||
global $w;
|
||||
@@ -88,7 +87,6 @@ function drawTask ($im, $x1, $x2, $y, $h)
|
||||
}
|
||||
imagerectangle( $im, $x1, $y - 10, $x2, $y, $black );
|
||||
}
|
||||
;
|
||||
|
||||
function smallTask ($im, $x1, $x2, $y)
|
||||
{
|
||||
@@ -120,7 +118,6 @@ function drawMultipleTask ($im, $x1, $x2, $y, $h)
|
||||
smallTask( $im, $x1 + 1 * $terca, $x1 + 2 * $terca, $y - 6 );
|
||||
smallTask( $im, $x1 + 2 * $terca, $x1 + 3 * $terca, $y );
|
||||
}
|
||||
;
|
||||
|
||||
function drawTimerEvent ($im, $x1, $y1, $h)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* triggers_Save.php
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user