logger/uihandlerserver/web/graph/ergonomics.jsp
author Tomas Hurka <thurka@netbeans.org>
Wed, 24 May 2017 15:00:12 +0200
changeset 6387 046e7091c52c
parent 5372 2ed0129615c7
permissions -rw-r--r--
escape HTML/XML tags using <c:out>
jtulach@5367
     1
package graph;
jtulach@5367
     2
jtulach@5367
     3
<%@page contentType="text/html"%>
jtulach@5367
     4
<%@page pageEncoding="UTF-8"%>
jtulach@5367
     5
<%@page import="java.util.*" %>
jtulach@5367
     6
<%@taglib uri="/WEB-INF/statistics.tld" prefix="ui" %>
jtulach@5367
     7
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
jtulach@5367
     8
<c:set var="path" value='/ <a href="../index.jsp">Analytics</a> / Graph / Technologies'/>
jtulach@5367
     9
<%@include file="/WEB-INF/jspf/header.jspf" %>
jtulach@5367
    10
<ui:useStatistic name="Ergonomics"/>
jtulach@5367
    11
jtulach@5367
    12
    <div class="f-page-cell bg-sky" >
jtulach@5367
    13
        <h2>How exactly people enable functionality on demand?</h2>
jtulach@5367
    14
        
jtulach@5367
    15
        <p>
jtulach@5367
    16
            Are you currious to know how people use the on demand features
jtulach@5367
    17
            of NetBeans IDE? Whether they always enable everything that
jtulach@5367
    18
            see, or whether they can change their mind?
jtulach@5367
    19
        </p>
jtulach@5367
    20
    </div>
jtulach@5367
    21
    
jtulach@5367
    22
    <table width="100%">
jtulach@5367
    23
        <% 
jtulach@5367
    24
        Collection<?> last = (Collection<?>)pageContext.getAttribute("lastErgonomics");
jtulach@5367
    25
        if (last != null) {
jtulach@5367
    26
        %>
jtulach@5367
    27
        <tr width="100%">
jtulach@5367
    28
            <td width="100%">
jtulach@5367
    29
                <div align="center">
jtulach@5367
    30
                    <b>Your Last Session</b>
jtulach@5367
    31
                    <ui:bar collection="lastErgonomics" 
jtulach@5367
    32
                        category="reason" stacked="accepted" serie="cluster"
jtulach@5367
    33
                        value="count"
jtulach@5367
    34
                        lblformat="%1$s = %2$s%%" resolution="800x200"/>
jtulach@5367
    35
                </div>
jtulach@5367
    36
            </td>
jtulach@5367
    37
        </tr>
jtulach@5367
    38
        <% }
jtulach@5367
    39
        Collection<?> user = (Collection<?>)pageContext.getAttribute("userErgonomics");
jtulach@5367
    40
        if (user != null) {
jtulach@5367
    41
        %>
jtulach@5367
    42
        <tr width="100%">
jtulach@5367
    43
            <td width="100%">
jtulach@5367
    44
                <div align="center">
jtulach@5367
    45
                    <b>All Your Sessions</b>
jtulach@5367
    46
                    <ui:bar collection="userErgonomics"
jtulach@5367
    47
                        category="reason" stacked="accepted" serie="cluster"
jtulach@5367
    48
                        value="count"
jtulach@5367
    49
                        lblformat="%1$s = %2$s%%" resolution="800x200"/>
jtulach@5367
    50
                </div>
jtulach@5367
    51
            </td>
jtulach@5367
    52
        </tr>
jtulach@5367
    53
        <% } 
jtulach@5367
    54
        
jtulach@5367
    55
        Collection<?> all = (Collection<?>)pageContext.getAttribute("globalErgonomics");
jtulach@5367
    56
        if (all != null) {
jtulach@5367
    57
        %>
jtulach@5367
    58
        <tr width="100%">
jtulach@5367
    59
            <td width="100%">
jtulach@5367
    60
                <div align="center">
jtulach@5367
    61
                    <b>Global Statistics</b>
jtulach@5367
    62
                    <ui:bar collection="globalErgonomics"
jtulach@5367
    63
                        category="reason" stacked="accepted" serie="cluster"
jtulach@5367
    64
                        value="count"
jsedek@5372
    65
                        lblformat="%1$s" resolution="800x200"/>
jtulach@5367
    66
                </div>
jtulach@5367
    67
            </td>
jtulach@5367
    68
        </tr>
jtulach@5367
    69
        <% } %>
jtulach@5367
    70
    </table>
jtulach@5367
    71
    
jtulach@5367
    72
    <hr>
jtulach@5367
    73
    
jtulach@5367
    74
<!--
jtulach@5367
    75
    <div class="f-page-cell bg-sky" >
jtulach@5367
    76
    <h3><a name="query"></a>Restrict the Query!</h3>
jtulach@5367
    77
    <p>
jtulach@5367
    78
        Often you are interested in siblings of a particular project.
jtulach@5367
    79
        Here is your chance:
jtulach@5367
    80
        This interactive statistics page allows you to restrict your query to display 
jtulach@5367
    81
        only results matching specific <a href="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html">
jtulach@5367
    82
        regular expression</a>. That way you can use for example <code>.*Ejb.*</code>
jtulach@5367
    83
        to see just enterprise projects and combinations in which they
jtulach@5367
    84
        appear. The expression <code>.*</code> signifies everything.
jtulach@5367
    85
        For more advanced usages, see the
jtulach@5367
    86
        <a href="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html">
jtulach@5367
    87
        JDK documentation</a>.
jtulach@5367
    88
    </p>
jtulach@5367
    89
    
jtulach@5367
    90
    <p>
jtulach@5367
    91
        
jtulach@5367
    92
    </p>
jtulach@5367
    93
    <form method="get" action="<% out.print(HttpUtils.getRequestURL(request)); %>" >
jtulach@5367
    94
        <table width="100%">
jtulach@5367
    95
           <tr>
jtulach@5367
    96
            <td>Include pattern:</td>
jtulach@5367
    97
            <td>Exclude pattern:</td>
jtulach@5367
    98
            <td></td>
jtulach@5367
    99
           </tr>
jtulach@5367
   100
           <tr>
thurka@6387
   101
            <td><input type="text" name="includes" value='<c:out value="${includes}" default=".*"/>'/></td>
thurka@6387
   102
            <td><input type="text" name="excludes" value="<c:out value="${excludes}" default=""/>"/></td>
jtulach@5367
   103
            <td><input type="submit"/></td>
jtulach@5367
   104
           </tr>
jtulach@5367
   105
        </table>
jtulach@5367
   106
    </form>
jtulach@5367
   107
    </div>
jtulach@5367
   108
-->
jtulach@5367
   109
</center>
jtulach@5367
   110
<%@include file="/WEB-INF/jspf/footer.jspf" %>