DO web monitor
This commit is contained in:
parent
a963340993
commit
d58b25cd1a
1 changed files with 45 additions and 3 deletions
|
|
@ -2,6 +2,12 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Page Title</title>
|
||||
|
||||
<style>
|
||||
table, th, td {
|
||||
border: 1px thin black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -21,11 +27,47 @@
|
|||
return result;
|
||||
}
|
||||
|
||||
function show_table_one_row( str_req){
|
||||
var all_out = ""
|
||||
var str1 = readFile("?"+str_req+"&concat");
|
||||
console.log("["+ str1+"]")
|
||||
|
||||
|
||||
const sp1 = str1.split("|");
|
||||
all_out += "<H1>" + sp1[0] + "</H1>"
|
||||
const sp2 = sp1[1].split(",");
|
||||
|
||||
all_out += "<table>";
|
||||
all_out += "<tr>";
|
||||
for (let i = 0; i < sp2.length; i++) {
|
||||
const sp3 = sp2[i].split("=");
|
||||
if( sp3.length == 2){
|
||||
all_out += "<th>" + sp3[0] + "</th>"
|
||||
}
|
||||
}
|
||||
all_out += "</tr>";
|
||||
all_out += "<tr>";
|
||||
for (let i = 0; i < sp2.length; i++) {
|
||||
const sp3 = sp2[i].split("=");
|
||||
if( sp3.length == 2){
|
||||
all_out += "<td>" + sp3[1] + "</td>"
|
||||
}
|
||||
}
|
||||
|
||||
all_out += "</tr>";
|
||||
all_out += "</table>";
|
||||
return all_out;
|
||||
}
|
||||
|
||||
function RereshAll(){
|
||||
var str_out = readFile("?machine");
|
||||
console.log("Test readFile " + str_out)
|
||||
document.getElementById("begin").innerHTML = str_out;
|
||||
var all_out = ""
|
||||
all_out += show_table_one_row("machine")
|
||||
|
||||
//console.log("Test readFile " + str_out)
|
||||
all_out += show_table_one_row("order-position")
|
||||
|
||||
document.getElementById("begin").innerHTML = all_out;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue