1. 程式人生 > >java 快速開發框架JeeWeb敏捷開發平臺

java 快速開發框架JeeWeb敏捷開發平臺

<form:form id="userForm" modelAttribute="data" method="post" class="form-horizontal">
        <form:hidden path="id"/>
        <table  class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
           <tbody>
               <tr>
                 <td  class="width-15 active text-right">   <label><font color="red">*</font>使用者名稱:</label></td>
                 <td  class="width-35" >
                     <form:input path="username" class="form-control" ajaxurl="${adminPath}/sys/user/validate"  validErrorMsg="使用者名稱重複"  htmlEscape="false"  datatype="*"  nullmsg="請輸入使用者名稱!"/>
                     <label class="Validform_checktip"></label>
                 </td>
                  <td  class="width-15 active text-right">  
                      <label><font color="red">*</font>姓名:</label>
                 </td>
                 <td class="width-35" >
                     <form:input path="realname" class="form-control " datatype="*" nullmsg="請輸入姓名!" validErrorMsg="使用者名稱重複" htmlEscape="false" />
                     <label class="Validform_checktip"></label>
                 </td>
              </tr>
              <tr>
                 <td  class="width-15 active text-right">   
                      <label><font color="red">*</font>郵箱:</label>
                 </td>
                 <td class="width-35" >
                     <form:input path="email" class="form-control" ajaxurl="${adminPath}/sys/user/validate"   datatype="e" nullmsg="請輸入郵箱!"  htmlEscape="false" />
                     <label class="Validform_checktip"></label>
                 </td>
                 <td  class="width-15 active text-right">   
                     <label><font color="red">*</font>聯絡電話:</label>
                 </td>
                 <td  class="width-35" >
                     <form:input path="phone" class="form-control" ajaxurl="${adminPath}/sys/user/validate"  htmlEscape="false"  datatype="m"  nullmsg="請輸入使用者名稱!"/>
                     <label class="Validform_checktip"></label>
                 </td>
              </tr>
              <tr>
                 <td  class="width-15 active text-right">   
                      <label><font color="red">*</font>密碼:</label>
                 </td>
                 <td class="width-35" >
                     <input type="password" value="" name="password"  class="form-control" datatype="*6-16" nullmsg="請設定密碼!" errormsg="密碼範圍在6~16位之間!" />
                     <label class="Validform_checktip"></label>
                 </td>
                 <td  class="width-15 active text-right">   <label><font color="red">*</font>確認密碼:</label></td>
                 <td  class="width-35" >
                     <input type="password" value="" name="userpassword2" class="form-control" datatype="*" recheck="password" nullmsg="請再輸入一次密碼!" errormsg="您兩次輸入的賬號密碼不一致!" />
                     <label class="Validform_checktip"></label>
                 </td>
              </tr>
              <tr>
                 <td class="active"><label class="pull-right"><font color="red">*</font>使用者角色:</label></td>
                 <td>
                    <form:checkboxes path="roleIdList" nested="false" items="${allRoles}" itemLabel="name" itemValue="id" htmlEscape="false" cssClass="i-checks required"/>

                 </td>
              </tr>
              <tr>
                <td class="width-15 active"><label class="pull-right">組織機構:</label></td>
                <td colspan="3">
                   <form:treeselect title="請選擇組織機構" path="organizationIds"  nested="false"  dataUrl="${adminPath}/sys/organization/treeData" labelName="parentname" labelValue="${organizationNames}" multiselect="true" />      
                </td>
              </tr>

           </tbody>
           </table>   
    </form:form>