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

   // Select from multiple person matches
   //
   // Version: $Revision: 1.1 $
   // Date: $Date: 2006/08/07 02:52:36 $
   //
   // Copyright (c) 2006 Benjamin Oshrin
   // License restrictions apply, see LICENSE for details.

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

if(!authorize("schedule", "who", $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="main">
   <TABLE CLASS="form">
    <FORM NAME="whonew" ACTION="schedule-op-handler.php" METHOD="post">
    <INPUT TYPE="hidden" NAME="op" VALUE="whonew">
    <INPUT TYPE="hidden" NAME="mtgid" VALUE="<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="return" VALUE="who.php?mtgid=<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="mreturn" VALUE="who-multiple.php?mtgid=<?PHP print hstr($rvar_mtgid);?>">    <TR>
     <TD CLASS="formheader">
      <?PHP print $tx['op.invitee.select'];?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.invitees'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.invitees.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <SELECT NAME="invitee">
      <?PHP
        for($i = 0;$i < count($rvar_candidate);$i++) {
          print '<OPTION VALUE="' . hstr($rvar_candidate[$i]) . '">' .
	    hstr($rvar_name[$i]) . "</OPTION>\n";
	}
      ?>
      </SELECT>
      <SELECT NAME="status">
      <OPTION VALUE="R"<?PHP if($rvar_status=='R') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.req'];?></OPTION>
      <OPTION VALUE="O"<?PHP if($rvar_status=='O') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.opt'];?></OPTION>
      <OPTION VALUE="N"<?PHP if($rvar_status=='N') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.non'];?></OPTION>
      </SELECT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="submit" VALUE="<?PHP print $tx['op.select'];?>">
     </TD>
    </TR>
    </FORM>
    <FORM NAME="whonew" ACTION="schedule-op-handler.php" METHOD="post">
    <INPUT TYPE="hidden" NAME="op" VALUE="whonew">
    <INPUT TYPE="hidden" NAME="mtgid" VALUE="<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="return" VALUE="who.php?mtgid=<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="mreturn" VALUE="who-multiple.php?mtgid=<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="nreturn" VALUE="../admin/contact.php?contactid=new&mtgid=<?PHP print hstr($rvar_mtgid);?>">
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.invitees.new'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.invitees.new.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="text" SIZE="70" MAXLENGTH="80" NAME="invitee">
      <SELECT NAME="status">
      <OPTION VALUE="R"<?PHP if($rvar_status=='R') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.req'];?></OPTION>
      <OPTION VALUE="O"<?PHP if($rvar_status=='O') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.opt'];?></OPTION>
      <OPTION VALUE="N"<?PHP if($rvar_status=='N') print ' SELECTED';?>>
       <?PHP print $tx['sd.invitees.non'];?></OPTION>
      </SELECT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="submit" VALUE="<?PHP print $tx['op.add'];?>">
     </TD>
    </TR>
    </FORM>
    <TR>
     <FORM NAME="whocancel" ACTION="who.php" METHOD="get">
     <INPUT TYPE="hidden" NAME="mtgid" VALUE="<?PHP print hstr($rvar_mtgid);?>">
     <TD CLASS="formfield2">
      <INPUT TYPE="submit" VALUE="<?PHP print $tx['op.cancel'];?>">
     </TD>
     </FORM>
    </TR>
   </TABLE>
  </TD>
 </TR>
</TABLE>
</BODY>
</HTML>
Return current item: Meeting Request Scheduling and Booking System