123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <!--框架必需start-->
- <%@include file="../../include.jsp" %>
- <!--框架必需end-->
- <style type="text/css">
- *{ margin:0; padding:0; font-size:12px; font-family:"微软雅黑"}
- .tool_box{ width:465px;height:50px; background-color:#2c3a54; }
- .button{ margin:10px; min-width:60px; }
- .hiden{ display:none; }
- </style>
- </head>
- <body>
- <div class="tool_box excel hiden">
- <button class="but" id="excel_open">打开Excel</button>
- <button class="but" id="excel_save">另存为Excel</button>
- </div>
- <div class="tool_box word hiden">
- <button class="but" id="word_open">打开Word</button>
- <button class="but" id="word_save">另存为Word</button>
- </div>
- </body>
- <script>
- var devIDList;
- var exporWord;
- var fd_id = "<%=request.getParameter("fd_id")%>";
- $(function(){
- if(fd_id=="1"){
- $(".excel").removeClass("hiden");
- }else{
- $(".word").removeClass("hiden");
- };
- $("#excel_open").click(function(){
- window.parent.window.expor_excel(devIDList,false);
- });
-
- $("#excel_save").click(function(){
- window.parent.window.expor_excel(devIDList,true);
- });
-
- $("#word_open").click(function(){
- window.parent.window.expor_word(exporWord,false);
- });
-
- $("#word_save").click(function(){
- window.parent.window.expor_word(exporWord,true);
- });
- });
-
- function setDev(devs){
- devIDList = devs;
- };
- function setWord(text_word){
- exporWord = text_word;
- };
- </script>
- </html>
|