User_edit.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <form id="myform" action="<if condition="$action_name=='add'">{:U('User/insert')}<else />{:U('User/update')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="120">{:L('username')}</td>
  5. <td><if condition="$action_name=='add'"> <input type="text" class="input-text" name="username" validate="required:true,en_num:true, minlength:5, maxlength:20"/><else />{$vo['username']}</if></td>
  6. </tr>
  7. <tr>
  8. <td>{:L('password')}</td><td><input type="password" id="pwd" name="pwd" class="input-text" validate=" <if condition="$action_name=='add'">required:true,</if> minlength:5, maxlength:20"/></td>
  9. </tr>
  10. <tr>
  11. <td>{:L('realname')}</td>
  12. <td><input type="text" class="input-text" name="realname" value="{$vo.realname}" ></td>
  13. </tr>
  14. <tr>
  15. <td>{:L('email')}</td>
  16. <td><input type="text" class="input-text" name="email" value="{$vo.email}" validate="required:true,email:true,remote: '{:U('Login/checkEmail?userid='.$vo[id])}' , minlength:1, maxlength:40"></td>
  17. </tr>
  18. <tr>
  19. <td>{:L('user_is_enable')}</td>
  20. <td>
  21. {:L('yes')}<input type="radio" name="status" value="1" <eq name="vo['status']" value="1">checked="checked"</eq> />
  22. {:L('no')}<input type="radio" name="status" value="0" <eq name="vo['status']" value="0">checked="checked"</eq> />
  23. </td>
  24. </tr>
  25. <tr>
  26. <td valign="top">{:L('user_group')}</td>
  27. <td>
  28. <select name="groupid">
  29. <volist name="rlist" id="row">
  30. <option value="{$row['id']}" <eq name="vo['groupid']" value="$row['id']">selected="selected"</eq>>{$row['name']}</option>
  31. </volist>
  32. </select>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>{:L('question')}</td>
  37. <td><input type="text" class="input-text" name="question" value="{$vo.question}"></td>
  38. </tr>
  39. <tr>
  40. <td>{:L('answer')}</td>
  41. <td><input type="text" class="input-text" name="answer" value="{$vo.answer}"></td>
  42. </tr>
  43. <tr>
  44. <td>{:L('sex')}</td>
  45. <td><input type="radio" id="" name="sex" value=1 <eq name='vo.sex' value='1'>checked </eq> /> {:L('sex1')}&nbsp;<input type="radio" id="" name="sex" value=2 <eq name='vo.sex' value='2'>checked </eq> /> {:L('sex2')} &nbsp;<input type="radio" id="" name="sex" value=1 <eq name='vo.sex' value='0'>checked </eq> />{:L('sex0')}</td>
  46. </tr>
  47. <tr>
  48. <td>{:L('telephone')}</td>
  49. <td><input type="text" class="input-text" name="tel" value="{$vo.tel}"></td>
  50. </tr>
  51. <tr>
  52. <td>{:L('mobile')}</td>
  53. <td><input type="text" class="input-text" name="mobile" value="{$vo.mobile}"></td>
  54. </tr>
  55. <tr>
  56. <td>{:L('fax')}</td>
  57. <td><input type="text" class="input-text" name="fax" value="{$vo.fax}"></td>
  58. </tr>
  59. <tr>
  60. <td>{:L('web_url')}</td>
  61. <td><input type="text" class="input-text" name="web_url" value="{$vo.web_url}"></td>
  62. </tr>
  63. <tr>
  64. <td>{:L('address')}</td>
  65. <td><input type="text" class="input-text" name="address" value="{$vo.address}"></td>
  66. </tr>
  67. </table>
  68. <div class="btn">
  69. <if condition="$action_name=='edit'"><input type="hidden" name="id" value="{$vo['id']}" />
  70. <input type="hidden" name="opwd" value="{$vo['password']}" /></if>
  71. <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
  72. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  73. <input TYPE="reset" value="{:L('cancel')}" class="button">
  74. </div>
  75. </form>
  76. </div>