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

   // Meeting history
   //
   // Version: $Revision: 1.2 $
   // Date: $Date: 2008/06/20 01:22:08 $
   //
   // Copyright (c) 2006 Benjamin Oshrin
   // License restrictions apply, see LICENSE for details.

$auth_required = 1;
include "../lib/mrsbs.inc";
$pgtitle = $tx['sd.history.mtg'];
$pgtype = "schedule";

if(!authorize("schedule", "history", $rvar_mtgid))
  mexit($tx['op.err.perm'], 1);

$mtg = get_meeting_info($rvar_mtgid);

if(!$mtg)
  mexit($tx['op.err.nomtg'], 1);
?>
<HTML>
<HEAD>
<TITLE><?PHP print $pgtitle;?></TITLE>
</HEAD>

<BODY>
<TABLE CLASS="main">
 <?PHP include "../lib/titlebar.php";?>
  <TR>
   <TD CLASS="formheader">
    <?PHP print $tx['sd.history.mtg']; ?><BR>
    <FONT CLASS="note"><?PHP print $tx['sd.mtgid'] . " " . $mtg['mtgid']; ?>
    </FONT>
   </TD>
  </TR>
  <TR>
   <TD CLASS="main">
    <TABLE CLASS="form">
     <TR>
      <TD CLASS="infoheader"><?PHP print $tx['when'];?></TD>
      <TD CLASS="infoheader"><?PHP print $tx['who'];?></TD>
      <TD CLASS="infoheader" COLSPAN="2"><?PHP print $tx['what'];?></TD>
     </TR>
     <?PHP
      $hs = get_meeting_history($mtg['mtgid']);

      for($i = 0;$i < $hs['count'];$i++)
      {
	print '
     <TR>
      <TD CLASS="formfield">' . strftime('%c %Z', $hs[$i]['rtime']) . '</TD>
      <TD CLASS="formfield">' . render_name("compact",
					    $hs[$i]['contactgivenname'],
					    $hs[$i]['contactsn'],
					    $hs[$i]['contactmail']) . '</TD>
      <TD CLASS="formfield">' . $hs[$i]['action'] . '</TD>
      <TD CLASS="formfield">' . nl2br($hs[$i]['desc']) . '</TD>
     </TR>
        ';
      }
     ?>
    </TABLE>
   </TD>
  </TR>
</TABLE>
</BODY>
</HTML>
Return current item: Meeting Request Scheduling and Booking System