<?php
    require_once "php/user_class.php";
    session_start();
    require_once "php/ellenor.php";
  require_once "php/user_Json.php";
 
  require_once "php/jatek_Json.php";
  

    $T=[];
  if(isset($_POST['keres']) && !empty($_POST['keres'])){
    $T=jatek_keres($_POST['keres'],$jatek_json,false);
  }
?>
<!DOCTYPE html>
<html lang="hu">
    <head>
        <meta  charset="utf-8">
        <title>Játékok</title>
        <link href="css/ablak/cssjatek.css" rel="stylesheet" type="text/css">
        <link href="css/op/print.css" rel="stylesheet" type="text/css" media="print">
        <link rel="stylesheet" href="css/ablak/kereso.css">
         <link href="css/ablak/cssjatek.css" rel="stylesheet" type="text/css">
        <link rel="stylesheet" href="css/center.css">
        <link rel="shortcut icon" sizes="256x256" href="php/php/kep.php?id=0" >
    </head>
    <body>
        <form action="jatek.php" method="post" id="jatekok_keres" class="center">
            <input type="text" name="keres" id="keres">
           <input type="submit" id="keresb"   value="Keres">
        </form>
        
            <div class="jatekok_list" >
                <div class="list"> 
                    <?php
                        
                        if(empty($T)|| count($T)<=0 || $T==null)
                       {
                        jatekok_list($jatek_json );
                       }
                       else{
                        jatekok_list($T);
                       }
                        
                    ?>
                </div>
                <div class="list"> 
                    <?php
                        
                        if(empty($T)|| count($T)<=0 || $T==null)
                        {
                         jatekok_list($jatek_json );
                        }
                        else{
                         jatekok_list($T );
                        }
                    ?>
                </div>
            </div>
        
        
        

        
      
    </body>
</html>