<? include('lock.php');?> 
<? include('config.php');?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ΟΑΕΔ</title>
<STYLE TYPE="text/css">
	<!--
		@page { size: landscape; margin-right: 0.41in; margin-top: 0.49in; margin-bottom: 0.49in }
		
	-->
	</STYLE>
<style>

  @media screen {
    div#footer_wrapper {
      display: none;
    }
  }

  @media print {
    tfoot { visibility: hidden; }

    div#footer_wrapper {
      margin: 0px 2px 0px 7px;
      position: fixed;
      bottom: 0;
    }

    div#footer_content {
      font-weight: bold;
    }
  }

</style>
<style  media='print'>
#prnBtn {display : none}
#bck {display : none}
#related_links { display: none }
</style>
<p align="center"><input type="button" id='prnBtn' value="εκτύπωση" onClick="window.print()"></p>
<style type="text/css">
<!--
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #000;
}
.style2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #333;
}


.style7 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #E5E5E5;
}
.style8 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: bold;
	color: #333;
}
.style4 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }
a:link {
	color: #990000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #990000;
}
a:hover {
	text-decoration: none;
	color: #990000;
}
a:active {
	text-decoration: none;
	color: #990000;
}


-->
</style>

</head>

<body>




<table width="1150" cellpadding="2" cellspacing="0" border="1" align="center">
<THEAD>
<tr class="style8">
      <th width="15" colspan="9" align="center">
	  <p align="center"><img src="images/oaed.png" width="86" height="48" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ΠΡΟΓΡΑΜΜΑ ΕΠΙΔΟΤΗΣΗΣ ΔΙΑΚΟΠΩΝ ΕΡΓΑΖΟΜΕΝΩΝ, ΑΝΕΡΓΩΝ &amp; ΤΩΝ ΟΙΚΟΓΕΝΕΙΩΝ ΑΥΤΩΝ ΜΕ ΕΠΙΤΑΓΗ ΚΟΙΝΩΝΙΚΟΥ ΤΟΥΡΙΣΜΟΥ ΕΤΟΥΣ	2020 - 2021</p>
        <p align="center">ΟΝΟΜΑΣΤΙΚΗ KΑΤΑΣΤΑΣΗ &Delta;ΙΚΑΙΟΥΧΩΝ/ΩΦΕΛΟΥΜΕΝΩΝ</p>
      </th>
    </tr>    
    
    
<tr class="style2" bgcolor="#fbfbd3">
      <th width="15"  align="center">Α/Α </th>
      <th width="230" align="center">ΟΝΟΜΑΤΕΠΩΝΥΜΟ</th>
      <th width="70"  align="center">ΑΦΜ</th>
      <th width="70"  align="center">ΑΜΚΑ</th>
      <th width="230" align="center">ΑΡΙΘΜΟΣ ΕΠΙΤΑΓΗΣ</th>      
      <th width="80"  align="center">ΗΜΕΡΟΜΗΝΙΑ ΑΦΙΞΗΣ</th>
      <th width="80"  align="center">ΗΜΕΡΟΜΗΝΙΑ ΑΝΑΧΩΡΗΣΗΣ</th>
      <th width="150"  align="center">ΑΡΙΘΜΟΣ / ΚΑΤΗΓΟΡΙΑ ΔΩΜΑΤΙΟΥ</th>
      <th width="50"  align="center">ΠΑΡΑΤΗΡΗΣΕΙΣ</th>
</tr>     
</THEAD>

<TBODY>
<? 
  
  $counter="1";
  $us=$row['id'];
  $datapr = mysql_query("SELECT * FROM `oaed_thea` where `periodos`='c' ORDER BY `date_in` ASC, `ar_symb` ASC, `id` ASC ") 
      or die(mysql_error()); 
	     
      while($rowtt = mysql_fetch_array( $datapr )) 
 {
 
  $datein=date('d/m/Y',  strtotime($rowtt['date_in'])); 
  $dateout=date('d/m/Y',  strtotime($rowtt['date_out'])); 
 
 ?>
    
     <? echo '<tr class="style1" >';?>
    
      <td align="center"><?php echo $counter++  ;?></td>
      <td align="left"><?php echo $rowtt['name'];?></td>
       <td align="center"><?php echo $rowtt['afm'];?></td>
       <td align="center"><?php echo $rowtt['amka'];?></td>
       <td align="center"><?php echo $rowtt['epitagi'];?></td>
       <td align="center"><?php echo $datein;?></td>
      <td align="center"><?php echo $dateout;?></td>      
       <td align="center"><?php echo $rowtt['room'];?> / &nbsp;<?php echo $rowtt['plithos_dom'];?><? if ($rowtt['typos_domatio']=="1") echo ' ΜΟΝΟΚΛΙΝΟ';
                                                            if ($rowtt['typos_domatio']=="2") echo '-ΔΙΚΛΙΝΟ(A) ';  if ($rowtt['typos_domatio']=="3") echo '-ΔΙΚΛ+ΚΛΙΝΗ ';
						    	 ?></td>
     
  
       <td align="center"><?php echo $rowtt['idiotita_ex'];?>
                       
                       -  <?php echo $rowtt['sxolia'];?></td> 
      
      
     
     <?	 }  ?>
    
  </tbody>
</TBODY>


</TABLE>

</body>
</html>