2022-04-27 16:59:31 +00:00
|
|
|
<?php
|
2007-03-18 04:34:44 +00:00
|
|
|
// local vars
|
2007-03-09 17:16:17 +00:00
|
|
|
$string = $_GET['string'];
|
|
|
|
$month = $_GET['month'];
|
|
|
|
$year = $_GET['year'];
|
|
|
|
|
2007-03-18 04:34:44 +00:00
|
|
|
function monthForm ($month, $year)
|
|
|
|
{
|
|
|
|
need ('feature');
|
|
|
|
|
|
|
|
// suppress warnings
|
|
|
|
@featureOpen ('Date Search');
|
|
|
|
?>
|
|
|
|
<FORM name="bymonth" method="get" action="<?=thisURL?>">
|
|
|
|
<P align="center">
|
|
|
|
<SELECT name="month">
|
2022-04-27 16:59:31 +00:00
|
|
|
<?php
|
2007-03-18 04:34:44 +00:00
|
|
|
for ( $i = 1 ; $i < 13 ; $i++ ) {
|
|
|
|
printf ("<OPTION%s>%02d</OPTION>", $i == $month ? " selected" : "", $i);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</SELECT><STRONG> / </STRONG><SELECT name="year">
|
2022-04-27 16:59:31 +00:00
|
|
|
<?php
|
2007-03-18 04:34:44 +00:00
|
|
|
if ($year == "")
|
|
|
|
$year = date ('Y');
|
|
|
|
for ($i = 2000; $i <= date ('Y'); $i++ ) {
|
|
|
|
if ($i == 2005 || $i == 2006)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
printf ("<OPTION%s>%04d</OPTION>", $i == $year ? " selected" : "", $i);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</SELECT>
|
|
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
<INPUT type="submit" value="Search">
|
|
|
|
</P>
|
2022-04-27 16:59:31 +00:00
|
|
|
</FORM><?php
|
2007-03-18 04:34:44 +00:00
|
|
|
featureClose ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function keywordForm ($string)
|
|
|
|
{
|
|
|
|
need ('feature');
|
|
|
|
|
|
|
|
// suppress warnings
|
|
|
|
@featureOpen ('Keyword Search');
|
|
|
|
?>
|
|
|
|
<FORM name="bystring" method="get" action="<?=thisURL?>">
|
|
|
|
<P align="center">
|
2022-04-27 16:59:31 +00:00
|
|
|
<?php
|
2007-03-18 04:34:44 +00:00
|
|
|
printf ('<INPUT name="string" type="text" size="16" value="%s">', $string);
|
|
|
|
?>
|
|
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
<INPUT TYPE="submit" VALUE="Search">
|
|
|
|
</P>
|
2022-04-27 16:59:31 +00:00
|
|
|
</FORM><?php
|
2007-03-18 04:34:44 +00:00
|
|
|
featureClose ();
|
|
|
|
}
|
|
|
|
|
2007-03-09 17:16:17 +00:00
|
|
|
monthForm ($month, $year);
|
|
|
|
keywordForm ($string);
|
|
|
|
?>
|