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

   // Set meeting description
   //
   // Version: $Revision: 1.4 $
   // Date: $Date: 2007/09/17 03:06:53 $
   //
   // Copyright (c) 2006 - 2007 Benjamin Oshrin
   // License restrictions apply, see LICENSE for details.

$auth_required = 1;
include "../lib/mrsbs.inc";
$pgtitle = $tx['what.edit'];
$pgtype = "schedule";

if($rvar_mtgid == "new")  // A new request can come straight here wo/a mtgid
{
  $op = "begin";
  $mtgid = -1;
}
else
{
  $op = "what";
  $mtgid = $rvar_mtgid;
}

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

if($rvar_mtgid != "new")
{
  $mtg = get_meeting_info($rvar_mtgid);
  if(!$mtg)
    mexit($tx['op.err.nomtg'], 1);
}

if(isset($rvar_next))
  $nexturi = $rvar_next;
else
  $nexturi = "who.php?mtgid=" . $rvar_mtgid;
?>
<HTML>
<HEAD>
<TITLE><?PHP print $pgtitle;?></TITLE>
</HEAD>

<BODY>
<TABLE CLASS="main">
 <?PHP include "../lib/titlebar.php";?>
 <TR>
  <TD CLASS="main">
   <TABLE CLASS="form">
    <FORM NAME="what" ACTION="schedule-op-handler.php" METHOD="post">
    <INPUT TYPE="hidden" NAME="op" VALUE="what">
    <INPUT TYPE="hidden" NAME="mtgid" VALUE="<?PHP print hstr($mtgid);?>">
    <INPUT TYPE="hidden" NAME="return" VALUE="<?PHP print hstr($nexturi);?>">
    <TR>
     <TD CLASS="formheader">
      <?PHP
        print $tx['sd.mtgid'] . ' ' .
        (($rvar_mtgid != 'new') ?
	'<A HREF="review.php?mtgid=' . hstr($rvar_mtgid) . '">' : "") .
        hstr($rvar_mtgid) .
        (($rvar_mtgid != 'new') ? '</A>' : '');
      ?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.summary'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.summary.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="text" SIZE="70" MAXLENGTH="80" NAME="summary" VALUE="<?PHP print $mtg['summary'];?>">
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.desc'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.desc.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <TEXTAREA NAME="description" ROWS=4 COLS=70><?PHP print $mtg['description'];?></TEXTAREA>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="submit" VALUE="<?PHP print $tx['op.continue'];?>">
     </TD>
    </TR>
    </FORM>
   </TABLE>
  </TD>
 </TR>
</TABLE>
</BODY>
</HTML>
Return current item: Meeting Request Scheduling and Booking System