<!--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>
<?php
require_once('../include/tc_calendar.php');
$start = date("Y-m-01");
	$end = date("Y-m-31");
	
	$ds = date("d", strtotime($start) );
	$ms = date("m", strtotime($start) );
	$ys = date("Y", strtotime($start) );
	
	
	$de = date("d", strtotime($end) );
	$me = date("m", strtotime($end) );
	$ye = date("Y", strtotime($end) );	
?>

<script language="JavaScript" src="gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>  <!--form validation-->
<script language="javascript" src="../jscript/calendar.js"></script>


<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
<script type="text/javascript" src="../jscript/jquery.autocomplete.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
  $("#emp_text").autocomplete("employee_autocomplete.php", {
        selectFirst: true
  });
 });
</script>





</head>

<body  onload="<?php if ($_SESSION['first_choice'] == "employee") { ?> document.getElementById('customer').style.display = 'block'; <?php } else { ?> document.getElementById('customer').style.display = 'none'; <?php } 
if ($_SESSION['first_choice'] == "period") { ?> document.getElementById('period').style.display = 'block'; <?php } else { ?> document.getElementById('period').style.display = 'none'; <?php } ?>"  >
   
<form id="feedbackform" method="get" action="viewLeaveWizbase.php">
  <table id="tableMain" width="595">
    <!--begin of tableMain-->
    <tr>
      <td><!--center of tableMain-->
        <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
          <tr>
            <td width="525" valign="top" >
            <div class="wizard_frame" id="customer">
            <?php 
			if ($_SESSION['first_choice'] == "employee") { ?> <label class="label_std">Type the name for the employee. </label>
			<?php } ?>
            <input type="text" name="emp_text" id="emp_text" class="text200"   "this.value='';" onkeyup="ToUpper(this)"/>
            </div>
            
<br /><br /><br /><br /></td>
            <!--center of tableMain-->
          </tr>
          <tr>
            <td><!--center of tableMain-->
              <table width="675" height="50" align="center" id="table_button_bar">
                <tr>
                  <td width="117"><input type="submit" name="prev_button" id="prev_button" class="imagebutton" value="Prev" onClick=" needToConfirm = false; " /></td>
                  <td width="115">&nbsp;</td>
                  <td width="99">
                    <input name="p" type="hidden" id="p" value="2" />
                    <input name="s" type="hidden" id="s" value="2" />
                  </span></td>
                  <td width="125" align="right"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; confirmRefresh();" value="Cancel" /></td>
                  <td width="110" align="right"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; " /></td>
                </tr>
              </table></td>
          </tr>
        </table>
  </table>
  <!--end of tableMain-->
</form>
<!--form validation-->
  <script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("emp_text","req","Please enter the name of a contact person.");
  
  </script>

	
    </body>