~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/table/interactive/bug52531.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 <style type="text/css">
 
2
<!--a:active {  text-decoration: none}
 
3
    A:link {text-decoration: none; color:#006699;}
 
4
    a:visited {  text-decoration: none; color:#cc0000;}
 
5
    a:hover {text-decoration:underline; color:#bb0000;}-->
 
6
</style>
 
7
 
 
8
<html>
 
9
<head>
 
10
<title>MedSun - Add User</title>
 
11
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
12
</head>
 
13
<script>
 
14
function checks()
 
15
{
 
16
        if (document.form1.name.value.length == 0)
 
17
        {
 
18
                alert("Please enter the user's login name.");
 
19
                return false;
 
20
        }
 
21
        if (document.form1.pass.value.length == 0)
 
22
        {
 
23
                alert("Please enter the user's password.");
 
24
                return false;
 
25
        }
 
26
}
 
27
 
 
28
function access_change()
 
29
{
 
30
        if (document.getElementById("access").value != "1")
 
31
        {
 
32
                document.getElementById("clinicrow").style.display =
 
33
"none";
 
34
                document.getElementById("clinic").value = 0;
 
35
        }
 
36
        else
 
37
        {
 
38
                document.getElementById("clinicrow").style.display =
 
39
"block";
 
40
                document.getElementById("clinic").options[0].selected =
 
41
true;
 
42
        }
 
43
        alert(document.getElementById("clinicrow").style.display);
 
44
}
 
45
</script>
 
46
<body bgcolor="#ffffff" topmargin="5" leftmargin="0">
 
47
<table width="737" border="0" cellspacing="0" cellpadding="0">
 
48
<tr><td valign="top" colspan="2">
 
49
<form
 
50
method="POST" action="adduser.asp" id="form1" name="form1" onsubmit="return
 
51
checks();">
 
52
<div style="background:url('images/cback02655.jpg') repeat-y;width:655;">
 
53
<table border="0" width="665">
 
54
<tr><td colspan="2" align="center"><img
 
55
src="dont_find.jpg" WIDTH="280" HEIGHT="40"></td></tr>
 
56
<tr><td colspan="2">&nbsp;</td></tr> <tr><td width=230>User
 
57
Name</td><td><input type="text" id="name" name="name"></td></tr>
 
58
<tr><td>Password</td><td><input
 
59
type="password" id="pass" name="pass"></td></tr>
 
60
<tr><td>Access&nbsp;&nbsp;</td>
 
61
<td>
 
62
<select id="access" name="access" onchange="return access_change();">
 
63
<!--HARDCODING THIS-->
 
64
<option value="1">Clinical User</option>
 
65
<option value="2">CODA Analyst</option>
 
66
<option value="4">CODA Administrator</option>
 
67
</select>
 
68
</td>
 
69
</tr>
 
70
 
 
71
<tr><td>Name</td><td><input
 
72
type="text" id="realname" name="realname"></td></tr>
 
73
<tr><td>E-mail</td><td><input
 
74
type="text" id="email" name="email"></td></tr> <tr><td>Phone
 
75
Number</td><td><input type="text" id="phone" name="phone"></td></tr> <tr
 
76
id="clinicrow"><td width=230>User's Clinic</td>
 
77
<td>
 
78
<select id="clinic" name="clinic">
 
79
<option value=23>EDBABO</option><option value=9>Hello2</option><option
 
80
value=24>HENRYHOUSE</option><option value=35>Local
 
81
hospital</option><option value=22>SUNPOWER</option><option value=27>Test
 
82
Clinic 1</option><option value=29>Test Clinic 2</option><option
 
83
value=30>Test Clinic 3</option><option value=31>Test Clinic
 
84
4</option><option value=32>Test Clinic 5</option>
 
85
</select>
 
86
</td>
 
87
</tr>
 
88
</span>
 
89
<tr><td colspan="2">&nbsp;</td></tr> <tr><td
 
90
colspan="2" align="center"><input
 
91
type="image" src="dont_find.jpg" WIDTH="110" HEIGHT="34" border=0></td></tr>
 
92
</table>
 
93
</div>
 
94
</td></tr><tr><td colspan="2">
 
95
<img SRC="dont_find.jpg" border="0" WIDTH="665" HEIGHT="14">
 
96
</form>
 
97
</td></tr>
 
98
</table>
 
99
</body>
 
100
<script>access_change()</script>
 
101
</html>
 
102
 
 
103