Fixed issue-specific encounters list to include documents that are linked to the...
[openemr.git] / login.php
blobd4ca8690ad271d4b3eb67d5d8c0f5b1a004142e4
1 <?
2 $ignoreAuth=true;
3 include_once("../globals.php");
4 include_once("$srcdir/sha1.js");
5 include_once("$srcdir/sql.inc");
6 ?>
7 <html>
8 <head>
9 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
10 </head>
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>
15 <center>
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%">
30 <tr>
31 <td valign=middle width=33%>
32 <?echo $logocode;?>
33 </td>
34 <td align='center' valign='middle' width=34%>
35 <table>
37 if (count($result) != 1) {
39 <tr>
40 <td><span class="text"><?xl('Group:','e')?></span></td>
41 <td>
42 <select name=authProvider>
44 foreach ($result as $iter) {
45 echo "<option value='".$iter{"name"}."'>".$iter{"name"}."</option>\n";
48 </select>
49 </td></tr>
53 <tr>
54 <td><span class="text"><?xl('Username:','e')?></span></td>
55 <td>
56 <input type="entry" size=10 name=authUser>
57 </td></tr><tr>
58 <td><span class="text"><?xl('Password:','e')?></span></td>
59 <td>
60 <input type="password" size=10 name=clearPass>
61 </td></tr>
62 <tr><td>&nbsp;</td><td>
63 <input type="hidden" name="authPass">
64 <!-- ViCareplus : As per NIST standard, the SHA1 encryption algorithm is used-->
65 <input type="submit" onClick="javascript:this.form.authPass.value=SHA1(this.form.clearPass.value);this.form.clearPass.value='';" value="<? xl('Login','e'); ?>">
66 </td></tr>
67 </table>
69 </td>
70 <td width=33%>
72 <!-- Uncomment this for the OpenEMR demo installation
73 <p><center>login = admin
74 <br>password = pass
75 -->
77 </center></p>
79 </td>
80 </table>
84 </form>
86 <address>
87 <a href="copyright_notice.html" target="main"><?xl('Copyright Notice','e')?></a><br />
88 </address>
90 </center>
91 </body>
92 </html>