houseImport.jsp 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  3. <%@ taglib prefix="s" uri="/struts-tags" %>
  4. <form id="importHouseForm" method="post" enctype="multipart/form-data">
  5. <table class="mytable" style="width: 100%;">
  6. <tr>
  7. <th>模板文件</th>
  8. <td colspan="3">
  9. <a href="<%=basePath%>/mb/house.xls" title="点我下载">模板文件</a>
  10. </td>
  11. </tr>
  12. <tr>
  13. <th>选择文件</th>
  14. <td colspan="3">
  15. <input type="file" id="upload" name="upload">
  16. <input type="button" value="上传" onclick="javascript:formSubmit()"/>
  17. </td>
  18. </tr>
  19. </table>
  20. </form>
  21. <div id="message" style="color: red; font-size: 14; margin-top: 10px;"></div>
  22. <div id="errorList" style="font-size: 14; margin-top: 10px;display: none;"></div>
  23. <form id="errorForm" method="post" style="display: none">
  24. <textarea id="errorText" name="error" rows="10" cols="25"></textarea>
  25. </form>
  26. <div id="errorShowList" style="font-size: 14; margin-top: 10px;display: none;"></div>
  27. <input type="button" id="exportBtn" value="导出所有错误信息" style="display: none;" onclick="javascript:exportErrorMsg()"/>