summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index a05f2da4..393991f1 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -4862,4 +4862,17 @@ include_once 'include/discovery.inc.php';
$frmCnct->Show();
}
+
+ function insert_command_result_form($scriptid,$hostid)
+ {
+ $result = execute_script($scriptid,$hostid);
+
+ $script_info = DBfetch(DBselect("select name from scripts where scriptid=$scriptid"));
+
+ $frmResult = new CFormTable(S_COMMENTS." ".$script_info["name"]);
+ $frmResult->AddRow(S_COMMENTS,new CTextArea("message",$result["message"],100,25));
+ $frmResult->AddItemToBottomRow(new CButtonCancel(null,'close_window();'));
+
+ $frmResult->Show();
+ }
?>