nagiosql/templates/admin/admin_master.tpl.htm
2017-10-20 15:00:08 +02:00

872 lines
44 KiB
HTML

<!-- (c) 2005-2017 by Martin Willisegger -->
<!-- -->
<!-- Project : NagiosQL -->
<!-- Component : admin master template -->
<!-- Website : http://www.nagiosql.org -->
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
<!-- Author : $LastChangedBy: martin $ -->
<!-- Version : 3.3.0 -->
<!-- Revision : $LastChangedRevision: 2 $ -->
<!-- BEGIN datatable -->
<script language="JavaScript" type="text/JavaScript">
<!--
// Action icons
function actionPic(modus,id,name) {
if(id != "") {
document.forms.frmDatalist.hidModify.value = modus;
document.forms.frmDatalist.hidListId.value = id;
if (document.forms.frmDatalist.hidModify.value == "delete") {
confirminit("{LANG_DELETESINGLE}\n"+name+"?","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",1);
} else {
document.forms.frmDatalist.submit();
}
}
}
// Download function
function getDownload() {
var time = new Date();
var table = "{TABLE_NAME}";
this.location.href = "download.php?table="+table+"&timestamp="+time.getTime();
}
// Add dataset function
function addDataset() {
document.forms.frmDatalist.modus.value = "add";
document.forms.frmDatalist.submit();
}
// Write configuration function
function writeConfig() {
document.forms.frmDatalist.modus.value = "make";
document.forms.frmDatalist.submit();
}
// Deletion confirmation
function checkMode() {
if (document.forms.frmDatalist.selModify.value == "delete") {
confirminit("{LANG_DELETEOK}","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",2);
} else {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Submit form
function confOpenerYes(key) {
if (key == 1) {
document.forms.frmDatalist.submit();
}
if (key == 2) {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Delete function
function del(key) {
if (key == "search") {
document.frmDatalist.txtSearch.value = "";
document.frmDatalist.submit();
}
}
// Domain copy enable
function checkCopy(elem) {
if (elem == 'copy') {
document.getElementById("copytext").className = "elementShow";
document.getElementById("selTargetDomain").className = "elementShow";
} else {
document.getElementById("copytext").className = "elementHide";
document.getElementById("selTargetDomain").className = "elementHide";
}
}
// Row sorting
function sort_row(row,direction) {
if (('{DISABLE_SORT_2}' == '') || (row == '1')) {
document.forms.frmDatalist.hidSortBy.value = row;
document.forms.frmDatalist.hidSortDir.value = direction;
document.forms.frmDatalist.hidSort.value = '1';
document.forms.frmDatalist.submit();
}
}
//-->
</script>
<form name="frmDatalist" method="post" action="{ACTION_MODIFY}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_SEARCH_STRING}:</td>
<td class="content_tbl_row2"><input type="text" name="txtSearch" value="{DAT_SEARCH}"></td>
<td class="content_tbl_row1"><img src="{IMAGE_PATH_HEAD}lupe.gif" width="18" height="18" alt="{LANG_SEARCH}" title="{LANG_SEARCH}" style="cursor: hand; cursor:pointer;" onClick="document.frmDatalist.submit()">&nbsp;<img src="{IMAGE_PATH_HEAD}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('search')" style="cursor: hand; cursor:pointer;"></td>
</tr>
</table>
<table border="0" cellpadding="0" class="content_listtable" width="100%">
<tr>
<th style="width:30px;">&nbsp;</th>
<th style="width:250px;cursor:pointer;" onclick="sort_row(1,'{SORT_DIR_1}');"><div style="float:left">{FIELD_1}</div><div style="float:right">{SORT_IMAGE_1}</div></th>
<th style="width:400px;cursor:pointer;{DISABLE_SORT_2}" onclick="sort_row(2,'{SORT_DIR_2}');"><div style="float:left">{FIELD_2}</div><div style="float:right">{SORT_IMAGE_2}</div></th>
<th style="width:100px;text-align:center;">{LANG_REGISTERED}</th>
<th style="width:100px;text-align:center;">{LANG_ACTIVE}</th>
<th style="width:100px;text-align:center;">{LANG_FUNCTION}</th>
</tr>
<!-- BEGIN datarow -->
<tr>
<td class="{CELLCLASS_M}"><input type="checkbox" name="chbId_{LINE_ID}" {DISABLED}></td>
<td class="{CELLCLASS_L}">{DATA_FIELD_1} {DOMAIN_SPECIAL}</td>
<td class="{CELLCLASS_L}">{DATA_FIELD_2}</td>
<td class="{CELLCLASS_M}">{DATA_REGISTERED}</td>
<td class="{CELLCLASS_M}">{DATA_ACTIVE}</td>
<td class="{CELLCLASS_M}" valign="middle"><img src="{IMAGE_PATH}edit.gif" alt="{LANG_MODIFY}" title="{LANG_MODIFY}" width="18" height="18" border="0" onClick="actionPic('modify','{LINE_ID}','');" class="{PICTURE_CLASS}">
<img src="{IMAGE_PATH}copy.gif" alt="{LANG_DUPLICATE}" title="{LANG_DUPLICATE}" width="18" height="18" border="0" onClick="actionPic('copy','{LINE_ID}','');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}delete.gif" alt="{LANG_DELETE}" title="{LANG_DELETE}" width="18" height="18" onClick="actionPic('delete','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}info.gif" alt="{INFO}" title="{INFO}" width="18" height="18" onClick="actionPic('info','{LINE_ID}','');" class="{PICTURE_CLASS}"></td>
</tr>
<!-- END datarow -->
</table>
<table border="0" cellpadding="0" class="content_formtable" width="100%">
<tr>
<td><input name="subAdd" type="button" id="subAdd" onClick="addDataset()" value="{LANG_ADD}" {ADD_CONTROL} style="width:100px;">
<input name="subMake" type="button" id="subMake" onClick="writeConfig()" value="{LANG_WRITE_CONFIG_FILE}" {ADD_CONTROL} class="{BUTTON_CLASS}" style="width:160px;">
<input name="subDown" type="button" id="subDown" onClick="getDownload()" value="{LANG_DOWNLOAD}" class="{BUTTON_CLASS}" style="width:90px;"></td>
<td><input name="modus" type="hidden" id="modus" value="checkform">
<input name="hidModify" type="hidden" id="hidModify">
<input name="hidListId" type="hidden" id="hidListId">
<input name="hidLimit" type="hidden" id="hidLimit" value="{LIMIT}">
<input name="hidSortBy" type="hidden" id="hidSortBy" value="{SORT_BY}">
<input name="hidSortDir" type="hidden" id="hidSortDir" value="{SORT_DIR}">
<input name="hidSort" type="hidden" id="hidSort" value="0"></td>
<td style="text-align:right; vertical-align:middle;">{LANG_MARKED}:
<select name="selModify" id="selModify" onchange="checkCopy(this.value)" {ADD_CONTROL} class="selectborder" style="width:120px; vertical-align:middle; margin-bottom:4px;">
<option value="none">&nbsp;</option>
<option value="delete">{DELETE}</option>
<option value="copy">{DUPLICATE}</option>
<option value="activate">{ACTIVATE}</option>
<option value="deactivate">{DEACTIVATE}</option>
</select>
<span id="copytext" style="padding-left:10px;" class="elementHide">to Domain:</span>
<select name="selTargetDomain" id="selTargetDomain" class="elementHide selectborder" {ADD_CONTROL} style="width:120px; vertical-align:middle; margin-bottom:4px;;">
<!-- BEGIN domainlist -->
<option value="{DOMAIN_ID}" {DOMAIN_SEL}>{DOMAIN_NAME}</option>
<!-- END domainlist -->
</select>
<input name="subDo" type="button" id="subDo" value="{LANG_DO_IT}" {ADD_CONTROL} onClick="checkMode()" style="width:95px;"></td>
</tr>
</table>
</form>
<br>
<div class="pagelinks">{PAGES}</div>
</div>
<div id="confirmcontainer"></div>
<div id="msgcontainer"></div>
<!-- END datatable -->
<!-- BEGIN msgfooter -->
<p style="padding-left:10px; width:890px;">
<!-- BEGIN consistency --><span>{CONSIST_USAGE}</span><br><br><!-- END consistency -->
<!-- BEGIN infomessage --><span class="greenmessage">{INFOMESSAGE}</span><br><!-- END infomessage -->
<!-- BEGIN errormessage --><span class="redmessage">{ERRORMESSAGE}</span><br><!-- END errormessage -->
<!-- BEGIN table_time --><span class="timeinfo">{LAST_MODIFIED_TABLE}</span><br><!-- END table_time -->
<!-- BEGIN file_time --><span class="timeinfo">{LAST_MODIFIED_FILE}</span><br><!-- END file_time -->
<!-- BEGIN modification_status --><span class="redmessage">{MODIFICATION_STATUS}</span><br><!-- END modification_status -->
</p>
<!-- END msgfooter -->
<!-- BEGIN datatablehost -->
<script language="JavaScript" type="text/JavaScript">
<!--
var intCheck = 0;
// Action icons
function actionPic(modus,id,name) {
if(id != "") {
if (modus == "download") {
getDownload(id,name);
return;
}
document.forms.frmDatalist.hidModify.value = modus;
document.forms.frmDatalist.hidListId.value = id;
if (document.forms.frmDatalist.hidModify.value == "delete") {
confirminit("{LANG_DELETESINGLE}\n"+name+"?","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",1);
} else {
document.forms.frmDatalist.submit();
}
}
}
// Download function
function getDownload(id,name) {
var time = new Date();
var table = "{TABLE_NAME}";
this.location.href = "download.php?table="+table+"&line="+id+"&config="+name+"&timestamp="+time.getTime();
}
// Add dataset function
function addDataset() {
document.forms.frmDatalist.modus.value = "add";
document.forms.frmDatalist.submit();
}
// Write configuration function
function writeConfig() {
document.forms.frmDatalist.modus.value = "make";
document.forms.frmDatalist.submit();
}
// Deletion confirmation
function checkMode() {
if (document.forms.frmDatalist.selModify.value == "delete") {
confirminit("{LANG_DELETEOK}","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",2);
} else {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Mark all check boxes
function markAll() {
if (intCheck == 0) {
for($i={MIN_ID};$i<={MAX_ID};$i++) {
if (document.getElementById("chbId_"+$i)) {
document.getElementById("chbId_"+$i).checked = true;
}
}
intCheck = 1;
} else {
for($i={MIN_ID};$i<={MAX_ID};$i++) {
if (document.getElementById("chbId_"+$i)) {
document.getElementById("chbId_"+$i).checked = false;
}
}
intCheck = 0;
}
}
// Submit form
function confOpenerYes(key) {
if (key == 1) {
document.forms.frmDatalist.submit();
}
if (key == 2) {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Delete function
function del(key) {
if (key == "search") {
document.frmDatalist.txtSearch.value = "";
document.frmDatalist.submit();
}
}
// Domain copy enable
function checkCopy(elem) {
if (elem == 'copy') {
document.getElementById("copytext").className = "elementShow";
document.getElementById("selTargetDomain").className = "elementShow";
} else {
document.getElementById("copytext").className = "elementHide";
document.getElementById("selTargetDomain").className = "elementHide";
}
}
// Row sorting
function sort_row(row,direction) {
if (('{DISABLE_SORT_2}' == '') || (row == '1')) {
document.forms.frmDatalist.hidSortBy.value = row;
document.forms.frmDatalist.hidSortDir.value = direction;
document.forms.frmDatalist.hidSort.value = '1';
document.forms.frmDatalist.submit();
}
}
//-->
</script>
<form name="frmDatalist" method="post" action="{ACTION_MODIFY}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_SEARCH_STRING}:</td>
<td class="content_tbl_row2"><input type="text" name="txtSearch" value="{DAT_SEARCH}" class="selectborder"></td>
<td style="width:100px;"><img src="{IMAGE_PATH_HEAD}lupe.gif" width="18" height="18" alt="{LANG_SEARCH}" title="{LANG_SEARCH}" style="cursor: hand; cursor:pointer;" onClick="document.frmDatalist.submit()">&nbsp;<img src="{IMAGE_PATH_HEAD}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('search')" style="cursor: hand; cursor:pointer;"></td>
</tr>
</table>
<table border="0" cellpadding="0" class="content_listtable" width="100%">
<tr>
<th style="width:30px;text-align:center;padding-top:0px;padding-bottom:0px;"><input name="chbMark" type="checkbox" class="checkbox" id="chbMark" onMouseUp="markAll()" value="" title="{LANG_MARKALL}"></th>
<th style="width:225px;cursor:pointer;" onclick="sort_row(1,'{SORT_DIR_1}');"><div style="float:left">{FIELD_1}</div><div style="float:right">{SORT_IMAGE_1}</div></th>
<th style="width:270px;cursor:pointer;{DISABLE_SORT_2}" onclick="sort_row(2,'{SORT_DIR_2}');"><div style="float:left">{FIELD_2}</div><div style="float:right">{SORT_IMAGE_2}</div></th>
<th style="width:80px;text-align:center;">{LANG_REGISTERED}</th>
<th style="width:80px;text-align:center;">{LANG_ACTIVE}</th>
<th style="width:80px;text-align:center;">{LANG_FILE}</th>
<th style="width:125px;text-align:center;"><div style="width:125px">{LANG_FUNCTION}</div></th>
</tr>
<!-- BEGIN datarowhost -->
<tr>
<td class="{CELLCLASS_M}"><input type="checkbox" name="chbId_{LINE_ID}" id="chbId_{LINE_ID}" {DISABLED}></td>
<td class="{CELLCLASS_L}">{DATA_FIELD_1} {DOMAIN_SPECIAL}</td>
<td class="{CELLCLASS_L}">{DATA_FIELD_2}</td>
<td class="{CELLCLASS_M}">{DATA_REGISTERED}</td>
<td class="{CELLCLASS_M}">{DATA_ACTIVE}</td>
<td class="{CELLCLASS_M}">{DATA_FILE}</td>
<td class="{CELLCLASS_M}" valign="middle"><img src="{IMAGE_PATH}edit.gif" alt="{LANG_MODIFY}" title="{LANG_MODIFY}" width="18" height="18" border="0" onClick="actionPic('modify','{LINE_ID}','');" class="{PICTURE_CLASS}">
<img src="{IMAGE_PATH}copy.gif" alt="{LANG_DUPLICATE}" title="{LANG_DUPLICATE}" width="18" height="18" border="0" onClick="actionPic('copy','{LINE_ID}','');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}delete.gif" alt="{LANG_DELETE}" title="{LANG_DELETE}" width="18" height="18" onClick="actionPic('delete','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}write.gif" alt="{LANG_WRITE_CONFIG}" title="{LANG_WRITE_CONFIG}" width="18" height="18" onClick="actionPic('config','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL} {ACTIVE_CONTROL}">
<img src="{IMAGE_PATH}download.gif" alt="{LANG_DOWNLOAD}" title="{LANG_DOWNLOAD}" width="18" height="18" onClick="actionPic('download','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL} {ACTIVE_CONTROL}">
<img src="{IMAGE_PATH}info.gif" alt="{INFO}" title="{INFO}" width="18" height="18" onClick="actionPic('info','{LINE_ID}','');" class="{PICTURE_CLASS}"></td>
</tr>
<!-- END datarowhost -->
</table>
<table border="0" cellpadding="0" class="content_formtable" width="100%">
<tr>
<td><input name="subAdd" type="button" id="subAdd" onClick="addDataset()" value="{LANG_ADD}" {ADD_CONTROL} style="width:100px;">
<input name="subMake" type="button" id="subMake" onclick="writeConfig()" value="{LANG_WRITE_CONF_ALL}" {ADD_CONTROL} style="width:205px;"></td>
<td><input name="modus" type="hidden" id="modus" value="checkform">
<input name="hidModify" type="hidden" id="hidModify">
<input name="hidListId" type="hidden" id="hidListId">
<input name="hidLimit" type="hidden" id="hidLimit" value="{LIMIT}">
<input name="hidSortBy" type="hidden" id="hidSortBy" value="{SORT_BY}">
<input name="hidSortDir" type="hidden" id="hidSortDir" value="{SORT_DIR}">
<input name="hidSort" type="hidden" id="hidSort" value="0"></td>
<td style="text-align:right">{LANG_MARKED}:
<select name="selModify" id="selModify" onchange="checkCopy(this.value)" class="selectborder" {ADD_CONTROL} style="width:120px;">
<option value="none">&nbsp;</option>
<option value="delete">{DELETE}</option>
<option value="copy">{DUPLICATE}</option>
<option value="config">{WRITE_CONFIG}</option>
<option value="activate">{ACTIVATE}</option>
<option value="deactivate">{DEACTIVATE}</option>
</select>
<span id="copytext" style="padding-left:10px" class="elementHide">to Domain:</span>
<select name="selTargetDomain" id="selTargetDomain" class="elementHide selectborder" {ADD_CONTROL} style="width:120px;">
<!-- BEGIN domainlist -->
<option value="{DOMAIN_ID}" {DOMAIN_SEL}>{DOMAIN_NAME}</option>
<!-- END domainlist -->
</select>
<input name="subDo" type="button" id="subDo" value="{LANG_DO_IT}" onClick="checkMode()" {ADD_CONTROL} style="width:120px;"></td>
</tr>
</table>
</form>
<br>
<div class="pagelinks">{PAGES}</div>
</div>
<div id="confirmcontainer"></div>
<div id="msgcontainer"></div>
<!-- END datatablehost -->
<!-- BEGIN msgfooterhost -->
<p style="padding-left:10px; width:890px;">
<span class="{MSG_CLASS} {MSG_VISIBLE}">{DBMESSAGE}<br></span>
<span class="{CON_MSGCLASS} {CON_VISIBLE}">{CONSISTUSAGE}</span><br>
</p>
<!-- END msgfooterhost -->
<!-- BEGIN datatableservice -->
<script language="JavaScript" type="text/JavaScript">
<!--
var intCheck = 0;
// Action icons
function actionPic(modus,id,name) {
if(id != "") {
if (modus == "download") {
getDownload(id,name);
return;
}
document.forms.frmDatalist.hidModify.value = modus;
document.forms.frmDatalist.hidListId.value = id;
if (document.forms.frmDatalist.hidModify.value == "delete") {
confirminit("{LANG_DELETESINGLE}\n"+name+"?","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",1);
} else {
document.forms.frmDatalist.submit();
}
}
}
// Download function
function getDownload(id,name) {
var time = new Date();
var table = "{TABLE_NAME}";
this.location.href = "download.php?table="+table+"&line="+id+"&config="+name+"&timestamp="+time.getTime();
}
// Add dataset function
function addDataset() {
document.forms.frmDatalist.modus.value = "add";
document.forms.frmDatalist.submit();
}
// Write configuration function
function writeConfig() {
document.forms.frmDatalist.modus.value = "make";
document.forms.frmDatalist.submit();
}
// Reload filter
function reloadFilter() {
document.forms.frmDatalist.modus.value = "filter";
document.forms.frmDatalist.hidLimit.value = "0";
document.forms.frmDatalist.submit();
}
// Deletion confirmation
function checkMode() {
if (document.forms.frmDatalist.selModify.value == "delete") {
confirminit("{LANG_DELETEOK}","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",2);
} else {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Mark all check boxes
function markAll() {
if (intCheck == 0) {
for($i={MIN_ID};$i<={MAX_ID};$i++) {
if (document.getElementById("chbId_"+$i)) {
document.getElementById("chbId_"+$i).checked = true;
}
}
intCheck = 1;
} else {
for($i={MIN_ID};$i<={MAX_ID};$i++) {
if (document.getElementById("chbId_"+$i)) {
document.getElementById("chbId_"+$i).checked = false;
}
}
intCheck = 0;
}
}
// Submit form
function confOpenerYes(key) {
if (key == 1) {
document.forms.frmDatalist.submit();
}
if (key == 2) {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Delete function
function del(key) {
if (key == "search") {
document.frmDatalist.txtSearch.value = "";
document.frmDatalist.submit();
}
}
// Domain copy enable
function checkCopy(elem) {
if (elem == 'copy') {
document.getElementById("copytext").className = "elementShow";
document.getElementById("selTargetDomain").className = "elementShow";
} else {
document.getElementById("copytext").className = "elementHide";
document.getElementById("selTargetDomain").className = "elementHide";
}
}
// Row sorting
function sort_row(row,direction) {
if (('{DISABLE_SORT_2}' == '') || (row == '1')) {
document.forms.frmDatalist.hidSortBy.value = row;
document.forms.frmDatalist.hidSortDir.value = direction;
document.forms.frmDatalist.hidSort.value = '1';
document.forms.frmDatalist.submit();
}
}
//-->
</script>
<form name="frmDatalist" method="post" action="{ACTION_MODIFY}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_SEARCH_STRING}:</td>
<td class="content_tbl_row2"><input type="text" name="txtSearch" value="{DAT_SEARCH}" class="selectborder"></td>
<td style="width:100px;"><img src="{IMAGE_PATH_HEAD}lupe.gif" width="18" height="18" alt="{LANG_SEARCH}" title="{LANG_SEARCH}" style="cursor: hand; cursor:pointer;" onClick="document.frmDatalist.submit()">&nbsp;<img src="{IMAGE_PATH_HEAD}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('search')" style="cursor: hand; cursor:pointer;"></td>
<td class="content_tbl_row1" style="width:170px;">{LANG_CONFIGFILTER}:</td>
<td class="content_tbl_row2">
<select name="selCnfName" id="selCnfName" class="selectborder" onChange="reloadFilter()">
<!-- BEGIN configlist -->
<option value="{DAT_CONFIGNAME}" {DAT_CONFIGNAME_SEL}>{DAT_CONFIGNAME}
<!-- END configlist -->
</select></td>
</tr>
</table>
<table border="0" cellpadding="0" class="content_listtable" width="100%">
<tr>
<th style="width:30px;text-align:center;padding-top:0px;padding-bottom:0px;"><input name="chbMark" type="checkbox" class="checkbox" id="chbMark" onMouseUp="markAll()" value="" title="{LANG_MARKALL}"></th>
<th style="width:225px;cursor:pointer;" onclick="sort_row(1,'{SORT_DIR_1}');"><div style="float:left">{FIELD_1}</div><div style="float:right">{SORT_IMAGE_1}</div></th>
<th style="width:270px;cursor:pointer;{DISABLE_SORT_2}" onclick="sort_row(2,'{SORT_DIR_2}');"><div style="float:left">{FIELD_2}</div><div style="float:right">{SORT_IMAGE_2}</div></th>
<th style="width:80px;text-align:center;">{LANG_REGISTERED}</th>
<th style="width:80px;text-align:center;">{LANG_ACTIVE}</th>
<th style="width:80px;text-align:center;">{LANG_FILE}</th>
<th style="width:125px;text-align:center;"><div style="width:125px">{LANG_FUNCTION}</div></th>
</tr>
<!-- BEGIN datarowservice -->
<tr>
<td class="{CELLCLASS_M}"><input type="checkbox" name="chbId_{LINE_ID}" id="chbId_{LINE_ID}" {DISABLED}></td>
<td class="{CELLCLASS_L}">{DATA_FIELD_1} {DOMAIN_SPECIAL}</td>
<td class="{CELLCLASS_L}">{DATA_FIELD_2}</td>
<td class="{CELLCLASS_M}">{DATA_REGISTERED}</td>
<td class="{CELLCLASS_M}">{DATA_ACTIVE}</td>
<td class="{CELLCLASS_M}">{DATA_FILE}</td>
<td class="{CELLCLASS_M}" valign="middle"><img src="{IMAGE_PATH}edit.gif" alt="{LANG_MODIFY}" title="{LANG_MODIFY}" width="18" height="18" border="0" onClick="actionPic('modify','{LINE_ID}','');" class="{PICTURE_CLASS}">
<img src="{IMAGE_PATH}copy.gif" alt="{LANG_DUPLICATE}" title="{LANG_DUPLICATE}" width="18" height="18" border="0" onClick="actionPic('copy','{LINE_ID}','');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}delete.gif" alt="{LANG_DELETE}" title="{LANG_DELETE}" width="18" height="18" onClick="actionPic('delete','{LINE_ID}','{DATA_FIELD_1S} - {DATA_FIELD_2S}');" class="{PICTURE_CLASS} {LINE_CONTROL}">
<img src="{IMAGE_PATH}write.gif" alt="{LANG_WRITE_CONFIG}" title="{LANG_WRITE_CONFIG}" width="18" height="18" onClick="actionPic('config','{LINE_ID}','');" class="{PICTURE_CLASS} {LINE_CONTROL} {ACTIVE_CONTROL}">
<img src="{IMAGE_PATH}download.gif" alt="{LANG_DOWNLOAD}" title="{LANG_DOWNLOAD}" width="18" height="18" onClick="actionPic('download','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL} {ACTIVE_CONTROL}">
<img src="{IMAGE_PATH}info.gif" alt="{INFO}" title="{INFO}" width="18" height="18" onClick="actionPic('info','{LINE_ID}','');" class="{PICTURE_CLASS}"></td>
</tr>
<!-- END datarowservice -->
</table>
<table border="0" cellpadding="0" class="content_formtable" width="100%">
<tr>
<td><input name="subAdd" type="button" id="subAdd" onClick="addDataset()" value="{LANG_ADD}" {ADD_CONTROL} style="width:100px;">
<input name="subMake" type="button" id="subMake" onclick="writeConfig()" value="{LANG_WRITE_CONF_ALL}" {ADD_CONTROL} style="width:205px;"></td>
<td><input name="modus" type="hidden" id="modus" value="checkform">
<input name="hidModify" type="hidden" id="hidModify">
<input name="hidListId" type="hidden" id="hidListId">
<input name="hidLimit" type="hidden" id="hidLimit" value="{LIMIT}">
<input name="hidSortBy" type="hidden" id="hidSortBy" value="{SORT_BY}">
<input name="hidSortDir" type="hidden" id="hidSortDir" value="{SORT_DIR}">
<input name="hidSort" type="hidden" id="hidSort" value="0"></td>
<td style="text-align:right">{LANG_MARKED}:
<select name="selModify" id="selModify" onchange="checkCopy(this.value)" class="selectborder" {ADD_CONTROL} style="width:120px;">
<option value="none">&nbsp;</option>
<option value="delete">{DELETE}</option>
<option value="copy">{DUPLICATE}</option>
<option value="config">{WRITE_CONFIG}</option>
<option value="activate">{ACTIVATE}</option>
<option value="deactivate">{DEACTIVATE}</option>
</select>
<span id="copytext" style="padding-left:10px" class="elementHide">to Domain:</span>
<select name="selTargetDomain" id="selTargetDomain" class="elementHide selectborder" {ADD_CONTROL} style="width:120px;">
<!-- BEGIN domainlist -->
<option value="{DOMAIN_ID}" {DOMAIN_SEL}>{DOMAIN_NAME}</option>
<!-- END domainlist -->
</select>
<input name="subDo" type="button" id="subDo" value="{LANG_DO_IT}" onClick="checkMode()" {ADD_CONTROL} style="width:95px;"></td>
</tr>
</table>
</form>
<br>
<div class="pagelinks">{PAGES}</div>
</div>
<div id="confirmcontainer"></div>
<div id="msgcontainer"></div>
<!-- END datatableservice -->
<!-- BEGIN datatablecommon -->
<script language="JavaScript" type="text/JavaScript">
<!--
// Action icons
function actionPic(modus,id,name) {
if(id != "") {
document.forms.frmDatalist.hidModify.value = modus;
document.forms.frmDatalist.hidListId.value = id;
if ((document.forms.frmDatalist.hidModify.value == "delete") && (name == "Admin")) {
msginit(name+" {LANG_NODELETE}","{LANG_SECURE_QUESTION}",1);
return false;
}
if (document.forms.frmDatalist.hidModify.value == "delete") {
confirminit("{LANG_DELETESINGLE}\n"+name+"?","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",1);
} else {
document.forms.frmDatalist.submit();
}
}
}
// Add dataset function
function addDataset() {
document.forms.frmDatalist.modus.value = "add";
document.forms.frmDatalist.submit();
}
// Write configuration function
function writeConfig() {
document.forms.frmDatalist.modus.value = "make";
document.forms.frmDatalist.submit();
}
// Deletion confirmation
function checkMode() {
if (document.forms.frmDatalist.selModify.value == "delete") {
confirminit("{LANG_DELETEOK}","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",2);
} else {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Submit form
function confOpenerYes(key) {
if (key == 1) {
document.forms.frmDatalist.submit();
}
if (key == 2) {
document.frmDatalist.submit();
document.frmDatalist.subDo.disabled = true;
}
}
// Row sorting
function sort_row(row,direction) {
if (('{DISABLE_SORT_2}' == '') || (row == '1')) {
document.forms.frmDatalist.hidSortBy.value = row;
document.forms.frmDatalist.hidSortDir.value = direction;
document.forms.frmDatalist.hidSort.value = '1';
document.forms.frmDatalist.submit();
}
}
//-->
</script>
<form name="frmDatalist" method="post" action="{ACTION_MODIFY}">
<table border="0" cellpadding="0" class="content_listtable" width="100%">
<tr>
<th style="width:30px;">&nbsp;</th>
<th style="width:250px;cursor:pointer;" onclick="sort_row(1,'{SORT_DIR_1}');"><div style="float:left">{FIELD_1}</div><div style="float:right">{SORT_IMAGE_1}</div></th>
<th style="width:500px;cursor:pointer;{DISABLE_SORT_2}" onclick="sort_row(2,'{SORT_DIR_2}');"><div style="float:left">{FIELD_2}</div><div style="float:right">{SORT_IMAGE_2}</div></th>
<th style="width:100px;text-align:center;">{LANG_ACTIVE}</th>
<th style="width:100px;text-align:center;">{LANG_FUNCTION}</th>
</tr>
<!-- BEGIN datarowcommon -->
<tr>
<td class="{CELLCLASS_M}"><input type="checkbox" name="chbId_{LINE_ID}" {DISABLED}></td>
<td class="{CELLCLASS_L}">{DATA_FIELD_1}</td>
<td class="{CELLCLASS_L}">{DATA_FIELD_2}</td>
<td class="{CELLCLASS_M}">{DATA_ACTIVE}</td>
<td class="{CELLCLASS_M}" valign="middle">
<img src="{IMAGE_PATH}edit.gif" alt="{LANG_MODIFY}" title="{LANG_MODIFY}" width="18" height="18" border="0" onClick="actionPic('modify','{LINE_ID}','');" class="{PICTURE_CLASS}">
<img src="{IMAGE_PATH}copy.gif" alt="{LANG_COPY}" title="{LANG_COPY}" width="18" height="18" border="0" onClick="actionPic('copy','{LINE_ID}','');" class="{PICTURE_CLASS} {LINE_CONTROL}">
{DEL_HIDE_START}<img src="{IMAGE_PATH}delete.gif" alt="{LANG_DELETE}" title="{LANG_DELETE}" width="18" height="18" onClick="actionPic('delete','{LINE_ID}','{DATA_FIELD_1}');" class="{PICTURE_CLASS} {LINE_CONTROL}">{DEL_HIDE_STOP}</td>
</tr>
<!-- END datarowcommon -->
</table>
<table border="0" cellpadding="0" class="content_formtable" width="100%">
<tr>
<td><input name="subAdd" type="button" id="subAdd" onClick="addDataset()" value="{LANG_ADD}" {ADD_CONTROL} style="width:100px;"></td>
<td><input name="modus" type="hidden" id="modus" value="checkform">
<input name="hidModify" type="hidden" id="hidModify">
<input name="hidListId" type="hidden" id="hidListId">
<input name="hidLimit" type="hidden" id="hidLimit" value="{LIMIT}">
<input name="hidSortBy" type="hidden" id="hidSortBy" value="{SORT_BY}">
<input name="hidSortDir" type="hidden" id="hidSortDir" value="ASC">
<input name="hidSort" type="hidden" id="hidSort" value="0"></td>
<td style="text-align:right">{LANG_MARKED}:
<select name="selModify" id="select" class="selectborder" style="width:120px;" {ADD_CONTROL}>
<option value="none">&nbsp;</option>
<option value="delete">{DELETE}</option>
<option value="copy">{DUPLICATE}</option>
</select>
<input name="subDo" type="button" id="subDo" value="{LANG_DO_IT}" onClick="checkMode()" style="width:95px;" {ADD_CONTROL}></td>
</tr>
</table>
</form>
<div class="pagelinks">{PAGES}</div>
</div>
<div id="confirmcontainer"></div>
<div id="msgcontainer"></div>
<!-- END datatablecommon -->
<!-- BEGIN passwordsite -->
<div id="content_main">
<div id="content_title">{LANG_CHANGE_PASSWORD}</div>
<script language="JavaScript" type="text/JavaScript">
<!--
// Abort form
function abort() {
this.location.href = "{ACTION_INSERT}";
}
// Send form
function LockButton() {
if (checkForm() == false) {
return false;
} else {
document.frmPasswdInsert.submit();
document.frmPasswdInsert.subForm.disabled = true;
}
}
// Check form entries
function checkForm() {
// Are all required fields filled in?
var fields1 = "tfValue1,tfValue2";
var msg1 = "{FILL_ALLFIELDS}";
var msg2 = "{FILL_NEW_PASSWD_NOT_EQUAL}";
var msg3 = "{FILL_NEW_PWDSHORT}";
var header = "{LANG_FORMCHECK}";
var form = document.frmPasswdInsert;
var check = false;
check = checkfields(fields1,form,myFocusObject);
if (check == false) {
msginit(msg1,header,1);
return false;
}
// Are the passwords not equal
if(form.tfValue2.value != form.tfValue3.value) {
msginit(msg2,header,1);
form.tfValue2.focus();
return false;
}
// Is the new passord too short
if((form.tfValue2.value != "") && (form.tfValue2.value.length <= 5)) {
msginit(msg3,header,1);
form.tfValue2.focus();
return false;
}
}
//-->
</script>
<form name="frmPasswdInsert" method="post" action="{ACTION_INSERT}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_OLD_PASSWORD} *</td>
<td class="content_tbl_row2"><input name="tfValue1" type="password" id="tfValue1" tabindex="1" maxlength="15" class="inpmust"></td>
</tr>
<tr>
<td>{LANG_NEW_PASSWORD} *</td>
<td><input name="tfValue2" type="password" id="tfValue2" tabindex="3" maxlength="15" class="inpmust"></td>
</tr>
<tr>
<td>{LANG_CONFIRM_PASSWORD}*</td>
<td><input name="tfValue3" type="password" id="tfValue3" tabindex="4" maxlength="15" class="inpmust"></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><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}"><span class="required_info">* {LANG_REQUIRED}</span></td>
</tr>
</table>
</form>
<br>
<p><span class="redmessage">{ERRORMESSAGE}</span></p>
</div>
<div id="msgcontainer"></div>
<!-- END passwordsite -->
<!-- BEGIN logbooksite -->
<div id="content_main">
<div id="content_title">{TITLE}</div>
<script language="javascript" type="text/javascript">
<!--
// build calendar
calendarinit("{LOCALE}",1,"tfValue1","showfrom","cal-cont","cal");
calendarinit("{LOCALE}",1,"tfValue2","showto","cal-cont2","cal2");
// Delete function
function del(key) {
if (key == "from") {
document.frmLogfile.tfValue1.value = "";
}
if (key == "to") {
document.frmLogfile.tfValue2.value = "";
}
if (key == "search") {
document.logSearchForm.txtSearch.value = "";
document.logSearchForm.submit();
}
}
// Confirmation question
function Validate() {
var form = document.frmLogfile;
if ((form.tfValue1.value == "") && (form.tfValue2.value == "")) {
msginit("{LANG_SELECT_DATE}","{LANG_SECURE_QUESTION}",1);
return false;
}
confirminit("{LANG_DELETELOG}","{LANG_SECURE_QUESTION}",2,"{LANG_YES}","{LANG_NO}",1);
}
// Submit form
function confOpenerYes(key) {
if (key == 1) {
document.frmLogfile.submit();
}
}
//-->
</script>
<form name="logSearchForm" method="post" action="">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_SEARCH_STRING}:</td>
<td class="content_tbl_row2"><input type="text" name="txtSearch" value="{DAT_SEARCH}"></td>
<td class="content_tbl_row3"><img src="{IMAGE_PATH}lupe.gif" width="18" height="18" alt="{LANG_SEARCH}" title="{LANG_SEARCH}" style="cursor: hand; cursor:pointer;" onClick="document.logSearchForm.submit()">&nbsp;<img src="{IMAGE_PATH}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('search')" style="cursor: hand; cursor:pointer;"></td>
</tr>
</table>
</form>
<table border="0" cellpadding="0" class="content_logtable">
<tr>
<th scope="col" style="width:150px;">{LANG_TIME}</th>
<th scope="col" style="width:80px;">{LANG_USER}</th>
<th scope="col" style="width:100px;">{LANG_IP}</th>
<th scope="col" style="width:80px;">{LANG_DOMAIN}</th>
<th scope="col" style="width:490px;">{LANG_ENTRY}</th>
</tr>
<!-- BEGIN logdatacell -->
<tr>
<td>{DAT_TIME}</td>
<td>{DAT_ACCOUNT}</td>
<td>{DAT_IPADRESS}</td>
<td>{DAT_DOMAIN}</td>
<td style="text-align:left;">{DAT_ACTION}</td>
</tr>
<!-- END logdatacell -->
</table>
<table border="0" cellpadding="0" class="content_logtable">
<tr>
<td align="left" class="loglegend">{LANG_PREVIOUS}</td>
<td align="right" class="loglegend">{LANG_NEXT}</td>
</tr>
</table>
<form name="frmLogfile" method="post" action="">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td colspan="7" class="loglegend" style="padding-bottom:5px;"><strong>{LANG_ENTRIES_BEFORE}</strong></td>
</tr>
<tr>
<td style="width:40px;">{LANG_FROM}:</td>
<td style="width:80px;"><input type="text" name="tfValue1" id="tfValue1" value="" style="width:80px;" readonly></td>
<td style="width:80px;"><img src="{IMAGE_PATH}calbtn.gif" width="18" height="18" alt="{LANG_CALENDAR}" title="{LANG_CALENDAR}" id="showfrom" style="cursor: hand; cursor:pointer;">&nbsp;<img src="{IMAGE_PATH}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('from')" style="cursor: hand; cursor:pointer;"></td>
<td style="width:40px;">{LANG_TO}:</td>
<td style="width:80px;"><input type="text" name="tfValue2" id="tfValue2" value="" style="width:80px;" readonly></td>
<td style="width:60px;"><img src="{IMAGE_PATH}calbtn.gif" width="18" height="18" alt="{LANG_CALENDAR}" title="{LANG_CALENDAR}" id="showto" style="cursor: hand; cursor:pointer;">&nbsp;<img src="{IMAGE_PATH}del.png" width="18" height="18" alt="{LANG_DELETE_SEARCH}" title="{LANG_DELETE_SEARCH}" onClick="del('to')" style="cursor: hand; cursor:pointer;"></td>
<td><input type="button" name="butSubmit" id="butSubmit" value="{LANG_DELETE_LOG_ENTRIES}" style="font-size:12px;" onClick="Validate()" {ADD_CONTROL}></td>
</tr>
</table>
</form>
<p><span class="redmessage">{ERRORMESSAGE}</span><span class="greenmessage">{INFOMESSAGE}</span></p>
</div>
<div id="cal-cont" style="visibility:hidden">
<div class="hd">{LANG_CALENDAR}</div>
<div class="bd">
<div id="cal"></div>
</div>
</div>
<div id="cal-cont2" style="visibility:hidden">
<div class="hd">{LANG_CALENDAR}</div>
<div class="bd">
<div id="cal2"></div>
</div>
</div>
<div id="confirmcontainer"></div>
<div id="msgcontainer"></div>
<!-- END logbooksite -->
<!-- BEGIN menuaccesssite -->
<div id="content_main">
<div id="content_title">{TITLE}</div>
<script language="JavaScript" type="text/JavaScript">
<!--
// Update form
function update(value) {
document.frmMenuAccess.submit();
}
// Submit form
function LockButton() {
document.frmMenuAccess.submit();
document.frmMenuAccess.subSave.disabled = true;
}
//-->
</script>
<form name="frmMenuAccess" method="post" action="{ACTION_INSERT}">
<table border="0" cellpadding="0" class="content_formtable">
<tr>
<td class="content_tbl_row1">{LANG_MENU_PAGE}</td>
<td style="width:500px;">
<select name="selValue1" onChange="javascript:update(this.value)" class="selectborder">
<!-- BEGIN submenu -->
<option value="{SUBMENU_VALUE}" {SUBMENU_SELECTED}>{SUBMENU_NAME}</option>
<!-- END submenu -->
</select>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>{LANG_ACCESS_GROUP}</td>
<td>
<select name="selValue2" class="selectborder">
<!-- BEGIN acc_group -->
<option value="{DAT_ACC_GROUP_ID}" {DAT_ACC_GROUP_SEL}>{DAT_ACC_GROUP}</option>
<!-- END acc_group -->
</select></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">{LANG_ACCESSDESCRIPTION}</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><input name="subSave" type="submit" value="{LANG_SAVE}" {DISABLE_SAVE}></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</form>
<p><span class="redmessage">{ERRORMESSAGE}</span><span class="greenmessage">{INFOMESSAGE}</span></p>
</div>
<!-- END menuaccesssite -->