source: tmcsimulator/branches/LCSv1/views/default/results.html @ 595

Revision 595, 2.0 KB checked in by jdalbey, 6 years ago (diff)

LCS minor fixes to button style, etc.

Line 
1{{extend 'layout.html'}}
2<script>
3// Display the status history in a popup window
4function showPopup(msg) {
5  var myWindow = window.open("", "MsgWindow", "width=500,height=200,top=100,left=250");
6  var fields = msg.split(",");
7  var lineout = "<h2>Status History for "+fields[0]+" Log #"+fields[1]+"</h2>"
8  lineout += "<table border='1' cellpadding='5'><tr><th>Event</th><th>User</th><th>Req Date</th><th>Status Date</th></tr>"
9  // Is there a 1097 status?
10  if (fields[3].length > 0)
11  {
12      lineout += "<tr>";
13      lineout += "<td>" + fields[2] + "</td>"; // event type
14      lineout += "<td>" + fields[3] + "</td>"; // user
15      lineout += "<td>" + fields[4] + " " + fields[5] +"</td>"; // req date-time
16      lineout += "<td>" + fields[6] + " " + fields[7] +"</td>"; // status date-time
17      lineout += "</tr>"
18  }
19  // Is there a 1098 status?
20  if (fields[9].length > 0)
21  {
22      lineout += "<tr>";
23      lineout += "<td>" + fields[8] + "</td>"; // event type
24      lineout += "<td>" + fields[9] + "</td>"; // user
25      lineout += "<td>" + fields[4] + " " + fields[5] +"</td>"; // req date-time
26      lineout += "<td>" + fields[10] + " " + fields[11] +"</td>"; // status date-time
27      lineout += "</tr>"
28  }
29  // Is there a 1022 status?
30  if (fields[13].length > 0)
31  {
32      lineout += "<tr>";
33      lineout += "<td>" + fields[12] + "</td>"; // event type
34      lineout += "<td>" + fields[13] + "</td>"; // user
35      lineout += "<td>" + fields[4] + " " + fields[5] +"</td>"; // req date-time
36      lineout += "<td>" + fields[14] + " " + fields[15] +"</td>"; // status date-time
37      lineout += "</tr></table>"
38  }
39  myWindow.document.body.innerHTML = ''; // clear any previous output
40  myWindow.document.write(lineout ); //fill the window
41}
42</script>
43<h2>
44    Search Results
45</h2>
46<hr>
47<!-- NB:  Python code within comment is STILL executed -->
48Query: {{=msg}}
49<br>
50Number of records found: {{=count}}
51<HR>
52<table border="1" cellpadding="5">
53{{=table}}
54{{for item in multiform:}}
55{{=item}}
56{{pass}}
57</table>
58<HR>
Note: See TracBrowser for help on using the repository browser.