File: bug52531.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (103 lines) | stat: -rw-r--r-- 3,040 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
 <style type="text/css">
<!--a:active {  text-decoration: none}
    A:link {text-decoration: none; color:#006699;}
    a:visited {  text-decoration: none; color:#cc0000;}
    a:hover {text-decoration:underline; color:#bb0000;}-->
</style>

<html>
<head>
<title>MedSun - Add User</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script>
function checks()
{
	if (document.form1.name.value.length == 0)
	{
		alert("Please enter the user's login name.");
		return false;
	}
	if (document.form1.pass.value.length == 0)
	{
		alert("Please enter the user's password.");
		return false;
	}
}

function access_change()
{
	if (document.getElementById("access").value != "1")
	{
		document.getElementById("clinicrow").style.display =
"none";
		document.getElementById("clinic").value = 0;
	}
	else
	{
		document.getElementById("clinicrow").style.display =
"block";
		document.getElementById("clinic").options[0].selected =
true;
	}
	alert(document.getElementById("clinicrow").style.display);
}
</script>
<body bgcolor="#ffffff" topmargin="5" leftmargin="0">
<table width="737" border="0" cellspacing="0" cellpadding="0">
<tr><td valign="top" colspan="2">
<form
method="POST" action="adduser.asp" id="form1" name="form1" onsubmit="return
checks();">
<div style="background:url('images/cback02655.jpg') repeat-y;width:655;">
<table border="0" width="665">
<tr><td colspan="2" align="center"><img
src="dont_find.jpg" WIDTH="280" HEIGHT="40"></td></tr>
<tr><td colspan="2">&nbsp;</td></tr> <tr><td width=230>User
Name</td><td><input type="text" id="name" name="name"></td></tr>
<tr><td>Password</td><td><input
type="password" id="pass" name="pass"></td></tr>
<tr><td>Access&nbsp;&nbsp;</td>
<td>
<select id="access" name="access" onchange="return access_change();">
<!--HARDCODING THIS-->
<option value="1">Clinical User</option>
<option value="2">CODA Analyst</option>
<option value="4">CODA Administrator</option>
</select>
</td>
</tr>

<tr><td>Name</td><td><input
type="text" id="realname" name="realname"></td></tr>
<tr><td>E-mail</td><td><input
type="text" id="email" name="email"></td></tr> <tr><td>Phone
Number</td><td><input type="text" id="phone" name="phone"></td></tr> <tr
id="clinicrow"><td width=230>User's Clinic</td>
<td>
<select id="clinic" name="clinic">
<option value=23>EDBABO</option><option value=9>Hello2</option><option
value=24>HENRYHOUSE</option><option value=35>Local
hospital</option><option value=22>SUNPOWER</option><option value=27>Test
Clinic 1</option><option value=29>Test Clinic 2</option><option
value=30>Test Clinic 3</option><option value=31>Test Clinic
4</option><option value=32>Test Clinic 5</option>
</select>
</td>
</tr>
</span>
<tr><td colspan="2">&nbsp;</td></tr> <tr><td
colspan="2" align="center"><input
type="image" src="dont_find.jpg" WIDTH="110" HEIGHT="34" border=0></td></tr>
</table>
</div>
</td></tr><tr><td colspan="2">
<img SRC="dont_find.jpg" border="0" WIDTH="665" HEIGHT="14">
</form>
</td></tr>
</table>
</body>
<script>access_change()</script>
</html>