您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

userEdit.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!--
  2. User edit dialog
  3. Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
  4. $Id: userEdit.html 595 2015-04-17 09:50:36Z imoore76 $
  5. -->
  6. <div id='vboxUserEdit'>
  7. <form>
  8. <table class='vboxVertical'>
  9. <tr class='addUser'>
  10. <th><span class='translate'>Username</span>:</th>
  11. <td><input type='text' name='username' class='vboxText' /></td>
  12. </tr>
  13. <tr class='editUser'>
  14. <th><span class='translate'>Username</span>:</th>
  15. <td><span id='vboxEditUserUsername'></span></td>
  16. </tr>
  17. <tr class='addUser editUser'>
  18. <th><span class='translate'>Admin User</span>:</th>
  19. <td><label><input type='checkbox' name='admin' class='vboxCheckbox' /> <span class='translate'>Can administer users</span></label></td>
  20. </tr>
  21. <tr class='changePassword'>
  22. <th><span class='translate'>Old Password</span>:</th>
  23. <td><input type='password' name='opass' class='vboxText' /></td>
  24. </tr>
  25. <tr class='editUser'>
  26. <td colspan='2' style='text-align: center; border-top: 1px solid #000'><span style='font-weight: bold' class='translate'>Change Password</span></td>
  27. </tr>
  28. <tr class='changePassword addUser editUser'>
  29. <th><span class='translate'>New Password</span>:</th>
  30. <td><input type='password' name='npass1' class='vboxText' /></td>
  31. </tr>
  32. <tr class='changePassword addUser editUser'>
  33. <th><span class='translate'>Retype</span>:</th>
  34. <td><input type='password' name='npass2' class='vboxText' /></td>
  35. </tr>
  36. <tr id='vboxUserBtnRow' style='display:none;padding:0px;margin:0px;border:0px'>
  37. <th style='padding:0px;margin:0px;border:0px'></th>
  38. <td style='padding:0px;margin:0px;border:0px'><input type='submit' value='' style='border:0px;margin:0px;display:inline;background:#fff;text:#fff;padding:0px;height:1px;' /></td>
  39. </tr>
  40. </table>
  41. </form>
  42. </div>
  43. <script type='text/javascript'>
  44. $('#vboxUserEdit').find(".translate").html(function(i,h){return trans(h,'UIUsers');}).removeClass('translate');
  45. $('#vboxUserEdit').on('setMode',function(e,mode) {
  46. $('#vboxUserEdit').find('table').first().find('tr:not(.'+mode+')').css('display','none');
  47. });
  48. if($.browser.msie || $.browser.webkit) $('#vboxUserBtnRow').css({'display':''});
  49. $('#vboxUserEdit form').on("submit",function(e) {
  50. $('#vboxUserEdit').parent().find('span:contains("'+trans('OK','QIMessageBox')+'")').trigger('click');
  51. e.stopPropagation();
  52. e.preventDefault();
  53. return false;
  54. });
  55. </script>