IT rekvalifikace s garancí práce. Seniorní programátoři vydělávají až 160 000 Kč/měsíc a rekvalifikace je prvním krokem. Zjisti, jak na to!
Hledáme nové posily do ITnetwork týmu. Podívej se na volné pozice a přidej se do nejagilnější firmy na trhu - Více informací.

generovani

generovani HTML

php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Přihlášení</title>
  </head>
  <body>
<?php
if (isset($_POST['menu']) AND !empty($_POST['menu'])) {
  $menu = $_POST['menu'];
} else {
  $menu = null;
}

if (isset($_POST['menuen']) AND !empty($_POST['menuen'])) {
  $menuen = $_POST['menuen'];
} else {
  $menuen = null;
}

if (isset($_POST['menude']) AND !empty($_POST['menude'])) {
  $menude = $_POST['menude'];
} else {
  $menude = null;
}







$soubor = fopen("./odkazy.txt", "a+");
if (!$soubor) {
  die("Soubor se nepodařilo otevřít (1).");
}
fwrite($soubor, '<a href="'. $menu .'.php"><button> '. $menu .'</button> </a>');
fclose($soubor);

$souborEN = fopen("./odkazyEN.txt", "a+");
if (!$souborEN) {
  die("Soubor se nepodařilo otevřít (1).");
}
fwrite($souborEN, '<a href="'. $menu .'EN.php"><button> '. $menuen .'</button> </a>');
fclose($souborEN);

$souborDE = fopen("./odkazyDE.txt", "a+");
if (!$souborDE) {
  die("Soubor se nepodařilo otevřít (1).");
}
fwrite($souborDE, '<a href="'. $menu .'DE.php"><button> '. $menude.'</button> </a>');
fclose($souborDE);














