Subversion Repositories general

Rev

Rev 962 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>

<head>
<logic:empty name="dir">
  <title>Index</title>
</logic:empty>
<logic:notEmpty name="dir">
  <title>Index of <bean:write name="dir" /></title>
</logic:notEmpty>
</head>

<body bgcolor="white">

<logic:empty name="dir">
  <h1>Index</h1>
</logic:empty>
<logic:notEmpty name="dir">
  <h1>Index of <bean:write name="dir" /></h1>
</logic:notEmpty>

<p>
  <logic:empty name="prevEntry" property="path">
    &lt;&lt;
  </logic:empty>
  <logic:notEmpty name="prevEntry" property="path">
    <logic:equal name="prevEntry" property="isDir" value="true">
      <a href="index.do?path=<bean:write name="prevEntry" property="path" />">&lt;&lt;</a>
    </logic:equal>
    <logic:equal name="prevEntry" property="isDir" value="false">
      <a href="page.do?path=<bean:write name="prevEntry" property="path" />">&lt;&lt;</a>
    </logic:equal>
  </logic:notEmpty>

  <logic:notPresent name="top" property="path">
    &nbsp;
  </logic:notPresent>
  <logic:present name="top" property="path">
    <a href="index.do?path=<bean:write name="top" property="path" />">Index</a>
  </logic:present>

  <logic:empty name="nextEntry" property="path">
    &gt;&gt;
  </logic:empty>
  <logic:notEmpty name="nextEntry" property="path">
    <logic:equal name="nextEntry" property="isDir" value="true">
      <a href="index.do?path=<bean:write name="nextEntry" property="path" />">&gt;&gt;</a>
    </logic:equal>
    <logic:equal name="nextEntry" property="isDir" value="false">
      <a href="page.do?path=<bean:write name="nextEntry" property="path" />">&gt;&gt;</a>
    </logic:equal>
  </logic:notEmpty>
</p>

<table border=1 width=100%>
<logic:iterate name="index" id="row">
  <tr>
  <logic:iterate name="row" id="entry">
    <logic:present name="entry">
      <logic:equal name="entry" property="isDir" value="true">
        <td width=20%>
          <a href="index.do?path=<bean:write name="entry" property="path" />">
            <img src="dir.do?path=<bean:write name="entry" property="path" />"
              alt="<bean:write name="entry" property="title" />"
              width="<bean:write name="entry" property="width" />"
              height="<bean:write name="entry" property="height" />"
              border=0><br>
            <bean:write name="entry" property="title" />
          </a>
        </td>
      </logic:equal>
      <logic:equal name="entry" property="isDir" value="false">
        <td width=20%>
          <a href="page.do?path=<bean:write name="entry" property="path" />">
            <img src="small.do?path=<bean:write name="entry" property="path" />"
              alt="<bean:write name="entry" property="title" />"
              width="<bean:write name="entry" property="width" />"
              height="<bean:write name="entry" property="height" />"
              border=0><br>
            <bean:write name="entry" property="title" />
          </a>
        </td>
      </logic:equal>
    </logic:present>
    <logic:notPresent name="entry">
      <td width=20%>&nbsp;</td>
    </logic:notPresent>
  </logic:iterate>
  </tr>
</logic:iterate>
</table>

</body>

</html>