Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.91 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859" />
  6.  
  7. </head>
  8.  
  9. <title>
  10.  
  11.     TEST
  12.  
  13. </title>
  14.  
  15. <style>
  16.  
  17. html, body {
  18.  
  19.     overflow:hidden;
  20.  
  21.     margin: 0;
  22.  
  23.     padding: 0;
  24.  
  25.     text-align: center;
  26.  
  27. }
  28.  
  29.  
  30.  
  31. #all {
  32.    
  33.     margin-top: 50px;
  34.    
  35.     margin-bottom: auto;
  36.    
  37.     margin-right: auto;
  38.    
  39.     margin-left: auto;
  40.  
  41.     height:90%;
  42.  
  43.     width: 90%;
  44.  
  45.     text-align: left;
  46.  
  47. }
  48.  
  49.  
  50.  
  51. #NAGLOWEK {
  52.  
  53.     height: 15%;
  54.  
  55.     background-color: #006600;
  56.  
  57. }
  58.  
  59.  
  60.  
  61. #MENU {
  62.  
  63.     height: 80%;
  64.  
  65.     width: 15%;
  66.  
  67.     float: left;
  68.  
  69.     overflow: hidden;
  70.  
  71.     background-color:  #66FF66;
  72.  
  73. }
  74.  
  75.  
  76.  
  77. #TRESC {
  78.  
  79.     height: 80%;
  80.  
  81.     width: 70%;
  82.  
  83.     float: left;
  84.  
  85.     overflow: hidden;
  86.  
  87.     background-color: #fff;
  88.  
  89. }
  90.  
  91. #lmenu {
  92.  
  93.     height: 80%;
  94.  
  95.     width: 15%;
  96.  
  97.     float: right;
  98.  
  99.     overflow: hidden;
  100.  
  101.     background-color: #aaa;
  102.  
  103. }
  104.  
  105. #STOPKA {
  106.  
  107.     height: 5%;
  108.  
  109.     clear: both;
  110.  
  111.     width: 100%;
  112.  
  113.     background-color: #006600;
  114.  
  115. }
  116.  
  117. button{
  118. background-color:red;
  119. color: white;
  120. border: 1px solid blue;
  121. width:90%;
  122. }
  123.  
  124. </style>
  125.  
  126. </head>
  127.  
  128. <body>
  129.  
  130.  
  131.  
  132. <div id="all">
  133.  
  134.  
  135.  
  136.     <div id="NAGLOWEK">
  137.         <?php
  138.         $data=date("s");
  139.         if($data<30){
  140.    
  141.    
  142. $r1 = rand ( 1, 255 );
  143.  
  144. $g1 = rand ( 1, 255 );
  145.  
  146. $b1 = rand ( 1, 255 );
  147.  
  148. echo "<style> #NAGLOWEK {background-color:rgb($r1,$g1,$b1);} </style>";
  149. }
  150. else{
  151. echo "<style> #NAGLOWEK {background-color:rgb(111,111,111);} </style>";
  152. }
  153.  
  154. ?>
  155. </div>
  156.  
  157.     <div id="MENU">
  158.     Menu nawigacyjne
  159.     <?php
  160.  
  161.     $data=date("Y-m-d");
  162.     $czas=date("H:i");
  163.  
  164.     echo "Data: $data Godzina: $czas";
  165.  
  166.  
  167. ?>
  168. <center>
  169. <button>ELO</button><br>
  170. <button>ELO</button><br>
  171. <button>ELO</button>
  172.  
  173.     </div>
  174.  
  175.     <div id="TRESC"></div>
  176.    
  177.     <div id="lmenu"></div>
  178.  
  179.     <div id="STOPKA">Stopka serwisu</div>
  180.  
  181. </div>
  182. <?php
  183.  
  184.  
  185.  
  186. $elo = "";
  187.  
  188. $r = rand ( 1, 255 );
  189.  
  190. $g = rand ( 1, 255 );
  191.  
  192. $b = rand ( 1, 255 );
  193.  
  194.  
  195.  
  196. echo "<body style=background-color:rgb($r,$g,$b)>";
  197.  
  198. ?>
  199.  
  200. </body>
  201.  
  202. <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement