source: branches/1.2/workflow/inc/class.ui_adminjobs.inc.php @ 1349

Revision 1349, 2.7 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

Line 
1<?php
2/**************************************************************************\
3* eGroupWare                                                               *
4* http://www.egroupware.org                                                *
5* --------------------------------------------                             *
6*  This program is free software; you can redistribute it and/or modify it *
7*  under the terms of the GNU General Public License as published by the   *
8*  Free Software Foundation; either version 2 of the License, or (at your  *
9*  option) any later version.                                              *
10\**************************************************************************/
11
12require_once(dirname(__FILE__) . SEP . 'class.ui_ajaxinterface.inc.php');
13
14/**
15 * Camada View para Mover Instâncias.
16 * @package Workflow
17 * @author Sidnei Augusto Drovetto Jr. - drovetto@gmail.com
18 * @license http://www.gnu.org/copyleft/gpl.html GPL
19 */
20class ui_adminjobs extends ui_ajaxinterface
21{
22        /**
23         * @var array $public_functions Lista de métodos que podem ser executados.
24         * @access private
25         */
26        var $public_functions = array(
27                        'form'  => true
28                );
29
30        /**
31         * Carrega os valores que serão utilizados para criação da interface para mover instâncias.
32         * @return void
33         * @access public
34         */
35        function form()
36        {
37                $GLOBALS['phpgw_info']['flags'] = array(
38                        'noheader' => false,
39                        'nonavbar' => false,
40                        'currentapp' => 'workflow',
41                        'app_header' => $GLOBALS['phpgw_info']['apps']['workflow']['title'] . ' - ' . lang('Jobs')
42                );
43                $smarty = &$GLOBALS['workflow']['factory']->getInstance('workflow_smarty');
44
45                $javaScripts = $this->get_common_js();
46                $javaScripts .= $this->get_js_link('workflow','jscode', 'prototype');
47                $javaScripts .= $this->get_js_link('workflow','nano', 'JSON');
48                $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'scriptaculous', 'load=effects');
49                $javaScripts .= $this->get_js_link('workflow','adminjobs', 'utils');
50                $javaScripts .= $this->get_js_link('workflow','adminjobs', 'actions');
51                $javaScripts .= $this->get_js_link('workflow','adminjobs', 'interface');
52
53                $css = $this->get_common_css();
54                $css .= $this->get_css_link('adminjobs');
55
56                $processInfo = $GLOBALS['workflow']['factory']->getInstance('workflow_processmanager')->get_process((int) $_REQUEST['p_id']);
57                $smarty->assign('processNameVersion', "{$processInfo['wf_name']} v{$processInfo['wf_version']}");
58                $smarty->assign('processID', (int) $processInfo['wf_p_id']);
59                $smarty->assign('header', $smarty->expressoHeader);
60                $smarty->assign('footer', $this->expressoFooter);
61                $smarty->assign('txt_loading', lang("loading"));
62                $smarty->assign('javaScripts', $javaScripts);
63                $smarty->assign('css', $css);
64                $smarty->display('adminjobs.tpl');
65        }
66}
67?>
Note: See TracBrowser for help on using the repository browser.