* @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Class which outputs the html page for WorkspaceMgr view * * @category DMS * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_WorkflowMgr extends SeedDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $selworkflow = $this->params['selworkflow']; $workflows = $this->params['allworkflows']; $workflowstates = $this->params['allworkflowstates']; $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); ?> contentHeading(getMLText("workflow_management")); ?>
:
getID()."\" style=\"display : none;\">"; $transitions = $currWorkflow->getTransitions(); $initstate = $currWorkflow->getInitState(); $hasinitstate = true; $missesug = false; if($transitions) { $hasinitstate = false; foreach($transitions as $transition) { $transusers = $transition->getUsers(); $transgroups = $transition->getGroups(); if(!$transusers && !$transgroups) { $missesug = true; } if($transition->getState()->getID() == $initstate->getID()) $hasinitstate = true; } } if($missesug) $this->errorMsg('One of the transitions has neither a user nor a group!'); if(!$hasinitstate) $this->errorMsg('None of the transitions starts with the initial state of the workflow!'); ?>
isUsed()) { ?>

:
:
getAllWorkflowActions(); if($actions) { $transitions = $currWorkflow->getTransitions(); echo ""; echo ""; if($transitions) { foreach($transitions as $transition) { $state = $transition->getState(); $nextstate = $transition->getNextState(); $action = $transition->getAction(); $transusers = $transition->getUsers(); $transgroups = $transition->getGroups(); echo ""; echo ""; echo ""; echo "\n"; } } ?> "; echo ""; echo ""; echo ""; echo "\n"; ?> "; } ?>
".getMLText('state_and_next_state')."".getMLText('action')."".getMLText('users_and_groups')."
".$state->getName()."
"; echo $nextstate->getName(); $docstatus = $nextstate->getDocumentStatus(); if($docstatus == S_RELEASED || $docstatus == S_REJECTED) { echo "
".getOverallStatusText($docstatus); } echo "
".$action->getName().""; foreach($transusers as $transuser) { $u = $transuser->getUser(); echo getMLText('user').": ".$u->getFullName(); echo "
"; } foreach($transgroups as $transgroup) { $g = $transgroup->getGroup(); echo getMLText('at_least_n_users_of_group', array("number_of_users" => $transgroup->getNumOfUsers(), "group" => $g->getName())); echo "
"; } echo "
"; ?>
"; echo "
"; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo ""; echo "
"; ?> "> "; echo "
htmlEndPage(); } /* }}} */ } ?>