* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * * {@internal * created 2006-01-13 * * $Id: include.workflow_list.php 128 2019-07-03 11:58:28Z oldperl $ * }} * */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } $iIdMarked = (int) $_GET['idworkflow']; plugin_include('workflow', 'classes/class.workflow.php'); $workflows = new Workflows; $sScript = ''; if ($action == "workflow_delete") { $workflows->delete($idworkflow); $sScript = ''; } $ui = new UI_Menu; $workflows->select("idclient = '$client' AND idlang = '$lang'"); while ($workflow = $workflows->next()) { $wfid = $workflow->getField("idworkflow"); $wfname = $workflow->getField("name"); $wfdescription = $workflow->getField("description"); /* Create the link to show/edit the workflow */ $link = new Link; $link->setMultiLink("workflow","","workflow_common","workflow_show"); $link->setAlt($wfdescription); $link->setCustom("idworkflow",$wfid); $delTitle = i18n("Delete workflow", "workflow"); $delDescr = sprintf(i18n("Do you really want to delete the following workflow:

%s
", "workflow"),$wfname); $delete = ''.$delTitle.''; $ui->setTitle($wfid, $wfname); $ui->setLink($wfid, $link); $ui->setActions($wfid, 'delete', $delete); if ($wfid == $iIdMarked) { $ui->setExtra ($wfid, 'id="marked" '); } } $content = $ui->render(false); $delScript = ' '; $sInitRowMark = ""; $msgboxInclude = ' '; $page = new UI_Page; $page->addScript('include', $msgboxInclude); $page->addScript('del',$delScript); $page->addScript('refresh', $sScript); $page->setMargin(0); $page->setContent($content.$sInitRowMark); $page->render(); ?>