Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 81 → Rev 82

/impl/conf/WEB-INF/struts/struts-courseunits.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
 
<struts-config>
 
20,7 → 20,10
 
 
<action-mappings>
<action path="/startTeste2" forward="page.separators.home"/>
 
 
</action-mappings>
</struts-config>
/impl/conf/WEB-INF/struts/tiles-courseunits.xml
1,13 → 1,19
<?xml version="1.0" encoding="UTF-8" ?>
 
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
 
<tiles-definitions>
 
<definition name="page.load.courseunits" extends="base.layout1">
<definition name="base.separators" extends="base.definition" path="/layout/layoutintranet.jsp">
<put name="separators" value="/layout/separators.jsp" />
</definition>
<definition name="page.separators.home" extends="base.separators">
<put name="body" value="/user/home.jsp" />
</definition>
 
 
 
</tiles-definitions>
/impl/src/web/css/intranet.css
New file
0,0 → 1,73
/* --- Main Navigation --- */
 
#body,#page
{
width:950px;
margin-left: auto;
margin-right: auto;
}
 
#testeTop {
border-bottom: 12px solid #ebe6d6;
}
 
#testeTop ul {
margin: 0;
padding: 0;
}
#testeTop ul li {
margin: 0;
padding: 0;
}
#testeTop ul li span {
margin: 0;
padding: 0;
}
#testeTop {
float: left;
width: 100%;
font-size: 11px;
padding-top: 0.5em;
}
#testeTop ul {
margin: 0;
margin-left: 200px;
list-style: none;
}
#testeTop li {
float: left;
padding: 0;
font-family: Tahoma, Verdana, Sans-Serif;
margin: 0;
}
#testeTop ul li {
margin-right: 1px;
}
#testeTop li a {
float: left;
font-size: 100%;
font-weight: normal;
text-decoration: none;
white-space: nowrap;
}
#testeTop li a span {
float: left;
padding: 0.75em 10px;
cursor: pointer; /* IE6 tweak */
}
 
 
#testeTop { border-top: 4px solid #277b97; background: #146b88 url(../images/0grad01.gif) bottom repeat-x; }
#testeTop li a { display: block; background: #5fa0b7 url(../images/0corner_left_01.gif) top left repeat-x;}
#testeTop li a span { background: url(../images/0corner_right_01.gif) top right no-repeat; }
#testeTop ul li.selected a { background: #ebe6d6 url(../images/0corner_left_span_01.gif) top left no-repeat; }
#testeTop ul li.selected a span { background: url(../images/0corner_right_span_01.gif) top right no-repeat; }
#testeTop ul li.selected a:hover { background: #ebe6d6 url(../images/0corner_left_span_01.gif) top left no-repeat; color: #000; }
#testeTop ul li.selected a:hover span { background: url(../images/0corner_right_span_01.gif) top right no-repeat; color: #000; }
#testeTop li a:hover { background: #7fb3c5 url(../images/0corner_left_light_01.gif) top left repeat-x; }
#testeTop li a:hover span { background: url(../images/0corner_right_light_01.gif) top right no-repeat; }
 
#testeTop a, #testeTop a:visited, #testeTop a:hover
{
COLOR:BLACK;
}
/impl/src/web/layout/layoutintranet.jsp
New file
0,0 → 1,57
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ 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" %>
<html:html locale="true">
<head>
<title><bean:message key="site.title"/> - <tiles:getAsString name="title"/></title>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/intranet.css"/>
<jsp:include page="/layout/scripts.jsp"/>
 
<script type="text/javascript">
function horizontal() {
 
var navItems = document.getElementById("menu_dropdown").getElementsByTagName("li");
 
for (var i=0; i< navItems.length; i++) {
if(navItems[i].className == "submenu")
{
if(navItems[i].getElementsByTagName('ul')[0] != null)
{
navItems[i].onmouseover=function() {
this.getElementsByTagName('ul')[0].style.display="block";}
navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";}
}
}
}
 
}
</script>
</head>
<body class="small" marginwidth="0" marginheight="0" bgcolor="#ffffff" topmargin="0" leftmargin="0" onload="horizontal();">
<div id="body">
<div id="header">
<tiles:insert attribute="header"/>
</div>
<table id="page">
<tr>
<td><tiles:insert attribute="navigationTop"/></td>
</tr>
<tr>
<td class="content">
<tiles:insert attribute="topnav"/>
<tiles:insert attribute="separators"/>
<tiles:insert attribute="body" />
</td>
</tr>
</table>
<div id="footer">
<tiles:insert attribute="footer"/>
</div>
</div>
</body>
</html:html>
 
/impl/src/web/layout/separators.jsp
New file
0,0 → 1,46
<%--
Created by IntelliJ IDEA.
User: Susana Monteiro
Date: 23/Abr/2008
Time: 15:05:50
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="testeTop">
<%
int sep = Integer.parseInt(request.getParameter("separator"));
String sep1 = "";
String sep2 = "";
String sep3 = "";
 
String link1 = "href=\"" + request.getContextPath() + "/startTeste2.do?separator=1\"";
String link2 = "href=\"" + request.getContextPath() + "/startTeste2.do?separator=2\"";
String link3 = "href=\"" + request.getContextPath() + "/startTeste2.do?separator=3\"";
 
if(sep == 1)
{
sep1 ="class=\"selected\"";
link1 = "";
}
else if(sep == 2)
{
sep2 ="class=\"selected\"";
link2 = "";
}
else if(sep == 3)
{
link3 = "";
sep3 ="class=\"selected\"";
}
%>
<div id="separators">
<ul>
 
<li <%=sep1%>>
<a <%=link1%>><span> Home </span></a>
</li>
<li <%=sep2%>> <a <%=link2%>> <span>Cadeiras</span> </a></li>
<li <%=sep3%>> <a <%=link3%>><span>Perfil</span> </a></li>
</ul>
</div>
</div>