// Se eliminan las acciones ya realizadas if ($actions > 2 && $actionsPath[$actions - 3] == $actionId) { unset($actionsPath[$actions - 3]); unset($actionsPath[$actions - 2]); $actionsPath = array_values($actionsPath); $actions = count($actionsPath); } $tpl->assign('lastAction', $actionsPath[$actions - 2]); } switch ($actionId) { case \SP\Controller\ActionsInterface::ACTION_ACC_SEARCH: $_SESSION['actionsPath'] = array(\SP\Controller\ActionsInterface::ACTION_ACC_SEARCH); $tpl->assign('lastAction', $lastAction); $controller = new SP\Controller\SearchC($tpl); $controller->getSearchBox(); $controller->getSearch(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_NEW: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getNewAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_COPY: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getCopyAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_EDIT: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getEditAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_EDIT_PASS: $controller = new SP\Controller\AccountC($tpl, null, $itemId);