Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 547 → Rev 556

/impl/conf/directories/student.xml
5,7 → 5,7
/impl/conf/directories/teacher.xml
5,7 → 5,7
/impl/src/web/layout/footer.jsp
5,6 → 5,7
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
 
<div id="footerStructure">
<table>
29,6 → 30,25
</table>
</div>
 
 
 
<!--TUDO.estgp.pt Trafego-->
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19734148-6']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
 
 
<baco:isNotAuthenticated>
<!--ESTGP-->
<script type="text/javascript">
 
41,9 → 61,11
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
</baco:isNotAuthenticated>
 
 
<baco:isAuthenticated>
<!--BACO-->
<script type="text/javascript">
 
57,4 → 79,62
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
</script>
</baco:isAuthenticated>
 
<baco:isAuthenticated>
<baco:hasRole role="student">
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19734148-3']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
</baco:hasRole>
</baco:isAuthenticated>
 
 
<baco:isAuthenticated>
<baco:hasRole role="teacher">
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19734148-4']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
</baco:hasRole>
</baco:isAuthenticated>
 
<baco:isAuthenticated>
<baco:hasNotRole role="teacher">
<baco:hasNotRole role="student">
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19734148-5']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
</baco:hasNotRole>
</baco:hasNotRole>
</baco:isAuthenticated>
/impl/src/web/layout/webmailRedirect.jsp
New file
0,0 → 1,11
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>WebMail</title>
<meta http-equiv="refresh" content="10;url=http://mail.estgp.pt/exchange/">
</head>
<body>
Se não for redireccionado para o WebMail clique <a href="http://mail.estgp.pt/exchange/">aqui</a>
<jsp:include page="/layout/footer.jsp"/>
</body>
</html>
/impl/src/web/layout/navigationLeftAdmin.jsp
23,7 → 23,7
</html:link>
</li>
<li>
<a href="http://mail.estgp.pt/exchange/">
<a href="<%=request.getContextPath()%>/layout/webmailRedirect.jsp">
Webmail
</a>
</li>
/impl/src/web/user/home/student.jsp
36,7 → 36,23
<ul>
<logic:iterate id="unit" name="UserSession" property="user.subscribedUnitsCurrentYearViewS1" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.importYear})</html:link>
<%
String courseCode = "";
if(unit.getCourse() != null)
{
String courseName = unit.getCourse().getName();
String[] words = courseName.split(" ");
for(String word: words)
{
if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' )
{
courseCode += word.charAt(0);
}
}
}
%>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (<%=courseCode%> - ${unit.courseName} (${unit.courseCode}))</html:link>
</li>
</logic:iterate>
</ul>
55,7 → 71,23
<ul>
<logic:iterate id="unit" name="UserSession" property="user.subscribedUnitsCurrentYearViewS2" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.importYear})</html:link>
<%
String courseCode = "";
if(unit.getCourse() != null)
{
String courseName = unit.getCourse().getName();
String[] words = courseName.split(" ");
for(String word: words)
{
if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' )
{
courseCode += word.charAt(0);
}
}
}
 
%>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (<%=courseCode%> - ${unit.courseName} (${unit.courseCode}))</html:link>
</li>
</logic:iterate>
</ul>
/impl/src/web/user/home/teacher.jsp
35,7 → 35,23
<ul>
<logic:iterate id="unit" name="UserSession" property="user.teachedUnitsCurrentYearViewS1" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link>
<%
String courseCode = "";
if(unit.getCourse() != null)
{
String courseName = unit.getCourse().getName();
String[] words = courseName.split(" ");
for(String word: words)
{
if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' )
{
courseCode += word.charAt(0);
}
}
}
 
%>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (<%=courseCode%> - ${unit.courseName} (${unit.courseCode}))</html:link>
</li>
</logic:iterate>
</ul>
54,7 → 70,23
<ul>
<logic:iterate id="unit" name="UserSession" property="user.teachedUnitsCurrentYearViewS2" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name}</html:link>
<%
String courseCode = "";
if(unit.getCourse() != null)
{
String courseName = unit.getCourse().getName();
String[] words = courseName.split(" ");
for(String word: words)
{
if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' )
{
courseCode += word.charAt(0);
}
}
}
 
%>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (<%=courseCode%> - ${unit.courseName} (${unit.courseCode}))</html:link>
</li>
</logic:iterate>
</ul>