* @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 SetWorkflow 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_SetWorkflow extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $document = $this->params['document']; header('Content-Type: application/javascript; charset=UTF-8'); ?> function showWorkflow(selectObj) { id = selectObj.options[selectObj.selectedIndex].value; if (id > 0) { $('#workflowgraph').show(); $('#workflowgraph iframe').attr('src', 'out.WorkflowGraph.php?documentid=getID(); ?>&workflow='+id); } else { $('#workflowgraph').hide(); } } $(document).ready( function() { $( "#selector" ).change(function() { showWorkflow(this); }); }); params['dms']; $user = $this->params['user']; $folder = $this->params['folder']; $document = $this->params['document']; $latestContent = $document->getLatestContent(); $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("set_workflow")); $this->contentContainerStart(); // Display the Workflow form. ?>
getAllWorkflows(); if($workflows) { ?>
"; $mandatoryworkflow = $user->getMandatoryWorkflow(); $workflows=$dms->getAllWorkflows(); foreach ($workflows as $workflow) { print ""; } echo ""; ?>
">

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>