| 1 | {{extend 'layout.html'}} |
|---|
| 2 | <script> |
|---|
| 3 | // Display the status history in a popup window |
|---|
| 4 | function 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[6].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[10].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[14].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 | <div style="margin: 0% 15% 0% 15%;"> |
|---|
| 44 | <div id="pageTitle" class="header"> Search Results </div> |
|---|
| 45 | <hr> |
|---|
| 46 | <!-- NB: Python code within comment is STILL executed --> |
|---|
| 47 | Query: {{=msg}} |
|---|
| 48 | <br> |
|---|
| 49 | Number of records found: {{=count}} |
|---|
| 50 | <hr> |
|---|
| 51 | <table border="1" cellpadding="5"> |
|---|
| 52 | {{=table}} |
|---|
| 53 | {{for item in multiform:}} |
|---|
| 54 | {{=item}} |
|---|
| 55 | {{pass}} |
|---|
| 56 | </table> |
|---|
| 57 | <hr> |
|---|
| 58 | </div> |
|---|