if ($actionAjax == 'messageHistoryGridList_JXP') { if (!isset($_REQUEST['start'])) { $_REQUEST['start'] = 0; } if (!isset($_REQUEST['limit'])) { $_REQUEST['limit'] = 20; } G::LoadClass('case'); G::LoadClass("BasePeer"); $dir = isset($_POST['dir']) ? $_POST['dir'] : 'ASC'; $sort = isset($_POST['sort']) ? $_POST['sort'] : ''; global $G_PUBLISH; $oCase = new Cases(); $oCase->dir = $dir; $oCase->sort = $sort; $appMessageArray = $oCase->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true, $_REQUEST['start'], $_REQUEST['limit']); $appMessageCountArray = $oCase->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true); $result = new stdClass(); $aProcesses = array(); $proUid = $_SESSION['PROCESS']; $appUid = $_SESSION['APPLICATION']; $tasUid = $_SESSION['TASK']; $usrUid = $_SESSION['USER_LOGGED']; $respBlock = $oCase->getAllObjectsFrom($proUid, $appUid, $tasUid, $usrUid, 'BLOCK'); $respView = $oCase->getAllObjectsFrom($proUid, $appUid, $tasUid, $usrUid, 'VIEW'); $respResend = $oCase->getAllObjectsFrom($proUid, $appUid, $tasUid, $usrUid, 'RESEND'); $delIndex = array(); $respMess = ""; if (count($respBlock["MSGS_HISTORY"]) > 0) { $respMess = $respBlock["MSGS_HISTORY"]["PERMISSION"]; if (isset($respBlock["MSGS_HISTORY"]["DEL_INDEX"])) {
* 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. * */ $actionAjax = isset($_REQUEST['actionAjax']) ? $_REQUEST['actionAjax'] : null; if ($actionAjax == 'messageHistoryGridList_JXP') { G::LoadClass('case'); G::LoadClass("BasePeer"); global $G_PUBLISH; $oCase = new Cases(); $appMessageArray = $oCase->getHistoryMessagesTrackerExt($_SESSION['APPLICATION']); $result = new stdClass(); $aProcesses = array(); $totalCount = 0; foreach ($appMessageArray as $index => $value) { $appMessageArray[$index]['ID_MESSAGE'] = $appMessageArray[$index]['APP_UID'] . '_' . $appMessageArray[$index]['APP_MSG_UID']; $aProcesses[] = $appMessageArray[$index]; $totalCount++; } $newDir = '/tmp/test/directory'; $r = G::verifyPath($newDir); $r->data = $aProcesses; $r->totalCount = $totalCount; echo G::json_encode($r); } if ($actionAjax == 'showHistoryMessage') {