// FIXME: the following part (esp. $act) seems to always be overriden by the code below ?! $bdl = new Bundle($_GET['bundle_id']); displayBreadCrumb(); $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"), "viewLogs", "detail", "msc", "msc", "logs")), $params); } if ($_GET['cmd_id'] == -2) { new NotifyWidgetFailure(_T("The group you are working on is empty.", "msc")); } // display the selected command $cmd = new Command($_GET['cmd_id']); displayBreadCrumb(); // Don't display command table only COH table // display the selected command on host $coh = new CommandOnHost($_GET['coh_id']); displayBreadCrumb(); $coh->quickDisplay(array(), $params); //array(new ActionItem(_T("Details", "msc"),"msctabs","detail","msc", "base", "computers"))); // display the command on host details $coh_id = $_GET['coh_id']; $ch = new CommandHistory($coh_id); $ch->display(); } elseif (strlen($_GET['cmd_id'])) { # Display a specific command for a specific group // =========+> HERE DEPLOY ON GROUP $params = array('tab' => quickGet('tab'), 'gid' => $_GET['gid']); if (isset($_history)) { $params['history'] = $_history; } $bdlink = ''; if (quickGet('bundle_id')) { $params['bundle_id'] = $_GET['bundle_id'];
if (strlen($_GET['bundle_id'])) { $params['bundle_id'] = $_GET['bundle_id']; // FIXME: the following part (esp. $act) seems to always be overriden by the code below ?! $bdl = new Bundle($_GET['bundle_id']); $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"),"groupmsctabs","detail","msc", "base", "computers")), $params); } if ($_GET['cmd_id'] == -2) { new NotifyWidgetFailure(_T("The group you are working on is empty.", "msc")); } // display the selected command $cmd = new Command($_GET['cmd_id']); $act = $cmd->quickDisplay(array(new ActionItem(_T("Details", "msc"),"groupmsctabs","detail","msc", "base", "computers")), $params); if ($act) { // display the selected command on host $coh = new CommandOnHost($_GET['coh_id']); $coh->quickDisplay(); //array(new ActionItem(_T("Details", "msc"),"msctabs","detail","msc", "base", "computers"))); // display the command on host details print "<hr/><br/>"; $coh_id = $_GET['coh_id']; $ch = new CommandHistory($coh_id); $ch->display(); } } elseif (strlen($_GET['cmd_id'])) { # Display a specific command for a specific group $params = array('tab'=>$_GET['tab'], 'gid'=>$_GET['gid']); $bdlink = ''; if (strlen($_GET['bundle_id'])) { $params['bundle_id'] = $_GET['bundle_id']; // FIXME: the following part (esp. $act) seems to always be overriden by the code below ?! $bdl = new Bundle($_GET['bundle_id']); $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"),"groupmsctabs","detail","msc", "base", "computers")), $params); $bdlink = "&bundle_id=".$_GET['bundle_id'];