<?php
$PageSecurity = 11;
 //echo $_SERVER['QUERY_STRING'];exit;
 include('includes/SQL_CommonFunctions.inc');
 include('includes/function_lib.php');
 include('includes/session.inc');
 global $db;

if($_REQUEST['cntr']!="")
{
     $data1='<table width="50%" border="1" align="center" cellpadding="3" cellspacing="0"><tr><td>From date</td><td>From Time</td><td>To date</td><td>To Time</td></tr>';
     $i=0;
     for($i=0;$i<$_REQUEST['cntr'];$i++)
     {
         
         $data1.='<tr><td class="tabledata1"><input type="text" class="datetimepicker2" name="from_date['.$_REQUEST['id'].'][]"  id="from_date_'.$_REQUEST['id'].'_'.$i.'">  </td> <td class="tabledata1"><input type="text" name="from_time['.$_REQUEST['id'].'][]" class="datetimepicker1" id="from_time_'.$_REQUEST['id'].'_'.$i.'"> </td><td class="tabledata1"><input type="text" name="to_date['.$_REQUEST['id'].'][]" class="datetimepicker2" id="to_date_'.$_REQUEST['id'].'_'.$i.'"> </td><td class="tabledata1"><input type="text" class="datetimepicker1" name="to_time['.$_REQUEST['id'].'][]" id="to_time_'.$_REQUEST['id'].'_'.$i.'"> </td>';   
$data1.='</tr>';
      }   
      $data1.='</table>' ;
      
      $data2='<table width="50%" border="1" align="center" cellpadding="3" cellspacing="0"><tr><td>From date</td><td>From Time</td><td>To date</td><td>To Time</td></tr>';
     $i=0;
     for($i=0;$i<$_REQUEST['cntr'];$i++)
     {
         
         $data2.='<tr><td class="tabledata1"><input type="text" class="datetimepicker2" name="from_app_date['.$_REQUEST['id'].'][]"  id="from_app_date_'.$_REQUEST['id'].'_'.$i.'">  </td> <td class="tabledata1"><input type="text" name="from_app_time['.$_REQUEST['id'].'][]" class="datetimepicker1" id="from_app_time_'.$_REQUEST['id'].'_'.$i.'"> </td><td class="tabledata1"><input type="text" name="to_app_date['.$_REQUEST['id'].'][]" class="datetimepicker2" id="to_app_date_'.$_REQUEST['id'].'_'.$i.'"> </td><td class="tabledata1"><input type="text" class="datetimepicker1" name="to_app_time['.$_REQUEST['id'].'][]" id="to_app_time_'.$_REQUEST['id'].'_'.$i.'"> </td>';   
$data1.='</tr>';
      }   
      $data2.='</table>' ;
}
echo $data1."***".$data2;
?>
