* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * LMC 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 LMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "modules/msc/logs/localSidebar.php"; require "graph/navbar.inc.php"; require_once 'modules/msc/includes/commands_xmlrpc.inc.php'; require_once 'modules/msc/includes/command_history.php'; require_once 'modules/msc/includes/functions.php'; require_once 'modules/msc/includes/widgets.inc.php'; require_once 'modules/msc/includes/mscoptions_xmlrpc.php'; $p = new PageGenerator(_T("Show all pending task's logs", 'msc')); $p->setSideMenu($sidemenu); $p->display(); $params = array("type" => 1, "from" => "pending", 'divID' => 'container'); $ajax = new AjaxFilterCommands(urlStrRedirect("msc/logs/ajaxLogsFilter"), "container", "commands", $params); $ajax->setRefresh(web_def_refresh_time()); $ajax->display(); print "<br/><br/><br/>"; $ajax->displayDivToUpdate(); ?>
$params = array("gid" => $_GET['gid'] . $bdlink, "cmd_id" => $_GET['cmd_id'], 'divID' => $divName, "tab" => "grouptablogs", "commands" => $command_type); if (isset($_history)) { $params['history'] = $_history; } $ajax = new AjaxFilterCommands(urlStrRedirect("base/computers/ajaxLogsFilter"), $divName, "commands", $params); $ajax->display(); $ajax->displayDivToUpdate(); } } else { # Display history for a specific group // display all commands $params = array("gid" => $_GET['gid'], 'divID' => $divName, "tab" => "grouptablogs", "commands" => $command_type); if (isset($_history)) { $params['history'] = $_history; } $ajax = new AjaxFilterCommands(urlStrRedirect("base/computers/ajaxLogsFilter"), $divName, "commands", $params); $ajax->display(); $ajax->displayDivToUpdate(); } } } else { // Display an error message } ?> <script type="text/javascript"> function refresh_page() { // If we find a loading image, we refresh after 3 seconds if (jQuery('img[alt="running"]').length != 0) { // Reload the page window.location.reload();