1<?php
2include('../Code/confHeader.inc');
3$_SESSION[Me] -> goIfInvalid($Conf->paperSite);
4$_SESSION[Me] -> goIfNotPC($Conf->paperSite);
5$Conf -> connect();
6$Conf -> goIfInvalidActivity("EndOfTheMeeting", $Conf->paperSite);
7?>
8
9<html>
10
11<?php  $Conf->header("See Accepted Papers") ?>
12
13<body>
14<?php
15  $result=$Conf->qe("SELECT Paper.paperId, Paper.title, "
16		    . " Paper.acknowledged, Paper.withdrawn "
17		    . " FROM Paper "
18		    . " WHERE (outcome='accepted' OR outcome='acceptedShort')"
19		    . " ORDER BY paperId"
20		    );
21
22  if (DB::isError($result)) {
23    $Conf->errorMsg("Error in retrieving paper list " . $result->getMessage());
24  } else {
25    print "<table align=center width=75% border=1>\n";
26    print "<tr> ";
27    print "<th align=center> # </th> ";
28    print "<th align=center> Paper # </th> <th align=cetner > Title </th> </tr>\n";
29    $i = 1;
30    while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
31      if ( !$row['withdrawn']) {
32	$paperId=$row['paperId'];
33	$title=$row['title'];
34	print "<tr> ";
35	print "<td align=right> $i &nbsp;</td> ";
36	print "<td align=right> $paperId </td> ";
37	print "<td>";
38
39	if( $_SESSION['Me']->isChair ){
40	  $Conf->linkWithPaperId($title,
41				 "PCAllAnonReviewsForPaper.php",
42				 $paperId);
43	} else {
44	  print $Conf->safeHtml($title);
45	}
46
47	print "</td>";
48	print "</tr>";
49	$i++;
50      }
51    }
52    print "</table>\n";
53  }
54 ?>
55
56</body>
57<?php  $Conf->footer() ?>
58</html>
59
60