Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="optionL"><a href="index2.html" target="_blank" title="po najechaniu!!!">Strona główna</a></div>
- <img src="images/reklama.jpg"/>
- //godzina
- <div>
- <script language="JavaScript">
- <!-- Begin
- Stamp = new Date();
- document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getFullYear() + '</B></font><BR>');
- var Hours;
- var Mins;
- var Time;
- Hours = Stamp.getHours();
- if (Hours >= 12) {
- Time = " P.M.";
- }
- else {
- Time = " A.M.";
- }
- if (Hours > 12) {
- Hours -= 12;
- }
- if (Hours == 0) {
- Hours = 12;
- }
- Mins = Stamp.getMinutes();
- if (Mins < 10) {
- Mins = "0" + Mins;
- }
- document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');
- // End -->
- </script>
- </div>
- <!DOCTYPE HTML>
- <html lang="pl">
- <head>
- <meta charset="utf-8" />
- <title>Podsumowanie zamówienia</title>
- </head>
- <body>
- <?php
- $paczkow = $_POST['paczkow'];
- $grzebieni = $_POST['grzebieni'];
- $suma = 0.99 * $paczkow + 1.29 * $grzebieni;
- echo<<<END
- <h2>Podsumowanie zamówienia</h2>
- <table border="1" cellpadding="10" cellspacing="0">
- <tr>
- <td>Pączek (0.99PLN/szt)</td> <td>$paczkow</td>
- </tr>
- <tr>
- <td>Grzebień (1.29PLN/szt)</td> <td>$grzebieni</td>
- </tr>
- <tr>
- <td>SUMA</td> <td>$suma PLN</td>
- </tr>
- </table>
- <br /><a href="index.php">Powrót do strony głównej</a>
- END;
- ?>
- </body>
- </html>
- <!DOCTYPE HTML>
- <html lang="pl">
- <head>
- <meta charset="utf-8" />
- <title>Piekarnia</title>
- </head>
- <body>
- <h1>Zamówienie online</h1>
- <form action="order.php" method="post">
- Ile pączków (0.99 PLN/szt):
- <input type="text" name="paczkow" />
- <br /><br />
- Ile grzebieni (1.29 PLN/szt):
- <input type="text" name="grzebieni" />
- <br /><br />
- <input type="submit" value="Wyślij zamówienie" />
- </form>
- </body>
- </html>
- // km/h
- <div>
- <FORM NAME=fm>
- <INPUT TYPE=text NAME=predkosc> km/h
- <INPUT TYPE=button VALUE=Oblicz onClick="Licz()">
- <INPUT TYPE=text NAME=wynik> m/s
- </FORM>
- <script language="JavaScript">
- function Licz()
- {
- fm.wynik.value=fm.predkosc.value/3.6
- };
- </script>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement