| 1 | <ewd:comment>
 | 
|---|
| 2 | (C) Sam Habiel 2011
 | 
|---|
| 3 | License: Inherits EWD License, whatever it is.
 | 
|---|
| 4 | </ewd:comment>
 | 
|---|
| 5 | 
 | 
|---|
| 6 | <ewd:config isFirstPage="true" prePageScript="setup^ewdu">
 | 
|---|
| 7 | <!DOCTYPE html>
 | 
|---|
| 8 | <html>
 | 
|---|
| 9 |     <head>
 | 
|---|
| 10 |         <title>VISTA Sign-On</title>
 | 
|---|
| 11 |     
 | 
|---|
| 12 |     <!-- Redirect Javascript for EWD Errors -->
 | 
|---|
| 13 |     <script type="text/javascript">
 | 
|---|
| 14 |         var VISTA = {};  // Mi Casa
 | 
|---|
| 15 | 
 | 
|---|
| 16 |         // Makes the EWD Error show up in a div rather than a pop-up
 | 
|---|
| 17 |         VISTA.redirectEWDErrorToDiv = function () {
 | 
|---|
| 18 |             EWD.page.errorMessage = function (msg) {
 | 
|---|
| 19 |                 if (msg !== '') 
 | 
|---|
| 20 |                 {
 | 
|---|
| 21 |                     var errDiv = document.getElementById('error');
 | 
|---|
| 22 |                     errDiv.innerHTML = msg;
 | 
|---|
| 23 |                 }
 | 
|---|
| 24 |             };
 | 
|---|
| 25 |         };
 | 
|---|
| 26 |         
 | 
|---|
| 27 |         // If AC contains an ; disable Verify Code field
 | 
|---|
| 28 |         VISTA.checkAC = function (ac) {
 | 
|---|
| 29 |             var vc = document.getElementById("vc");
 | 
|---|
| 30 |             
 | 
|---|
| 31 |             if (ac.indexOf(";") > -1)
 | 
|---|
| 32 |             {
 | 
|---|
| 33 |                 vc.disabled = "disabled";
 | 
|---|
| 34 |                 vc.placeholder = "ALREADY ENTERED";
 | 
|---|
| 35 |                 vc.style.background = "#646060";
 | 
|---|
| 36 |             }
 | 
|---|
| 37 |             else
 | 
|---|
| 38 |             {
 | 
|---|
| 39 |                 vc.disabled = null;
 | 
|---|
| 40 |                 vc.placeholder = "Verify Code";
 | 
|---|
| 41 |                 vc.style.background = null;
 | 
|---|
| 42 |             }
 | 
|---|
| 43 |         };
 | 
|---|
| 44 |     </script>
 | 
|---|
| 45 |     <!-- End -->
 | 
|---|
| 46 | 
 | 
|---|
| 47 |     </head>
 | 
|---|
| 48 |     <body onload="VISTA.redirectEWDErrorToDiv()">
 | 
|---|
| 49 |        <form id="login" method="post" action="ewd">
 | 
|---|
| 50 |             <h1>Sign On to VISTA</h1>
 | 
|---|
| 51 |             <div id="intro">
 | 
|---|
| 52 |                 <p>
 | 
|---|
| 53 |                     <ewd:forEach sessionName="so.introtxt" index="$n" return="$line">
 | 
|---|
| 54 |                     <?= $line ?> <br />
 | 
|---|
| 55 |                     </ewd:forEach>
 | 
|---|
| 56 |                 </p>
 | 
|---|
| 57 |             </div>
 | 
|---|
| 58 |             <fieldset id="inputs">
 | 
|---|
| 59 |                 <table>
 | 
|---|
| 60 |                     <tr>
 | 
|---|
| 61 |                     <td valign="middle"><label for="ac">Access Code</label></td>
 | 
|---|
| 62 |                     <td valign="middle"><input id="ac" type="password" oninput="VISTA.checkAC(this.value)" placeholder="Access Code" autofocus required></td>
 | 
|---|
| 63 |                     </tr>
 | 
|---|
| 64 |                     <tr>
 | 
|---|
| 65 |                     <td valign="middle"><label for="vc">Verify Code</label></td>
 | 
|---|
| 66 |                     <td valign="middle"><input id="vc" type="password" placeholder="Verify Code"></td>
 | 
|---|
| 67 |                     </tr>
 | 
|---|
| 68 |                     <tr>
 | 
|---|
| 69 |                     <td> </td>
 | 
|---|
| 70 |                     <td><label for="cvc">Change Verify Code</label><input id="cvc" value="cvc" type="checkbox"></td>
 | 
|---|
| 71 |                     </tr>
 | 
|---|
| 72 |                 </table>
 | 
|---|
| 73 |             </fieldset>
 | 
|---|
| 74 |             <div id="error">
 | 
|---|
| 75 |             </div>
 | 
|---|
| 76 |             <fieldset id="actions">
 | 
|---|
| 77 |                 <input type="submit" name="submit" id="submit" value="Sign On" action="so^ewdu" nextpage="menu">
 | 
|---|
| 78 |                 <a href="">Help</a>
 | 
|---|
| 79 |             </fieldset>
 | 
|---|
| 80 |         </form>
 | 
|---|
| 81 |     </body>
 | 
|---|
| 82 | </html>
 | 
|---|