ongoing new datepicker project
[openemr.git] / interface / usergroup / user_info.php
blobab13ca87b809dd141f3e47d7f6690fee08bc85ba
1 <?php
2 include_once("../globals.php");
3 include_once("$srcdir/auth.inc");
4 if($GLOBALS['use_active_directory']) {
5 exit();
7 ?>
8 <html>
9 <head>
10 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
11 <script src="checkpwd_validation.js" type="text/javascript"></script>
12 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-9-1/index.js"></script>
14 <script language='JavaScript'>
15 //Validating password and display message if password field is empty - starts
16 var webroot='<?php echo $webroot?>';
17 function update_password()
19 top.restoreSession();
20 // Not Empty
21 // Strong if required
22 // Matches
24 $.post("user_info_ajax.php",
26 curPass: $("input[name='curPass']").val(),
27 newPass: $("input[name='newPass']").val(),
28 newPass2: $("input[name='newPass2']").val(),
30 function(data)
32 $("input[type='password']").val("");
33 $("#display_msg").html(data);
37 return false;
40 </script>
41 </head>
42 <body class="body_top">
44 <span class="title"><?php echo xlt('Password Change'); ?></span>
45 <br><br>
47 <?php
49 $ip=$_SERVER['REMOTE_ADDR'];
50 $res = sqlStatement("select fname,lname,username from users where id=?",array($_SESSION["authId"]));
51 $row = sqlFetchArray($res);
52 $iter=$row;
54 <div id="display_msg">
55 </div>
56 <br>
57 <FORM NAME="user_form" METHOD="POST" ACTION="user_info.php"
58 onsubmit="top.restoreSession()">
59 <input type=hidden name=secure_pwd value="<?php echo $GLOBALS['secure_password']; ?>">
60 <TABLE>
61 <TR>
62 <TD><span class=text><?php xl('Full Name','e'); ?>: </span></TD>
63 <TD><span class=text><?php echo htmlspecialchars($iter["fname"] . " " . $iter["lname"], ENT_NOQUOTES); ?></span></td>
64 </TR>
66 <TR>
67 <TD><span class=text><?php xl('Username','e'); ?>: </span></TD>
68 <TD><span class=text><?php echo $iter["username"]; ?></span></td>
69 </TR>
71 <TR>
72 <TD><span class=text><?php xl('Current Password','e'); ?>: </span></TD>
73 <TD><input type=password name=curPass size=20 value="" autocomplete='off'></td>
74 </TR>
76 <TR>
77 <TD><span class=text><?php xl('New Password','e'); ?>: </span></TD>
78 <TD><input type=password name=newPass size=20 value="" autocomplete='off'></td>
79 </TR>
80 <TR>
81 <TD><span class=text><?php xl('Repeat New Password','e'); ?>: </span></TD>
82 <TD><input type=password name=newPass2 size=20 value="" autocomplete='off'></td>
83 </TR>
85 </TABLE>
86 <br>&nbsp;&nbsp;&nbsp;
87 <INPUT TYPE="Submit" VALUE=<?php echo xla('Save Changes'); ?> onClick="return update_password()">
89 </FORM>
91 <br><br>
92 </BODY>
93 </HTML>
95 <?php
96 // da39a3ee5e6b4b0d3255bfef95601890afd80709 == blank