$acronym) { if ($acronym == $mm) { $subtitle .= $label; $subtitle .= " "; break; } } } $subtitle .= "$yy"; $page_meta = array( 'title' => $archive_title, 'author' => 'Jan van der Steen', 'editor' => 'editor@gobase.org', 'flag' => 'nn', 'section_path' => array( 'Archive', 'News', $subtitle, ), 'references' => array( 'home' => array( 'url' => "/", ), 'prev' => array( 'txt' => $archive_title, 'url' => $archive_url, ), 'index' => array( 'url' => $archive_index, ), 'next' => array( 'txt' => "Tips archive", 'url' => "/archive/tips/", ), ), 'path' => array( array( 'txt' => 'home', 'url' => '/', ), array( 'txt' => 'Archive', ), array( 'txt' => 'News', 'url' => $archive_url, ), array( 'txt' => $subtitle, ), ), ); if (!isset($mm)) $mm = ''; if (empty($mm)) { $page_meta['STYLE'] = <<<__EOF TABLE.davies { float: center; width: 100%; padding: 4px; margin-top: 10px; margin-left: 0px; margin-right: 20px; margin-bottom: 20px; border: 1px solid black; } TABLE.davies , TD.l , TD.r , TD.c { background-color: #e4e0cc; } TD.l , TD.r , TD.c { font-size: 14pt; } .l { text-align: left; } .r { text-align: right; } .c { text-align: center; } P { font-size: 14pt; margin-top: 4px; margin-bottom: 4px; } SMALL { font-size: 10pt; } IMG.davies { margin-top: 8px; margin-bottom: 8px; border: 1px solid white; } SPAN.current { color: #770000; background-color: transparent; } SPAN.notyet { color: #999a6a; background-color: transparent; } __EOF; } else { $page_meta['STYLE'] = <<<__EOF TABLE.davies { float: right; width: 250px; padding: 2px; margin-top: 10px; margin-left: 20px; margin-right: 0px; margin-bottom: 10px; border: 1px solid black; } TABLE.davies , TD.l , TD.r , TD.c { background-color: #b8b898; } TD.l , TD.r , TD.c { font-size: 8pt; } .l { text-align: left; } .r { text-align: right; } .c { text-align: center; } P { font-size: 8pt; margin-top: 4px; margin-bottom: 4px; } SMALL { font-size: 6pt; } IMG.davies { margin-top: 4px; margin-bottom: 4px; border: 1px solid white; } SPAN.current { color: #770000; background-color: transparent; } SPAN.notyet { color: #999a6a; background-color: transparent; } PRE { font-family: monospace; font-size: 8pt; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 24px; } STRONG { color: #770000; background-color: transparent; } __EOF; } function emit_month($month) // // Emit a month either as: // // january
// february
// march
// { global $archive_url; global $archive_items; global $archive_months; global $yy; global $mm; $label = strtolower($month); // // Current month // if ($archive_months[$month] == $mm) { return "$label
\n"; } // // Selectable month // $mon = $archive_months[$month]; if (!empty($archive_items[$yy][$mon])) { return "$label
\n"; } // // Empty month // return "$label
\n"; } function emit_year($year) // // Emit a year either as: // // 1991
// 1991
// 1991
// { global $archive_url; global $archive_years; global $yy; // // Current year // if ($year == $yy) { return "$year\n"; } if (in_array($year, $archive_years)) { return "$year\n"; } return "$year\n"; } function sec_index() // // Emit index and content // { global $archive_title; global $archive_index; global $archive_data; global $archive_items; global $archive_years; global $archive_months; global $yy; global $mm; print "\n"; print "\n"; print ""; print emit_month('January'); print emit_month('February'); print emit_month('March'); print "\n"; print ""; print emit_month('April'); print emit_month('May'); print emit_month('June'); print "\n"; print "\n"; print "\n"; print ""; print strtolower($archive_title) . "\n"; print "

\n"; print "\n"; print "\n"; print "\n"; print "

\n"; foreach ($archive_years as $k => $year) { print emit_year($year); } print "\n"; print "\n"; print "\n"; print ""; print emit_month('July'); print emit_month('August'); print emit_month('September'); print "\n"; print ""; print emit_month('October'); print emit_month('November'); print emit_month('December'); print "\n"; print "\n"; print "\n"; // // Emit content // if (!empty($archive_items[$yy][$mm])) { global $subtitle; // print "

$subtitle

\n"; $bgcolor = 'rgb(189,183,107)'; $bgcolor = '#b8b898'; $bgcolor = '#999a6a'; $bgcolor = '#dddddd'; $bgcolor = '#e4e0cc'; $fgcolor = '#000000'; foreach ($archive_items[$yy][$mm] as $key => $val) { $news_item = $archive_data[$val['idx']]; $columns = 1; if (!empty($news_item['pics'])) { $columns++; } print "\n"; // // Flag and date // print "\n"; print ""; print ""; print ""; // // Article // print "\n"; print ""; // // Emit pictures, if any // if (!empty($news_item['pics'])) { print ""; } print ""; print "
"; print "

"; if (!empty($news_item['ccode'])) { flag_emit($news_item['ccode']); print " "; } print "$mm-{$val['day']}"; print "

"; // // Emit game references, if any // if (isset($news_item['games'])) { print ""; $extra = true; } else { print "
"; } print "
"; print "

\n"; print $news_item['text']; if (!empty($news_item['url'])) { print " "; print ""; print img_code('more'); print ""; } print "

"; foreach ($news_item['pics'] as $k => $img) { // $img['align'] = 'right'; unset($img['align']); unset($img['hspace']); if (isset($img['url'])) { print ""; } print image_code($img); if (isset($img['url'])) { print ""; } } print "
\n"; } } } ?>