nagiosql/templates/admin/nagioscfg.tpl.htm

65 lines
2.2 KiB
HTML
Raw Normal View History

2017-10-20 15:00:08 +02:00
<!-- (c) 2005-2017 by Martin Willisegger -->
2017-05-22 11:24:21 +02:00
<!-- -->
<!-- Project : NagiosQL -->
<!-- Component : nagios config template -->
<!-- Website : http://www.nagiosql.org -->
2017-10-20 15:00:08 +02:00
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
2017-05-22 11:24:21 +02:00
<!-- Author : $LastChangedBy: martin $ -->
2017-10-20 15:00:08 +02:00
<!-- Version : 3.3.0 -->
<!-- Revision : $LastChangedRevision: 2 $ -->
2017-05-22 11:24:21 +02:00
<!-- BEGIN header -->
<div id="content_main">
<div id="content_title">{TITLE}</div>
<!-- END header -->
<!-- BEGIN naginsert -->
<script language="JavaScript" type="text/JavaScript">
<!--
// Interrupt input
function abort() {
this.location.href = "{MAINSITE}";
}
// Send form
function LockButton() {
if (checkForm() == false) {
return false;
} else {
document.frmNagiosConfig.submit();
document.frmNagiosConfig.subForm.disabled = true;
}
}
// Check form entries
function checkForm() {
// Are all required fields filled in?
var fields1 = "taFileText";
var msg1 = "{FILL_ALLFIELDS}";
var msg2 = "{FILL_ILLEGALCHARS}";
var header = "{LANG_FORMCHECK}";
var form = document.frmNagiosConfig;
var check = false;
check = checkfields(fields1,form,myFocusObject);
if (check == false) {
msginit(msg1,header,1);
return false;
}
}
//-->
</script>
<form name="frmNagiosConfig" method="post" action="{ACTION_INSERT}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td><textarea name="taFileText" cols="100" rows="20" id="taFileText">{DAT_NAGIOS_CONFIG}</textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><input name="subForm" type="button" id="subForm" value="{LANG_SAVE}" onClick="LockButton()" {ADD_CONTROL}>&nbsp;<input name="subAbort" type="button" id="subAbort" onClick="abort()" value="{LANG_ABORT}">
<input name="modus" type="hidden" id="modus" value="{MODUS}"></td>
</tr>
</table>
</form>
<br>
<p><span class="redmessage">{ERRORMESSAGE}</span><span class="greenmessage">{INFOMESSAGE}</span></p>
</div>
<div id="msgcontainer"></div>
<!-- END naginsert -->