Facebook
From fdsdfsdfdsf, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 226
  1. <?php require('class.database.php'); ?>
  2. <html>
  3.         <head>
  4.                 <style>
  5.                         .offer{
  6.                                 height: 25%;
  7.                                 width: 50%;
  8.                                 margin-top: 10px;
  9.                                 margin-left: 25%
  10.                         }
  11.                        
  12.                         .image{
  13.                                 height: 100%;
  14.                                 width: 30%;
  15.                                 min-width: 250px;
  16.                                 float: left;
  17.                         }
  18.                         .content{
  19.                                 height: 100%;
  20.                                 width: 69.5%;
  21.                                 min-width: 450px;
  22.                                 float: left;
  23.                                 border: solid 0.1px black;
  24.                         }
  25.                         .price{
  26.                                 height: 100%;
  27.                                 width: 19.5%;
  28.                                 min-width: 100px;
  29.                                 border-left: 0.1px solid;
  30.                                 float: right;
  31.                                 border: solid 0.1px black;
  32.                         }
  33.                         .cena{
  34.                                 margin-left: 22%;
  35.                                 font-size: 30px;
  36.                         }
  37.                        
  38.                         .right{
  39.                                 float:right;
  40.                         }
  41.                        
  42.                         .test{
  43.                                 height: 100%;
  44.                                 width: 100%
  45.                         }
  46.                 </style>
  47.         </head>
  48.         <body>
  49.                 <form action = "" method = "POST">
  50.                         <input type = "submit" name = "lewo" value = "Pokaż poprzednie 3">
  51.                         <input type = "submit" name = "prawo" value = "Pokaż następne 3">
  52.                 </form>
  53.                 <?php
  54.                         $pdo = new Connect();
  55.                         if(isset($_POST['prawo'])){
  56.                                 $pdo->Show(4);
  57.                         } else if (isset($_POST['lewo'])){
  58.                                 $pdo->Show(0);         
  59.                         } else {
  60.                                 $pdo->Show(0);
  61.                         }
  62.                 ?>
  63.                
  64.         </body>
  65. </html>