source: branches/2.2/workflow/inc/class.ui_monitors.inc.php @ 3167

Revision 3167, 4.0 KB checked in by viani, 14 years ago (diff)

Ticket #1135 - Merged r1990:3166 from /trunk/workflow into /branches/2.2/workflow

  • 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');
14/**
15 * @package Workflow
16 * @license http://www.gnu.org/copyleft/gpl.html GPL
17 * @author Sidnei Augusto Drovetto Jr. - drovetto@gmail.com
18 */
19class ui_monitors extends ui_ajaxinterface
20{
21        /**
22         * @var $public_functions public functions
23         * @access public
24         */
25        var $public_functions = array(
26                'form'  => true
27        );
28
29        /**
30         * @var $workflow_acl object for check access rights of workflow
31         * @access public
32         */
33        var $workflow_acl;
34
35        function ui_monitors()
36        {
37                $this->set_wf_session();
38                $this->workflow_acl = Factory::getInstance('workflow_acl');
39
40                if (!($this->workflow_acl->checkUserGroupAccessToType('MON', $_SESSION['phpgw_info']['workflow']['account_id']) || ($this->workflow_acl->checkWorkflowAdmin($_SESSION['phpgw_info']['workflow']['account_id']))))
41                {
42                        $GLOBALS['phpgw']->common->phpgw_header();
43                        echo parse_navbar();
44                        echo lang('access not permitted');
45                        $GLOBALS['phpgw']->log->message('F-Abort, Unauthorized access to workflow.ui_adminprocesses');
46                        $GLOBALS['phpgw']->log->commit();
47                        $GLOBALS['phpgw']->common->phpgw_exit();
48                }
49        }
50
51        /**
52         * Draw the interface
53         * @access public
54         */
55        function form()
56        {
57                $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['workflow']['title'] . ' - ' . lang('%1 monitoring');
58                $GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow');
59                $smarty = Factory::getInstance('workflow_smarty');
60
61                $javaScripts = $this->get_common_js();
62                $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'prototype');
63                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar');
64                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-br');
65                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-setup');
66                $javaScripts .= $this->get_js_link('workflow','jscalendar', 'calendar-input');
67                $javaScripts .= $this->get_js_link('workflow','monitors', 'general');
68                $javaScripts .= $this->get_js_link('workflow','monitors', 'processes');
69                $javaScripts .= $this->get_js_link('workflow','monitors', 'instances');
70                $javaScripts .= $this->get_js_link('workflow','monitors', 'properties');
71                $javaScripts .= $this->get_js_link('workflow','monitors', 'filters');
72                $javaScripts .= $this->get_js_link('workflow','monitors', 'massActions');
73                $javaScripts .= $this->get_js_link('workflow','userinterface', 'inbox_actions');
74                $javaScripts .= $this->get_js_link('workflow','userinterface', 'common_functions');
75                $javaScripts .= $this->get_js_link('workflow','jscode', 'participants');
76                $javaScripts .= $this->get_js_link('workflow','nano', 'JSON');
77                $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'lightbox');
78
79                $css = $this->get_common_css();
80                $css .= $this->get_css_link('monitors');
81                $css .= $this->get_css_link('lightbox');
82                $css .= '<link rel="stylesheet" type="text/css" media="all" href="workflow/js/jscalendar/calendar-blue.css">';
83
84                $tabs = array('Processos');
85
86                $smarty->assign('header', $smarty->expressoHeader);
87                $smarty->assign('footer', $smarty->expressoFooter);
88                $smarty->assign('txt_loading', lang("loading"));
89                $smarty->assign('javaScripts', $javaScripts);
90                $smarty->assign('css', $css);
91                $smarty->assign('tabs', $tabs);
92                $smarty->display('monitors.tpl');
93        }
94}
95?>
Note: See TracBrowser for help on using the repository browser.