Location: PHPKode > projects > Meeting Request Scheduling and Booking System > mrsbs/php/reply/status.php
<?PHP

   // View invitee status
   //
   // Version: $Revision: 1.1 $
   // Date: $Date: 2006/08/07 03:10:55 $
   //
   // Copyright (c) 2006 Benjamin Oshrin
   // License restrictions apply, see LICENSE for details.

$auth_required = 0;
include "../lib/mrsbs.inc";
$pgtitle = $tx['rp.current'];
$pgtype = "reply";

// We don't call authorize since the inviteid is effectively an
// implied authorization, and anyway we need it to get the mtgid.

// We also don't treat the user as "logged in" since it would then
// be easier to spoof someone for schedule/* (ie: all you'd need is
// an email copy of an invite).

$inv = get_invite_info($rvar_inviteid);
if(!$inv)
  mexit($tx['op.err.noinv'], 1);
?>
<HTML>
<HEAD>
<TITLE><?PHP print $pgtitle;?></TITLE>
</HEAD>

<BODY>
<TABLE CLASS="main">
 <?PHP include "../lib/titlebar.php";?>
 <TR>
  <TD CLASS="main">
   <TABLE CLASS="form">
    <TR>
     <TD CLASS="formheader">
      <?PHP print $tx['sd.summary'];?><BR>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield">
      <?PHP print $inv['mtg']['summary'];?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader">
      <?PHP print $tx['sd.desc'];?><BR>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield">
      <?PHP print $inv['mtg']['description'];?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['rp.current'];?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <TABLE>
       <TR>
        <TH CLASS="timebar">
         <?PHP print $tx['sd.invitee']; ?>
        </TH>
        <TH CLASS="timebar">
         <?PHP print $tx['sd.status']; ?>
        </TH>
       </TR>

       <?PHP
        for($i = 0;$i < $inv['mtg']['invitees']['count'];$i++)
        {
	  $s = $tx['sd.status.noreply'];
	  $c = "";

	  switch($inv['mtg']['invitees'][$i]['reply'])
	  {
	  case 'A':
	    $s = $tx['sd.status.attend'];
	    $c = "a";
	    break;
	  case 'D':
	    $s = $tx['sd.status.noattend'];
	    $c = "na";
	    break;
	  }
	 
	  print '
       <TR>
        <TD CLASS="formfield2">
         ' . render_name("compact",
	 	         $inv['mtg']['invitees'][$i]['givenname'],
		         $inv['mtg']['invitees'][$i]['sn'],
		         $inv['mtg']['invitees'][$i]['mail']) . '
        </TD>
        <TD CLASS="timebar' . $c . '">
         ' . $s . '
        </TD>
       </TR>
         ';
        }
       ?>
      </TABLE>
     </TD>
    </TR>
   </TABLE>
     
   <UL>
   <LI><A HREF="reply.php?inviteid=<?PHP print hstr($rvar_inviteid);?>"><?PHP print $tx['rp.review'];?></A></LI>
   </UL>

  </TD>
 </TR>
</TABLE>
</BODY>
</HTML>
Return current item: Meeting Request Scheduling and Booking System