Merge remote branch 'upstream/master'
This commit is contained in:
@@ -24,16 +24,13 @@ function getLoadTreeMenuData ()
|
||||
$oMenu->load( '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_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_REASSIGN'=>'to_reassign'
|
||||
;
|
||||
|
||||
$list = array ();
|
||||
$list = array ();
|
||||
$list['count'] = ' ';
|
||||
|
||||
$empty = array ();
|
||||
@@ -64,8 +61,7 @@ function getLoadTreeMenuData ()
|
||||
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
||||
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
||||
} 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]] )) {
|
||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]]['cases_count'] = $aCount[$aTypesID[$oMenu->Id[$i]]]['count'];
|
||||
@@ -131,8 +127,7 @@ function getProcess ()
|
||||
$aTypesID['CASES_SELFSERVICE'] = 'selfservice';
|
||||
//$aTypesID['CASES_TO_REVISE'] = 'to_revise';
|
||||
//$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]
|
||||
), $userId, true );
|
||||
@@ -188,8 +183,7 @@ function getAllCounters ()
|
||||
$aCount = $ApplicationSolrIndex->getCasesCount( $userUid );
|
||||
|
||||
//get paused count
|
||||
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'
|
||||
), $userUid );
|
||||
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'), $userUid );
|
||||
|
||||
$aCount = array_merge( $aCount, $aCountMissing );
|
||||
} else {
|
||||
|
||||
@@ -1,50 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* buscador.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
$frm = $HTTP_GET_VARS;
|
||||
|
||||
?>
|
||||
|
||||
<h1>demo de buscador</h1>
|
||||
<form method=post action="buscador2.php">
|
||||
<input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>" >
|
||||
<input type=hidden name=tipo value="<?php echo $frm['tipo'] ?>" >
|
||||
Buscador tipo : <?php echo $frm['tipo'] ?><br>
|
||||
|
||||
<table><tr><td>
|
||||
curso</td><td>
|
||||
<select name=curso>
|
||||
<option value="curso1">Curso 1</option>
|
||||
<option value="curso2">Curso 2</option>
|
||||
<option value="curso3">Curso 3</option>
|
||||
<option value="curso4">Curso 4</4option>
|
||||
<option value="curso5">Curso 5</option>
|
||||
</td></tr>
|
||||
<tr><td colspan=2>
|
||||
<input type=submit ></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* buscador.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
$frm = $HTTP_GET_VARS;
|
||||
|
||||
?>
|
||||
|
||||
<h1>demo de buscador</h1>
|
||||
<form method=post action="buscador2.php">
|
||||
<input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>"> <input
|
||||
type=hidden name=tipo value="<?php echo $frm['tipo'] ?>">
|
||||
Buscador tipo : <?php echo $frm['tipo'] ?><br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>curso</td>
|
||||
<td><select name=curso>
|
||||
<option value="curso1">Curso 1</option>
|
||||
<option value="curso2">Curso 2</option>
|
||||
<option value="curso3">Curso 3</option>
|
||||
<option value="curso4">Curso 4</4option>
|
||||
|
||||
<option value="curso5">Curso 5</option></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2><input type=submit></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -1,38 +1,32 @@
|
||||
demo de buscador<br>
|
||||
/**
|
||||
* buscador2.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
demo de buscador
|
||||
<br>
|
||||
/** * buscador2.php * * ProcessMaker Open Source Edition * Copyright (C)
|
||||
2004 - 2008 Colosa Inc.23 * * This program is free software: you can
|
||||
redistribute it and/or modify * it under the terms of the GNU Affero
|
||||
General Public License as * published by the Free Software Foundation,
|
||||
either version 3 of the * License, or (at your option) any later
|
||||
version. * * This program is distributed in the hope that it will be
|
||||
useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU
|
||||
Affero General Public License for more details. * * 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 />
|
||||
.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
<?php
|
||||
$frm = $HTTP_POST_VARS;
|
||||
|
||||
$dbc = new dbconnection();
|
||||
$ses = new DBSession($dbc);
|
||||
$sql = "update tickets set tipo = ' " . $frm['tipo'] ."', resultado = ' " . $frm['curso'] . "' where ticket = '" . $frm['ticket'] ."' ";
|
||||
$ses->Execute ( $sql );
|
||||
<?php
|
||||
$frm = $HTTP_POST_VARS;
|
||||
|
||||
$dbc = new dbconnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
$sql = "update tickets set tipo = ' " . $frm['tipo'] . "', resultado = ' " . $frm['curso'] . "' where ticket = '" . $frm['ticket'] . "' ";
|
||||
$ses->Execute( $sql );
|
||||
?>
|
||||
<script language = "JavaScript">
|
||||
<script language="JavaScript">
|
||||
window.close();
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -57,9 +57,6 @@ function cal_popup1 (str_datetime) {
|
||||
);
|
||||
obj_calwindow.opener = window;
|
||||
obj_calwindow.focus();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// timestamp generating function
|
||||
@@ -160,3 +157,4 @@ function cal_error (str_message) {
|
||||
alert (str_message);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,10 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
td {font-family: Tahoma, Verdana, sans-serif; font-size: 12px;}
|
||||
td {
|
||||
font-family: Tahoma, Verdana, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript">
|
||||
|
||||
@@ -101,45 +104,56 @@ function set_datetime(n_datetime, b_close) {
|
||||
|
||||
</script>
|
||||
|
||||
<php
|
||||
$ARR_MONTHS = array ( "January", "February", "March", "April", "May", "June",
|
||||
<php $ARR_MONTHS=array
|
||||
( "January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December");
|
||||
$ARR_WEEKDAYS = array ( "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" );
|
||||
$NUM_WEEKSTART = 1; //day week starts from (normally 0-Su or 1-Mo)
|
||||
$ARR_WEEKDAYS=array
|
||||
( "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" );
|
||||
$NUM_WEEKSTART=1; //day
|
||||
week starts from (normally 0-Suor 1-Mo)
|
||||
|
||||
?>
|
||||
<table class="clsOTable" cellspacing="0" border="0" width="100%">
|
||||
<tr><td bgcolor="#4682B4">
|
||||
<table cellspacing="1" cellpadding="3" border="0" width="100%">
|
||||
<tr><td colspan="7"><table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td> +(obj_caller&&obj_caller.year_scroll?'<a href="javascript:set_datetime('+dt_prev_year.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16" border="0" alt="previous year"></a> ':'')+'
|
||||
<a href="javascript:set_datetime('+dt_prev_month.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'prev.gif" width="16" height="16" border="0" alt="previous month"></a>
|
||||
</td>
|
||||
<tr>
|
||||
<td bgcolor="#4682B4">
|
||||
<table cellspacing="1" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="7"><table cellspacing="0" cellpadding="0" border="0"
|
||||
width="100%">
|
||||
<tr>
|
||||
<td>+(obj_caller&&obj_caller.year_scroll?'<a
|
||||
href="javascript:set_datetime('+dt_prev_year.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16"
|
||||
border="0" alt="previous year"></a> ':'')+' <a
|
||||
href="javascript:set_datetime('+dt_prev_month.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'prev.gif" width="16" height="16"
|
||||
border="0" alt="previous month"></a>
|
||||
</td>
|
||||
|
||||
<td align="center" width="100%">
|
||||
<font color="#ffffff"> +ARR_MONTHS[dt_current.getMonth()]+' '+dt_current.getFullYear() </font></td>
|
||||
<td><a href="javascript:set_datetime('+dt_next_month.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'next.gif" width="16" height="16" border="0" alt="next month"></a>
|
||||
'+(obj_caller && obj_caller.year_scroll?'
|
||||
<a href="javascript:set_datetime('+dt_next_year.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'next_year.gif" width="16" height="16" border="0" alt="next year">
|
||||
</a>':'')+'
|
||||
</td>'
|
||||
);
|
||||
|
||||
</tr>
|
||||
</table></td></tr>
|
||||
<tr>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
// print weekdays titles
|
||||
for ($n=0; $n<7; $n++)
|
||||
print "<td bgcolor='#87cefa' align='center'><font color='#ffffff'>" . $ARR_WEEKDAYS[ (NUM_WEEKSTART+n)%7] . "</font></td>";
|
||||
print "</tr>";
|
||||
<td align="center" width="100%"><font color="#ffffff">
|
||||
+ARR_MONTHS[dt_current.getMonth()]+'
|
||||
'+dt_current.getFullYear() </font></td>
|
||||
<td><a
|
||||
href="javascript:set_datetime('+dt_next_month.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'next.gif" width="16" height="16"
|
||||
border="0" alt="next month"></a> '+(obj_caller &&
|
||||
obj_caller.year_scroll?' <a
|
||||
href="javascript:set_datetime('+dt_next_year.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'next_year.gif" width="16" height="16"
|
||||
border="0" alt="next year">
|
||||
</a>':'')+'</td>' );
|
||||
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
// print weekdays titles
|
||||
for ($n = 0; $n < 7; $n ++)
|
||||
print "<td bgcolor='#87cefa' align='center'><font color='#ffffff'>" . $ARR_WEEKDAYS[(NUM_WEEKSTART + n) % 7] . "</font></td>";
|
||||
print "</tr>";
|
||||
|
||||
?>
|
||||
// print calendar table
|
||||
|
||||
@@ -175,11 +189,15 @@ while (dt_current_day.getMonth() == dt_current.getMonth() ||
|
||||
// print row footer
|
||||
document.write('</tr>');
|
||||
}
|
||||
if (obj_caller && obj_caller.time_comp)
|
||||
if (obj_caller && obj_caller.time_comp) {
|
||||
document.write('<form onsubmit="javascript:set_datetime('+dt_current.valueOf()+', true)" name="cal"><tr><td colspan="7" bgcolor="#87CEFA"><font color="White" face="tahoma, verdana" size="2">Time: <input type="text" name="time" value="'+obj_caller.gen_time(this.dt_current)+'" size="8" maxlength="8"></font></td></tr></form>');
|
||||
}
|
||||
</script>
|
||||
</table></tr></td>
|
||||
|
||||
</table>
|
||||
|
||||
</tr>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
@@ -12,69 +12,59 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
$aFields = getDynaformsVars($_POST['sProcess'], true, isset($_POST['bIncMulSelFields']) ? $_POST['bIncMulSelFields'] : 0);
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||
|
||||
$sHTML = '<select name="_Var_Form_" id="_Var_Form_" size="' . count($aFields) . '" style="width:100%;' . (! isset($_POST['sNoShowLeyend']) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
||||
foreach ( $aFields as $aField ) {
|
||||
$sHTML .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
||||
$sHTML = '<select name="_Var_Form_" id="_Var_Form_" size="' . count( $aFields ) . '" style="width:100%;' . (! isset( $_POST['sNoShowLeyend'] ) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
||||
foreach ($aFields as $aField) {
|
||||
$sHTML .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
||||
}
|
||||
|
||||
$aRows[0] = Array (
|
||||
'fieldname' => 'char',
|
||||
'variable' => 'char',
|
||||
'type' => 'type',
|
||||
'label' => 'char'
|
||||
$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'
|
||||
);
|
||||
foreach ( $aFields as $aField ) {
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
);
|
||||
foreach ($aFields as $aField) {
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
|
||||
$sHTML .= '</select>';
|
||||
$sHTML = '';
|
||||
|
||||
if (! isset($_POST['sNoShowLeyend'])) {
|
||||
$sHTML = '<table width="100%">';
|
||||
$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2"><b>Variables cast prefix</b></td></tr>';
|
||||
if (isset($_POST['sType'])) {
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESC') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_NONEC') . '</td></tr>';
|
||||
/*$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EURL') . '</td></tr>';
|
||||
if (! isset( $_POST['sNoShowLeyend'] )) {
|
||||
$sHTML = '<table width="100%">';
|
||||
$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2"><b>Variables cast prefix</b></td></tr>';
|
||||
if (isset( $_POST['sType'] )) {
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_ESC' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_NONEC' ) . '</td></tr>';
|
||||
/*$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EURL') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EVAL') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCJS') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCSJS') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_FUNCTION') . '</td></tr>';*/
|
||||
} else {
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@@</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_TO_STRING') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@#</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_TO_FLOAT') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@%</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_TO_INTEGER') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@?</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_TO_URL') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@$</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_SQL_ESCAPE') . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@=</td><td class="module_app_input___gray">' . G::LoadTranslation('ID_REPLACE_WITHOUT_CHANGES') . '</td></tr>';
|
||||
}
|
||||
$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2"> </td></tr>';
|
||||
//$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2">' . G::LoadTranslation('ID_DOCLICK') . '</td></tr>';
|
||||
$sHTML .= '</table>';
|
||||
} else {
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@@</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_STRING' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@#</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@%</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_INTEGER' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@?</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_URL' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@$</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_SQL_ESCAPE' ) . '</td></tr>';
|
||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@=</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_REPLACE_WITHOUT_CHANGES' ) . '</td></tr>';
|
||||
}
|
||||
$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2"> </td></tr>';
|
||||
//$sHTML .= '<tr><td align="center" class="module_app_input___gray" colspan="2">' . G::LoadTranslation('ID_DOCLICK') . '</td></tr>';
|
||||
$sHTML .= '</table>';
|
||||
} else {
|
||||
// please don't remove this definition if there isn't some sort of html tags before the css styles aren't loaded in IE
|
||||
$sHTML = '<table width="100%">';
|
||||
$sHTML .= '</table>';
|
||||
// please don't remove this definition if there isn't some sort of html tags before the css styles aren't loaded in IE
|
||||
$sHTML = '<table width="100%">';
|
||||
$sHTML .= '</table>';
|
||||
}
|
||||
$sStyle = " <style type=\"text/css\">
|
||||
|
||||
@@ -126,37 +116,37 @@ background: #fff; /* set desired hover color */
|
||||
</style>";
|
||||
$cssTabs = "<div id=\"all\">
|
||||
<ul id=\"tabnav\">
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','".$_POST['sProcess']."','".$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','".$_POST['sProcess']."','".$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','".$_POST['sProcess']."','".$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">Process</a></li>
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">Process</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
";
|
||||
echo $sHTML;
|
||||
echo $sStyle;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
echo "<div id=\"processVariablesContent\">";
|
||||
echo $cssTabs;
|
||||
G::LoadClass('ArrayPeer');
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['dynavars'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('dynavars');
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'dynavars' );
|
||||
|
||||
$aFields = array ();
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile( "/jscore/controls/varsAjax.js" );
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'triggers/dynavars', $oCriteria);
|
||||
G::RenderPage('publish', 'raw');
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
echo "</div>";
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,115 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* varsAjax.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @author Gustavo Cruz gustavo-at-colosa.com
|
||||
* @param $_POST variables
|
||||
* @desc the varAjaxByType file as the varAjax.php handle the render of the diferent
|
||||
* types of dynaform variables there are 3 of them system, process, and the default
|
||||
* that show both system and process variables.
|
||||
* uses almost the same variables passed to varsAjax, plus $_POST['type'] that is the
|
||||
* type of the variables. Then it render a propel table with all the variables
|
||||
* loaded for that type.
|
||||
*/
|
||||
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
$aFields = getDynaformsVars($_POST['sProcess'], true, isset($_POST['bIncMulSelFields']) ? $_POST['bIncMulSelFields'] : 0);
|
||||
$aType = $_POST['type'];
|
||||
|
||||
$aRows[0] = Array (
|
||||
'fieldname' => 'char',
|
||||
'variable' => 'char',
|
||||
'type' => 'type',
|
||||
'label' => 'char'
|
||||
);
|
||||
foreach ( $aFields as $aField ) {
|
||||
switch ($aType){
|
||||
case "system":
|
||||
if($aField['sType']=="system"){
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.
|
||||
$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "process":
|
||||
if($aField['sType']!="system"){
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.
|
||||
$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.$_POST['sFieldName'].'\',\''
|
||||
.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* varsAjax.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
/**
|
||||
* the varAjaxByType file as the varAjax.php handle the render of the diferent
|
||||
* types of dynaform variables there are 3 of them system, process, and the default
|
||||
* that show both system and process variables.
|
||||
* uses almost the same variables passed to varsAjax, plus $_POST['type'] that is the
|
||||
* type of the variables. Then it render a propel table with all the variables
|
||||
* loaded for that type.
|
||||
*
|
||||
* @author Gustavo Cruz gustavo-at-colosa.com
|
||||
* @param $_POST variables
|
||||
*/
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||
$aType = $_POST['type'];
|
||||
|
||||
$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'
|
||||
);
|
||||
foreach ($aFields as $aField) {
|
||||
switch ($aType) {
|
||||
case "system":
|
||||
if ($aField['sType'] == "system") {
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "process":
|
||||
if ($aField['sType'] != "system") {
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
// Use and make a load translation variable call to the titles of the tabs
|
||||
$cssTabs = "<div id=\"".strtolower($_POST['type'])."\">
|
||||
$cssTabs = "<div id=\"" . strtolower( $_POST['type'] ) . "\">
|
||||
<ul id=\"tabnav\">
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">Process</a></li>
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">Process</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
";
|
||||
|
||||
echo $cssTabs;
|
||||
G::LoadClass('ArrayPeer');
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['dynavars'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('dynavars');
|
||||
|
||||
$aFields = array ();
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'triggers/dynavars', $oCriteria);
|
||||
G::RenderPage('publish', 'raw');
|
||||
|
||||
?>
|
||||
";
|
||||
|
||||
echo $cssTabs;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['dynavars'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'dynavars' );
|
||||
|
||||
$aFields = array ();
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
@@ -12,84 +12,85 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
G::LoadClass('configuration');
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration('eventList', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||
$configPage = $c->getConfiguration( 'eventList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'logs';
|
||||
$G_ID_MENU_SELECTED = 'logs';
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'logs';
|
||||
$G_ID_MENU_SELECTED = 'logs';
|
||||
$G_ID_SUB_MENU_SELECTED = 'EVENT';
|
||||
|
||||
//get values for the comboBoxes
|
||||
$userUid = ( isset($_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '' ) ?
|
||||
$_SESSION['USER_LOGGED'] : null;
|
||||
$status = array(
|
||||
array('', G::LoadTranslation('ID_ALL')),
|
||||
array("PENDING",G::LoadTranslation('ID_OPEN')),
|
||||
array("COMPLETED",G::LoadTranslation('ID_CLOSE')));
|
||||
$type = array(
|
||||
array('', G::LoadTranslation('ID_ALL')),
|
||||
array('SEND_MESSAGE',G::LoadTranslation('ID_EVENT_MESSAGE')),
|
||||
array('EXECUTE_TRIGGER',G::LoadTranslation('ID_EVENT_TIMER')),
|
||||
array('EXECUTE_CONDITIONAL_TRIGGER',G::LoadTranslation('ID_EVENT_CONDITIONAL')));
|
||||
$processes = getProcessArray($userUid );
|
||||
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
|
||||
$status = array (array ('',G::LoadTranslation( 'ID_ALL' )
|
||||
),array ("PENDING",G::LoadTranslation( 'ID_OPEN' )
|
||||
),array ("COMPLETED",G::LoadTranslation( 'ID_CLOSE' )
|
||||
)
|
||||
);
|
||||
$type = array (array ('',G::LoadTranslation( 'ID_ALL' )
|
||||
),array ('SEND_MESSAGE',G::LoadTranslation( 'ID_EVENT_MESSAGE' )
|
||||
),array ('EXECUTE_TRIGGER',G::LoadTranslation( 'ID_EVENT_TIMER' )
|
||||
),array ('EXECUTE_CONDITIONAL_TRIGGER',G::LoadTranslation( 'ID_EVENT_CONDITIONAL' )
|
||||
)
|
||||
);
|
||||
$processes = getProcessArray( $userUid );
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript('events/eventList', false); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent('events/eventList'); //adding a html file .html.
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'events/eventList', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'events/eventList' ); //adding a html file .html.
|
||||
//sending the columns to display in grid
|
||||
$oHeadPublisher->assign( 'typeValues', $type );
|
||||
$oHeadPublisher->assign( 'statusValues', $status );
|
||||
$oHeadPublisher->assign( 'processValues', $processes);
|
||||
$oHeadPublisher->assign( 'typeValues', $type );
|
||||
$oHeadPublisher->assign( 'statusValues', $status );
|
||||
$oHeadPublisher->assign( 'processValues', $processes );
|
||||
|
||||
function getProcessArray ( $userUid ) {
|
||||
function getProcessArray ($userUid)
|
||||
{
|
||||
global $oAppCache;
|
||||
require_once ( "classes/model/AppCacheView.php" );
|
||||
require_once ("classes/model/AppCacheView.php");
|
||||
|
||||
$processes = Array();
|
||||
$processes[] = array ( '', G::LoadTranslation('ID_ALL_PROCESS') );
|
||||
$processes = Array ();
|
||||
$processes[] = array ('',G::LoadTranslation( 'ID_ALL_PROCESS' ));
|
||||
|
||||
$cProcess = new Criteria('workflow');
|
||||
$cProcess = new Criteria( 'workflow' );
|
||||
$cProcess->clearSelectColumns();
|
||||
$cProcess->addSelectColumn(AppCacheViewPeer::PRO_UID);
|
||||
$cProcess->addSelectColumn(AppCacheViewPeer::APP_PRO_TITLE);
|
||||
$cProcess->setDistinct(AppCacheViewPeer::PRO_UID);
|
||||
|
||||
$cProcess->addAscendingOrderByColumn(AppCacheViewPeer::APP_PRO_TITLE);
|
||||
$cProcess->addSelectColumn( AppCacheViewPeer::PRO_UID );
|
||||
$cProcess->addSelectColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
||||
$cProcess->setDistinct( AppCacheViewPeer::PRO_UID );
|
||||
|
||||
$oDataset = AppCacheViewPeer::doSelectRS($cProcess);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$cProcess->addAscendingOrderByColumn( AppCacheViewPeer::APP_PRO_TITLE );
|
||||
|
||||
$oDataset = AppCacheViewPeer::doSelectRS( $cProcess );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
|
||||
while($aRow = $oDataset->getRow()){
|
||||
$processes[] = array ( $aRow['PRO_UID'], $aRow['APP_PRO_TITLE'] );
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$processes[] = array ($aRow['PRO_UID'],$aRow['APP_PRO_TITLE']);
|
||||
$oDataset->next();
|
||||
}
|
||||
|
||||
return $processes;
|
||||
}
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ require_once 'classes/model/Content.php';
|
||||
|
||||
switch($req){
|
||||
case 'showUsers':
|
||||
|
||||
/*
|
||||
$sql = "SELECT USR_UID, USR_EMAIL, CONCAT(USR_FIRSTNAME, ' ' , USR_LASTNAME) AS USR_FULLNAME FROM USERS WHERE USR_STATUS = 'ACTIVE' AND USR_EMAIL <> ''";
|
||||
*/
|
||||
@@ -29,7 +28,7 @@ switch($req){
|
||||
$rs = $stmt->executeQuery();
|
||||
|
||||
$aRows[] = array('USR_UID'=>'char', 'USR_EMAIL'=>'char', 'USR_FULLNAME'=>'char');
|
||||
while($rs->next()){
|
||||
while ($rs->next()) {
|
||||
$aRows[] = array('USR_UID'=>$rs->getString('USR_UID'), 'USR_EMAIL'=>$rs->getString('USR_EMAIL'), 'USR_FULLNAME'=>$rs->getString('USR_FULLNAME'));
|
||||
}
|
||||
//echo '<pre>'; print_r($aRows);
|
||||
@@ -40,11 +39,10 @@ switch($req){
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('virtualtable');
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'events/usermailList', $oCriteria);
|
||||
G::RenderPage('publish', 'raw');
|
||||
break;
|
||||
break;
|
||||
case 'showGroups':
|
||||
G::LoadClass('groups');
|
||||
$groups = new Groups();
|
||||
@@ -56,41 +54,35 @@ switch($req){
|
||||
$GROUP_TITLE = strip_tags($group->getGrpTitle());
|
||||
$aRows[] = array('GRP_UID'=>$UID, 'GROUP_TITLE'=>$GROUP_TITLE);
|
||||
}
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['virtualtable'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('virtualtable');
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'events/groupmailList', $oCriteria);
|
||||
G::RenderPage('publish', 'raw');
|
||||
break;
|
||||
break;
|
||||
case 'showDynavars':
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
$dynaformFields = getDynaformsVars($_SESSION['PROCESS'], false, false);
|
||||
$fields = array(array('id' => 'char', 'dynaform' => 'char', 'name' => 'char'));
|
||||
|
||||
foreach ($dynaformFields as $dynaformField) {
|
||||
$fields[] = array('id' => $dynaformField['sName'],
|
||||
'name' => '<a href="#" style="color: black;" onclick="e.toAdd(\'' . $dynaformField['sName'] . '\', \'' . $dynaformField['sName'] . '\', \'dyn\');oPanel.remove();return false;">@#' . $dynaformField['sName'] . '</a>', 'label' => $dynaformField['sLabel']);
|
||||
}
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['virtualtable'] = $fields;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('virtualtable');
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'events/dynavarsList', $oCriteria);
|
||||
G::RenderPage('publish', 'raw');
|
||||
break;
|
||||
break;
|
||||
case 'eventList':
|
||||
|
||||
$start = (isset($_REQUEST['start']))? $_REQUEST['start'] : '0';
|
||||
$limit = (isset($_REQUEST['limit']))? $_REQUEST['limit'] : '25';
|
||||
$proUid = (isset($_REQUEST['process']))? $_REQUEST['process'] : '';
|
||||
@@ -110,7 +102,7 @@ switch($req){
|
||||
$result = AppEventPeer::doSelectRS($criteria);
|
||||
$result->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$data = Array();
|
||||
while( $result->next() ) {
|
||||
while ( $result->next() ) {
|
||||
$data[] = $result->getRow();
|
||||
}
|
||||
$totalCount = count($data);
|
||||
@@ -120,8 +112,7 @@ switch($req){
|
||||
if ($sort != '') {
|
||||
if ($dir == 'ASC') {
|
||||
$criteria->addAscendingOrderByColumn($sort);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$criteria->addDescendingOrderByColumn($sort);
|
||||
}
|
||||
} else {
|
||||
@@ -136,12 +127,13 @@ switch($req){
|
||||
$data = Array();
|
||||
$dataPro = array();
|
||||
$index = 0;
|
||||
while( $result->next() ) {
|
||||
while ( $result->next() ) {
|
||||
$data[] = $result->getRow();
|
||||
}
|
||||
$response = array();
|
||||
$response['totalCount'] = $totalCount;
|
||||
$response['data'] = $data;
|
||||
die(G::json_encode($response));
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,27 +12,27 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
require_once 'classes/model/AppEvent.php';
|
||||
$oAppEvent = new AppEvent();
|
||||
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'events/appEventsListCompleted', $oAppEvent->getAppEventsCriteria($_GET['PRO_UID'], 'COMPLETED', $_GET['EVN_TYPE']));
|
||||
G::RenderPage('publish', 'raw');
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'events/appEventsListCompleted', $oAppEvent->getAppEventsCriteria( $_GET['PRO_UID'], 'COMPLETED', $_GET['EVN_TYPE'] ) );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
@@ -12,24 +12,24 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
$evnUid = $_POST['EVN_UID'];
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event();
|
||||
$oEvent->remove( $evnUid );
|
||||
$oEvent->remove( $evnUid );
|
||||
|
||||
|
||||
@@ -12,74 +12,68 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
G::LoadClass('tasks');
|
||||
G::LoadClass('processMap');
|
||||
G::LoadClass( 'tasks' );
|
||||
G::LoadClass( 'processMap' );
|
||||
global $_DBArray;
|
||||
|
||||
if (isset($_GET['EVN_UID'])) {
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event();
|
||||
$aFields = $oEvent->load($_GET['EVN_UID']);
|
||||
}
|
||||
else {
|
||||
$aFields = array('PRO_UID' => $_GET['PRO_UID']);
|
||||
if (isset( $_GET['EVN_UID'] )) {
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event();
|
||||
$aFields = $oEvent->load( $_GET['EVN_UID'] );
|
||||
} else {
|
||||
$aFields = array ('PRO_UID' => $_GET['PRO_UID'] );
|
||||
}
|
||||
|
||||
|
||||
if (!isset($_SESSION['PROCESS'])){
|
||||
if (isset($aFields['PRO_UID'])){
|
||||
$_SESSION['PROCESS'] = $aFields['PRO_UID'];
|
||||
}
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
if (isset( $aFields['PRO_UID'] )) {
|
||||
$_SESSION['PROCESS'] = $aFields['PRO_UID'];
|
||||
}
|
||||
}
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$aAux1 = $oTasks->getAllTasks($aFields['PRO_UID']);
|
||||
$aTasks = array();
|
||||
$aTasks[] = array('TAS_UID' => 'char',
|
||||
'TAS_TITLE' => 'char');
|
||||
$oTasks = new Tasks();
|
||||
$aAux1 = $oTasks->getAllTasks( $aFields['PRO_UID'] );
|
||||
$aTasks = array ();
|
||||
$aTasks[] = array ('TAS_UID' => 'char','TAS_TITLE' => 'char');
|
||||
foreach ($aAux1 as $aAux2) {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
|
||||
}
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array ('TAS_UID' => $aAux2['TAS_UID'],'TAS_TITLE' => $aAux2['TAS_TITLE'] );
|
||||
}
|
||||
}
|
||||
|
||||
$oProcessMap = new processMap( new DBConnection() );
|
||||
$aTriggersList = $oProcessMap->getTriggers( $_SESSION['PROCESS'] );
|
||||
$aTriggersFileds = Array ('TRI_UID' => 'char','TRI_TITLE' => 'char');
|
||||
|
||||
$oProcessMap = new processMap(new DBConnection);
|
||||
$aTriggersList = $oProcessMap->getTriggers($_SESSION['PROCESS']);
|
||||
$aTriggersFileds = Array('TRI_UID'=>'char', 'TRI_TITLE'=>'char');
|
||||
|
||||
foreach($aTriggersList as $i=>$v){
|
||||
unset($aTriggersList[$i]['PRO_UID']);
|
||||
unset($aTriggersList[$i]['TRI_DESCRIPTION']);
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen($aTriggersList[$i]['TRI_TITLE'])>32)? substr($aTriggersList[$i]['TRI_TITLE'], 0, 32).'...': $aTriggersList[$i]['TRI_TITLE'];
|
||||
foreach ($aTriggersList as $i => $v) {
|
||||
unset( $aTriggersList[$i]['PRO_UID'] );
|
||||
unset( $aTriggersList[$i]['TRI_DESCRIPTION'] );
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen( $aTriggersList[$i]['TRI_TITLE'] ) > 32) ? substr( $aTriggersList[$i]['TRI_TITLE'], 0, 32 ) . '...' : $aTriggersList[$i]['TRI_TITLE'];
|
||||
}
|
||||
|
||||
$aTriggersList = array_merge(Array($aTriggersFileds), $aTriggersList);
|
||||
$aTriggersList = array_merge( Array ($aTriggersFileds, $aTriggersList ));
|
||||
|
||||
$_DBArray['tasks'] = $aTasks;
|
||||
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
|
||||
|
||||
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/eventsEdit', '', $aFields, '../events/eventsSave');
|
||||
G::RenderPage('publish', 'raw');
|
||||
?>
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'events/eventsEdit', '', $aFields, '../events/eventsSave' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12,50 +12,49 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
global $_DBArray;
|
||||
G::LoadClass('tasks');
|
||||
G::LoadClass('processMap');
|
||||
G::LoadClass( 'tasks' );
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$aAux1 = $oTasks->getAllTasks($_GET['PRO_UID']);
|
||||
$aTasks = array();
|
||||
$aTasks[] = array('TAS_UID' => 'char', 'TAS_TITLE' => 'char');
|
||||
$oTasks = new Tasks();
|
||||
$aAux1 = $oTasks->getAllTasks( $_GET['PRO_UID'] );
|
||||
$aTasks = array ();
|
||||
$aTasks[] = array ('TAS_UID' => 'char','TAS_TITLE' => 'char');
|
||||
|
||||
//g::pr($aAux1);die;
|
||||
foreach ($aAux1 as $aAux2) {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
|
||||
}
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array ('TAS_UID' => $aAux2['TAS_UID'],'TAS_TITLE' => $aAux2['TAS_TITLE']);
|
||||
}
|
||||
}
|
||||
|
||||
$oProcessMap = new processMap(new DBConnection);
|
||||
$aTriggersList = $oProcessMap->getTriggers($_SESSION['PROCESS']);
|
||||
$aTriggersFileds = Array('TRI_UID'=>'char', 'TRI_TITLE'=>'char');
|
||||
$oProcessMap = new processMap( new DBConnection() );
|
||||
$aTriggersList = $oProcessMap->getTriggers( $_SESSION['PROCESS'] );
|
||||
$aTriggersFileds = Array ('TRI_UID' => 'char','TRI_TITLE' => 'char');
|
||||
|
||||
foreach($aTriggersList as $i=>$v){
|
||||
unset($aTriggersList[$i]['PRO_UID']);
|
||||
unset($aTriggersList[$i]['TRI_DESCRIPTION']);
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen($aTriggersList[$i]['TRI_TITLE'])>32)? substr($aTriggersList[$i]['TRI_TITLE'], 0, 32).'...': $aTriggersList[$i]['TRI_TITLE'];
|
||||
foreach ($aTriggersList as $i => $v) {
|
||||
unset( $aTriggersList[$i]['PRO_UID'] );
|
||||
unset( $aTriggersList[$i]['TRI_DESCRIPTION'] );
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen( $aTriggersList[$i]['TRI_TITLE'] ) > 32) ? substr( $aTriggersList[$i]['TRI_TITLE'], 0, 32 ) . '...' : $aTriggersList[$i]['TRI_TITLE'];
|
||||
}
|
||||
|
||||
$aTriggersList = array_merge(Array($aTriggersFileds), $aTriggersList);
|
||||
$aTriggersList = array_merge( Array ($aTriggersFileds), $aTriggersList );
|
||||
|
||||
$_DBArray['tasks'] = $aTasks;
|
||||
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
|
||||
@@ -63,6 +62,6 @@ $_DBArray['TMP_TRIGGERS'] = $aTriggersList;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/eventsNew', '', array('PRO_UID' => $_GET['PRO_UID'], 'EVN_ACTION' => $_GET['EVN_TYPE']), '');
|
||||
G::RenderPage('publish', 'raw');
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'events/eventsNew', '', array ('PRO_UID' => $_GET['PRO_UID'],'EVN_ACTION' => $_GET['EVN_TYPE']), '' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
@@ -12,37 +12,36 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
global $_DBArray;
|
||||
|
||||
//get the posted fields of new Event and create a new record of that
|
||||
//get the posted fields of new Event and create a new record of that
|
||||
require_once 'classes/model/Event.php';
|
||||
|
||||
$oEvent = new Event();
|
||||
$envUId = $oEvent->create($_POST);
|
||||
$envUId = $oEvent->create( $_POST );
|
||||
|
||||
$_SESSION['EVN_UID'] = $envUId;
|
||||
require_once ( 'eventsEditAction.php' );
|
||||
die;
|
||||
require_once ('eventsEditAction.php');
|
||||
die();
|
||||
|
||||
/*
|
||||
//this page is showing the parameters for setup email messages and triggers,
|
||||
//this page is showing the parameters for setup email messages and triggers,
|
||||
//probably this will be changed soon.
|
||||
|
||||
$aTemplates = array();
|
||||
@@ -80,4 +79,5 @@ $G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/events_EditAction', '', $_POST, '../events/eventsSave');
|
||||
G::RenderPage('publish', 'raw');
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
@@ -12,27 +12,27 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
|
||||
require_once 'classes/model/AppEvent.php';
|
||||
$oAppEvent = new AppEvent();
|
||||
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('propeltable', 'paged-table', 'events/appEventsList', $oAppEvent->getAppEventsCriteria($_GET['PRO_UID'], 'PENDING', $_GET['EVN_TYPE']));
|
||||
G::RenderPage('publish', 'raw');
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'events/appEventsList', $oAppEvent->getAppEventsCriteria( $_GET['PRO_UID'], 'PENDING', $_GET['EVN_TYPE'] ) );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
@@ -12,66 +12,59 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
}
|
||||
$EVN_MESSAGE_TO_TO = isset($_POST['form']['EVN_MESSAGE_TO_TO'])? replaceQuotes($_POST['form']['EVN_MESSAGE_TO_TO']): Array();
|
||||
$EVN_MESSAGE_TO_CC = isset($_POST['form']['EVN_MESSAGE_TO_CC'])? replaceQuotes($_POST['form']['EVN_MESSAGE_TO_CC']): Array();
|
||||
$EVN_MESSAGE_TO_BCC = isset($_POST['form']['EVN_MESSAGE_TO_BCC'])? replaceQuotes($_POST['form']['EVN_MESSAGE_TO_BCC']): Array();
|
||||
$EVN_MESSAGE_TO_TO = isset( $_POST['form']['EVN_MESSAGE_TO_TO'] ) ? replaceQuotes( $_POST['form']['EVN_MESSAGE_TO_TO'] ) : Array ();
|
||||
$EVN_MESSAGE_TO_CC = isset( $_POST['form']['EVN_MESSAGE_TO_CC'] ) ? replaceQuotes( $_POST['form']['EVN_MESSAGE_TO_CC'] ) : Array ();
|
||||
$EVN_MESSAGE_TO_BCC = isset( $_POST['form']['EVN_MESSAGE_TO_BCC'] ) ? replaceQuotes( $_POST['form']['EVN_MESSAGE_TO_BCC'] ) : Array ();
|
||||
|
||||
if (isset($_POST['form']['EVN_MESSAGE_SUBJECT'])) {
|
||||
$_POST['form']['EVN_ACTION_PARAMETERS'] = array(
|
||||
'SUBJECT' => $_POST['form']['EVN_MESSAGE_SUBJECT'],
|
||||
'TO' => $EVN_MESSAGE_TO_TO,
|
||||
'CC' => $EVN_MESSAGE_TO_CC,
|
||||
'BCC' => $EVN_MESSAGE_TO_BCC,
|
||||
'TEMPLATE' => $_POST['form']['EVN_MESSAGE_TEMPLATE']
|
||||
);
|
||||
|
||||
unset($_POST['form']['EVN_MESSAGE_SUBJECT']);
|
||||
unset($_POST['form']['EVN_MESSAGE_TO_TO']);
|
||||
unset($_POST['form']['EVN_MESSAGE_TO_CC']);
|
||||
unset($_POST['form']['EVN_MESSAGE_TO_BCC']);
|
||||
unset($_POST['form']['EVN_MESSAGE_TEMPLATE']);
|
||||
if (isset( $_POST['form']['EVN_MESSAGE_SUBJECT'] )) {
|
||||
$_POST['form']['EVN_ACTION_PARAMETERS'] = array ('SUBJECT' => $_POST['form']['EVN_MESSAGE_SUBJECT'],'TO' => $EVN_MESSAGE_TO_TO,'CC' => $EVN_MESSAGE_TO_CC,'BCC' => $EVN_MESSAGE_TO_BCC,'TEMPLATE' => $_POST['form']['EVN_MESSAGE_TEMPLATE']);
|
||||
|
||||
unset( $_POST['form']['EVN_MESSAGE_SUBJECT'] );
|
||||
unset( $_POST['form']['EVN_MESSAGE_TO_TO'] );
|
||||
unset( $_POST['form']['EVN_MESSAGE_TO_CC'] );
|
||||
unset( $_POST['form']['EVN_MESSAGE_TO_BCC'] );
|
||||
unset( $_POST['form']['EVN_MESSAGE_TEMPLATE'] );
|
||||
}
|
||||
unset($_POST['form']['SAVE']);
|
||||
unset( $_POST['form']['SAVE'] );
|
||||
|
||||
require_once 'classes/model/Event.php';
|
||||
$oEvent = new Event();
|
||||
if ($_POST['form']['EVN_UID'] == '') {
|
||||
//this is probably not used, because the creation of one Event is done directly in EventsNewAction
|
||||
$oEvent->create($_POST['form']);
|
||||
}
|
||||
else {
|
||||
/*
|
||||
*if($_POST['form']['EVN_ACTION'] == 'SEND_MESSAGE' && $ev->getTriUid() != trim($_POST['form']['TRI_UID']) ){
|
||||
//this is probably not used, because the creation of one Event is done directly in EventsNewAction
|
||||
$oEvent->create( $_POST['form'] );
|
||||
} else {
|
||||
/*
|
||||
*if($_POST['form']['EVN_ACTION'] == 'SEND_MESSAGE' && $ev->getTriUid() != trim($_POST['form']['TRI_UID']) ){
|
||||
$oEvnActionParameters = unserialize($ev->getEvnActionParameters());
|
||||
prit_r($oEvnActionParameters);
|
||||
if( isset($oEvnActionParameters->TRI_UID) ){
|
||||
$_POST['form']['TRI_UID'] = $oEvnActionParameters->TRI_UID;
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
$oEvent->update($_POST['form']);
|
||||
}
|
||||
*/
|
||||
$oEvent->update( $_POST['form'] );
|
||||
}
|
||||
|
||||
function replaceQuotes ($aData)
|
||||
{
|
||||
for ($i = 0; $i < sizeof( $aData ); $i ++) {
|
||||
$aData[$i] = str_replace( ""e;", '"', $aData[$i] );
|
||||
}
|
||||
return $aData;
|
||||
}
|
||||
|
||||
function replaceQuotes($aData){
|
||||
for($i=0; $i<sizeof($aData); $i++){
|
||||
$aData[$i] = str_replace(""e;", '"', $aData[$i]);
|
||||
}
|
||||
return $aData;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* triggers_Save.php
|
||||
*
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
@@ -12,29 +12,27 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* 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;
|
||||
require_once('classes/model/Triggers.php');
|
||||
$oTrigger = new Triggers();
|
||||
if ($_POST['form']['TRI_UID'] != '')
|
||||
{
|
||||
$oTrigger->load($_POST['form']['TRI_UID']);
|
||||
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
else
|
||||
{
|
||||
$oTrigger->create($_POST['form']);
|
||||
$_POST['form']['TRI_UID']=$oTrigger->getTriUid();
|
||||
require_once ('classes/model/Triggers.php');
|
||||
$oTrigger = new Triggers();
|
||||
if ($_POST['form']['TRI_UID'] != '') {
|
||||
$oTrigger->load( $_POST['form']['TRI_UID'] );
|
||||
} else {
|
||||
$oTrigger->create( $_POST['form'] );
|
||||
$_POST['form']['TRI_UID'] = $oTrigger->getTriUid();
|
||||
}
|
||||
|
||||
$oTrigger->update($_POST['form']);
|
||||
?>
|
||||
$oTrigger->update( $_POST['form'] );
|
||||
|
||||
|
||||
@@ -1,70 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* groups.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'users';
|
||||
$G_ID_MENU_SELECTED = 'USERS';
|
||||
$G_ID_SUB_MENU_SELECTED = 'GROUPS';
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
|
||||
G::LoadClass('configuration');
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration('groupList', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||
$configEnv = $c->getConfiguration('ENVIRONMENT_SETTINGS', '');
|
||||
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript('groups/groupsList', false); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent('groups/groupsList'); //adding a html file .html.
|
||||
$oHeadPublisher->assign('CONFIG', $Config);
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* groups.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'users';
|
||||
$G_ID_MENU_SELECTED = 'USERS';
|
||||
$G_ID_SUB_MENU_SELECTED = 'GROUPS';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'groupList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$configEnv = $c->getConfiguration( 'ENVIRONMENT_SETTINGS', '' );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'groups/groupsList', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'groups/groupsList' ); //adding a html file .html.
|
||||
$oHeadPublisher->assign( 'CONFIG', $Config );
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -12,65 +12,64 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
* 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.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'users';
|
||||
$G_ID_MENU_SELECTED = 'USERS';
|
||||
$G_ID_SUB_MENU_SELECTED = 'GROUPS';
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'users';
|
||||
$G_ID_MENU_SELECTED = 'USERS';
|
||||
$G_ID_SUB_MENU_SELECTED = 'GROUPS';
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
$oHeadPublisher->addExtJsScript('groups/groupsMembers', false); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent('groups/groupsMembers'); //adding a html file .html.
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
|
||||
$labels = G::getTranslations(Array('ID_GROUPS','ID_GROUP_NAME','ID_BACK','ID_ASSIGN_ALL_MEMBERS','ID_REMOVE_ALL_MEMBERS',
|
||||
'ID_MSG_AJAX_FAILURE', 'ID_PROCESSING','ID_ENTER_SEARCH_TERM','ID_FIRST_NAME','ID_LAST_NAME','ID_USER_NAME','ID_AVAILABLE_MEMBERS','ID_ASSIGNED_MEMBERS'));
|
||||
$oHeadPublisher->addExtJsScript( 'groups/groupsMembers', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'groups/groupsMembers' ); //adding a html file .html.
|
||||
|
||||
G::LoadClass('groups');
|
||||
|
||||
$labels = G::getTranslations( Array ('ID_GROUPS','ID_GROUP_NAME','ID_BACK','ID_ASSIGN_ALL_MEMBERS','ID_REMOVE_ALL_MEMBERS','ID_MSG_AJAX_FAILURE','ID_PROCESSING','ID_ENTER_SEARCH_TERM','ID_FIRST_NAME','ID_LAST_NAME','ID_USER_NAME','ID_AVAILABLE_MEMBERS','ID_ASSIGNED_MEMBERS') );
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
$oGroup = new Groupwf();
|
||||
$oGroup->load($_REQUEST['GRP_UID']);
|
||||
$oGroup->load( $_REQUEST['GRP_UID'] );
|
||||
|
||||
$groups['GRP_UID'] = $_REQUEST['GRP_UID'];
|
||||
$groups['GRP_TITLE'] = $oGroup->getGrpTitle();
|
||||
|
||||
//$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||
$oHeadPublisher->assign('GROUPS', $groups);
|
||||
G::RenderPage('publish', 'extJs');
|
||||
?>
|
||||
$oHeadPublisher->assign( 'GROUPS', $groups );
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -1,57 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_AddUser.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
require_once ( 'classes/class.xmlfield_InputPM.php' );
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
G::LoadClass('groups');
|
||||
$oGroups = new Groups();
|
||||
$oGroup = new Groupwf();
|
||||
$aFields = $oGroup->load($_GET['UID']);
|
||||
$G_PUBLISH = new Publisher();
|
||||
//$G_PUBLISH->AddContent('xmlform', 'xmlform', 'groups/groups_UsersListTitle', '', array('GRP_NAME' => $aFields['GRP_TITLE']));
|
||||
$G_PUBLISH->AddContent('propeltable', 'groups/paged-table', 'groups/groups_AvailableUsers', $oGroups->getAvailableUsersCriteria($_GET['UID']));
|
||||
//$G_PUBLISH->AddContent('xmlform', 'xmlform', 'groups/groups_SelectUsers','', '','save' );
|
||||
G::RenderPage('publish', 'raw');
|
||||
<?php
|
||||
/**
|
||||
* groups_AddUser.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
require_once ('classes/class.xmlfield_InputPM.php');
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
G::LoadClass( 'groups' );
|
||||
$oGroups = new Groups();
|
||||
$oGroup = new Groupwf();
|
||||
$aFields = $oGroup->load( $_GET['UID'] );
|
||||
$G_PUBLISH = new Publisher();
|
||||
//$G_PUBLISH->AddContent('xmlform', 'xmlform', 'groups/groups_UsersListTitle', '', array('GRP_NAME' => $aFields['GRP_TITLE']));
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'groups/paged-table', 'groups/groups_AvailableUsers', $oGroups->getAvailableUsersCriteria( $_GET['UID'] ) );
|
||||
//$G_PUBLISH->AddContent('xmlform', 'xmlform', 'groups/groups_SelectUsers','', '','save' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,64 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_Delete.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
G::LoadClass('groups');
|
||||
|
||||
$group = new Groupwf();
|
||||
|
||||
if (!isset($_POST['GRP_UID'])) return;
|
||||
|
||||
$group->remove(urldecode($_POST['GRP_UID']));
|
||||
|
||||
require_once 'classes/model/TaskUser.php';
|
||||
$oProcess = new TaskUser();
|
||||
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->add(TaskUserPeer::USR_UID, $_POST['GRP_UID']);
|
||||
TaskUserPeer::doDelete($oCriteria);
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* groups_Delete.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$group = new Groupwf();
|
||||
|
||||
if (! isset( $_POST['GRP_UID'] )) {
|
||||
return;
|
||||
}
|
||||
|
||||
$group->remove( urldecode( $_POST['GRP_UID'] ) );
|
||||
|
||||
require_once 'classes/model/TaskUser.php';
|
||||
$oProcess = new TaskUser();
|
||||
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->add( TaskUserPeer::USR_UID, $_POST['GRP_UID'] );
|
||||
TaskUserPeer::doDelete( $oCriteria );
|
||||
|
||||
|
||||
@@ -1,70 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_Edit.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
G::LoadClass('groups');
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession($dbc);
|
||||
|
||||
$group = new Groupwf();
|
||||
$GrpUid = (isset($_GET['UID'])) ? urldecode($_GET['UID']):'';
|
||||
if ($GrpUid)
|
||||
{
|
||||
$aFields=$group->Load( $GrpUid );
|
||||
}
|
||||
else
|
||||
{
|
||||
$aFields=array();
|
||||
}
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'groups/groups_Edit', '', $aFields , 'groups_Save');
|
||||
|
||||
G::RenderPage( "publish" , "raw" );
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* groups_Edit.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
$group = new Groupwf();
|
||||
$GrpUid = (isset( $_GET['UID'] )) ? urldecode( $_GET['UID'] ) : '';
|
||||
if ($GrpUid) {
|
||||
$aFields = $group->Load( $GrpUid );
|
||||
} else {
|
||||
$aFields = array ();
|
||||
}
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'groups/groups_Edit', '', $aFields, 'groups_Save' );
|
||||
|
||||
G::RenderPage( "publish", "raw" );
|
||||
|
||||
|
||||
@@ -1,55 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_List.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent( 'view', 'groups/groups_Tree' );
|
||||
G::RenderPage( "publish-raw" , "raw" );
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* groups_List.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'view', 'groups/groups_Tree' );
|
||||
G::RenderPage( "publish-raw", "raw" );
|
||||
|
||||
|
||||
@@ -1,69 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_Save.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess('PM_USERS');
|
||||
if( $access != 1 ){
|
||||
switch ($access)
|
||||
{
|
||||
case -1:
|
||||
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');
|
||||
die;
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
G::LoadClass('groups');
|
||||
|
||||
$G_MAIN_MENU = 'wf.login';
|
||||
$G_MENU_SELECTED = '';
|
||||
|
||||
$group = new Groupwf();
|
||||
if($_POST['form']['GRP_UID']==='')
|
||||
{
|
||||
$grpRow = $_POST['form'];
|
||||
unset ( $grpRow['GRP_UID'] );
|
||||
$group->create( $grpRow );
|
||||
|
||||
//$_POST['form']['GRP_UID']=$group->getGrpUid();
|
||||
//$group->update($_POST['form']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$group->update($_POST['form']);
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* groups_Save.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$access = $RBAC->userCanAccess( 'PM_USERS' );
|
||||
if ($access != 1) {
|
||||
switch ($access) {
|
||||
case - 1:
|
||||
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' );
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$G_MAIN_MENU = 'wf.login';
|
||||
$G_MENU_SELECTED = '';
|
||||
|
||||
$group = new Groupwf();
|
||||
if ($_POST['form']['GRP_UID'] === '') {
|
||||
$grpRow = $_POST['form'];
|
||||
unset( $grpRow['GRP_UID'] );
|
||||
$group->create( $grpRow );
|
||||
|
||||
//$_POST['form']['GRP_UID']=$group->getGrpUid();
|
||||
//$group->update($_POST['form']);
|
||||
} else {
|
||||
$group->update( $_POST['form'] );
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* groups_SaveAddUser.php
|
||||
*
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
@@ -12,18 +12,20 @@
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* 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_USERS"))!=1) return $RBAC_Response;
|
||||
|
||||
G::LoadClass('groups');
|
||||
$groups = new Groups;
|
||||
$groups->addUserToGroup( $_GET['GRP_UID'], $_POST['form']['USR_UID'] );
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
$groups = new Groups();
|
||||
$groups->addUserToGroup( $_GET['GRP_UID'], $_POST['form']['USR_UID'] );
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ BEGIN
|
||||
DECLARE APP_DEL_PREVIOUS_USER VARCHAR(255);
|
||||
DECLARE APP_THREAD_STATUS VARCHAR(32);
|
||||
SET @DEFAULT_LANG = '{lang}';
|
||||
SET @APP_CURRENT_USER = '';
|
||||
SELECT APPLICATION.APP_NUMBER into @APP_NUMBER FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
SELECT APPLICATION.APP_STATUS into @APP_STATUS FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
SELECT APPLICATION.APP_CREATE_DATE into @APP_CREATE_DATE FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
@@ -20,7 +21,7 @@ BEGIN
|
||||
IF ( @APP_TITLE IS NULL ) THEN
|
||||
SET @APP_TITLE = '';
|
||||
END IF;
|
||||
SELECT CONTENT.CON_VALUE into @APP_PRO_TITLE FROM CONTENT WHERE NEW.PRO_UID=CON_ID AND CON_CATEGORY='PRO_TITLE' and CON_LANG = '{lang}' LIMIT 1;
|
||||
SELECT CONTENT.CON_VALUE into @APP_PRO_TITLE FROM CONTENT WHERE NEW.PRO_UID=CON_ID AND CON_CATEGORY='PRO_TITLE' and CON_LANG = '{lang}' LIMIT 1;
|
||||
SELECT CONTENT.CON_VALUE into @APP_TAS_TITLE FROM CONTENT WHERE NEW.TAS_UID=CON_ID AND CON_CATEGORY='TAS_TITLE' and CON_LANG = '{lang}' LIMIT 1;
|
||||
SELECT CONCAT(USERS.USR_LASTNAME, ' ', USERS.USR_FIRSTNAME) INTO @APP_CURRENT_USER FROM USERS WHERE USR_UID = NEW.USR_UID LIMIT 1;
|
||||
IF ( @APP_CURRENT_USER IS NULL ) THEN
|
||||
@@ -52,7 +53,7 @@ BEGIN
|
||||
TAS_UID,
|
||||
PRO_UID,
|
||||
DEL_DELEGATE_DATE,
|
||||
DEL_INIT_DATE,
|
||||
DEL_INIT_DATE,
|
||||
DEL_TASK_DUE_DATE,
|
||||
DEL_FINISH_DATE,
|
||||
DEL_THREAD_STATUS,
|
||||
@@ -84,9 +85,9 @@ BEGIN
|
||||
NEW.TAS_UID,
|
||||
NEW.PRO_UID,
|
||||
NEW.DEL_DELEGATE_DATE,
|
||||
NEW.DEL_INIT_DATE,
|
||||
NEW.DEL_INIT_DATE,
|
||||
NEW.DEL_TASK_DUE_DATE,
|
||||
NEW.DEL_FINISH_DATE,
|
||||
NEW.DEL_FINISH_DATE,
|
||||
NEW.DEL_THREAD_STATUS,
|
||||
@APP_THREAD_STATUS,
|
||||
@APP_TITLE,
|
||||
|
||||
@@ -13,6 +13,7 @@ BEGIN
|
||||
DECLARE APP_DEL_PREVIOUS_USER VARCHAR(255);
|
||||
DECLARE APP_THREAD_STATUS VARCHAR(32);
|
||||
SET @DEFAULT_LANG = '{lang}';
|
||||
SET @APP_CURRENT_USER = '';
|
||||
SELECT APPLICATION.APP_NUMBER into @APP_NUMBER FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
SELECT APPLICATION.APP_STATUS into @APP_STATUS FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
SELECT APPLICATION.APP_CREATE_DATE into @APP_CREATE_DATE FROM APPLICATION WHERE APP_UID = NEW.APP_UID LIMIT 1;
|
||||
@@ -41,7 +42,7 @@ BEGIN
|
||||
SET @APP_THREAD_STATUS = 'OPEN';
|
||||
END IF;
|
||||
SET @TAS_TYPE = (SELECT TAS_TYPE FROM TASK WHERE TAS_UID = NEW.TAS_UID LIMIT 1);
|
||||
IF( @TAS_TYPE != 'SUBPROCESS') THEN
|
||||
IF( @TAS_TYPE != 'SUBPROCESS') THEN
|
||||
UPDATE `APP_CACHE_VIEW`
|
||||
SET
|
||||
APP_NUMBER = @APP_NUMBER,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user