|
| 1 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 2 | +<!-- |
| 3 | +所有的隐藏字段必须放table标签之前,当前只画table |
| 4 | +name属性的命名必须和后台Action类能接收的命名方式一致,即"ent."+"属性字段"的形式 |
| 5 | +--> |
| 6 | +<input type="hidden" name="ent.id"/> |
| 7 | +<input type="hidden" name="ent.staff.id"/> |
| 8 | +<input type="hidden" name="ent.oldStaff.id"/> |
| 9 | +<input type="hidden" name="ent.computer.id"/> |
| 10 | +<!--每行两个字段的table的css类名为twoColFormTable--> |
| 11 | +<table class="twoColFormTable"> |
| 12 | + <tr> |
| 13 | + <!--字段中文名称的td--> |
| 14 | + <td>电脑</td> |
| 15 | + <!--如果需要实现合并单元格,使用colspan或rowspan方式实现--> |
| 16 | + <td colspan="3"> |
| 17 | + <!-- |
| 18 | + 仅仅对没有name属性的字段加id属性,减少id的使用,避免因为id重名造成冲突 |
| 19 | + 仅对不是普通长度的控件加 class="long"或 class="short",正常长度的不用加 |
| 20 | + --> |
| 21 | + <input type="text" class="long" id="ent_computer_name"/> |
| 22 | + <input type="button" value="选择电脑"/> |
| 23 | + </td> |
| 24 | + </tr> |
| 25 | + <tr> |
| 26 | + <td> |
| 27 | + 当前使用员工: |
| 28 | + </td> |
| 29 | + <td> |
| 30 | + <input type="text" id="ent_staff_name"/> |
| 31 | + <input type="button" value="选择员工"/> |
| 32 | + </td> |
| 33 | + <td> |
| 34 | + 原来使用员工: |
| 35 | + </td> |
| 36 | + <td> |
| 37 | + <input type="text" id="ent_oldStaff_name"/> |
| 38 | + <input type="button" value="选择员工"/> |
| 39 | + </td> |
| 40 | + </tr> |
| 41 | + <tr> |
| 42 | + <td> |
| 43 | + 开始使用日期: |
| 44 | + </td> |
| 45 | + <td> |
| 46 | + <input type="text" name="ent.startDate"/> |
| 47 | + </td> |
| 48 | + <td> |
| 49 | + 结束使用日期: |
| 50 | + </td> |
| 51 | + <td> |
| 52 | + <input type="text" name="ent.endDate"/> |
| 53 | + </td> |
| 54 | + </tr> |
| 55 | + <tr> |
| 56 | + <!--按钮td要加 class="tdButton"来标识出这是一个按钮td--> |
| 57 | + <td colspan="4" class="tdButton"> |
| 58 | + <input type="button" value="提交"/> |
| 59 | + |
| 60 | + <input type="button" value="重置"/> |
| 61 | + |
| 62 | + <input type="button" value="取消"/> |
| 63 | + </td> |
| 64 | + </tr> |
| 65 | +</table> |
0 commit comments