Merge pull request #817 from norahmollo/master
CODE STYLE Formating worflow/engine/methods/tracker/
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Authentication for Case Tracker
|
||||
@@ -31,7 +30,8 @@
|
||||
|
||||
if (! isset( $_POST['form'] )) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', "error" );
|
||||
G::header ("location: login.php");die;
|
||||
G::header( "location: login.php" );
|
||||
die();
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -61,11 +61,10 @@ try {
|
||||
|
||||
if ($uid < 0) {
|
||||
G::header( "location: login.php" );
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
if(is_array($uid))
|
||||
{
|
||||
if (is_array( $uid )) {
|
||||
require_once ("classes/model/CaseTracker.php");
|
||||
require_once ("classes/model/CaseTrackerObject.php");
|
||||
$_SESSION['CASE'] = $case;
|
||||
@@ -79,30 +78,24 @@ try {
|
||||
$criteria->add( CaseTrackerPeer::PRO_UID, $_SESSION['PROCESS'] );
|
||||
$caseTracker = new CaseTracker();
|
||||
if (CaseTrackerPeer::doCount( $criteria ) === 0) {
|
||||
$permissionsCaseTracker = array('PRO_UID' => $_SESSION['PROCESS'],
|
||||
'CT_MAP_TYPE' => 'PROCESSMAP',
|
||||
'CT_DERIVATION_HISTORY' => 1,
|
||||
'CT_MESSAGE_HISTORY' => 1);
|
||||
$permissionsCaseTracker = array ('PRO_UID' => $_SESSION['PROCESS'],'CT_MAP_TYPE' => 'PROCESSMAP','CT_DERIVATION_HISTORY' => 1,'CT_MESSAGE_HISTORY' => 1
|
||||
);
|
||||
$caseTracker->create( $permissionsCaseTracker );
|
||||
}
|
||||
$caseTracker = $cases->caseTrackerPermissions( $_SESSION['PROCESS'] );
|
||||
|
||||
if ($caseTracker['CT_MAP_TYPE']) {
|
||||
G::header( 'location: tracker_ViewMap' );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($caseTracker['DYNADOC']) {
|
||||
G::header( "location: tracker_DynaDocs" );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($caseTracker['CT_DERIVATION_HISTORY']) {
|
||||
G::header( "location: tracker_History" );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($caseTracker['CT_MESSAGE_HISTORY']) {
|
||||
G::header( "location: tracker_No" );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
G::header( "location: login.php" );
|
||||
G::SendTemporalMessage( 'ID_ACCOUNT_DISABLED_CONTACT_ADMIN', "error" );
|
||||
}
|
||||
@@ -110,11 +103,11 @@ try {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
} catch (Exception $e) {
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish' );
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -30,8 +29,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
//echo G::generateUniqueNumber();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/login', '', '', SYS_URI . 'tracker/authentication.php' );
|
||||
|
||||
@@ -39,7 +37,3 @@ G::RenderPage( "publish" );
|
||||
session_destroy();
|
||||
session_start();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
try {
|
||||
if (isset( $_POST['form']['action'] )) {
|
||||
@@ -60,7 +59,7 @@ try {
|
||||
case 'editStagesMap':
|
||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'tracker/stages_Map.html' );
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode( '
|
||||
@@ -91,8 +90,7 @@ try {
|
||||
$oInputDocument = new InputDocument();
|
||||
if ($oAppDocument->Fields['DOC_UID'] != - 1) {
|
||||
$Fields = $oInputDocument->load( $oAppDocument->Fields['DOC_UID'] );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$Fields = array ('INP_DOC_FORM_NEEDED' => '','FILENAME' => $oAppDocument->Fields['APP_DOC_FILENAME']);
|
||||
}
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
@@ -107,8 +105,7 @@ try {
|
||||
$oUser = new Users();
|
||||
$aUser = $oUser->load( $oAppDocument->Fields['USR_UID'] );
|
||||
$Fields['CREATOR'] = $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'];
|
||||
switch ($Fields['INP_DOC_FORM_NEEDED'])
|
||||
{
|
||||
switch ($Fields['INP_DOC_FORM_NEEDED']) {
|
||||
case 'REAL':
|
||||
$sXmlForm = 'tracker/tracker_ViewAnyInputDocument2';
|
||||
break;
|
||||
@@ -137,8 +134,7 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $sXmlForm, '', G::array_merges( $Fields, $oAppDocument->Fields ), '' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
@@ -169,7 +165,6 @@ try {
|
||||
$aFields['FILE1'] = 'tracker_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=doc&random=' . rand();
|
||||
$aFields['FILE2'] = 'tracker_ShowOutputDocument?a=' . $aFields['APP_DOC_UID'] . '&ext=pdf&random=' . rand();
|
||||
|
||||
|
||||
//If plugin and trigger are defined for listing
|
||||
if ($oPluginRegistry->existsTrigger( PM_CASE_DOCUMENT_LIST_ARR )) {
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
@@ -182,8 +177,6 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/tracker_ViewAnyOutputDocument', '', G::array_merges( $aOD, $aFields ), '' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
@@ -199,7 +192,9 @@ try {
|
||||
PRIMARY KEY ( `STG_UID` )
|
||||
);" );
|
||||
$oStatement->executeQuery();
|
||||
/***************************************************************************************************************/
|
||||
/**
|
||||
* ************************************************************************************************************
|
||||
*/
|
||||
require_once 'classes/model/Stage.php';
|
||||
require_once 'classes/model/Process.php';
|
||||
require_once 'classes/model/Task.php';
|
||||
@@ -305,16 +300,17 @@ try {
|
||||
$aRow = $oDataset->getRow();
|
||||
if ((int) $aRow['TIMES'] > 0) {
|
||||
$iStageNumber += 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$bContinue = true;
|
||||
}
|
||||
}
|
||||
$oStage = new Stage();
|
||||
$oNewStage->label = G::LoadTranslation( 'ID_STAGE' ) . ' ' . $iStageNumber;
|
||||
|
||||
if($oData->position->x < 0) $oData->position->x *= -1;
|
||||
if($oData->position->y < 0) $oData->position->y *= -1;
|
||||
if ($oData->position->x < 0)
|
||||
$oData->position->x *= - 1;
|
||||
if ($oData->position->y < 0)
|
||||
$oData->position->y *= - 1;
|
||||
|
||||
$oNewStage->uid = $oStage->create( array ('PRO_UID' => $oData->uid,'STG_TITLE' => $oNewStage->label,'STG_POSX' => $oData->position->x,'STG_POSY' => $oData->position->y,'STG_INDEX' => $iIndex) );
|
||||
$oJSON = new Services_JSON();
|
||||
@@ -429,14 +425,12 @@ try {
|
||||
$arrayField["sLabel3"] = G::LoadTranslation( "ID_PENDING_TASK" );
|
||||
$arrayField["sLabel4"] = G::LoadTranslation( "ID_PARALLEL_TASK" );
|
||||
$arrayField["tracker"] = 1;
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( "smarty", "cases/cases_Leyends", "", "", $arrayField );
|
||||
G::RenderPage( "publish", "raw" );
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
} catch (Exception $oException) {
|
||||
die( $oException->getMessage() );
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
try {
|
||||
@@ -32,12 +30,12 @@ try {
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
}
|
||||
require_once 'classes/model/CaseTrackerObject.php';
|
||||
@@ -47,8 +45,7 @@ try {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/tracker_ConditionsEdit', '', $aFields, '../tracker/tracker_ConditionsSave' );
|
||||
G::RenderPage( 'publish-raw', 'raw' );
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
} catch (Exception $oException) {
|
||||
die( $oException->getMessage() );
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
try {
|
||||
@@ -32,12 +30,12 @@ try {
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
}
|
||||
require_once 'classes/model/CaseTrackerObject.php';
|
||||
@@ -50,8 +48,7 @@ try {
|
||||
$aFields = $oCaseTrackerObject->load( $value['CTO_UID'] );
|
||||
$aFields['CTO_CONDITION'] = $value['CTO_CONDITION'];
|
||||
$oCaseTrackerObject->update( $aFields );
|
||||
}
|
||||
catch (Exception $oException) {
|
||||
} catch (Exception $oException) {
|
||||
die( $oException->getMessage() );
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* dynaforms & documents for Case Tracker
|
||||
@@ -63,11 +62,8 @@ $G_PUBLISH = new Publisher();
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_title', '', '', $aFields );
|
||||
}
|
||||
$G_PUBLISH->AddContent( 'propeltable',
|
||||
'paged-table',
|
||||
'tracker/tracker_DynaDocs',
|
||||
$oProcessMap->getCaseTrackerObjectsCriteria($_SESSION['PROCESS']),
|
||||
array('VIEW' => G::LoadTranslation('ID_VIEW')));
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'tracker/tracker_DynaDocs', $oProcessMap->getCaseTrackerObjectsCriteria( $_SESSION['PROCESS'] ), array ('VIEW' => G::LoadTranslation( 'ID_VIEW' )
|
||||
) );
|
||||
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Hystory case for Case Tracker
|
||||
@@ -61,10 +60,6 @@ $G_PUBLISH = new Publisher();
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_title', '', '', $aFields );
|
||||
}
|
||||
$G_PUBLISH->AddContent( 'propeltable',
|
||||
'paged-table',
|
||||
'tracker/tracker_TransferHistory',
|
||||
Cases::getTransferHistoryCriteria($_SESSION['APPLICATION']),
|
||||
array());
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'tracker/tracker_TransferHistory', Cases::getTransferHistoryCriteria( $_SESSION['APPLICATION'] ), array () );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* History messages for Case Tracker
|
||||
@@ -62,9 +61,7 @@ $G_PUBLISH = new Publisher();
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_title', '', '', $aFields );
|
||||
}
|
||||
$G_PUBLISH->AddContent( 'propeltable',
|
||||
'paged-table',
|
||||
'tracker/tracker_Messages',
|
||||
Cases::getHistoryMessagesTracker($_SESSION['APPLICATION']),
|
||||
array('VIEW' => G::LoadTranslation('ID_VIEW')));
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'tracker/tracker_Messages', Cases::getHistoryMessagesTracker( $_SESSION['APPLICATION'] ), array ('VIEW' => G::LoadTranslation( 'ID_VIEW' )
|
||||
) );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29,8 +28,7 @@
|
||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||
*
|
||||
*/
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
$G_MAIN_MENU = 'caseTracker';
|
||||
@@ -43,3 +41,4 @@
|
||||
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/tracker_MessagesView', '', $Fields );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29,13 +28,13 @@
|
||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||
*
|
||||
*/
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
$G_MAIN_MENU = 'caseTracker';
|
||||
//$G_ID_MENU_SELECTED = 'DYNADOC';
|
||||
|
||||
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
try {
|
||||
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
|
||||
@@ -61,13 +59,11 @@ try {
|
||||
// $array['PROCESS'] = G::LoadTranslation('ID_PROCESS');
|
||||
$array['DATELABEL'] = G::LoadTranslation( 'DATE_LABEL' );
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_PrintViewTitle', '', '', $array );
|
||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['CTO_UID_OBJ'], '', $Fields['APP_DATA'], '', '', 'view' );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
|
||||
|
||||
} catch (Exception $oException) {
|
||||
die( $oException->getMessage() );
|
||||
}
|
||||
@@ -102,3 +98,4 @@ try {
|
||||
window.print();
|
||||
} catch(e){}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -14,3 +14,4 @@ if (!isset($sValue['CT_MESSAGE_HISTORY'])) {
|
||||
require_once 'classes/model/CaseTracker.php';
|
||||
$oCaseTracker = new CaseTracker();
|
||||
$oCaseTracker->update( $sValue );
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -30,8 +29,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
if (!isset($_SESSION['PROCESS']))
|
||||
{
|
||||
if (! isset( $_SESSION['PROCESS'] )) {
|
||||
G::header( 'location: login' );
|
||||
}
|
||||
|
||||
@@ -44,8 +42,7 @@
|
||||
$G_ID_MENU_SELECTED = 'DYNADOC';
|
||||
global $G_PUBLISH;
|
||||
|
||||
switch ($_GET['CTO_TYPE_OBJ'])
|
||||
{
|
||||
switch ($_GET['CTO_TYPE_OBJ']) {
|
||||
case 'DYNAFORM':
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
@@ -57,7 +54,7 @@
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PRINT_PREVIEW'] = '#';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PRINT_PREVIEW_ACTION'] = 'tracker_PrintView?CTO_UID_OBJ=' . $_GET['CTO_UID_OBJ'] . '&CTO_TYPE_OBJ=PRINT_PREVIEW';
|
||||
$_SESSION['CTO_UID_OBJ'] = $_GET['CTO_UID_OBJ'];
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['CTO_UID_OBJ'], '', $Fields['APP_DATA'], '', '', 'view' );
|
||||
G::RenderPage( 'publish' );
|
||||
break;
|
||||
@@ -70,7 +67,7 @@
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile( '/jscore/tracker/tracker.js' );
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'tracker/tracker_Inputdocs', $c );
|
||||
G::RenderPage( 'publish' );
|
||||
break;
|
||||
@@ -89,4 +86,3 @@
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
require_once ("classes/model/AppDocumentPeer.php");
|
||||
@@ -41,16 +40,13 @@ $ext = $info['extension'];
|
||||
if (isset( $_GET['b'] )) {
|
||||
if ($_GET['b'] == '0') {
|
||||
$bDownload = false;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$bDownload = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$bDownload = true;
|
||||
}
|
||||
|
||||
|
||||
$realPath = PATH_DOCUMENT . $oAppDocument->Fields['APP_UID'] . '/' . $sAppDocUid . '_' . $iDocVersion . '.' . $ext;
|
||||
$realPath1 = PATH_DOCUMENT . $oAppDocument->Fields['APP_UID'] . '/' . $sAppDocUid . '.' . $ext;
|
||||
$sw_file_exists = false;
|
||||
@@ -71,7 +67,7 @@ if(!$sw_file_exists){
|
||||
G::SendMessageText( $error_message, "ERROR" );
|
||||
$backUrlObj = explode( "sys" . SYS_SYS, $_SERVER['HTTP_REFERER'] );
|
||||
G::header( "location: " . "/sys" . SYS_SYS . $backUrlObj[1] );
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -83,3 +79,4 @@ if(!$sw_file_exists){
|
||||
G::streamFile( $realPath, $bDownload, $oAppDocument->Fields['APP_DOC_FILENAME'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Created on 13-02-2008
|
||||
@@ -36,12 +35,10 @@ $sAppDocUid = $oAppDocument->getAppDocUid();
|
||||
$info = pathinfo( $oAppDocument->getAppDocFilename() );
|
||||
if (! isset( $_GET['ext'] )) {
|
||||
$ext = $info['extension'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($_GET['ext'] != '') {
|
||||
$ext = $_GET['ext'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$ext = $info['extension'];
|
||||
}
|
||||
}
|
||||
@@ -73,7 +70,7 @@ if(!$sw_file_exists){
|
||||
G::SendMessageText( $error_message, "ERROR" );
|
||||
$backUrlObj = explode( "sys" . SYS_SYS, $_SERVER['HTTP_REFERER'] );
|
||||
G::header( "location: " . "/sys" . SYS_SYS . $backUrlObj[1] );
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -86,4 +83,4 @@ if(!$sw_file_exists){
|
||||
}
|
||||
}
|
||||
//G::streamFile ( $realPath, true);
|
||||
?>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Map for Case Tracker
|
||||
@@ -66,7 +65,7 @@ switch (($aCaseTracker['CT_MAP_TYPE'])) {
|
||||
$aFields['TITLE'] = G::LoadTranslation( 'ID_TITLE' );
|
||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'processes/processes_Map.html' );
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_title', '', '', $aFields );
|
||||
}
|
||||
@@ -150,7 +149,7 @@ switch (($aCaseTracker['CT_MAP_TYPE'])) {
|
||||
$aFields['TITLE'] = G::LoadTranslation( 'ID_TITLE' );
|
||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'tracker/stages_Map.html' );
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/cases_title', '', '', $aFields );
|
||||
}
|
||||
@@ -178,3 +177,4 @@ switch (($aCaseTracker['CT_MAP_TYPE'])) {
|
||||
G::RenderPage( 'publish' );
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user