From 67d267b7446d9697c7e80aca85aa7433ee42fd24 Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Fri, 19 Apr 2013 11:06:20 -0400 Subject: [PATCH] DOCSYSTEM Arreglos de temnplates y etiquetas Arreglos de temnplates y etiquetas --- .../methods/services/login_getStarted.php | 14 ++++- workflow/engine/skinEngine/skinEngine.php | 58 +++++++++++++++++-- workflow/engine/templates/installer/main.js | 11 +++- 3 files changed, 75 insertions(+), 8 deletions(-) diff --git a/workflow/engine/methods/services/login_getStarted.php b/workflow/engine/methods/services/login_getStarted.php index dc7853572..7b453ef85 100755 --- a/workflow/engine/methods/services/login_getStarted.php +++ b/workflow/engine/methods/services/login_getStarted.php @@ -22,7 +22,19 @@ * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ $G_PUBLISH = new Publisher(); -$oTemplatePower = new TemplatePower( PATH_TPL . 'services/login_getStarted.html' ); + +$fileGetStart = PATH_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html'; +if (!file_exists($fileGetStart)) { + $fileGetStart = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'login_getStarted.html'; + if (!file_exists($fileGetStart)) { + $fileGetStart = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html'; + if (!file_exists($fileGetStart)) { + $fileGetStart = PATH_TPL . 'services/login_getStarted.html'; + } + } +} + +$oTemplatePower = new TemplatePower( $fileGetStart ); $oTemplatePower->prepare(); /* $oTemplatePower->newBlock('users'); diff --git a/workflow/engine/skinEngine/skinEngine.php b/workflow/engine/skinEngine/skinEngine.php index f99d9127d..7d74c3888 100755 --- a/workflow/engine/skinEngine/skinEngine.php +++ b/workflow/engine/skinEngine/skinEngine.php @@ -363,10 +363,26 @@ class SkinEngine if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) { $freeOfChargeText = ""; - if (! defined('SKIP_FREE_OF_CHARGE_TEXT')) { - $freeOfChargeText = "Supplied free of charge with no support, certification, warranty,
maintenance nor indemnity by Colosa and its Certified Partners."; + if (! defined('SKIP_FREE_OF_CHARGE_TEXT')) + $freeOfChargeText = "Supplied free of charge with no support, certification, warranty,
maintenance nor indemnity by Colosa and its Certified Partners."; + if(class_exists('pmLicenseManager')) $freeOfChargeText=""; + + $fileFooter = PATH_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved.
$freeOfChargeText " . "

"; + } + } } - $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved.
$freeOfChargeText " . "

"; } $oMenu = new Menu(); @@ -463,7 +479,22 @@ class SkinEngine $footer = ''; if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) { - $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved."; + $fileFooter = PATH_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved.
$freeOfChargeText " . "

"; + } + } + } } //menu @@ -635,12 +666,27 @@ class SkinEngine $footer = ''; if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) { - $freeOfChargeText = ""; if (! defined('SKIP_FREE_OF_CHARGE_TEXT')) $freeOfChargeText = "Supplied free of charge with no support, certification, warranty,
maintenance nor indemnity by Colosa and its Certified Partners."; if(class_exists('pmLicenseManager')) $freeOfChargeText=""; - $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved.
$freeOfChargeText " . "

"; + + $fileFooter = PATH_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $fileFooter = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'footer.html'; + if (file_exists($fileFooter)) { + $footer .= file_get_contents($fileFooter); + } else { + $footer .= "
Copyright © 2003-" . date('Y') . " Colosa, Inc. All rights reserved.
$freeOfChargeText " . "

"; + } + } + } } $oMenu = new Menu(); diff --git a/workflow/engine/templates/installer/main.js b/workflow/engine/templates/installer/main.js index f5b9dd210..25c442147 100644 --- a/workflow/engine/templates/installer/main.js +++ b/workflow/engine/templates/installer/main.js @@ -42,10 +42,19 @@ Ext.onReady(function(){ function finishInstallation() { + Ext.MessageBox.show({ + msg: _('ID_INSTALLING_WORKSPACE'), + progressText: 'Saving...', + width:300, + wait:true, + waitConfig: {interval:200}, + animEl: 'mb7' + }); wizard.showLoadMask(true, _('ID_FINISH')); Ext.Ajax.request({ url: 'createWorkspace', success: function(response){ + Ext.MessageBox.hide(); var response = Ext.util.JSON.decode(response.responseText); Ext.getCmp('finish_message').setValue(getFieldOutput(response.message, response.result)); wizard.showLoadMask(false); @@ -76,7 +85,7 @@ function finishInstallation() }) } }, - failure: function(){wizard.showLoadMask(false);}, + failure: function(){Ext.MessageBox.hide(); wizard.showLoadMask(false);}, params: { 'db_engine' : Ext.getCmp('db_engine' ).getValue(), 'db_hostname' : Ext.getCmp('db_hostname' ).getValue(),