source: EWD/ewdapps/so/pages/index.ewd@ 1435

Last change on this file since 1435 was 1319, checked in by Sam Habiel, 13 years ago

minor js fix

File size: 2.8 KB
RevLine 
[1284]1<ewd:comment>
2(C) Sam Habiel 2011
3License: Inherits EWD License, whatever it is.
4</ewd:comment>
5
[1318]6<ewd:config isFirstPage="true" prePageScript="setup^ewdu">
[1284]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
[1315]15
16 // Makes the EWD Error show up in a div rather than a pop-up
[1284]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 };
[1315]26
27 // If AC contains an ; disable Verify Code field
28 VISTA.checkAC = function (ac) {
[1319]29 var vc = document.getElementById("vc");
30
[1315]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 };
[1284]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>
[1318]53 <ewd:forEach sessionName="so.introtxt" index="$n" return="$line">
[1284]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>
[1315]62 <td valign="middle"><input id="ac" type="password" oninput="VISTA.checkAC(this.value)" placeholder="Access Code" autofocus required></td>
[1284]63 </tr>
64 <tr>
65 <td valign="middle"><label for="vc">Verify Code</label></td>
[1315]66 <td valign="middle"><input id="vc" type="password" placeholder="Verify Code"></td>
[1284]67 </tr>
68 <tr>
69 <td>&nbsp;</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>
Note: See TracBrowser for help on using the repository browser.