<%@ include file="/WEB-INF/jsp/include.jsp"%>
<!-- 
<%@ page session="false" %> spring -> true par defaut
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<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">

<h2 align="center"><fmt:message key="preference.title" /></h2>

<c:if test="${message}">
<fmt:message key="message"/>
</c:if>

<form:form method="post" commandName="choosePreference">
<c:if test="${not empty articleList}">
	<table>
    <c:forEach items="${articleList}" var="article" varStatus="i">
    
    <tr>
        <td><a href="<c:url value="detailArticle.htm"/>">${article.title}</a></td>
        <form:hidden path="preferences[${i.index}].article.id" />
        <form:hidden path="preferences[${i.index}].pcMember.login" />
	    <td><fmt:message key="preference.like"/></td>
	    <td><form:radiobutton path="preferences[${i.index}].preference" value="Like"/></td>
	    <td><fmt:message key="preference.indifferent"/></td>
	    <td><form:radiobutton path="preferences[${i.index}].preference" value="Indifferent"/></td>
	    <td><fmt:message key="preference.dislike"/></td>
	    <td><form:radiobutton path="preferences[${i.index}].preference" value="Dislike"/></td> 
     </tr>
   </c:forEach>
   </table>
   <input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
</c:if>
</form:form>

<a href="<c:url value="main.htm"/>">Home</a>


</div>
</div>
	<div class="footer">&nbsp;</div>
</div>

  </body>
</html>
