<head>
<?php 
$table_name = $_SESSION['db_prefix']."_time_record";
$count_query = "SELECT emp_id FROM $table_name WHERE date = '".$_SESSION['record_date']."' AND type='N' ";
$count_result = mySQL_query($count_query);
$count_num = mysql_num_rows($count_result);

?>


<script language="javascript" src="../jscript/calendar.js"></script>


<script language="JavaScript">
    function toggle(id) {
        var state = document.getElementById(id).style.display;
                document.getElementById(id).style.display = 'block';
				document.form1.sub_cat_group_0.checked=false;
           }
		
	function toggle2(id) {
        var state = document.getElementById(id).style.display;
               document.getElementById(id).style.display = 'none';
			   document.form1.sub_cat_group_0.checked=true;
           }
             
        
</script>


</head>

<body>
<div class="page_middle_frame">   
<form id="feedbackform" method="get" action="add_timeWizbase.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"><br>
<br>

              <table width="600" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="64"><img src="../images/Info.png" width="32" height="32"></td>
                  <td width="536"><label class="label_std">There are <?php echo $count_num ?> employees in the list for <?php echo date("l, d-m-Y", strtotime($_SESSION['record_date']))?>.
                    &nbsp;&nbsp; <br>
                    <br>
                    &nbsp;To begin entering time click <strong>Next</strong>.</label></td>
                  </tr>
              </table>
              
            <br /><br />
            </div></td>
            <!--center of tableMain-->
          </tr>
          <tr>
            <td><!--center of tableMain-->
            <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">
                    <input name="p" type="hidden" id="p" value="2" />
                    <input name="s" type="hidden" id="s" value="2" />
                  </td>
                  <td width="125" align="right"><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>
  </table>
  <!--end of tableMain-->
</form>
</div>
<!--form validation-->
  <script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  frmvalidator.EnableMsgsTogether();
  //frmvalidator.addValidation("gender_select","req","Please select gender.");
  
  </script>

	
    </body>