2c2eb96079660eb8ff75dd0e8ba97944b47abbb5.svn-base 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <!--框架必需start-->
  8. <%@include file="../../include.jsp" %>
  9. <!--框架必需end-->
  10. <style type="text/css">
  11. *{ margin:0; padding:0; font-size:12px; font-family:"微软雅黑"}
  12. .tool_box{ width:465px;height:50px; background-color:#2c3a54; }
  13. .button{ margin:10px; min-width:60px; }
  14. .hiden{ display:none; }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="tool_box excel hiden">
  19. <button class="but" id="excel_open">打开Excel</button>
  20. <button class="but" id="excel_save">另存为Excel</button>
  21. </div>
  22. <div class="tool_box word hiden">
  23. <button class="but" id="word_open">打开Word</button>
  24. <button class="but" id="word_save">另存为Word</button>
  25. </div>
  26. </body>
  27. <script>
  28. var devIDList;
  29. var exporWord;
  30. var fd_id = "<%=request.getParameter("fd_id")%>";
  31. $(function(){
  32. if(fd_id=="1"){
  33. $(".excel").removeClass("hiden");
  34. }else{
  35. $(".word").removeClass("hiden");
  36. };
  37. $("#excel_open").click(function(){
  38. window.parent.window.expor_excel(devIDList,false);
  39. });
  40. $("#excel_save").click(function(){
  41. window.parent.window.expor_excel(devIDList,true);
  42. });
  43. $("#word_open").click(function(){
  44. window.parent.window.expor_word(exporWord,false);
  45. });
  46. $("#word_save").click(function(){
  47. window.parent.window.expor_word(exporWord,true);
  48. });
  49. });
  50. function setDev(devs){
  51. devIDList = devs;
  52. };
  53. function setWord(text_word){
  54. exporWord = text_word;
  55. };
  56. </script>
  57. </html>