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

Revision 595, 3.6 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<br>
52{{if (count > 0):}}
53<!--
54<form action="statuslist.html" enctype="multipart/form-data" method="post">
55    <input type="submit" value="show status form" />
56    <button class="w2p-form-button" onclick="window.location=&#x27;/HLD/default/showhistory&#x27;;return false">show history</button><br>
57    <table border="1" cellpadding="5">
58        <tr>
59        <th></th>
60        <th>DTM<br>Area</th>
61        <th>Closure ID / <br>Log No.</th>
62        <th>Route &amp; Dir /<br>Type of Closure</th>
63        <th>Start Date<br>End Date<br>Est. Delay</th>
64        <th>Facility</th>
65        <th>Limits</th>
66        <th>Work<br>Description</th>
67        <th>TMP</th>
68        <th>Requestor/<br>Radio Call No.</th>
69        </tr>
70{{for hwy in highways:}}
71        <tr>
72        <td><INPUT type="checkbox" name="ckb1" value="{{=hwy.closureid}}"/></td>
73        <td align="center">{{=hwy.closureid[0]}}</td>
74        <td align="center">{{=hwy.closureid}}<BR><HR>{{=hwy.lognum}}</td>
75        <td align="center">{{=hwy.route}}&nbsp;{{=hwy.direction}}<BR><HR>{{=hwy.closuretype}}</td>
76        <td align="center">{{=hwy.startdate}}<BR><HR>{{=hwy.enddate}}<BR><HR>{{=hwy.estdelay}}</td>
77        {{=TD(hwy.facility)}}
78        <td align="center">{{=hwy.startlocation}}<BR><HR>{{=hwy.endlocation}}</td>
79        {{=TD(hwy.worktype)}}
80            <td align="center">{{=hwy.tmpcozeep}}<BR>{{=hwy.tmpdetour}}</td>
81        {{=TD(hwy.supervisor)}}
82{{pass}}
83        </tr>
84    </table>
85    <div style="display:none;">
86        <input name="_formkey" type="hidden" value="8138fabc-b5fc-4787-9f49-80e9ac931cf2" />
87        <input name="_formname" type="hidden" value="default" />
88    </div>
89</form>
90-->
91{{pass}}
92<HR>
93<table border="1" cellpadding="5">
94{{=table}}
95{{for item in multiform:}}
96{{=item}}
97{{pass}}
98</table>
99<HR>
Note: See TracBrowser for help on using the repository browser.