Ajout de l'URL dans la liste des articles.

Petite gestion quand y'a pas de file :s
This commit is contained in:
Frederic Debuire
2007-12-17 22:05:21 +00:00
parent 8cf25a10a2
commit 8f3ad35298
5 changed files with 88 additions and 74 deletions

View File

@@ -1,39 +1,33 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<c:forEach items="${listArticle}" var="article">
<ul class="article">
<li class="title">${article.title}</li>
<li class="author">${article.mainAuthor}</li>
<li class="topic">${article.topic}</li>
<li class="article_url">${article.URL_article}</li>
</ul>
</c:forEach>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><fmt:message key="title" /></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content"><jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<c:forEach items="${listArticle}" var="article">
<ul class="article">
<li class="title">${article.title}</li>
<li class="author">Author: ${article.mainAuthor}</li>
<li class="topic">Topic: ${article.topic}</li>
<li class="article_url"><a href="<c:url value="${article.URL_article}"/>">Download the article</a></li>
</ul>
</c:forEach>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -47,7 +47,8 @@ function Supprimer(form) {
<form:select path="liste" size="5" ondblclick="Supprimer(this.form)" multiple="true">
</form:select>
</form:select>
<br /><br />
<hr />

View File

@@ -20,14 +20,8 @@
<div id="main_content">
Soumission OK
<c:if test="${fileUploaded}">
<p>File uploaded succesfully.</p>
<c:if test="${!empty(file)}">
<pre style="border: solid 1px;">${file}</pre>
</c:if>
</c:if>
Soumission OK
<br />
<a href="<c:url value="main.htm"/>">Home</a>

View File

@@ -115,14 +115,22 @@ body {
display: table-cell;
width: 640px;
}
.article a {
text-decoration: none;
color: #002bb8;
background: none;
}
.article a:hover {
text-decoration: underline;
}
ul.article {
border-bottom : thin solid #666;
width: 100%;
border-bottom : thin solid #666;
padding-bottom: 5px;
}
ul.article li {
width: 100%;
list-style: none;
}
@@ -132,8 +140,12 @@ ul.article .title {
ul.article .author {
font-size: small;
}
ul.article .topic {
font-size: small;
}
ul.article .article_url {
font-size: smaller;
font-size: small;
}