1 <?xml version='
1.0' encoding='UTF-
8'
?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml"
4 xmlns:
ui=
"http://java.sun.com/jsf/facelets"
5 xmlns:
h=
"http://java.sun.com/jsf/html"
6 xmlns:
p=
"http://primefaces.prime.com.tr/ui"
7 xmlns:
f=
"http://java.sun.com/jsf/core">
8 <f:view contentType=
"text/html">
10 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
11 <link href=
"./resources/css/cssLayout.css" rel=
"stylesheet" type=
"text/css" />
12 <link href=
"./resources/css/redmond/skin.css" rel=
"stylesheet" type=
"text/css" />
13 <title>#{pageTitle}
</title>
19 <ui:insert name=
"top">
20 <a href=
"./index.xhtml">
21 <img src=
"./resources/images/logo.jpg" alt=
"SkiSchool IS"/>
23 <p:ajaxStatus styleClass=
"ajaxStatus">
24 <f:facet name=
"start">
25 <h:graphicImage alt=
"Loading..." value=
"./resources/css/redmond/images/ui-anim_basic_16x16.gif"/>
27 <f:facet name=
"complete">
28 <h:outputText value=
""/>
35 <ui:insert name=
"left">
37 <h:panelGrid columns=
"1">
38 <h:link value=
"#{msgs.menu_timetable}" outcome=
"timetable" rendered=
"#{securityBean.inRoleAdministrator}"/>
39 <h:commandLink action=
"#{availabilityBean.newAvailability}" value=
"#{msgs.global_availability}" rendered=
"#{securityBean.inRoleInstructor}">
40 <f:setPropertyActionListener value=
"#{securityBean.currentInstructor}"
41 target=
"#{availabilityBean.instructor}" />
43 <h:commandLink action=
"instructorlessons" value=
"#{msgs.global_lessons}" rendered=
"#{securityBean.inRoleInstructor}">
44 <f:setPropertyActionListener value=
"#{securityBean.currentInstructor}"
45 target=
"#{selectBean.instructor}" />
47 <h:link value=
"#{msgs.menu_kindergarten}" outcome=
"kindergarten" rendered=
"#{securityBean.inRoleAdministrator}"/>
48 <h:link value=
"#{msgs.menu_lessons}" outcome=
"lessons" rendered=
"#{securityBean.inRoleAdministrator}"/>
49 <h:link value=
"#{msgs.menu_users}" outcome=
"users" rendered=
"#{securityBean.inRoleAdministrator}"/>
50 <h:commandLink value=
"#{msgs.menu_createinstructor}" action=
"#{instructorsBean.newInstructor}" rendered=
"#{securityBean.inRoleAdministrator}"/>
51 <h:commandLink value=
"#{msgs.menu_createstudent}" action=
"#{studentsBean.newStudent}" rendered=
"#{securityBean.inRoleAdministrator}"/>
52 <h:link value=
"#{msgs.menu_lessonscount}" outcome=
"payments" rendered=
"#{securityBean.inRoleAdministrator}"/>
53 <h:commandLink value=
"Môj profil" action=
"#{instructorsBean.editInstructor(securityBean.currentInstructor)}" rendered=
"#{securityBean.inRoleInstructor}"/>
54 <h:commandLink value=
"#{msgs.menu_logout}" action=
"#{securityBean.logout}"/>
60 <ui:insert name=
"content">Content
</ui:insert>
64 <ui:insert name=
"bottom">
65 © JA-KA SKI
2011 v0.9
<h:outputText value=
"(#{securityBean.currentUsername})"/>