export.jsp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8"
  3. pageEncoding="UTF-8"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  9. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  10. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  11. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  12. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  13. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  14. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
  15. <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
  16. <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
  17. <script type="text/javascript" src="js/common/area.js"></script>
  18. <script type="text/javascript">
  19. //var currTabId=parent.currTabId;
  20. //var parentObj=parent.$("#"+currTabId)[0].contentWindow;
  21. window.onload=function(){
  22. document.getElementById("hlf").value=parent.exportString;
  23. };
  24. function btnExcel(){
  25. document.getElementById("type").value="excel";
  26. document.getElementById("formAction").submit();
  27. }
  28. function btnWord(){
  29. document.getElementById("type").value="word";
  30. document.getElementById("formAction").submit();
  31. }
  32. </script>
  33. <style>
  34. .span{
  35. font-family:'Microsoft YaHei', Verdana, 'SimSun', 'Lucida Grande', 'Trebuchet MS', Helvetica, sans-serif;letter-spacing:normal; font-size: 14px;
  36. }
  37. </style>
  38. </head>
  39. <body style="padding:20px; align:center" >
  40. <form id="formAction" action="ajax/downloadExcel" method="post">
  41. <font size="3px" class="span" >请选择数据导出生成文件格式 ......</font><br /><br />
  42. <input id="dgg" class="easyui-linkbutton" type="button" value="excel" onclick="btnExcel()"/>
  43. <input id="dgg" class="easyui-linkbutton" type="button" style="margin-left:50px;" value="word" onclick="btnWord()"/>
  44. <input id="hlf" name="hfs" type="hidden"/>
  45. <input id="type" name="type11" type="hidden"/>
  46. </form>
  47. </body>
  48. </html>