source: trunk/workflow/inc/class.ui_monitors.inc.php @ 795

Revision 795, 4.0 KB checked in by viani, 15 years ago (diff)

Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.

  • Property svn:executable set to *
Line 
1<?php
2
3/**************************************************************************\
4* eGroupWare                                                               *
5* http://www.egroupware.org                                                *
6* --------------------------------------------                             *
7*  This program is free software; you can redistribute it and/or modify it *
8*  under the terms of the GNU General Public License as published by the   *
9*  Free Software Foundation; either version 2 of the License, or (at your  *
10*  option) any later version.                                              *
11\**************************************************************************/
12
13require_once(dirname(__FILE__) . SEP . 'class.ui_ajaxinterface.inc.php');
14require_once(dirname(__FILE__) . SEP . 'class.workflow_acl.inc.php');
15/**
16 * @package Workflow
17 * @license http://www.gnu.org/copyleft/gpl.html GPL
18 * @author Sidnei Augusto Drovetto Jr. - drovetto@gmail.com
19 */
20class ui_monitors extends ui_ajaxinterface
21{
22        /**
23         * @var $public_functions public functions
24         * @access public
25         */
26        var $public_functions = array(
27                'form'  => true
28        );
29
30        /**
31         * @var $workflow_acl object for check access rights of workflow
32         * @access public
33         */
34        var $workflow_acl;
35
36        function ui_monitors()
37        {
38                $this->set_wf_session();
39                $this->workflow_acl = new workflow_acl();
40
41                if (!($this->workflow_acl->checkUserGroupAccessToType('MON', $_SESSION['phpgw_info']['workflow']['account_id']) || ($this->workflow_acl->checkWorkflowAdmin($_SESSION['phpgw_info']['workflow']['account_id']))))
42                {
43                        $GLOBALS['phpgw']->common->phpgw_header();
44                        echo parse_navbar();
45                        echo lang('access not permitted');
46                        $GLOBALS['phpgw']->log->message('F-Abort, Unauthorized access to workflow.ui_adminprocesses');
47                        $GLOBALS['phpgw']->log->commit();
48                        $GLOBALS['phpgw']->common->phpgw_exit();
49                }
50        }
51
52        /**
53         * Draw the interface
54         * @access public
55         */
56        function form()
57        {
58                $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['workflow']['title'] . ' - ' . lang('%1 monitoring');
59                $GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow');
60                $smarty = CreateObject('workflow.workflow_smarty');
61
62                $javaScripts = $this->get_common_js();
63                $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'prototype');
64                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar');
65                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-br');
66                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-setup');
67                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-input');
68                $javaScripts .= $this->get_js_link('workflow','monitors', 'general');
69                $javaScripts .= $this->get_js_link('workflow','monitors', 'processes');
70                $javaScripts .= $this->get_js_link('workflow','monitors', 'instances');
71                $javaScripts .= $this->get_js_link('workflow','monitors', 'properties');
72                $javaScripts .= $this->get_js_link('workflow','monitors', 'filters');
73                $javaScripts .= $this->get_js_link('workflow','monitors', 'massActions');
74                $javaScripts .= $this->get_js_link('workflow','userinterface', 'inbox_actions');
75                $javaScripts .= $this->get_js_link('workflow','userinterface', 'common_functions');
76                $javaScripts .= $this->get_js_link('workflow','jscode', 'participants');
77                $javaScripts .= $this->get_js_link('workflow','nano', 'JSON');
78                $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'lightbox');
79
80                $css = $this->get_common_css();
81                $css .= $this->get_css_link('monitors');
82                $css .= $this->get_css_link('lightbox');
83                $css .= '<link rel="stylesheet" type="text/css" media="all" href="workflow/js/jscalendar/calendar-blue.css">';
84
85                $tabs = array('Processos');
86
87                $smarty->assign('header', $smarty->expressoHeader);
88                $smarty->assign('footer', $smarty->expressoFooter);
89                $smarty->assign('txt_loading', lang("loading"));
90                $smarty->assign('javaScripts', $javaScripts);
91                $smarty->assign('css', $css);
92                $smarty->assign('tabs', $tabs);
93                $smarty->display('monitors.tpl');
94        }
95}
96?>
Note: See TracBrowser for help on using the repository browser.