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 <script language
='JavaScript'>
13 function imsubmitted() {
14 <?php
if (!empty($GLOBALS['restore_sessions'])) { ?
>
15 // Delete the session cookie by setting its expiration date in the past.
16 // This forces the server to create a new session ID.
17 var olddate
= new Date();
18 olddate
.setFullYear(olddate
.getFullYear() - 1);
19 document
.cookie
= '<?php echo session_name() . '=' . session_id() ?>; path=/; expires=' + olddate
.toGMTString();
27 <body
<?
echo $login_body_line;?
> topmargin
=0 rightmargin
=0 leftmargin
=2 bottommargin
=0 marginwidth
=2 marginheight
=0 onload
="javascript:document.login_form.authUser.focus();" >
29 <span
class="text"></span
>
33 <form method
="POST" action
="../main/main_screen.php?auth=login" target
="_top"
34 name
="login_form" onsubmit
="return imsubmitted();">
37 $res = sqlStatement("select distinct name from groups");
38 for ($iter = 0;$row = sqlFetchArray($res);$iter++
)
39 $result[$iter] = $row;
40 if (count($result) == 1) {
41 $resvalue = $result[0]{"name"};
42 echo "<input type='hidden' name='authProvider' value='$resvalue' />\n";
46 <table width
=100% height
="90%">
48 <td valign
=middle width
=33%
>
51 <td align
='center' valign
='middle' width
=34%
>
54 if (count($result) != 1) {
57 <td
><span
class="text"><?
xl('Group:','e'); ?
></span
></td
>
59 <select name
=authProvider
>
61 foreach ($result as $iter) {
62 echo "<option value='".$iter{"name"}."'>".$iter{"name"}."</option>\n";
71 <td
><span
class="text"><?
xl('Username:','e'); ?
></span
></td
>
73 <input type
="entry" size
=10 name
=authUser
>
75 <td
><span
class="text"><?
xl('Password:','e'); ?
></span
></td
>
77 <input type
="password" size
=10 name
=clearPass
>
79 <tr
><td
> 
;</td
><td
>
80 <input type
="hidden" name
="authPass">
81 <input type
="submit" onClick
="javascript:this.form.authPass.value=MD5(this.form.clearPass.value);this.form.clearPass.value='';" value
=<?
xl('Login','e');?
>>
88 <!-- Uncomment this
for the OpenEMR demo installation
89 <p
><center
>login
= admin
101 <a href
="copyright_notice.html" target
="main"><?
xl('Copyright Notice','e'); ?
></a
><br
/>