<!-- 模态框(Modal) --><div class="modal fade" id="myModal" tabindex="-100" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">个人信息</h4> </div> <div class="modal-body"> <form role="form" class="form" action="preservationUserInformation" method="get" > <input type="hidden" name="id" value="${user.id}"> <h4><c:if test="${!user.name.equals('')}">${user.name}</c:if></h4><span class="glyphicon glyphicon-mars">图标显示性别</span> <table class="table table-striped"> <tbody> <tr> <td><label class="control-label">用户名: </label></td> <td> <input type="text" class="form-control" disabled="disabled" value="${user.username}" /> </td> </tr> <c:if test="${user.name.equals('')}"> <tr> <td><label class="control-label">姓名: </label></td> <td> <input type="text" name="name" class="form-control" value="${user.name}" /> </td> </tr> </c:if> <c:if test="${user.sex.equals('')}"> <tr> <td><label class="control-label">性别: </label></td> <td> <div class="form-group"> <label class="radio-inline"> <input type="radio" name="sex" value="男" name="sex">男 </label> <label class="radio-inline"> <input type="radio" name="sex" value="女" name="sex">女 </label> </div> </td> </tr> </c:if> <tr> <td>年龄: </td> <td> <input type="text" name="age" class="form-control" value="${user.age}" /> </td> </tr> <tr> <td>家庭住址: </td> <td> <input type="text" name="address" class="form-control" value="${user.address}" /> </td> </tr> <tr> <td>电话: </td> <td> <input type="text" name="phone" class="form-control" value="${user.phone}" /> </td> </tr> <tr> <td>邮箱: </td> <td> <input type="text" name="email" class="form-control" value="${user.email}" /> </td> </tr> <tr> <td>QQ: </td> <td> <input type="text" name="qq" class="form-control" value="${user.qq}" /> </td> </tr> </tbody> </table> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> <button type="submit" class="btn btn-default" data-dismiss="modal">提交更改</button> </div> </form> </div> </div> </div>
1 回答
已采纳
幕附
TA贡献78条经验 获得超18个赞
<form role="form" class="form" action="preservationUserInformation" method="get" > action不就是你的提交地址吗?别get提交用post提交
添加回答
举报
0/150
提交
取消