목차
在一个页面显示多个iChart报表_html/css_WEB-ITnose " > Build Report    在一个页面显示多个iChart报表_html/css_WEB-ITnose
웹 프론트엔드 HTML 튜토리얼 在一个页面显示多个iChart报表_html/css_WEB-ITnose

在一个页面显示多个iChart报表_html/css_WEB-ITnose

Jun 24, 2016 am 11:59 AM
다수의 보고서 보여주다 페이지

<%@ page language="java" pageEncoding="UTF-8"         contentType="text/html;charset=utf-8" isELIgnored="false"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%><html>    <head>        <title>Project Report</title>        <c:set var="baseUrl" value="${pageContext.request.contextPath}"/>        <%--<link rel="stylesheet" href="../resources/css/bootstrap.min.css"/>        <link rel="stylesheet" href="../resources/css/bootstrap-theme.min.css"/>--%>        <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->        <script type="text/javascript" src="../resources/js/jquery/jquery-1.9.0.js"></script>        <script type="text/javascript" src="../resources/js/ichart.1.2.min.js"></script>        <script type="text/javascript" src="../resources/js/randomcolor.js"></script>        <script type="text/javascript">            $(function(){                var defaultId = "${defaultSelected}";                $("select option").each(function(){                    if($(this).val()==defaultId){                        $(this).attr("selected","selected");                    }                });                //alert(defaultId);                <c:forEach var="bntm" items="${buildNameTaskMap}">                    <c:forEach var="bntmv" items="${bntm.value}">                        var data = [                            {                                value:[${bntmv.value[0]}],                                color:'#47AAB3'                            },                            {                                value:[${bntmv.value[1]}],                                color:'#ECAD55'                            }                        ];                        var chart = new iChart.BarStacked2D({                            render : 'canvasDiv${bntm.key}${bntmv.key}',                            data: data,                            width : 400,                            height : 45,                            bar_height:25,                            shadow_blur : 2,                            shadow_offsetx : 1,                            shadow_offsety : 0,                            border:0,                            showpercent:true,                            decimalsnum:0,                            coordinate:{                                scale:[{                                    position:'bottom',                                    scale_enable : false,                                    start_scale:0,                                    end_scale:${bntmv.value[2]},                                    listeners:{                                        parseText:function(t,x,y){                                            return {text:+t}                                        }                                    }                                }],                                width:600,                                height:40                            }                        });                        chart.draw();                    </c:forEach>                </c:forEach>            });        </script>    </head>    <body>        <div class="ui-page-head">            <h2 id="Build-Report-nbsp-nbsp-nbsp-a-href-baseUrl-report-showReport-shtml-img-src-static-imghw-default-png-data-src-resources-images-goback-png-class-lazy-alt-在一个页面显示多个iChart报表-html-css-WEB-ITnose-a">                Build Report                   <a href="${baseUrl}/report/showReport.shtml"><img  src="/static/imghw/default1.png"  data-src="../resources/images/goback.png"  class="lazy" alt="在一个页面显示多个iChart报表_html/css_WEB-ITnose" ></a>            </h2>        </div>        <form action="${baseUrl}/report/buildReport.shtml">            <span>Select a project:</span>            <select name="selectedProId">                <c:forEach items="${projectNameId}" var="pni">                    <option value="${pni.value}">${pni.key}</option>                </c:forEach>            </select>            <button type="submit" id="submit">search</button>        </form><br/>        <c:if test="${null ne buildNameTaskMap}">            <table class="ui-table">                <tr>                    <th>Build Name</th>                    <th>Task Name</th>                    <th>Success Times</th>                    <th>Failure Times</th>                    <th>Total Times</th>                    <th>Output Report</th>                </tr>                <c:forEach var="bntm" items="${buildNameTaskMap}">                    <%--Build Name--%>                    <tr>                        <td rowspan="${bntm.value.size()+1}">                                ${bntm.key}                        </td>                    </tr>                    <c:forEach var="bntmv" items="${bntm.value}">                        <tr>                            <%--Task Name--%>                            <td>${bntmv.key}</td>                            <td>${bntmv.value[0]}</td>                            <td>${bntmv.value[1]}</td>                            <td>${bntmv.value[2]}</td>                            <td><div id="canvasDiv${bntm.key}${bntmv.key}"></div></td>                            <%--用一个for循环将所有的id都包括,在JS中传参。--%>                        </tr>                    </c:forEach>                </c:forEach>            </table>        </c:if>        <c:if test="${null eq buildNameTaskMap}">            No Output.        </c:if>    </body></html>
로그인 후 복사


 

본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

뜨거운 기사 태그

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

Windows 11 검색에서 뉴스 및 인기 콘텐츠를 제거하는 방법 Windows 11 검색에서 뉴스 및 인기 콘텐츠를 제거하는 방법 Oct 16, 2023 pm 08:13 PM

Windows 11 검색에서 뉴스 및 인기 콘텐츠를 제거하는 방법

Word에서 페이지를 복사하는 방법 Word에서 페이지를 복사하는 방법 Feb 20, 2024 am 10:09 AM

Word에서 페이지를 복사하는 방법

Windows 11 사용자 가이드: 광고 팝업을 비활성화하는 방법 Windows 11 사용자 가이드: 광고 팝업을 비활성화하는 방법 Sep 22, 2023 pm 07:21 PM

Windows 11 사용자 가이드: 광고 팝업을 비활성화하는 방법

데스크탑 레이아웃이 잠기는 이유와 해결 방법 데스크탑 레이아웃이 잠기는 이유와 해결 방법 Feb 19, 2024 pm 06:08 PM

데스크탑 레이아웃이 잠기는 이유와 해결 방법

Laravel 페이지에서 CSS를 올바르게 표시할 수 없는 문제를 해결하는 방법 Laravel 페이지에서 CSS를 올바르게 표시할 수 없는 문제를 해결하는 방법 Mar 10, 2024 am 11:33 AM

Laravel 페이지에서 CSS를 올바르게 표시할 수 없는 문제를 해결하는 방법

iPhone에서 대기 모드를 사용자 정의하고 편집하는 방법: iOS 17의 새로운 기능 iPhone에서 대기 모드를 사용자 정의하고 편집하는 방법: iOS 17의 새로운 기능 Sep 21, 2023 pm 04:01 PM

iPhone에서 대기 모드를 사용자 정의하고 편집하는 방법: iOS 17의 새로운 기능

웹페이지를 빠르게 새로 고치는 방법은 무엇입니까? 웹페이지를 빠르게 새로 고치는 방법은 무엇입니까? Feb 18, 2024 pm 01:14 PM

웹페이지를 빠르게 새로 고치는 방법은 무엇입니까?

3초 안에 페이지 점프를 구현하는 방법: PHP 프로그래밍 가이드 3초 안에 페이지 점프를 구현하는 방법: PHP 프로그래밍 가이드 Mar 25, 2024 am 10:42 AM

3초 안에 페이지 점프를 구현하는 방법: PHP 프로그래밍 가이드

See all articles