<!--Notice: (c)2013 This page is part of the management program for Tlhomeso Timbers, Gaborone, 
and developed by Customized Software (Pty) Ltd, Gaborone, Botswana. 
Customized Software holds the copyright on the source code on this and all other pages in the 
management program. For more info contact Customized Software on email: info@bwcustomized.com-->

<head>
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<script language="javascript" src="../jscript/calendar.js"></script>
</head>
<body>
<?php
require_once('../include/tc_calendar.php');
$record_date = strtotime($_SESSION['record_date']);

$d = date("d", $record_date ) ;
$m = date("m", $record_date ) ;
$y = date("Y", $record_date ) ;

?>

<div class="wizard_page_middle_frame">
<form id="form1" name="form1" method="get" action="timeRecordingWizbase.php">
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" height="249" valign="top" >
      <?php
       if ($_SESSION['error']==1) {
		   ?>
           <div class="wizard_frame">
           <table width="600" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td><img src="../images/error.png" width="30" height="30"></td>
               <td><label class="label_std">The date is invalid, enter a new date.</label>
               </td>
             </tr>
           </table>
           </div>
           <?php } ?>
      <?php
       if ($_SESSION['error']==2) {
		   ?>
           <div class="wizard_frame">
           <table width="600" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td><img src="../images/error.png" width="30" height="30"></td>
               <td><label class="label_std">The date cannot be today or later.</label>
               </td>
             </tr>
           </table>
           </div>
           <?php } ?>     
      <br>
      <div class="wizard_frame">
          <br>
       <table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="220"><label class="label_std">Select date for the postponed entry: </label></td>
    <td width="380"><?php
		$myCalendar = new tc_calendar("date1", true);
		$myCalendar->setIcon("iconCalendar.gif");
		$myCalendar->setDate($d, $m, $y);
		$myCalendar->setPath("./");
		$myCalendar->setYearInterval(2014, 2090);
	 	$myCalendar->writeScript();?></td>
  </tr>
</table><br>

</div></td>
    </tr>
    <tr>
      <td>
      <div class="wizard_frame"><table width="645" height="50" align="center" id="table_button_bar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115">&nbsp;</td>
            <td width="99"><span class="wizard">
              <input name="p" type="hidden" id="p" value="2" />
              <input name="error" type="hidden" id="error" value="0" />
              <input name="s" type="hidden" id="s" value="2" />
            </span></td>
            <td width="125"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../hr_module/hr_main.php?date=0');" value="Cancel" /></td>
            <td width="110" align="right"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; " /></td>
          </tr>
        </table>
        </div></td>
    </tr>
  </table>
 </form>
<!--form validation-->
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("first_choice","selone","Please make a selection.");
  
  </script>
</div>
</body>