Role_edit.html 1.0 KB

1234567891011121314151617181920212223
  1. <form id="myform" action="<if condition="$action_name=='edit'">{:U('Role/update')}<else />{:U('Role/insert')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="120">{:L('user_group')}{:L('name')}</td>
  5. <td><input type="text" name="name" class="inputbox" class="input-text" value="{$vo['name']}" validate="required:true,cn_username:true, minlength:2, maxlength:20"/></td>
  6. </tr>
  7. <tr>
  8. <td>{:L('user_is_enable')}</td>
  9. <td>
  10. {:L('yes')}<input type="radio" name="status" value="1" <eq name="vo['status']" value="1">checked="checked"</eq> />
  11. {:L('no')}<input type="radio" name="status" value="0" <eq name="vo['status']" value="0">checked="checked"</eq> />
  12. </td>
  13. </tr>
  14. </table>
  15. <div class="btn">
  16. <if condition="$action_name=='edit'"><input type="hidden" id="id" name="id" value="{$vo['id']}" /></if>
  17. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  18. <input TYPE="reset" value="{:L('cancel')}" class="button">
  19. </div>
  20. </form>
  21. </div>