public function __construct()
 {
     parent::__construct();
     // AjaxPage uses 'result' instead of 'response':
     $this->_Result = new XMLElement('response');
     $this->_Result->setIncludeHeader(true);
     $this->panelId = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
     $this->panelConfig = isset($_REQUEST['config']) ? $_REQUEST['config'] : null;
     $this->panelLabel = isset($_REQUEST['label']) ? $_REQUEST['label'] : null;
     $this->panelPlacement = isset($_REQUEST['placement']) ? $_REQUEST['placement'] : null;
     $this->panelType = isset($_REQUEST['type']) ? $_REQUEST['type'] : null;
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('towing/Dossier_service');
     $this->load->library('towing/Vocabulary_service');
 }
Esempio n. 3
0
foreach ($modules as $module) {
    $basedir = "modules/{$module}/includes/panels/";
    if (is_dir($basedir)) {
        $h = opendir($basedir);
        while (false !== ($f = readdir($h))) {
            if (substr($f, 0, 1) != ".") {
                $file = $basedir . $f;
                include_once $file;
                if (!isset($options["enable"])) {
                    $options["enable"] = True;
                }
                if (!isset($options["refresh"])) {
                    $options["refresh"] = 10;
                }
                if ($options["enable"]) {
                    $panel = new AjaxPage(urlStrRedirect('dashboard/main/ajaxPanels'), $options["id"], array("file" => urlencode($file)), $options["refresh"]);
                    $panel->class = "panel";
                    $panel->display();
                }
            }
        }
    }
}
?>
<script type="text/javascript">
    load = function() {
        try {
            settings = mmcookie.get('dashboard-settings');
            saved_modules = 0;
            for(zone in settings)
                for(module in settings[zone])
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('towing/Invoice_service');
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->_Result = array();
 }
Esempio n. 6
0
<?php

/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2012 Mandriva, http://www.mandriva.com
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
require "modules/services/control/localSidebar.php";
require "graph/navbar.inc.php";
$p = new PageGenerator(_T("Core services", "services"));
$p->setSideMenu($sidemenu);
$p->display();
$ajax = new AjaxPage(urlStrRedirect("services/control/ajaxServicesFilter"), "services", array("parent" => $_GET['action']));
$ajax->display();