2013-01-24 10:35:33 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Implementation of RemoveWorkflow view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2013-01-24 10:35:33 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @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
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
//require_once("class.Bootstrap.php");
|
2013-01-24 10:35:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which outputs the html page for Removeorkflow view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2013-01-24 10:35:33 +00:00
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
2021-04-18 05:08:00 +00:00
|
|
|
class SeedDMS_View_RemoveWorkflow extends SeedDMS_Theme_Style {
|
2013-01-24 10:35:33 +00:00
|
|
|
|
|
|
|
function show() { /* {{{ */
|
|
|
|
$dms = $this->params['dms'];
|
|
|
|
$user = $this->params['user'];
|
2013-01-24 18:18:29 +00:00
|
|
|
$workflow = $this->params['workflow'];
|
2013-01-24 10:35:33 +00:00
|
|
|
|
2013-01-24 18:18:29 +00:00
|
|
|
$this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($workflow->getName()))));
|
|
|
|
$this->globalNavigation();
|
2013-01-24 10:35:33 +00:00
|
|
|
$this->contentStart();
|
2013-01-24 18:18:29 +00:00
|
|
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
2013-01-24 10:35:33 +00:00
|
|
|
$this->contentHeading(getMLText("rm_workflow"));
|
|
|
|
$this->contentContainerStart();
|
|
|
|
// Display the Workflow form.
|
2020-10-08 05:57:23 +00:00
|
|
|
$this->rowStart();
|
|
|
|
$this->columnStart(4);
|
2013-01-24 10:35:33 +00:00
|
|
|
?>
|
|
|
|
<p><?php printMLText("rm_workflow_warning"); ?></p>
|
2016-03-18 14:33:18 +00:00
|
|
|
<form method="post" action="../op/op.RemoveWorkflow.php" name="form1">
|
2013-01-24 10:35:33 +00:00
|
|
|
<?php echo createHiddenFieldWithKey('removeworkflow'); ?>
|
2013-01-24 18:18:29 +00:00
|
|
|
<input type='hidden' name='workflowid' value='<?php echo $workflow->getId(); ?>'/>
|
2020-10-08 07:17:23 +00:00
|
|
|
<button type='submit' class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_workflow"); ?></button>
|
2013-01-24 10:35:33 +00:00
|
|
|
</form>
|
2020-10-08 05:57:23 +00:00
|
|
|
<?php
|
|
|
|
$this->columnEnd();
|
|
|
|
$this->columnStart(8);
|
|
|
|
?>
|
|
|
|
<div id="workflowgraph">
|
2021-04-18 05:08:00 +00:00
|
|
|
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?>" width="100%" height="670" style="border: 1px solid #AAA;"></iframe>
|
2013-01-24 10:35:33 +00:00
|
|
|
</div>
|
|
|
|
<?php
|
2020-10-08 05:57:23 +00:00
|
|
|
$this->columnEnd();
|
|
|
|
$this->rowEnd();
|
2013-01-24 10:35:33 +00:00
|
|
|
$this->contentContainerEnd();
|
|
|
|
|
2016-03-15 07:30:53 +00:00
|
|
|
$this->contentEnd();
|
2013-01-24 10:35:33 +00:00
|
|
|
$this->htmlEndPage();
|
|
|
|
} /* }}} */
|
|
|
|
}
|
|
|
|
?>
|