<?
include('../Code/confHeader.inc');
$Me -> goIfInvalid($Conf->paperSite);
$Me -> goIfNotPC($Conf->paperSite);
$Conf -> connect();
?>

<html>

<? $Conf->header("See Accepted Papers") ?>

<body>
<?
  $result=$Conf->qe("SELECT Paper.paperId, Paper.title, "
		    . " Paper.acknowledged, Paper.withdrawn "
		    . " FROM Paper "
		    . " WHERE (outcome='accepted' OR outcome='acceptedShort')"
		    . " ORDER BY paperId"
		    );

  if (DB::isError($result)) {
    $Conf->errorMsg("Error in retrieving paper list " . $result->getMessage());
  } else {
    print "<table align=center width=75% border=1>\n";
    print "<tr> ";
    print "<th align=center> # </th> ";
    print "<th align=center> Paper # </th> <th align=cetner > Title </th> </tr>\n";
    $i = 1;
    while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
      if ( !$row['withdrawn']) {
	$paperId=$row['paperId'];
	$title=$row['title'];
	print "<tr> ";
	print "<td align=right> $i &nbsp;</td> ";
	print "<td align=right> $paperId </td> ";
	print "<td> <a href=\"PCAllAnonReviewsForPaper.php?paperId=$paperId\" target=_blank> $title </a> </td>";
	print "</tr>";
	$i++;
      }
    }
    print "</table>\n";
  }
 ?>

</body>
<? $Conf->footer() ?>
</html>

