<?php
// $Id: index.php,v 1.7 2007/06/12 17:34:07 koczan Exp $	

include("/s/www/html/includes/dept.head.html");
print "<title>Computer Science Technical Reports</title>\n";
include("/s/www/html/includes/dept.headfinish.html");
include("/s/www/html/includes/dept.sidebar.html");
?>

<p>
<h1>Technical Reports</h1>

To submit a CS Department Technical Report, please use the
<a href=https://www-auth.cs.wisc.edu/forms/submit_tech_report.cgi>Tech&nbsp;Report&nbsp;Submission&nbsp;Form</a>.
<br>
<br>
<h2>View CS Technical Reports by author or title</h2>
 
<form action=search.php method=GET>
<p>
View by:
<input type=radio name=searchby value=author CHECKED>Author
<input type=radio name=searchby value=title>Title
<p>
Enter author name(s) or title word(s): <input type=entry name=terms>
<p>
View reports that match<br>
<input type=radio name=searchtype value=any CHECKED>any 
<input type=radio name=searchtype value=all>all
of the specified names or words.
<p>
<input type=submit name=submit value="View List">
</form>
<br><br>

<h2>View CS Technical Reports for a given year</h2>
<p>
<form method=GET action=viewyear.php>
<p>Year: 
  <select name=year>
    <?php
    $end = 1966;
    $time = getdate();
    $i = $time['year'];
    while ($i >= $end) {
      print     "<option value=$i>$i</option>\n";
      $i--;
    }
    ?>
  </select>
<input type=submit value="View Year">
</form>

<p>
Or, select the year of interest from the following list:

<p>
<table noborder>
<tr>
<?php
  $end = 1966;
  $time = getdate();
  $now = $time['year'];

  for ($k = 9 - $now % 10; $k > 0; $k--){  // blanks in first row
      print "<td>&nbsp;</td>";
  }

  // list each year
  for ($k = $now; $k >= $end; $k--) { 

      print "<td>&nbsp;<a href=viewyear.php?year=$k>$k</a>&nbsp;</td>";

      if ($k % 10 == 0){
         print "</tr>\n<tr>";  // start new row at end of decade
      }
  }
?>
</tr></table>
<?php
include("/s/www/html/includes/dept.end.html");
?>
