3 include_once("../globals.php");
4 include_once("$srcdir/md5.js");
5 include_once("$srcdir/sql.inc");
9 <link rel
=stylesheet href
="<?echo $css_header;?>" type
="text/css">
11 <body
<?
echo $login_body_line;?
> topmargin
=0 rightmargin
=0 leftmargin
=2 bottommargin
=0 marginwidth
=2 marginheight
=0 onload
="javascript:document.login_form.authUser.focus();" >
13 <span
class="text"></span
>
17 <form method
="POST" action
="../main/main_screen.php?auth=login" target
="_top" name
=login_form
>
20 $res = sqlStatement("select distinct name from groups");
21 for ($iter = 0;$row = sqlFetchArray($res);$iter++
)
22 $result[$iter] = $row;
23 if (count($result) == 1) {
24 $resvalue = $result[0]{"name"};
25 echo "<input type='hidden' name='authProvider' value='$resvalue' />\n";
29 <table width
=100% height
="90%">
31 <td valign
=middle width
=33%
>
34 <td align
='center' valign
='middle' width
=34%
>
37 if (count($result) != 1) {
40 <td
><span
class="text">Group
:</span
></td
>
42 <select name
=authProvider
>
44 foreach ($result as $iter) {
45 echo "<option value='".$iter{"name"}."'>".$iter{"name"}."</option>\n";
54 <td
><span
class="text">Username
:</span
></td
>
56 <input type
="entry" size
=10 name
=authUser
>
58 <td
><span
class="text">Password
:</span
></td
>
60 <input type
="password" size
=10 name
=clearPass
>
62 <tr
><td
> 
;</td
><td
>
63 <input type
="hidden" name
="authPass">
64 <input type
="submit" onClick
="javascript:this.form.authPass.value=MD5(this.form.clearPass.value);this.form.clearPass.value='';" value
="Login">
72 <tr
><td
>User
:</td
><td
>Password
:</td
></tr
>
73 <tr
><td
>clerk
</td
><td
>clerk1
</td
></tr
>
74 <tr
><td
>demo
</td
><td
>pass
</td
></tr
>
75 <tr
><td
>drwhitehair
</td
><td
>drwhitehair1
</td
></tr
>
76 <tr
><td
>admin
</td
><td
>pass
</td
></tr
>
89 <a href
="copyright_notice.html" target
="main">Copyright Notice
:</a
><br
/>
90 <a href
="http://www.openmedsoftware.org/" target
="main">Return to Open Source Medical Software
</a
>