243 lines
7.9 KiB
HTML
243 lines
7.9 KiB
HTML
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="de">
|
|
<title>User Interface</title>
|
|
<title>User Interface</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
<title>ENGEL NX Information Center</title>
|
|
<base target="_self">
|
|
<link rel="stylesheet" type="text/css" href="source/content.css">
|
|
<style type="text/css">
|
|
.style3
|
|
{
|
|
font-weight: bold;
|
|
}
|
|
.style6
|
|
{
|
|
color: #000000;
|
|
}
|
|
.n12 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; font-weight: normal; }
|
|
.n11 { font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none; font-weight: normal;}
|
|
.style7
|
|
{
|
|
font-family: Calibri;
|
|
text-decoration: underline;
|
|
}
|
|
.style14
|
|
{
|
|
font-family: Calibri;
|
|
font-size: x-small;
|
|
text-decoration: none;
|
|
font-weight: normal;
|
|
}
|
|
.style16
|
|
{
|
|
font-size: x-small;
|
|
}
|
|
.style17
|
|
{
|
|
font-size: medium;
|
|
font-family: Calibri;
|
|
}
|
|
.style24
|
|
{
|
|
font-size: x-small;
|
|
color: #000000;
|
|
}
|
|
.style25
|
|
{
|
|
background-color: #E8E8E8;
|
|
}
|
|
.style26
|
|
{
|
|
color: #FFFFFF;
|
|
background-color: #E8E8E8;
|
|
}
|
|
.style28
|
|
{
|
|
color: #000000;
|
|
background-color: #E8E8E8;
|
|
}
|
|
.style29
|
|
{
|
|
color: #FFFFFF;
|
|
background-color: #808080;
|
|
}
|
|
.style30
|
|
{
|
|
font-family: Calibri;
|
|
}
|
|
.style31
|
|
{
|
|
font-weight: bold;
|
|
font-family: Calibri;
|
|
}
|
|
.style32
|
|
{
|
|
font-size: x-small;
|
|
font-family: Calibri;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="text-align: left; background-color:#DCDCDC">
|
|
<script type="text/javascript">
|
|
|
|
function SetSearch (sea)
|
|
{
|
|
search = sea;
|
|
}
|
|
|
|
function PrintIt ()
|
|
{
|
|
var search = getURLParam("search");
|
|
|
|
if (search.length == 0)
|
|
search = "%";
|
|
|
|
var HugoArr = new Array();
|
|
|
|
var txtFile=false;
|
|
|
|
try {
|
|
txtFile= new ActiveXObject("Msxml2.XMLHTTP");
|
|
} catch (e) {
|
|
try {
|
|
txtFile = new ActiveXObject("Microsoft.XMLHTTP");
|
|
} catch (E) {
|
|
txtFile = false;
|
|
}
|
|
}
|
|
|
|
if (!txtFile && typeof XMLHttpRequest!='undefined') {
|
|
try {
|
|
txtFile = new XMLHttpRequest();
|
|
} catch (e) {
|
|
txtFile=false;
|
|
}
|
|
}
|
|
if (!txtFile && window.createRequest) {
|
|
try {
|
|
txtFile = window.createRequest();
|
|
} catch (e) {
|
|
txtFile=false;
|
|
}
|
|
}
|
|
|
|
txtFile.open("GET", "content_de.txt", false);
|
|
|
|
txtFile.onreadystatechange = function()
|
|
{
|
|
if (txtFile.readyState === 4)
|
|
{
|
|
if (txtFile.status == 0)
|
|
{
|
|
allText = txtFile.responseText;
|
|
var textArr = allText.split("[NextStep]");
|
|
var y = 0;
|
|
for (var i = textArr.length - 1; i > -1; i--)
|
|
{
|
|
var text = textArr[i];
|
|
HugoArr[y] = new Object();
|
|
HugoArr[y][0] = text.substr(text.indexOf("[Info]") + 6, text.indexOf("[/Info]") - text.indexOf("[Info]") - 6)
|
|
HugoArr[y][1] = text.substr(text.indexOf("[Date]") + 6, text.indexOf("[/Date]") - text.indexOf("[Date]") - 6)
|
|
HugoArr[y][2] = text.substr(text.indexOf("[Head]") + 6, text.indexOf("[/Head]") - text.indexOf("[Head]") - 6)
|
|
HugoArr[y][3] = text.substr(text.indexOf("[Text]") + 6, text.indexOf("[/Text]") - text.indexOf("[Text]") - 6)
|
|
HugoArr[y][4] = text.substr(text.indexOf("[Html]") + 6, text.indexOf("[/Html]") - text.indexOf("[Html]") - 6)
|
|
y++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
txtFile.send(null);
|
|
|
|
for (var i = HugoArr.length - 1; i > -1; i--)
|
|
{
|
|
var hug = HugoArr[i];
|
|
|
|
var inter = hug[0];
|
|
var dat = hug[1];
|
|
var head = hug[2];
|
|
var txt = hug[3];
|
|
var htm = hug[4];
|
|
|
|
search = search.toLowerCase();
|
|
if (head.toLowerCase().indexOf(search, 0) >= 0 || txt.toLowerCase().indexOf(search, 0) >= 0 || htm.toLowerCase().indexOf(search) >= 0 || search == "%")
|
|
{
|
|
var colorNew = "style29";
|
|
var colorOld = "style28";
|
|
var color = colorOld;
|
|
|
|
var now = new Date();
|
|
var datumArr = dat.split('.');
|
|
var datum = new Date(datumArr[2], datumArr[1]-1, datumArr[0]);
|
|
|
|
var diff = now - datum;
|
|
var days = diff / 1000 / 60 / 60 / 24;
|
|
days = Math.round(days);
|
|
|
|
if (days <= 3 && diff > 0)
|
|
{
|
|
color = colorNew;
|
|
}
|
|
|
|
document.write('<table border="1" width="100%" id="table6" style="border-width: 0px"><tr>');
|
|
document.write('<td style="border-style: none; border-width: medium" width="50" align="left" valign="middle" class="' + color + '">');
|
|
document.write('<p align="center"><font face="Calibri">' + inter + '</font></td></p>');
|
|
document.write('<td style="border-style: none; border-width: medium" width="100" valign="middle" class="' + color + '">');
|
|
document.write('<p align="center"><font face="Calibri">' + dat + '</font></p></td>');
|
|
document.write('<td style="border-style: none; border-width: medium" class="' + color + '">');
|
|
|
|
if (head.length > 0)
|
|
{
|
|
document.write('<b><span class="style17">' + head + '</span></b><br><br>');
|
|
}
|
|
|
|
if (txt.length > 0)
|
|
{
|
|
document.write('<span class="style30">' + txt + '</span><br>');
|
|
}
|
|
|
|
document.write(htm);
|
|
document.write('</td></tr></table>');
|
|
}
|
|
}
|
|
}
|
|
|
|
function getURLParam(strParamName)
|
|
{
|
|
var strReturn = "";
|
|
var strHref = window.location.href;
|
|
if ( strHref.indexOf("?") > -1 )
|
|
{
|
|
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
|
|
var aQueryString = strQueryString.split("&");
|
|
for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
|
|
{
|
|
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 )
|
|
{
|
|
var aParam = aQueryString[iParam].split("=");
|
|
strReturn = aParam[1];
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return strReturn;
|
|
}
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
var nosearch = getURLParam("nosrch");
|
|
if (nosearch.indexOf("yes") == -1)
|
|
{
|
|
document.write('<form method="get">');
|
|
document.write('<input name="search" type="text" id="search" />');
|
|
document.write('<input type="submit" value="Suchen" onclick="DoIt();" />');
|
|
document.write('</form>');
|
|
document.getElementById("search").value = getURLParam("search");
|
|
}
|
|
PrintIt();
|
|
</script>
|
|
</body>
|
|
</html> |