Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Pajisjet Elektronike</title>
- <style>
- body{
- font-family: "Comic Sans MS", sans-serif;
- }
- table,td{
- border:2px, solid gray;
- border-collapse:collapse;
- text-align: center;
- font-size: 20px;
- padding: 12px;
- }
- table{
- width: 50;
- }
- #gridt{
- background-color: #9B4186;
- color:white;
- }
- tr:nth-child(even){
- background-color: #AD699D;
- color: white;
- }
- tr:nth-child(odd){
- background-color: #A36A95;
- color:white;
- }
- td:hover{
- background-color: #AF99AA;
- color:black;
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <?php
- $pajisjet=array("celulare"=> "800.000",
- "kompjutera"=>"700.000",
- "laptop"=>"750.000",
- "printera"=>"400.000",
- "skanera"=>"300.000",
- "fakse"=>"200.000",
- "telefona"=>"500.000",
- "tableta"=>"600.000",
- "kamera"=>"650.000",
- "bateri"=>"400.000",)
- echo"<table>
- <tr id="gridt">
- <td>Pajisjet Elektronike</td>
- <td>Sasia e shitur</td>
- </tr>";
- for(reset($pajisjet); $indeks=key($pajisjet); next($pajisjet))
- {
- echo"<tr>
- <td>$indeks</td>
- <td>pajisjet[$indeks]</td>
- </tr>";
- }
- echo"</table>"
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment