[795] | 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 | |
---|
| 12 | require_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 | */ |
---|
| 20 | class ui_move_instances 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('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow'); |
---|
[3167] | 38 | $smarty = Factory::getInstance('workflow_smarty'); |
---|
[795] | 39 | |
---|
| 40 | $javaScripts = $this->get_common_js(); |
---|
| 41 | $javaScripts .= $this->get_js_link('workflow','jscode', 'prototype'); |
---|
| 42 | $javaScripts .= $this->get_js_link('workflow','nano', 'JSON'); |
---|
| 43 | $javaScripts .= $this->get_js_link('workflow','move_instances', 'main'); |
---|
| 44 | $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'scriptaculous', 'load=effects,dragdrop'); |
---|
| 45 | $javaScripts .= $this->get_js_link('workflow','jscode', 'niftycube'); |
---|
| 46 | |
---|
| 47 | $css = $this->get_common_css(); |
---|
| 48 | $css .= $this->get_css_link('move_instances'); |
---|
| 49 | $css .= $this->get_css_link('niftyCorners'); |
---|
| 50 | |
---|
| 51 | $smarty->assign('header', $smarty->expressoHeader); |
---|
| 52 | $smarty->assign('footer', $smarty->expressoFooter); |
---|
| 53 | $smarty->assign('txt_loading', lang("loading")); |
---|
| 54 | $smarty->assign('javaScripts', $javaScripts); |
---|
| 55 | $smarty->assign('css', $css); |
---|
| 56 | $smarty->display('move_instances.tpl'); |
---|
| 57 | } |
---|
| 58 | } |
---|
| 59 | ?> |
---|