diff --git a/workflow/engine/controllers/home.php b/workflow/engine/controllers/home.php index 5e6d3ae99..4fd7d5051 100755 --- a/workflow/engine/controllers/home.php +++ b/workflow/engine/controllers/home.php @@ -14,6 +14,7 @@ class Home extends Controller private $userFullName; private $userRolName; private $userUxType; + private $userUxBaseTemplate; private $appListStart = 0; private $appListLimit = 15; @@ -30,6 +31,7 @@ class Home extends Controller // getting the ux type from user o group conf. $this->userUxType = isset($_SESSION['user_experience'])? $_SESSION['user_experience']: 'SIMPLIFIED'; $this->lastSkin = isset($_SESSION['user_last_skin']) ? $_SESSION['user_last_skin'] : 'classic'; + $this->userUxBaseTemplate = (is_dir(PATH_CUSTOM_SKINS . 'uxs')) ? PATH_CUSTOM_SKINS . 'simplified' . PATH_SEP . 'templates' : 'home'; if (isset($_SESSION['USER_LOGGED']) && !empty($_SESSION['USER_LOGGED'])) { $this->userID = isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : null; @@ -59,7 +61,7 @@ class Home extends Controller $this->setVar('pwd', $data['p']); $this->setVar('skin', $skin); - $this->setView("home/$template"); + $this->setView($this->userUxBaseTemplate . PATH_SEP . $template); $this->render(); } @@ -127,7 +129,7 @@ class Home extends Controller } } - $this->setView('home/index'); + $this->setView($this->userUxBaseTemplate . PATH_SEP . 'index'); $this->setVar('usrUid', $this->userID); $this->setVar('userName', $this->userName); @@ -152,11 +154,10 @@ class Home extends Controller $cases = $apps->getAll($this->userID, 0, 1, 'todo'); - if (!isset($cases['data'][0])) { //the current user has not any aplication to do - $this->setView('home/indexSingle'); - $this->setVar('default_url', 'home/error?no=2'); + $this->setView($this->userUxBaseTemplate . PATH_SEP .'indexSingle'); + $this->setVar('default_url', $this->userUxBaseTemplate . "/" . 'error?no=2'); $this->render(); exit(); } @@ -172,7 +173,7 @@ class Home extends Controller $lastStep['title'] = G::LoadTranslation('ID_FINISH'); $steps[] = $lastStep; - $this->setView('home/indexSingle'); + $this->setView($this->userUxBaseTemplate . PATH_SEP . 'indexSingle'); $this->setVar('usrUid', $this->userID); $this->setVar('userName', $this->userName); @@ -207,7 +208,7 @@ class Home extends Controller $cases = $this->getAppsData($httpData->t); // settings html template - $this->setView('home/appList'); + $this->setView($this->userUxBaseTemplate . PATH_SEP . 'appList'); // settings vars and rendering $this->setVar('cases', $cases['data']); @@ -224,7 +225,7 @@ class Home extends Controller { $cases = $this->getAppsData($httpData->t, $httpData->start, $httpData->limit); - $this->setView('home/applications'); + $this->setView($this->userUxBaseTemplate . PATH_SEP . 'applications'); $this->setVar('cases', $cases['data']); $this->render(); } @@ -304,8 +305,8 @@ class Home extends Controller $httpData->no = isset($httpData->no) ? $httpData->no : 0; switch ($httpData->no) { - case 2: $tpl = 'home/noAppsMsg'; break; - default: $tpl = 'home/error'; + case 2: $tpl = $this->userUxBaseTemplate . PATH_SEP . 'noAppsMsg'; break; + default: $tpl = $this->userUxBaseTemplate . PATH_SEP . 'error'; } $this->setView($tpl); diff --git a/workflow/engine/skinEngine/simplified/templates/appList.html b/workflow/engine/skinEngine/simplified/templates/appList.html new file mode 100644 index 000000000..95c88e871 --- /dev/null +++ b/workflow/engine/skinEngine/simplified/templates/appList.html @@ -0,0 +1,174 @@ + + +
+ + + + + + + + + + + {literal} + + + + + + + ++ + {$APP.APP_TITLE} + +
++ {if $APP.APP_DEL_PREVIOUS_USER != ''} + From {$APP.APP_DEL_PREVIOUS_USER}, send at + {/if} + {$APP.DEL_DELEGATE_DATE} +
+{$APP.APP_PRO_TITLE}
+
{$APP.APP_TAS_TITLE}
|
+ |
+
+ {$NOTE.USR_FIRSTNAME} {$NOTE.USR_LASTNAME} ({$NOTE.USR_USERNAME})+{$NOTE.NOTE_CONTENT}
+ Posted at {$NOTE.NOTE_DATE}
+ |
+
| Information |