18 proc year_header {year items} {
19 return "<h2>$year ÇÏÄ</h2><ul>"
20 # return "<table border=1 width=\"100%\" cellspacing=0><tr><td align=\"center\" colspan=\"$items\"><b><font size=+2>$year ÇÏÄ</font></td></tr>\n<tr>"
23 proc year_footer {year} {
25 # return "</tr></table><p> </p>"
28 proc out_item { month day place dir} {
30 return "<li><a href=\"$dir\">$day $monName($month)</a> $place</li>"
31 # return "<td align=center><a href=\"$dir\">$day $monName($month)<br>$place</a></td>"
33 set f [open "index.html" w]
34 puts $f "<HTML><HEAD><TITLE>áÒÈÉ× ÆÏÔÏÇÒÁÆÉÊ</TITLE></HEAD><BODY>
35 <H1>áÒÈÉ× ÆÏÔÏÇÒÁÆÉÊ</H1>"
36 foreach dirname [lsort -decreasing [glob *]] {
37 if {![regexp {^(\d{4})\.(\d{2})\.(\d{2}(-\d{2})?)-(.*)$} $dirname \
38 match year month day xxx place]} {
41 lappend a($year) [list $month $day $place $dirname]
44 foreach y [lsort -decreasing [array names a]] {
45 puts $f [year_header $y [llength $a($y)]]
47 puts $f [eval out_item $item]
49 puts $f [year_footer $y]
54 puts $f "</BODY></HTML>"