<%@ include file="header.psp"%>
<h2>Elenco dediche</h2>
<%
if(lista_dediche):
%>
<table border="1" padding="2"><thead>
<tr>
<td>
<b>
<a href="/PyGuestbook/index.py/ajax_dediche"
onclick="return caricaDediche(this.href,'dataInserimento');"
onkeypress="return this.onclick();">
Data
</a>
</b>
</td>
<td>
<b>
<a href="/PyGuestbook/index.py/ajax_dediche"
onclick="return caricaDediche(this.href,'nickname');"
onkeypress="return this.onclick();"
>
Nickname
</a>
</b>
</td>
<td>
<b>
<a href="/PyGuestbook/index.py/ajax_dediche"
onclick="return caricaDediche(this.href,'email');"
onkeypress="return this.onclick();"
>
Email
</a>
</b>
</td>
<td>
<b>
<a href="/PyGuestbook/index.py/ajax_dediche"
onclick="return caricaDediche(this.href,'messaggio');"
onkeypress="return this.onclick();"
>
Dedica
</a>
</b>
</td>
<td><b>Azioni</b></td>
<tr>
</thead>
<tbody id="tbDedicheBody">
<%
for dedica in lista_dediche:
%>
<tr>
<td><%=dedica.getDataInserimento()%></td>
<td><%=dedica.getNickname()%></td>
<td><%=dedica.getEmail()%></td>
<td><%=dedica.getMessaggio()%></td>
<td>
<a href="/PyGuestbook/index.py/edit_dedica?id=<%=dedica.getId()%>">Edit</a>
<a href="/PyGuestbook/index.py/elimina_dedica?id=<%=dedica.getId()%>">Elimina</a>
</td>
<tr>
<%
%>
</tbody></table>
<%
%>
<%@ include file="footer.psp"%>