ad_page_contract { @title Albums @author tom jackson (tom@junom.com) @creation-date Februrary 10, 2004 @cvs-id $Id$ } { base:trim,notnull } set years [glob -nocomplain -types {d} -directory "$base" "*"] foreach year $years { set months [glob -nocomplain -types {d} -directory "$year" "*"] set nice_year [file tail $year] append output "
$nice_year" foreach month $months { set nice_month [file tail $month] set days [glob -nocomplain -types {d} -directory "$month" "*"] append output "
$nice_month" foreach day $days { set nice_day [file tail $day] append output " " lappend albums $day } append output "
" } append output "
" } append output "
" ad_return_template