* * 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "modules/base/computers/localSidebar.php"; require "graph/navbar.inc.php"; $p = new PageGenerator(_T("Entity list", 'glpi')); $p->setSideMenu($sidemenu); $p->display(); $ajax = new AjaxFilterLocation(urlStrRedirect("base/computers/ajaxEntityList"), "container", "status", $params); $ajax->setElements(array(_T('All entities', 'glpi'))); $ajax->setElementsVal(array('0')); $ajax->display(); echo "<br/><br/>"; $ajax->displayDivToUpdate(); ?> <script type="text/javascript"> jQuery('.searchfield').first().hide() </script>
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once "modules/update/includes/xmlrpc.inc.php"; require_once "modules/update/includes/html.inc.php"; $MMCApp =& MMCApp::getInstance(); include dirname(__FILE__) . '/sidebar.php'; $p = new PageGenerator(_T("Update manager", 'update')); $p->setSideMenu($sidemenu); $p->display(); $params = array(); if (isset($_GET["os_class_id"])) { $params['os_class_id'] = $_GET["os_class_id"]; } $ajax = new AjaxFilterLocation(urlStrRedirect("update/update/ajaxUpdates"), "container", "status", $params); $ajax->setElements(array(_T('Available', 'update'), _T('Enabled', 'update'), _T('Disabled', 'update'))); $ajax->setElementsVal(array('0', '1', '2')); $ajax->display(); echo "<br/><br/>"; $ajax->displayDivToUpdate();
require "localSidebar.php"; $p = new PageGenerator(_T("Pending packages list", 'pkgs')); $p->setSideMenu($sidemenu); $p->display(); require_once "modules/pkgs/includes/xmlrpc.php"; $ajax = new AjaxFilterLocation(urlStrRedirect("pkgs/pkgs/ajaxPendingPackageList")); $res = getUserPackageApi(); $list = array(); if (!isset($_SESSION['PACKAGEAPI'])) { $_SESSION['PACKAGEAPI'] = array(); } foreach ($res as $mirror) { $list_val[$mirror['uuid']] = base64_encode($mirror['uuid']); $list[$mirror['uuid']] = $mirror['mountpoint']; $_SESSION['PACKAGEAPI'][$mirror['uuid']] = $mirror; } if (isset($_GET['location'])) { $ajax->setSelected($list_val[base64_decode($_GET['location'])]); } $ajax->setElements($list); $ajax->setElementsVal($list_val); $ajax->display(); $ajax->displayDivToUpdate(); ?> <style> .noborder { border:0px solid blue; } </style>
* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "graph/navbar.inc.php"; require "localSidebar.php"; require_once "modules/backuppc/includes/xmlrpc.php"; require_once "modules/pulse2/includes/utilities.php"; // Unset backup for selected host if (isset($_GET['objectUUID'])) { unset_backup_for_host($_GET['objectUUID']); if (!isXMLRPCError()) { new NotifyWidgetSuccess(_("The computer has been removed from the backup system.")); } } $p = new PageGenerator(_T("Backup status", 'backuppc')); $p->setSideMenu($sidemenu); $p->display(); /*if (displayLocalisationBar()) { $location = getCurrentLocation();*/ $ajax = new AjaxFilterLocation(urlStrRedirect("backuppc/backuppc/ajaxBackupStatus")); list($list, $values) = getEntitiesSelectableElements(); $ajax->setElements($list); $ajax->setElementsVal($values); $ajax->display(); echo "<br/><br/>"; $ajax->displayDivToUpdate(); ?> <script>jQuery('#location option[value="UUID1"]').prop('selected', true);</script>
$f->add( new TrFormElement(_T('Maximum file size','backuppc'), new InputTpl('maxsize')), array("value" => isset($_POST['maxsize'])?$_POST['maxsize']:'',"required" => True) ); */ // ===================================================================== $f->pop(); $f->addButton("bsearch", _T('Search', 'backuppc')); $f->display(); // ===== AJAX FILE TABLE ============================================== $ajax = new AjaxFilterLocation(urlStrRedirect("backuppc/backuppc/ajaxFileSearch"), 'container', 'location', $_POST); $fils = array('.'); $fils_v = array('.'); $ajax->setElements($fils); $ajax->setElementsVal($fils_v); $ajax->display(); echo "<br/><br/>"; $ajax->displayDivToUpdate(); ?> <script type="text/javascript"> jQuery(function() { // File size selection jQuery('select#filesize').change(function() { switch (jQuery('select#filesize').val()) { case "1": // Less than 1Mb jQuery('input[name=minsize]').val(-1); jQuery('input[name=maxsize]').val(1048576);