# $title

<%! import se.datadosen.util.*; // Make links to sibling directories that contain an index.html file void siblingLinks() { File[] dirs = outputDirectory.getParentFile().listFiles(new FileFilter() { public boolean accept(File f) { return f.isDirectory() && new File(f, "index.html").exists(); } }); for (int i=0; i<dirs.length; i++) { out.println("\t\t\t\t<td class=\"tabspace\">"); String name = dirs[i].getName(); out.println("\t\t\t\t" + "" + name + ""); } } void thumbLinks() { if (nThumbs == void) nThumbs = 5; // Default int curr = imageNum-1; int start = 0; if (nThumbs < totalImages) { start = curr-nThumbs/2; if (start < 0) start = 0; else if (start+nThumbs >= totalImages) start = totalImages-nThumbs; } for (int i=start; (i<start+nThumbs) && (i<totalImages); i++) { Map vars = (Map)fileVariables.get(files[i]); out.print("\t\t\t\t<tr>"); out.print("" + ""); out.println(""); } } %>

<%= siblingLinks() %>

<%= thumbLinks() %>

$comment