$G_PUBLISH = new Publisher(); $Fields['DOC_UID'] = $_POST['docID']; $Fields['APP_DOC_UID'] = $_POST['appDocId']; $G_PUBLISH->AddContent('propeltable', 'paged-table', 'cases/cases_InputdocsListHistory', $oCase->getInputDocumentsCriteria($_SESSION['APPLICATION'], $_SESSION['INDEX'], $_POST['docID'], $_POST['appDocId']), array()); //$aFields //$G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_AttachInputDocumentGeneral', // '', $Fields, 'cases_SaveDocument?UID=' . $_POST['docID']); G::RenderPage('publish', 'raw'); break; case "getCountCasesFolder": //$json = new Services_JSON(); $aTypes = array('to_do', 'draft', 'cancelled', 'sent', 'paused', 'completed', 'selfservice', 'to_revise', 'to_reassign'); $aTypesID = array('to_do' => 'CASES_INBOX', 'draft' => 'CASES_DRAFT', 'cancelled' => 'CASES_CANCELLED', 'sent' => 'CASES_SENT', 'paused' => 'CASES_PAUSED', 'completed' => 'CASES_COMPLETED', 'selfservice' => 'CASES_SELFSERVICE', 'to_revise' => 'CASES_TO_REVISE', 'to_reassign' => 'CASES_TO_REASSIGN'); if (!isset($_POST['A'])) { $oCases = new Cases(); $aCount = $oCases->getAllConditionCasesCount($aTypes, true); echo Bootstrap::json_encode($aCount); } else { echo Bootstrap::json_encode($aTypesID); } break; case "previusJump": //require_once 'classes/model/Application.php'; $oCriteria = new Criteria('workflow'); $response = array("success" => true); $oCriteria->add(ApplicationPeer::APP_NUMBER, $_POST['appNumber']); $oDataset = ApplicationPeer::doSelectRS($oCriteria); $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC); $oDataset->next(); $aApplication = $oDataset->getRow(); if (is_array($aApplication)) {