HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/unitime/target/unitime-4.8/admin/accessStats.jsp
<%-- 
 * Licensed to The Apereo Foundation under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 *
 * The Apereo Foundation licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 --%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="tt" uri="http://www.unitime.org/tags-custom" %>
<%@ taglib prefix="loc" uri="http://www.unitime.org/tags-localization" %>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<loc:bundle name="CourseMessages"><s:set var="msg" value="#attr.MSG"/>
<s:form action="accessStats">
<table class="unitime-MainTable">
	<TR><TD valign="middle" colspan='2'>
		<tt:section-title><loc:message name="filter"/></tt:section-title>
	</TD></TR>
	<TR><TD>
		<loc:message name="filterPage"/>
	</TD><TD>
		<s:select name="page" list="pages" listKey="id" listValue="label" headerKey="" headerValue="%{#msg.itemSelect()}"/>
	</TD></TR>
	<TR><TD>
		<loc:message name="filterChartType"/>
	</TD><TD>
		<s:select name="type" list="types" listKey="id" listValue="label" headerKey="" headerValue="%{#msg.itemSelect()}"/>
	</TD></TR>
	<TR><TD>
		<loc:message name="filterChartInterval"/>
	</TD><TD>
		<s:select name="interval" list="intervals" listKey="id" listValue="label" headerKey="" headerValue="%{#msg.itemSelect()}"/>
	</TD></TR>
	<TR><TD colspan="2" align="right"><tt:section-title/></TD></TR>
	<TR><TD colspan="2" align="right"><s:submit value="%{#msg.actionFilterApply()}"/></TD></TR>
	<s:if test="hosts != null">
		<s:iterator value="hosts" var="host" status="stat">
			<s:set var="chartName" value="getChartLabel(#host)"/>
			<s:if test="#chartName != null">
				<s:set var="chartId" value="'Chart' + #stat.index"/>
				<tr><td colspan="2">
					<div id="${chartId}" style="width: calc(100vw - 50px); height: 50vh;"></div>
				</td></tr>
				<s:set var="chartData" value="getChartData(#host)"/>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(draw${chartId});
function draw${chartId}() {
    var data = google.visualization.arrayToDataTable(${chartData});
    var options = { title: '${chartName}', legend: { position: 'bottom' }};
    var chart = new google.visualization.LineChart(document.getElementById('${chartId}'));
    chart.draw(data, options);
}
</script>
			</s:if>
		</s:iterator>
	</s:if>
</table>
</s:form>
</loc:bundle>