File indexing completed on 2024-12-22 05:33:22
0001 <?php 0002 0003 include("gfx3/lib.php"); 0004 0005 $id = EHeaderDataParser::db_get("id"); 0006 0007 $users = new EData("users"); 0008 $user_info = $users->find("firstname,lastname,email,password","where id=".EUser::id().""); 0009 $user_info = $user_info[0]; //taking first element 0010 0011 echo " 0012 <div class=\"modal-header\"> 0013 <button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button> 0014 <h3>Edit personal info of ".$user_info["firstname"]." ".$user_info["lastname"]."</h3> 0015 </div> 0016 0017 <form class=\"form-horizontal\" action=\"updateprofileinfo.php\" target=\"_self\" method=\"post\"> 0018 <div class=\"modal-body\"> 0019 <fieldset> 0020 0021 <div class=\"control-group\"> 0022 <label class=\"control-label\" for=\"password\">Password</label> 0023 <div class=\"controls\"> 0024 <input type=\"password\" name=\"password\" class=\"input-xlarge\" id=\"password\" value=\"".$user_info["password"]."\"> 0025 <input type=\"hidden\" name=\"id\" value=\"".EUser::id()."\"> 0026 <p class=\"help-block\">* must be a minimum of 8 characters</p> 0027 </div> 0028 </div> 0029 0030 <div class=\"control-group\"> 0031 <label class=\"control-label\" for=\"email\">E-Mail</label> 0032 <div class=\"controls\"> 0033 <input type=\"text\" name=\"email\" class=\"input-xlarge\" id=\"email\" value=".$user_info["email"]."> 0034 <p class=\"help-block\">* must be a valid email</p> 0035 </div> 0036 </div> 0037 0038 <div class=\"control-group\"> 0039 <label class=\"control-label\" for=\"firstname\">Firstname</label> 0040 <div class=\"controls\"> 0041 <input type=\"text\" name=\"firstname\" class=\"input-xlarge\" id=\"firstname\" value=".$user_info["firstname"]."> 0042 </div> 0043 </div> 0044 0045 <div class=\"control-group\"> 0046 <label class=\"control-label\" for=\"lastname\">Lastname</label> 0047 <div class=\"controls\"> 0048 <input type=\"text\" name=\"lastname\" class=\"input-xlarge\" id=\"lastname\" value=".$user_info["lastname"]."> 0049 </div> 0050 </div> 0051 0052 </fieldset> 0053 0054 0055 </div> 0056 <div class=\"modal-footer\" style=\"background-color:#FFFFFF;\"> 0057 <input type=\"submit\" class=\"btn btn-primary\" value=\"Save\"> 0058 </div> 0059 0060 </form> 0061 0062 "; 0063 0064 0065 ?>