$soubor = fopen("./$menu.php", "a+");
if (!$soubor) {
  die("Soubor se nepodařilo otevřít (2).");
}
fwrite($soubor,'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="pokus/css/style1.css" />
    <link rel="stylesheet" href="PC-CSS.css">
    <title>Proč tady nic není?</title>
  </head>
  <body>
    <div id="pozadi">             <!-- blok se stankou -->
    <div id="body"></div>
    <div id="menu">        <!-- menu stranky  -->
    <!-- <ul><li><a>Default Button</a></li></ul> -->


<?php include ("./odkazy.txt"); ?>

         <a class="odkazy" href="');
         
         
         fwrite($soubor,"$menu");

fwrite($soubor,'EN.php" ');
fwrite($soubor,'         
         
         
         
         title="Statistiky">   
    <img src="britanie.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
     <a class="odkazy" href="https://www.facebook.com/pages/Sorrento/132946286776751?fref=ts" title="Statistiky">
    <img src="fb.svg" width="5%" height="20%" alt="NAVRCHOLU.cz" /></a>
    
    <a class="odkazy" href="');
    
             fwrite($soubor,"$menu");

fwrite($soubor,'.php" ');
fwrite($soubor,'   
   
    title="Statistiky">
    <img src="cesko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
    
    <a class="odkazy" href="');
             fwrite($soubor,"$menu");

fwrite($soubor,'DE.php" ');
fwrite($soubor,'   
    title="Statistiky">
    <img src="nemecko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
   
 


    
      </div>
      <div id="hlavicka">
        <div class="css-slideshow">
          <figure><img src="images\1.jpg" /></figure>
          <figure><img src="images\2.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\4.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
          <figure><img src="images\6.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
        </div>
        <!--<img src="sorrento.jpg" width="100%"> -->
      </div>     <!-- hlavička stránky -->
      <div id="obsaho"></div>      
      <div id="obsah">                        <!-- obsah stránky -->
      

<?php echo file_get_contents("./');


fwrite($soubor,"$menu");

fwrite($soubor,'.txt"); ?>


      </div>
      <div id="patka">Copyright 2014, &copy; Něco \\ tam dám</div>
    </div>
  </body>
</html>
');






$souborEN = fopen("./${menu}EN.php", "a+");
if (!$souborEN) {
  die("Soubor se nepodařilo otevřít (2).");
}
fwrite($souborEN,'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="pokus/css/style1.css" />
    <link rel="stylesheet" href="PC-CSS.css">
    <title>Proč tady nic není?</title>
  </head>
  <body>
    <div id="pozadi">             <!-- blok se stankou -->
    <div id="body"></div>
    <div id="menu">        <!-- menu stranky  -->
    <!-- <ul><li><a>Default Button</a></li></ul> -->


<?php include ("./odkazyEN.txt"); ?>

   
         <a class="odkazy" href="');
         
         
         fwrite($soubor,"$menu");

fwrite($souborEN,'EN.php" ');
fwrite($souborEN,'         
         
         
         
       title="Statistiky">   
    <img src="britanie.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
     <a class="odkazy" href="https://www.facebook.com/pages/Sorrento/132946286776751?fref=ts" title="Statistiky">
    <img src="fb.svg" width="5%" height="20%" alt="NAVRCHOLU.cz" /></a>
    
    <a class="odkazy" href="');
    
             fwrite($soubor,"$menu");

fwrite($souborEN,'.php" ');
fwrite($souborEN,'   
   
    title="Statistiky">
    <img src="cesko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
    
    <a class="odkazy" href="');
             fwrite($soubor,"$menu");

fwrite($souborEN,'DE.php" ');
fwrite($souborEN,'   
    title="Statistiky">
    <img src="nemecko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
   
 

    
      </div>
      <div id="hlavicka">
        <div class="css-slideshow">
          <figure><img src="images\1.jpg" /></figure>
          <figure><img src="images\2.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\4.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
          <figure><img src="images\6.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
        </div>
        <!--<img src="sorrento.jpg" width="100%"> -->
      </div>     <!-- hlavička stránky -->
      <div id="obsaho"></div>      
      <div id="obsah">                        <!-- obsah stránky -->
      


<?php echo file_get_contents("./');

fwrite($souborEN,"${menu}EN");

fwrite($souborEN,'.txt"); ?>


      </div>
      <div id="patka">Copyright 2014, &copy; Něco \\ tam dám</div>
    </div>
  </body>
</html>'

    );
    
    
    
    
    
$souborDE = fopen("./${menu}DE.php", "a+");
if (!$souborDE) {
  die("Soubor se nepodařilo otevřít (2).");
}
fwrite($souborDE,'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="pokus/css/style1.css" />
    <link rel="stylesheet" href="PC-CSS.css">
    <title>Proč tady nic není?</title>
  </head>
  <body>
    <div id="pozadi">             <!-- blok se stankou -->
    <div id="body"></div>
    <div id="menu">        <!-- menu stranky  -->
    <!-- <ul><li><a>Default Button</a></li></ul> -->


 

<?php include ("./odkazyDE.txt"); ?>

  
         <a class="odkazy" href="');
         
         
         fwrite($soubor,"$menu");

fwrite($souborDE,'EN.php" ');
fwrite($souborDE,'         
         
         
         
    title="Statistiky">   
    <img src="britanie.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
     <a class="odkazy" href="https://www.facebook.com/pages/Sorrento/132946286776751?fref=ts" title="Statistiky">
    <img src="fb.svg" width="5%" height="20%" alt="NAVRCHOLU.cz" /></a>
    
    <a class="odkazy" href="');
    
             fwrite($soubor,"$menu");

fwrite($souborDE,'.php" ');
fwrite($souborDE,'   
   
    title="Statistiky">
    <img src="cesko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
    
    
    <a class="odkazy" href="');
             fwrite($soubor,"$menu");

fwrite($souborDE,'DE.php" ');
fwrite($souborDE,'   
    title="Statistiky">
    <img src="nemecko.svg" width="5%" height="20%" alt="NAVRCHOLU.cz"/></a>
   
 

    
      </div>
      <div id="hlavicka">
        <div class="css-slideshow">
          <figure><img src="images\1.jpg" /></figure>
          <figure><img src="images\2.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\4.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
          <figure><img src="images\6.jpg" /></figure>
          <figure><img src="images\3.jpg" /></figure>
          <figure><img src="images\5.jpg" /></figure>
        </div>
        <!--<img src="sorrento.jpg" width="100%"> -->
      </div>     <!-- hlavička stránky -->
      <div id="obsaho"></div>      
      <div id="obsah">                        <!-- obsah stránky -->
      


<?php echo file_get_contents("./');

fwrite($souborDE,"${menu}DE");

fwrite($souborDE,'.txt"); ?>


      </div>
      <div id="patka">Copyright 2014, &copy; Něco \\ tam dám</div>
    </div>
  </body>
</html>'

    );


    
?>
 </body>  
 </html> 

Neformátovaný

Přidáno: 29.9.2016
Expirace: Neuvedeno

Aktivity