"Fossies" - the Fresh Open Source Software Archive

Member "moskito-moskito-2.10.0/moskito-webui/src/main/java/net/anotheria/moskito/webui/shared/jsp/Header.jsp" (20 Nov 2020, 21626 Bytes) of package /linux/misc/moskito-moskito-2.10.0.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Header.jsp": 2.8.7_vs_2.8.8.

    1 <%@ page language="java" contentType="text/html;charset=UTF-8" session="true"
    2     %><%@ taglib uri="http://www.anotheria.net/ano-tags" prefix="ano"
    3     %><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="core"
    4     %><%@ page isELIgnored="false" %>
    5 <%@ taglib uri="http://www.moskito.org/inspect/tags" prefix="mos" %>
    6 <head>
    7     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    8     <title>${title}</title>
    9     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/ext/bootstrap-3.1.1/css/bootstrap.css" />
   10     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/ext/custom-scrollbar/jquery.mCustomScrollbar.css" />
   11     <link type="text/css" rel="stylesheet" href="../moskito/ext/font-awesome-4.7.0/css/font-awesome.min.css" />
   12     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/font/style.css" />
   13     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/ext/select2-3.4.6/select2.css" />
   14     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/ext/switchery/switchery.min.css" />
   15     <ano:equal name="currentSubNaviItem" property="id" value="more_config">
   16         <link rel="stylesheet" type="text/css" href="../moskito/ext/google-code-prettify/prettify.css" />
   17     </ano:equal>
   18     <ano:equal name="currentSubNaviItem" property="id" value="more_mbeans">
   19         <link rel="stylesheet" type="text/css" href="../moskito/ext/treegrid/css/jquery.treegrid.css" />
   20     </ano:equal>
   21     <ano:equal name="currentNaviItem" property="id" value="journeys">
   22         <link rel="stylesheet" type="text/css" href="../moskito/ext/treegrid/css/jquery.treegrid.css" />
   23     </ano:equal>
   24     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/int/css/common.css" />
   25     <!--[if lt IE 9]><script src="../int/js/ie8-responsive-file-warning.js"></script><![endif]-->
   26     <!--[if lt IE 8]><link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/static-int/css/bootstrap-ie7.css" /><![endif]-->
   27     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
   28     <!--[if lt IE 9]>
   29         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
   30         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
   31     <![endif]-->
   32 
   33     <%--for d3ds--%>
   34     <style>
   35         .legend{
   36             margin-bottom:76px;
   37             display:inline-block;
   38             border-collapse: collapse;
   39             border-spacing: 0px;
   40         }
   41         .legend td{
   42             padding:4px 5px;
   43             vertical-align:bottom;
   44         }
   45     </style>
   46 
   47     <link type="text/css" rel="stylesheet" rev="stylesheet" href="../moskito/ext/jquery.qtip2-3.0.3/jquery.qtip.min.css" />
   48 </head>
   49 
   50 <body class="status-${systemStatusColor}<ano:notEmpty name="isNavMenuCollapsed"><ano:iF test="${isNavMenuCollapsed}"> aside-collapse</ano:iF></ano:notEmpty>">
   51 <ano:define name="moskito.CurrentUnit" property="unitName" id="currentUnit" toScope="page" type="java.lang.String"/>
   52 <!-- currently for handle select only -->
   53 <script type="text/javascript" src="../moskito/ext/jquery-1.10.2/jquery-1.10.2.min.js"></script>
   54 <script type="text/javascript" src="../moskito/ext/lodash-4.13.1/lodash.min.js"></script>
   55 <script type="text/javascript" src="../moskito/ext/jquery.qtip2-3.0.3/jquery.qtip.min.js"></script>
   56 <script type="text/javascript" src="../moskito/int/js/function.js"></script>
   57 <script type="text/javascript" src="../moskito/ext/d3/d3.min.js" charset="utf-8"></script>
   58 <script type="text/javascript" src="../moskito/int/js/chartEngineIniter.js?v=5"></script>
   59 
   60 <ano:notEmpty name="graphDatas">
   61     <!-- Data for action -->
   62     <script>
   63         // Generating data for stat value charts, where key is graph jsVariableName and values: chart caption and array of chart values
   64         var graphData = {
   65             <ano:iterate type="net.anotheria.moskito.webui.shared.bean.GraphDataBean" id="graph" name="graphDatas">
   66             "<ano:write name="graph" property="jsVariableName"/>": {
   67                 caption: "<ano:write name="graph" property="caption"/>",
   68                 values: <ano:write name="graph" property="jsArrayValue"/>
   69             },
   70             </ano:iterate>
   71         };
   72     </script>
   73     <!-- -->
   74 </ano:notEmpty>
   75 
   76 <header id="header" class="navbar navbar-fixed-top navbar-default">
   77             <span class="caret-aside pull-left tooltip-bottom" title="Close/Open">
   78                 <i class="fa fa-caret-left"></i>
   79             </span>
   80 
   81     <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
   82         <span class="sr-only">Toggle navigation</span>
   83         <span class="icon-bar"></span>
   84         <span class="icon-bar"></span>
   85         <span class="icon-bar"></span>
   86     </button>
   87 
   88     <div class="navbar-collapse collapse">
   89         <div class="text-center">
   90             <form role="form" class="navbar-form navbar-left">
   91             <div class="form-group">
   92                 <select class="select2 select2-offscreen" data-placeholder="Interval" onchange="handleSelect(this)">
   93                     <ano:iterate name="intervals" id="interval" type="net.anotheria.moskito.webui.shared.api.IntervalInfoAO">
   94                         <option value="${linkToCurrentPage}&amp;pInterval=${interval.name}" ${interval.name==requestScope.currentInterval ? "selected" : ""}>
   95                             <ano:write name="interval" property="name"/>
   96                         </option>
   97                     </ano:iterate>
   98                 </select>
   99             </div>
  100             <div class="form-group">
  101                 <select class="select2 select2-offscreen" data-placeholder="Unit" onchange="handleSelect(this)">
  102                 <ano:iterate name="units" id="unit" type="net.anotheria.moskito.webui.shared.bean.UnitBean">
  103                     <option value="${linkToCurrentPage}&amp;pUnit=${unit.unitName}" ${unit.unitName.equals(currentUnit) ? "selected" : ""}>
  104                         ${unit.unitName}
  105                     </option>
  106                 </ano:iterate>
  107                 </select>
  108             </div>
  109         </form>
  110 
  111         <span class="header-inform">Interval age: ${currentIntervalUpdateAge} | Server: ${servername} | Connection: ${connection}</span>
  112 
  113         <ul class="nav navbar-nav pull-right">
  114             <%-- removing autoreload feature for now, we can readd it later --%>
  115             <%-- <li><a href="">Autoreload OFF</a></li> --%>
  116             <ano:equal name="exportSupported" value="true">
  117             <li class="dropdown">
  118                 <a data-toggle="dropdown" href="#">Export</a>
  119                 <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
  120                     <li><a target="_blank" href="<ano:write name="linkToCurrentPageAsXml"/>&amp;pForward=xml">XML</a></li>
  121                     <li><a target="_blank" href="<ano:write name="linkToCurrentPageAsJson"/>&amp;pForward=json">JSON</a></li>
  122                     <li><a target="_blank" href="<ano:write name="linkToCurrentPageAsCsv"/>&amp;pForward=csv">CSV</a></li>
  123                 </ul>
  124             </li>
  125             </ano:equal>
  126                 <ano:iF test="${mskIsAuthorized}">
  127                     <li>
  128                         <a href="mskSignOut">Sign Out</a>
  129                     </li>
  130                 </ano:iF>
  131             <li><a href="mskShowExplanations"><i class="fa fa-info-circle icon-16"></i></a></li>
  132             <ano:iF test="${displayIphoneIcons}">
  133                 <li class="iphone-app-link"><a href="https://itunes.apple.com/us/app/moskito-ui/id531387262?mt=8">Using iPhone? <img src="../moskito/int/img/iphone.svg" class="iphone-app-icon"></a></li>
  134             </ano:iF>
  135         </ul>
  136     </div>
  137      </div>
  138 </header>
  139 
  140 <aside id="aside" class="scrollbar">
  141 
  142 <%-- OLD STYLE LOGO
  143     <div class="header-box">
  144         <ano:notEmpty name="logoUrl">
  145         <a href="">
  146         <i class="logo-custom">
  147             <img src="${logoUrl}"></i>
  148             </a>
  149         </ano:notEmpty>
  150         <ano:empty name="logoUrl">
  151         <a href="">
  152             <i class="logo"></i>
  153             <span class="logo-title">MoSKito Inspect</span>
  154         </a>
  155         </ano:empty>
  156     </div>
  157     --%>
  158 
  159     <%-- NEW STYLE LOGO  --%>
  160         <div class="header-box">
  161             <%--
  162             <ano:notEmpty name="logoUrl">
  163             <a href="">
  164             <i class="logo-custom">
  165                 <img src="${logoUrl}"></i>
  166                 </a>
  167             </ano:notEmpty> --%>
  168             <ano:empty name="logoUrl">
  169                 <div class="logo <ano:iF test="${betaMode}">beta-logo</ano:iF>">
  170                     <mos:deepLink href="mskDashboard">
  171                         <img src="../moskito/int/img/logo.png" class="logo-white">
  172                         <span>
  173                             <b>MoSKito</b>
  174                             <span>Inspect</span>
  175                             <ano:iF test="${betaMode}">
  176                                 <span class="beta-logo__beta-title">Beta</span>
  177                             </ano:iF>
  178                         </span>
  179                     </mos:deepLink>
  180                 </div>
  181             </ano:empty>
  182         </div>
  183 
  184 
  185     <ul class="nav nav-sidebar nav-status">
  186         <ano:equal name="currentNaviItem" property="id" value="dashboards">
  187             <li class="active">
  188                 <mos:deepLink href="mskDashboard" title="Dashboards" class="sidebar-tooltip-right">Dashboards<i class="fa fa-tachometer"></i></mos:deepLink>
  189                 <ul class="nav sub-menu">
  190                     <ano:iterate name="dashboardsMenuItems" id="item">
  191                         <li ${requestScope.selectedDashboard == item.name ? "class=\"active\"" : ""}><mos:deepLink href="mskDashboard?dashboard=${item.urlParameter}" title="${item.name}" class="sidebar-tooltip-right">${item.name} <i class="fa fa-tachometer"></i></mos:deepLink></li>
  192                     </ano:iterate>
  193                     <li><mos:deepLink href="#CreateDashboard" data-toggle="modal" data-target="#CreateDashboard" title="New Dashboard" class="sidebar-tooltip-right">New Dashboard <i class="fa fa-plus new-dashboard-sign"></i></mos:deepLink></li>
  194                 </ul>
  195             </li>
  196         </ano:equal>
  197         <ano:notEqual name="currentNaviItem" property="id" value="dashboards">
  198             <li><mos:deepLink href="mskDashboard" title="Dashboards" class="sidebar-tooltip-right">Dashboards<i class="fa fa-tachometer"></i></mos:deepLink></li>
  199         </ano:notEqual>
  200         <li ${requestScope.currentNaviItem.id == "producers" ? "class=\"active\"" : ""}><mos:deepLink href="mskShowAllProducers" title="Producers" class="sidebar-tooltip-right">Producers <i class="fa fa-wrench"></i></mos:deepLink></li>
  201         <li ${requestScope.currentNaviItem.id == "journeys" ? "class=\"active\"" : ""}><mos:deepLink href="mskShowJourneys" title="Journeys" class="sidebar-tooltip-right">Journeys <i class="fa fa-eye"></i></mos:deepLink></li>
  202         <li ${requestScope.currentNaviItem.id == "thresholds" ? "class=\"active\"" : ""}><mos:deepLink href="mskThresholds" title="Thresholds" class="sidebar-tooltip-right">Thresholds <i class="fa fa-dot-circle-o"></i></mos:deepLink></li>
  203         <li ${requestScope.currentNaviItem.id == "accumulators" ? "class=\"active\"" : ""}><mos:deepLink href="mskAccumulators" title="Accumulators" class="sidebar-tooltip-right">Accumulators <i class="fa fa-line-chart"></i></mos:deepLink></li>
  204         <ano:equal name="currentNaviItem" property="id" value="threads">
  205             <li class="active">
  206                 <mos:deepLink href="mskThreads" title="Threads" class="sidebar-tooltip-right">Threads <i class="fa fa-bars"></i></mos:deepLink>
  207                 <ul class="nav sub-menu">
  208                     <li ${currentSubNaviItem.isSelected("threads_list") ? "class=\"active\"" : ""}><mos:deepLink href="mskThreadsList" title="List" class="sidebar-tooltip-right">List <i class="fa fa-list"></i></mos:deepLink></li>
  209                     <li ${currentSubNaviItem.isSelected("threads_dump") ? "class=\"active\"" : ""}><mos:deepLink href="mskThreadsDump" title="Dump" class="sidebar-tooltip-right">Dump <i class="fa fa-upload"></i></mos:deepLink></li>
  210                     <li ${currentSubNaviItem.isSelected("threads_history") ? "class=\"active\"" : ""}><mos:deepLink href="mskThreadsHistory" title="History" class="sidebar-tooltip-right">History <i class="fa fa-file-text"></i></mos:deepLink></li>
  211                 </ul>
  212             </li>
  213         </ano:equal>
  214         <ano:notEqual name="currentNaviItem" property="id" value="threads">
  215             <li><mos:deepLink href="mskThreads" title="Threads" class="sidebar-tooltip-right">Threads <i class="fa fa-bars"></i></mos:deepLink></li>
  216         </ano:notEqual>
  217         <!-- Tracers --->
  218         <ano:notEqual name="currentNaviItem" property="id" value="tracers">
  219             <li><mos:deepLink href="mskTracers" title="Tracers" class="sidebar-tooltip-right">Tracers <i class="fa fa-binoculars"></i></mos:deepLink></li>
  220         </ano:notEqual>
  221         <ano:equal name="currentNaviItem" property="id" value="tracers">
  222             <li class="active"><mos:deepLink href="mskTracers" title="Tracers" class="sidebar-tooltip-right">Tracers <i class="fa fa-binoculars"></i></mos:deepLink></li>
  223             <ul class="nav sub-menu">
  224                 <ano:iterate id="subMenuElement" name="tracerSubmenuNames">
  225                     <li <%--${currentSubNaviItem.isSelected("threads_list") ? "class=\"active\"" : ""} --%>><mos:deepLink href="mskTracer?pProducerId=${subMenuElement}" title="${subMenuElement}" class="sidebar-tooltip-right">${subMenuElement} <i class="fa fa-arrow-circle-right"></i></mos:deepLink></li>
  226                 </ano:iterate>
  227             </ul>
  228         </ano:equal>
  229         <!-- Tracers end -->
  230 
  231 
  232         <ano:notEqual name="currentNaviItem" property="id" value="plugins">
  233             <li><mos:deepLink href="mskPlugins" title="Plugins" class="sidebar-tooltip-right">Plugins <i class="fa fa-plug"></i></mos:deepLink></li>
  234         </ano:notEqual>
  235         <ano:equal name="currentNaviItem" property="id" value="plugins">
  236             <li class="active"><mos:deepLink href="mskPlugins" title="Plugins" class="sidebar-tooltip-right">Plugins <i class="fa fa-plug"></i></mos:deepLink></li>
  237             <ul class="nav sub-menu">
  238             <ano:iterate name="pluginsForNavi" id="plugin">
  239                 <li <ano:equal name="plugin" property="webSelected" value="true">class="active"</ano:equal>><mos:deepLink href="${plugin.navigationEntryAction}" title="${plugin.subNaviItemText}" class="sidebar-tooltip-right">${plugin.subNaviItemText} <i class="fa fa-${plugin.subNaviItemIcon}"></i></mos:deepLink></li>
  240             </ano:iterate>
  241             </ul>
  242 
  243         </ano:equal>
  244 
  245         <!-- Tags menu item -->
  246         <li <ano:equal name="currentNaviItem" property="id" value="errors">class="active"</ano:equal>><mos:deepLink href="mskErrors" title="Errors" class="sidebar-tooltip-right">Errors <i class="fa fa-bug"></i></mos:deepLink></li>
  247 
  248         <!-- Tags menu item -->
  249         <li <ano:equal name="currentNaviItem" property="id" value="tags">class="active"</ano:equal>><mos:deepLink href="mskTags" title="Tags" class="sidebar-tooltip-right">Tags <i class="fa fa-tags"></i></mos:deepLink></li>
  250 
  251         <!-- Submenu for everything else -->
  252         <ano:equal name="currentNaviItem" property="id" value="more">
  253             <li class="active">
  254             <mos:deepLink href="mskMore" title="Everything else" class="sidebar-tooltip-right">Everything else <i class="fa fa-bookmark"></i></mos:deepLink>
  255             <ul class="nav sub-menu">
  256                 <li ${currentSubNaviItem.isSelected("more_config")  ? "class=\"active\"" : ""}><mos:deepLink href="mskConfig" title="Config" class="sidebar-tooltip-right">Config <i class="fa fa-cog"></i></mos:deepLink></li>
  257                 <li ${currentSubNaviItem.isSelected("more_mbeans")  ? "class=\"active\"" : ""}><mos:deepLink href="mskMBeans" title="MBeans" class="sidebar-tooltip-right">MBeans <i class="fa fa-coffee"></i></mos:deepLink></li>
  258                 <li ${currentSubNaviItem.isSelected("more_libs")    ? "class=\"active\"" : ""}><mos:deepLink href="mskLibs" title="Libs" class="sidebar-tooltip-right">Libs <i class="fa fa-file-text"></i></mos:deepLink></li>
  259                 <li ${currentSubNaviItem.isSelected("more_update")  ? "class=\"active\"" : ""}><mos:deepLink href="mskUpdate" title="Update" class="sidebar-tooltip-right">Update  <i class="fa fa-upload"></i></mos:deepLink></li>
  260                 <li ${currentSubNaviItem.isSelected("more_gauges")  ? "class=\"active\"" : ""}><mos:deepLink href="mskGauges" title="Gauges" class="sidebar-tooltip-right">Gauges  <i class="fa fa-tachometer"></i></mos:deepLink></li>
  261                 <li ${currentSubNaviItem.isSelected("more_loadfactors")  ? "class=\"active\"" : ""}><mos:deepLink href="mskLoadFactors" title="Load Factors" class="sidebar-tooltip-right">Load Factors  <i class="fa fa-asterisk"></i></mos:deepLink></li>
  262                 <li ${currentSubNaviItem.isSelected("more_nowrunning")  ? "class=\"active\"" : ""}><mos:deepLink href="mskNowRunning" title="Entry Points" class="sidebar-tooltip-right">Now Running  <i class="fa fa-location-arrow"></i></mos:deepLink></li>
  263                 <li ${currentSubNaviItem.isSelected("more_killswitch")  ? "class=\"active\"" : ""}><mos:deepLink href="mskKillSwitch" title="Kill Switch" class="sidebar-tooltip-right">Kill Switch  <i class="fa fa-cog"></i></mos:deepLink></li>
  264                 <%--<li ${currentSubNaviItem.isSelected("more_plugins") ? "class=\"active\"" : ""}><a href="mskPlugins" title="Plugins" class="sidebar-tooltip-right">Plugins <i class="fa fa-cloud"></i></a></li>--%>
  265             </ul>
  266         </li>
  267         </ano:equal>
  268         <ano:notEqual name="currentNaviItem" property="id" value="more">
  269             <li><mos:deepLink href="mskMore" title="Everything else" class="sidebar-tooltip-right">Everything else <i class="fa fa-bookmark"></i></mos:deepLink></li>
  270         </ano:notEqual>
  271     </ul>
  272 
  273     <ul class="nav nav-sidebar contacts-nav">
  274         <li>
  275             <a href="#">About<i class="fa fa-info-circle"></i></a>
  276             <ul class="nav sub-menu">
  277                 <li><a href="#Version" data-toggle="modal" data-target="#Version">Version</a></li>
  278                 <li><a href="#About" data-toggle="modal" data-target="#About">What is MoSkito?</a></li>
  279                 <li><a href="http://moskito.org" target="_blank">Documentation</a></li>
  280                 <li><a href="mskShowExplanations">Need help?</a></li>
  281                 <li><a href="#Contacts" data-toggle="modal" data-target="#Contacts">Contacts</a></li>
  282             </ul>
  283         </li>
  284     </ul>
  285 
  286     <ano:equal name="pagename" value="producers">
  287     <div class="form-box">
  288         <label>Filter</label>
  289 
  290         <select class="select2 select2-offscreen" data-placeholder="Select category" onchange="handleSelect(this)">
  291             <option></option>
  292             <ano:iterate name="categories" id="category" type="net.anotheria.moskito.webui.producers.api.UnitCountAO">
  293                 <option value="mskShowProducersByCategory?pCategory=${category.unitName}" ${category.unitName==requestScope.currentCategory ? "selected" : ""}>
  294                 ${category.unitName} (${category.unitCount})
  295                 </option>
  296             </ano:iterate>
  297         </select>
  298 
  299         <select class="select2 select2-offscreen" data-placeholder="Select subsystem" onchange="handleSelect(this)">
  300             <option></option>
  301             <ano:iterate name="subsystems" id="subsystem" type="net.anotheria.moskito.webui.producers.api.UnitCountAO">
  302                 <option value="mskShowProducersBySubsystem?pSubsystem=${subsystem.unitName}" ${subsystem.unitName==requestScope.currentSubsystem ? "selected" : ""}>
  303                         ${subsystem.unitName} (${subsystem.unitCount})
  304                 </option>
  305             </ano:iterate>
  306         </select>
  307 
  308         <form name="Filter" action="mskShowAllProducers" method="GET">
  309             <input type="text" name="pNameFilter" value="${nameFilter}" class="form-control" placeholder="Filter by name">
  310             <input type="hidden" name="remoteConnection" value="${remoteLink}"/>
  311         </form>
  312     </div>
  313     </ano:equal>
  314 
  315     <div class="form-box">
  316         <label>Server selector</label>
  317         <form name="SelectServer" action="mskSelectServer" method="GET">
  318             <select class="select2 select2-offscreen" data-placeholder="Select Server" onchange="handleSelect(this)">
  319                 <ano:iterate name="connectivityOptions" id="option" type="net.anotheria.moskito.webui.shared.bean.LabelValueBean">
  320                     <option value="mskSelectServer?pTargetServer=${option.value}" ${option.value==requestScope.selectedConnectivity ? "selected" : ""}>${option.label}</option>
  321                 </ano:iterate>
  322             </select>
  323         </form>
  324     </div>
  325 
  326     <div class="form-box">
  327         <label>Quick connect</label>
  328         <form name="QuickConnect" action="mskQuickConnect" method="GET">
  329             <div class="form-group">
  330                 <input type="text" class="form-control" name="pServerName" placeholder="Host">
  331             </div>
  332             <div class="form-group">
  333                 <input type="text" class="form-control" name="pServerPort" placeholder="Port">
  334             </div>
  335             <div class="form-group text-right">
  336                 <button class="btn btn-success" type="button" onclick="submit();">Connect</button>
  337             </div>
  338         </form>
  339     </div>
  340 
  341     <span class="shadow-line"></span>
  342 
  343 </aside>