ODE STYLE Formating workflow/engine/methods/messages/
Change format files in workflow/engine/methods/messages/
This commit is contained in:
@@ -20,12 +20,11 @@
|
|||||||
*
|
*
|
||||||
* 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.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||||
|
return $RBAC_Response;
|
||||||
|
}
|
||||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||||
|
|
||||||
G::LoadClass( 'message' );
|
G::LoadClass( 'message' );
|
||||||
|
|
||||||
$dbc = new DBConnection();
|
$dbc = new DBConnection();
|
||||||
@@ -33,8 +32,8 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
|||||||
|
|
||||||
$messages = new Message( $dbc );
|
$messages = new Message( $dbc );
|
||||||
|
|
||||||
if (!isset($_POST['MESS_UID'])) return;
|
if (! isset( $_POST['MESS_UID'] )) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$messages->Delete( $_POST['MESS_UID'] );
|
$messages->Delete( $_POST['MESS_UID'] );
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -20,10 +20,10 @@
|
|||||||
*
|
*
|
||||||
* 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.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||||
|
return $RBAC_Response;
|
||||||
|
}
|
||||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||||
|
|
||||||
G::LoadClass( 'message' );
|
G::LoadClass( 'message' );
|
||||||
@@ -40,4 +40,4 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
|||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'messages/messages_Edit', '', $messages->Fields, SYS_URI . 'messages/messages_Save' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'messages/messages_Edit', '', $messages->Fields, SYS_URI . 'messages/messages_Save' );
|
||||||
|
|
||||||
G::RenderPage( "publish", "raw" );
|
G::RenderPage( "publish", "raw" );
|
||||||
?>
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
*
|
*
|
||||||
* 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.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||||
|
return $RBAC_Response;
|
||||||
|
}
|
||||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||||
|
|
||||||
$G_MAIN_MENU = 'processmaker';
|
$G_MAIN_MENU = 'processmaker';
|
||||||
@@ -36,12 +36,10 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
|||||||
|
|
||||||
//Hardcode: UID of the library by default
|
//Hardcode: UID of the library by default
|
||||||
$PRO_UID = '746B734DC23311';
|
$PRO_UID = '746B734DC23311';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher();
|
||||||
$Fields=array( 'SYS_LANG' => SYS_LANG,
|
$Fields = array ('SYS_LANG' => SYS_LANG,'PRO_UID' => $PRO_UID);
|
||||||
'PRO_UID' => $PRO_UID );
|
|
||||||
|
|
||||||
$G_PUBLISH->AddContent( 'pagedtable', 'paged-table', 'messages/messages_List', '', $Fields, 'messages_Save' );
|
$G_PUBLISH->AddContent( 'pagedtable', 'paged-table', 'messages/messages_List', '', $Fields, 'messages_Save' );
|
||||||
|
|
||||||
G::RenderPage( "publish" );
|
G::RenderPage( "publish" );
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -20,10 +20,10 @@
|
|||||||
*
|
*
|
||||||
* 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.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||||
|
return $RBAC_Response;
|
||||||
|
}
|
||||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||||
|
|
||||||
G::LoadClass( 'message' );
|
G::LoadClass( 'message' );
|
||||||
@@ -33,7 +33,8 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
|
|||||||
|
|
||||||
$messages = new Message( $dbc );
|
$messages = new Message( $dbc );
|
||||||
|
|
||||||
if ($_POST['form']['MESS_UID']==='') unset($_POST['form']['MESS_UID']);
|
if ($_POST['form']['MESS_UID'] === '') {
|
||||||
|
unset( $_POST['form']['MESS_UID'] );
|
||||||
|
}
|
||||||
$messages->Save( $_POST['form'] );
|
$messages->Save( $_POST['form'] );
|
||||||
|
|
||||||
?>
|
|
||||||
Reference in New Issue
Block a user