%--
* Copyright by Intland Software
*
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Intland Software. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Intland.
*
* $Revision$ $Date$
--%>
<%@ taglib uri="jstl-c" prefix="c" %>
<%@ taglib uri="jstl-fmt" prefix="fmt" %>
<%@ taglib uri="jstl-fn" prefix="fn" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="taglib" prefix="tag" %>
<%@ taglib uri="uitaglib" prefix="ui" %>
<%@ page import="com.intland.codebeamer.license.LicenseCodeImpl"%>
<%@ page import="com.intland.codebeamer.license.ProductLicense"%>
<%@ page import="com.intland.codebeamer.license.UserLicense"%>
<%@ page import="com.intland.codebeamer.persistence.dao.impl.UserSessionDaoImpl"%>
<%@ page import="com.intland.codebeamer.persistence.dto.base.LicenseKind"%>
<%
final int nrOfLastDays = 14;
pageContext.setAttribute("nrOfLastDays", new Integer(nrOfLastDays));
boolean isFloating = false;
for (ProductLicense productLicense : LicenseCodeImpl.getInstance().getProductLicenses()) {
for (UserLicense userLicense : productLicense.getUserLicenses()) {
if (userLicense.kindOf(LicenseKind.FLOATING)) {
isFloating = true;
break;
}
}
}
pageContext.setAttribute("isFloating", Boolean.valueOf(isFloating));
pageContext.setAttribute("dailyLoggins", UserSessionDaoImpl.getInstance().findDailyLogginsStatsOfLastDays(nrOfLastDays));
boolean onlineTimeGroupBy = "user".equals(pageContext.findAttribute("onlineTimeGroupByUser"));
pageContext.setAttribute("onlineTime",
UserSessionDaoImpl.getInstance().findOnlineTimeStatsOfLastDays(onlineTimeGroupBy, nrOfLastDays));
%>
User Accounts Logged in ()
<%-- List logged-in accounts --%>
<%--
--%>
Daily Statistics of the last days
<%-- Set "dailyUsage" to "true" to get also the daily usage statistic. --%>
Daily Usage Statistics of the last days
Group by:AccountCompany