rendered paste bodyindex.jxp:
<%
import de.dc.l2j.dcWebmin.webserver.template.News;
include("header.jxp");
if (TARGET.equalsIgnoreCase("index")) {
for (News news : News.getNewsRange(0, 5)) {
include("newsblock.jxp");
}
}
else if (TARGET.equalsIgnoreCase("forum")) {
include("forum_front.jxp");
}
include("footer.jxp");
%>
newsblock.jxp:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="news_title"><a href="/rss"><img src="images/feedIcon16.png" width="16" height="16" align="absmiddle" border="0" /></a> <% print(news.getTopic()); %></td>
</tr>
<tr>
<td><img src="images/trans.gif" width="5" height="5" /></td>
</tr>
<tr>
<td bgcolor="#e5a721"><img src="images/trans.gif" width="1" height="1" /></td>
</tr>
<tr>
<td><img src="images/trans.gif" width="5" height="5" /></td>
</tr>
<tr>
<td><p><% print(news.getContent()); %></p></td>
</tr>
</table>