website/news_funcs.php

29 lines
740 B
PHP
Raw Normal View History

2000-06-16 05:24:11 +00:00
<?
function newsItem( $date, $user, $text )
{
if ($user == "Theoddone33") $user = "theoddone33";
echo '<TR><TD><DL><DT><FONT SIZE=-1>Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
' <DD><P>' . $text . '</DD>' .
'</DL></TD></TR>';
}
function listMonths ( )
{
$startyear = 2000;
$today = getdate ();
while ($startyear <= $today['year'])
{
for ($month = $today['mon']+1 ; $month > 1 ; $month--)
{
echo '<P><A HREF="old_news.php?mon=' .
date ("m", mktime (0,0,0,$month,0,0,0)) .
'&yr=' .
date ("Y", mktime (0,0,0,0,0,$today['year']+1,0)). '">' .
date ("F, Y", mktime (0,0,0,$month,0,$today['year'],0)) .
'</A>';
}
$today['year']--;
}
}
?>