[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 include ("../inc/inc.Settings.php"); 3 include ("../inc/inc.AccessUtils.php"); 4 include ("../inc/inc.ClassAccess.php"); 5 include ("../inc/inc.ClassDocument.php"); 6 include ("../inc/inc.ClassFolder.php"); 7 include ("../inc/inc.ClassGroup.php"); 8 include ("../inc/inc.ClassUser.php"); 9 include ("../inc/inc.DBAccess.php"); 10 include ("../inc/inc.FileUtils.php"); 11 include ("../inc/inc.Language.php"); 12 include ("../inc/inc.OutUtils.php"); 13 include ("../inc/inc.Authentication.php"); 14 15 16 17 printHTMLHead( getMLText("my_account") ); 18 ?> 19 20 <script language="JavaScript"> 21 22 function checkForm() 23 { 24 msg = ""; 25 if (document.form1.pwd.value != document.form1.pwdconf.value) msg += "<?php printMLText("js_pwd_not_conf");?>\n"; 26 if (document.form1.fullname.value == "") msg += "<?php printMLText("js_no_name");?>\n"; 27 if (document.form1.email.value == "") msg += "<?php printMLText("js_no_email");?>\n"; 28 if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n"; 29 if (msg != "") 30 { 31 alert(msg); 32 return false; 33 } 34 else 35 return true; 36 } 37 </script> 38 39 <?php 40 printTitleBar(getFolder($settings->_rootFolderID)); 41 printCenterStart(); 42 printStartBox(getMLText("my_account")); 43 ?> 44 45 <form action="../op/op.EditUserData.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return checkForm();"> 46 <table> 47 <tr> 48 <td class="inputDescription"><?php printMLText("password");?>:</td> 49 <td><input type="Password" name="pwd"></td> 50 </tr> 51 <tr> 52 <td class="inputDescription"><?php printMLText("confirm_pwd");?>:</td> 53 <td><input type="Password" name="pwdconf"></td> 54 </tr> 55 <tr> 56 <td class="inputDescription"><?php printMLText("name");?>:</td> 57 <td><input name="fullname" value="<?php print $user->getFullName();?>"></td> 58 </tr> 59 <tr> 60 <td class="inputDescription"><?php printMLText("email");?>:</td> 61 <td><input name="email" value="<?php print $user->getEmail();?>"></td> 62 </tr> 63 <tr> 64 <td class="inputDescription" valign="top"><?php printMLText("comment");?>:</td> 65 <td><textarea name="comment" rows="4" cols="30"><?php print $user->getComment();?></textarea></td> 66 </tr> 67 <tr> 68 <td class="inputDescription" valign="top"><?php printMLText("user_image");?>:</td> 69 <td class="standardText"> 70 <?php 71 if ($user->hasImage()) 72 print "<img src=\"".$user->getImageURL()."\">"; 73 else 74 printMLText("no_user_image"); 75 ?> 76 77 </td> 78 </tr> 79 <tr> 80 <td class="inputDescription" valign="top"><?php printMLText("new_user_image");?>:</td> 81 <td class="standardText"><input type="file" name="userfile" accept="image/jpeg"></td> 82 </tr> 83 <tr> 84 <td colspan="2"><br><input type="Submit"></td> 85 </tr> 86 </table> 87 </form> 88 89 <?php 90 if (!$user->isAdmin()) { 91 printNextBox(getMLText("personal_default_keywords")); 92 print "<div class=\"standardText\">"; 93 print "<a href=\"out.DefaultKeywords.php\">" . getMLText("edit_personal_default_keywords") . "</a>"; 94 print "</div>"; 95 } 96 97 printEndBox(); 98 printCenterEnd(); 99 printHTMLFoot(); 100 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |