Edit D:\rfid\libsystem\page\statistics\statistics.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String jsondata = request.getParameter("jsondata"); %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>??????</title> <%@ include file="../global/linkcss.jsp" %> <link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/page/statistics/css/statistics.css?version=<%=MyJspUtils.getVersion() %>"> </head> <body id="body" > <!-- header --> <div class="header"> <!-- ???????? --> <div class="header-title"> ?????? </div> <div class="header-nva"> <ul class="navbar-nav navbar-nav-menu"> <li><a href="javascript:void(0)" onclick="onPrintPerview()"><i class="fa fa-print"></i> ??????</a></li> <li><a href="javascript:void(0)" onclick="onExportExcelFlie()"><i class="fa fa-file-excel-o"></i> ??????</a></li> <li><a href="javascript:void(0)" onclick="onCloseWin()"><i class="fa fa-close"></i> ??????</a></li> </ul> </div> <!-- ??????????????--> <div class="header-operator"> <ul class="navbar-nav"> </ul> </div> </div> <div class="sta_nav"> <div class="sta_menu"> <ul> <li class="select-hover"><i class="fa fa-table"></i> ??????</li> <li><i class="fa fa-bar-chart"></i> ??(???)??</li> <li class="pie-class" style="display: none;"><i class="fa fa-pie-chart"></i> ?????</li> </ul> </div> </div> <div class="lold-div"> <div style="color: #555;left: 46%;top:40%;position: absolute; ">??????????????....</div> <div class="lold-div container "> <div class="lold-div circle"></div> <div class="lold-div circle"></div> <div class="lold-div circle"></div> </div> </div> <div style="border: 1px solid #efefef;"> <div class="labelDisplayArea"> <div>?????????</div> </div> <div class="countDisplayArea"> <div id="echartBox" style="width: 100%;height:800px;"></div> </div> <div class="pieDisplayArea"> <div id="echartPie" style="width: 100%;height:800px;"></div> </div> </div> <div class="show-grid" style="position: fixed;top: 0;left: 0;z-index: -20;"> </div> <table class="table table-striped" id="stats_datatable" > <tbody id='uvnum'> </tbody> </table> </body> <%@ include file="../global/linkjs.jsp" %> <script type="text/javascript"> var jsonData = '<%=jsondata%>'; var vType = "statistics"; </script> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/jqprint/jquery-1.4.4.min.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/jqprint/jquery.jqprint-0.3.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/public/js/expstapublic.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/tableExport.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/jquery.base64.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/echarts.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/macarons.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/mychart.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript"> $(function(){ $(".sta_menu li").each(function(index){ $(this).click(function(){ $(".sta_menu li.select-hover").removeClass("select-hover"); $(this).addClass("select-hover"); if(index == "0"){ $(".labelDisplayArea").show(); $(".countDisplayArea").hide(); $(".pieDisplayArea").hide(); } if(index == "1"){ $(".labelDisplayArea").hide(); $(".countDisplayArea").show(); $(".pieDisplayArea").hide(); } if(index == "2"){ $(".labelDisplayArea").hide(); $(".countDisplayArea").hide(); $(".pieDisplayArea").show(); } }); }); }); var paramjson = null; function onExportExcelFlie(){ /* var url = base_path+'lib/export/download.do'; openPostWindowDownLoad(url,jsonData); */ $('.table-grid').tableExport({ type:'excel', escape:'false', fileName: 'sum' }); } function setLabelDisplayArea(designData,returnData){ var designDataRow = designData.rows[0]; paramjson = JSON.parse(designDataRow.paramjson); var vDesignPropertyGrid = paramjson.propertygrid; var vExportname,vPageFontSize,vPageAlignType,vShowName,vShowOperator,vShowTime; if(paramjson.propertygrid){ for(var i = 0;i < vDesignPropertyGrid.length;i++){ if(vDesignPropertyGrid[i].code == "exportname"){ vExportname = vDesignPropertyGrid[i].value; } //?????? if(vDesignPropertyGrid[i].code == "pageFontSize"){//?????? vPageFontSize = parseInt(vDesignPropertyGrid[i].value); } //?????? if(vDesignPropertyGrid[i].code == "pageAlignType"){//?????? vPageAlignType = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showname"){ vShowName = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showoperator"){ vShowOperator = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showtime"){ vShowTime = vDesignPropertyGrid[i].value; } } }else{ vExportname = paramjson.title //?????? if(paramjson.pageFontSize){//?????? vPageFontSize = parseInt(paramjson.pageFontSize); } //?????? if(paramjson.pageAlignType){//?????? vPageAlignType = paramjson.pageAlignType; } if(paramjson.showname){ vShowName = paramjson.showname; } if(paramjson.showoperator){ vShowOperator = paramjson.showoperator; } if(paramjson.showtime){ vShowTime = paramjson.showtime; } } var dfHtml = ""; if(vShowOperator == "1"){ dfHtml += "<li><a><i class=\"fa fa-user-o\"></i> " + jsonData.account + "</a></li>"; } if(vShowName == "1"){ $(".header-title").html(vExportname); } if(vShowTime == "1"){ dfHtml += "<li><a><i class=\"fa fa-calendar-times-o\"> </i>" + fmtStringToDate(getCurDateYMD()) + "</a></li>"; } $(".header-operator .navbar-nav").html(dfHtml); buildMyChart(designData,returnData,vExportname); //????????????????? var vTotal = returnData.total; var returnDataRows = returnData.rows[0]; var vExportList = "<table class='table-black'><thead><tr>"; var vGridExportList = "<table class='table-grid'><thead><tr>"; for(var i = 0; i < returnDataRows.headlist.length ;i++){ vExportList += "<th>" + returnDataRows.headlist[i] + "</th>"; vGridExportList += "<th>" + returnDataRows.headlist[i] + "</th>"; } vExportList += "</tr></thead><tbody>"; vGridExportList += "</tr></thead><tbody>"; for(var i = 1; i < returnDataRows.datalist.length;i++){ var row = returnDataRows.datalist[i]; vExportList += getExportListData(row); vGridExportList += getExportListData(row); } vExportList += "</tbody></table>"; vGridExportList+= "</tbody></table>"; $(".labelDisplayArea").html(vExportList); $(".show-grid").html(vGridExportList); _w_table_rowspan(".table-black",1); } function getExportListData(row,index){ var html = "<tr>"; if(row){ for(var i = 0; i < row.length ;i++){ html += "<td>" + row[i] + "</td>"; }; } html += "</tr>"; return html; }; </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de