BUG 8853 Adding the cases from "unassigned Folder" to simplified... SOLVED

- No had this option.
- Was added the functionality Unassigned Inbox.
This commit is contained in:
Marco Antonio Nina
2012-07-25 10:52:35 -04:00
parent 0564efebbe
commit b687993617
2 changed files with 37 additions and 34 deletions

View File

@@ -58,11 +58,8 @@ class Home extends Controller
$this->setVar('usr', $data['u']);
$this->setVar('pwd', $data['p']);
$this->setVar('skin', $skin);
echo "<br><br>Este es el template<br><br>";
echo $template;
$this->setView("home/$template");
$this->render();
}
@@ -169,8 +166,7 @@ class Home extends Controller
$_SESSION['APPLICATION'] = $lastApp['APP_UID'];
$_SESSION['PROCESS'] = $lastApp['PRO_UID'];
$_SESSION['TASK'] = $lastApp['TAS_UID'];
$steps = $apps->getSteps($lastApp['APP_UID'], $lastApp['DEL_INDEX'], $lastApp['TAS_UID'], $lastApp['PRO_UID']);
$lastStep = array_pop($steps);
$lastStep['title'] = G::LoadTranslation('ID_FINISH');
@@ -186,36 +182,44 @@ class Home extends Controller
$this->render();
}
public function appList($httpData)
{
// setting default list applications types [default: todo]
$httpData->t = isset($httpData->t)? $httpData->t : 'todo';
public function appList($httpData)
{
// setting default list applications types [default: todo]
$httpData->t = isset($httpData->t)? $httpData->t : 'todo';
// setting main list title
switch ($httpData->t) {
case 'todo' : $title = 'My Inbox'; break;
case 'draft' : $title = 'My Drafts'; break;
case 'unassigned' : $title = 'Unassigned Inbox'; break;
default: $title = ucwords($httpData->t);
// setting main list title
switch ($httpData->t) {
case 'todo':
$title = 'My Inbox';
break;
case 'draft':
$title = 'My Drafts';
break;
case 'unassigned':
$title = 'Unassigned Inbox';
break;
default:
$title = ucwords($httpData->t);
break;
}
// getting apps data
$cases = $this->getAppsData($httpData->t);
// settings html template
$this->setView('home/appList');
// settings vars and rendering
$this->setVar('cases', $cases['data']);
$this->setVar('cases_count', $cases['totalCount']);
$this->setVar('title', $title);
$this->setVar('appListStart', $this->appListLimit);
$this->setVar('appListLimit', 10);
$this->setVar('listType', $httpData->t);
$this->render();
}
// getting apps data
$cases = $this->getAppsData($httpData->t);
// settings html template
$this->setView('home/appList');
// settings vars and rendering
$this->setVar('cases', $cases['data']);
$this->setVar('cases_count', $cases['totalCount']);
$this->setVar('title', $title);
$this->setVar('appListStart', $this->appListLimit);
$this->setVar('appListLimit', 10);
$this->setVar('listType', $httpData->t);
//print_r($this->render());
$this->render();
}
public function getApps($httpData)
{
$cases = $this->getAppsData($httpData->t, $httpData->start, $httpData->limit);