<!-- (c) 2005-2012 by Martin Willisegger -->
<!-- -->
<!-- Project    : NagiosQL -->
<!-- Component  : nagios config template -->
<!-- Website    : http://www.nagiosql.org -->
<!-- Date       : $LastChangedDate: 2012-02-21 14:10:41 +0100 (Tue, 21 Feb 2012) $ -->
<!-- Author     : $LastChangedBy: martin $ -->
<!-- Version    : 3.2.0 -->
<!-- Revision   : $LastChangedRevision: 1229 $ -->
<!-- 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 -->