<?php 
include('../Code/confHeader.inc');
$_SESSION[Me] -> goIfInvalid("../index.php");
$_SESSION[Me] -> goIfNotPC('../index.php');
$Conf -> connect();

?>

<html>

<?php  $Conf->header("Check on PC Reviewing Progress ") ?>

<?php 

print "<p> You can see this information ";
print $Conf->printTimeRange('PCMeetingView');
print "</p>";

if ( ! $Conf -> validTimeFor('PCMeetingView', 0) ) {
  $Conf->errorMsg("You can not see this information right now");
  exit();
}

$query = "SELECT ContactInfo.contactId FROM PCMember,ContactInfo "
  . " WHERE PCMember.contactId=ContactInfo.contactId "
  . " ORDER BY ContactInfo.lastName, ContactInfo.FirstName ";

$pcresult = $Conf -> qe($query);

if ( $pcresult ) {
  while ($row = $pcresult->fetchRow(DB_FETCHMODE_ASSOC)) {
    $pcId=$row['contactId'];

    if ( $_SESSION[Me] -> isChair ) {
      $extra = 
	"<center>" .
	$Conf->mkTextButtonPopup("Details",
				 "../Chair/CheckOnSinglePCProgress.php",
				 "<input type=hidden NAME=pcId value=$pcId>")
	. " </center>";
    }else {
      $extra="";
    }

    $Conf->reviewerSummary($pcId, 0, $extra);

    print "<br> <br>";
  }
}

?>

<body>


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


