7,39 → 7,77 |
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
|
<div id="contentIntranet"> |
<div class="seccao"> |
<table class="dataTable"> |
<tr> |
<th><bean:message key="name"/></th> |
<th><bean:message key="area"/></th> |
<th><bean:message key="office"/></th> |
<th>EXT.</th> |
<th><bean:message key="email"/></th> |
</tr> |
<logic:iterate id="userView" name="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
<% |
String ce = ""; |
String ch = ""; |
String dg = ""; |
String eg = ""; |
String area = (String) request.getAttribute("area"); |
if(area != null) |
{ |
if(area.equals("ce")) |
{ |
ce="selected=\"selected\""; |
} |
else if(area.equals("ch")) |
{ |
ch="selected=\"selected\""; |
} |
else if(area.equals("dg")) |
{ |
dg="selected=\"selected\""; |
} |
else if(area.equals("eg")) |
{ |
eg="selected=\"selected\""; |
} |
|
} |
%> |
<form action="<%=request.getContextPath()%>/user/listTeachers.do"> |
<input type="hidden" name="dispatch" value="listTeachersAZ"/> |
<div id="contentIntranet"> |
<div class="seccao"> |
<table class="dataTable"> |
<tr> |
<td> |
${userView.name} |
</td> |
<td> |
<logic:present name="userView" property="mainArea"> |
<logic:notEmpty name="userView" property="mainArea"> |
<bean:message key="area.${userView.mainArea}"/> |
</logic:notEmpty> |
</logic:present> |
</td> |
<td> |
${userView.office} |
</td> |
<td> |
${userView.ext} |
</td> |
<td> |
${userView.username}@<%=Globals.EMAIL_LOCAL_SUFFIX%> |
</td> |
<th><bean:message key="name"/></th> |
<th> |
<select name="area" onchange="form.area.value=this.value;form.submit();"> |
<option value=""><bean:message key="area"/></option> |
<option value="ce" <%=ce%>><bean:message key="area.ce"/></option> |
<option value="ch" <%=ch%>><bean:message key="area.ch"/></option> |
<option value="dg" <%=dg%>><bean:message key="area.dg"/></option> |
<option value="eg" <%=eg%>><bean:message key="area.eg"/></option> |
</select> |
</th> |
<th><bean:message key="office"/></th> |
<th>EXT.</th> |
<th><bean:message key="email"/></th> |
</tr> |
</logic:iterate> |
</table> |
<logic:iterate id="userView" name="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
<tr> |
<td> |
${userView.name} |
</td> |
<td> |
<logic:present name="userView" property="mainArea"> |
<logic:notEmpty name="userView" property="mainArea"> |
<bean:message key="area.${userView.mainArea}"/> |
</logic:notEmpty> |
</logic:present> |
</td> |
<td> |
${userView.office} |
</td> |
<td> |
${userView.ext} |
</td> |
<td> |
${userView.username}@<%=Globals.EMAIL_LOCAL_SUFFIX%> |
</td> |
</tr> |
</logic:iterate> |
</table> |
</div> |
</div> |
</div> |
</form> |