<?php
     require_once "user_class.php";
     session_start();
     require_once "user_Json.php";
   
   
    require_once "kep_metod.php";
 
    $_SESSION['pkepIH']=true;
?>
<!DOCTYPE HTML >
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
   <title>Profil</title>
   <link href="../css/ablak/cssjatek.css" rel="stylesheet" type="text/css" >
   <link href="../css/ablak/css2profil.css" rel="stylesheet" type="text/css" >
      <style>
        body{
          overflow-y:auto;
        }
      </style>
  </head>
  <body >
  <form action='pkep_csere.php' method='post'>
    <?php
    
   
        foreach(pkepek($kep_json,$_SESSION['user']->get_id(),$_SESSION['user']->get_rang()) as $j){
                $img="<img src='kep.php?id=".$j."' width='100px' height='100px'  >"; 
                       print "<button class='pkep' name='imgid' value='".$j."'   >".$img."</button>";
          }         
?>  
</form>

 <p>
<form action="uj_kep.php" method="post" enctype="multipart/form-data">

  <input type="file" name="fileToUpload" id="fileToUpload"><br>
  <input type="text" name="pkepIH" value="<?php echo true;?>" style="display:none;">
  <input type="submit" value="Kép feltöltés!" name="submit" class="neon_button">
</form>
<br>
  </p>
    <a href="../profil.php" class="neon_button" >vissza</a>
</body>
</html>