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

   // Select other meeting time data
   //
   // Version: $Revision: 1.3 $
   // Date: $Date: 2006/09/05 01:21:31 $
   //
   // Copyright (c) 2006 Benjamin Oshrin
   // License restrictions apply, see LICENSE for details.

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

if(!authorize("schedule", "when", $rvar_mtgid))
  mexit($tx['op.err.perm'], 1);
$mtg = get_meeting_info($rvar_mtgid, 'begin');
if(!$mtg)
  mexit($tx['op.err.nomtg'], 1);

if(isset($rvar_next))
  $nexturi = $rvar_next;
else
  $nexturi = "where.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="when2" ACTION="schedule-op-handler.php" METHOD="post">
    <INPUT TYPE="hidden" NAME="op" VALUE="when2">
    <INPUT TYPE="hidden" NAME="mtgid" VALUE="<?PHP print hstr($rvar_mtgid);?>">
    <INPUT TYPE="hidden" NAME="return" VALUE="<?PHP print hstr($nexturi);?>">
    <TR>
     <TD CLASS="formheader">
      <?PHP print $tx['sd.mtgid'] . ' <A HREF="review.php?mtgid=' .
        hstr($rvar_mtgid) . '">' . hstr($rvar_mtgid) . "</A>";?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.time.duration'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.time.duration.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="hidden" NAME="curduration"
       VALUE="<?PHP print $mtg['duration'];?>">
      <INPUT TYPE="text" SIZE="4" MAXLENGTH="4" NAME="duration"
       VALUE="<?PHP print $mtg['duration'];?>">
      <SELECT NAME="durunits">
      <OPTION VALUE="m" SELECTED><?PHP print $tx['sd.mins'];?></OPTION>
      <OPTION VALUE="h"><?PHP print $tx['sd.hours'];?></OPTION>
      <OPTION VALUE="d"><?PHP print $tx['sd.days'];?></OPTION>
      </SELECT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formheader2">
      <?PHP print $tx['sd.time.replyby'];?><BR>
      <FONT CLASS="note"><?PHP print $tx['sd.time.replyby.desc'];?></FONT>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
     <INPUT TYPE="hidden" NAME="curreplyby"
      VALUE="<?PHP print $mtg['replyby'];?>">
     <?PHP
       if($mtg['replyby'] > 0)
	 $cal_time = getdate($mtg['replyby']);
       elseif($mtg['windows']['count'] > 0)
       {
	 // Set to 1 hour before first window

	 $cal_time = getdate($mtg['windows'][0]['begin'] - 3600);
       }
       else
	 $cal_time = getdate(time() + 172800);  // 2 days
	    
       $cal_suf = "r";
       include "../lib/calendar.php";
     ?>
     </TD>
    </TR>
    <TR>
     <TD CLASS="formfield2">
      <INPUT TYPE="hidden" NAME="curreplybym"
       VALUE="<?PHP print $mtg['replybymode'];?>">
      <INPUT TYPE="checkbox" NAME="replybym" <?PHP
	 if($mtg['replybymode'] == 'R') print 'CHECKED';  
      ?>>
      <FONT CLASS="small"><?PHP print $tx['sd.time.replyby.mode']; ?></FONT>
     </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