%@ page import="java.util.Iterator, java.util.Set, java.util.Collection" %>
<%@ page import="java.lang.reflect.Array" %>
<%@ page import="ysl.util.Utils, ysl.util.StaticData, ysl.ui.SelectList" %>
<%@ page import="ysl.util.Log, ysl.util.Money, ysl.util.ServletUtils" %>
<%@ page import="ysl.util.Term" %>
<%@ page import="ysl.buslog.users.Role, ysl.buslog.users.UserRole, ysl.buslog.users.User" %>
<%@ page import="ysl.buslog.competitions.Season, ysl.buslog.competitions.Competition, ysl.buslog.competitions.Division" %>
<%@ page import="ysl.buslog.refs.GameOfficial, ysl.buslog.refs.OfficialPay" %>
<%@ include file="TestSessionFragment.jsp" %>
<%
int roleId = currentUserRole.getRoleId();
League league = currentUserRole.getEntity().getLeague();
int compId = ServletUtils.getInt(request, "compId", 0);
int seasonId = ServletUtils.getInt(request, "seasonId", 0);
Season season = Season.getInstance(seasonId);
Competition comp = null;
if (compId > 0) {
comp = Competition.getInstance(compId);
season = comp.getSeason();
seasonId = season.getId();
}
if (seasonId == 0) {
season = league.getActiveSeason();
if (season != null)
seasonId = season.getId();
}
SelectList compsSL = null;
SelectList seasonsSL = league == null ? null : new SelectList(league.getSeasons());
if (season != null) {
compsSL = new SelectList(season.getRealCompetitions());
}
int leagueId = league == null ? 0 : league.getId();
Iterator playAttrs = LeaguePlayAttr.getPlayAttrMatrix(leagueId).iterator();
session.setAttribute("currentCompetition", comp);
String offStr = Term.getTerm(Term.OFFICIAL, league);
String off1Str = Term.getTerm(Term.OFFICIAL1, league);
String off2Str = Term.getTerm(Term.OFFICIAL2, league);
String off3Str = Term.getTerm(Term.OFFICIAL3, league);
String venueStr = Term.getTerm(Term.VENUE, league);
String pageTitle = "Edit " + Term.capitalizeTerm(offStr) + " Pay Rates";
%>
<%@ include file="header.jsp" %>
Edit <%= (seasonId == 0 ? "Default " : "") %><%= Term.capitalizeTerm(offStr) %> Pay Rates<%= (comp == null ? "" : " for " + comp.getFullName()) %> |
User Home
<%
out.println(" | View League");
%>
| Return to League <%= Term.capitalizeTerm(offStr) %> Settings
| User Help
<%
if (seasonId > 0) {
%>
Import pay rates from a different season or competition <% } %> |
<%= league.getLeagueName() %> |