*
*/
require_once('../../src/base.inc.php');
require_once('../src/header.inc.php');
echo "
Moderation Schedule
";
// List out moderators in order with next moderation week
$ui = new ModerationSchedule();
$ui->query();
echo ""
. "Name"
. " Email"
. " Next Week"
. "
";
for ($i = 0; $i < $ui->getNumberOfModerators(); $i++, $ui->next()) {
$user = $ui->current();
printf(""
. "
%s %s"
. "
%s"
. "
%s ",
$user->getName(),
$ui->isException() ? '*' : '',
$user->getEmail(), $user->getEmail(),
date('F j', $ui->key())
);
}
echo "Exceptions
";
echo "New Exception
";
// List out exceptions in order.
$exceptions = new ModerationExceptions();
$exceptions->query();
echo ""
. "Name"
. "Substitute"
. " Week"
. "
";
while ($exceptions->valid()) {
$user = $exceptions->getUser();
$substitute = $exceptions->getSubstitute();
$remove = "";
if ($_SESSION['currentUser']->getId() == $user->getId()) {
$remove = "getId() ."&time=". $exceptions->key() ."\">remove";
}
printf(""
. "%s"
. "%s"
. " %s"
. " %s
",
$user->getName(),
$substitute->getName(),
date('F j', $exceptions->key()),
$remove
);
$exceptions->next();
}
require_once('../src/footer.inc.php');
?>