![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 5.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam.Projektuje swoją strone budowlaną i potrzebuje umiescic na niej kalkulator wyceny kosztow remontowych . Prosze o pomoc w znalezieniu odpowiedniego kalkulatora ewentualnie jakiegos programu do tego celu z gory dziekuje. Podam link do stron na ktorych sa takie kalkulatory.
http://www.kalkulator.entero.pl/ http://www.budomax.biz.pl/kalkulator/index.php |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 012 Pomógł: 109 Dołączył: 26.09.2003 Skąd: nexis.pl Ostrzeżenie: (0%) ![]() ![]() |
+ HTML 4.01 Strict
+ jQuery 1.3.1 (Google AJAX Libraries API) + łatwa rozbudowa o dodatkowe pola Kod <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Kalkulator</title> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("jquery", "1"); </script> <script type="text/javascript"> function update(){ var sum = 0; $("#calculator > tbody > tr").each(function(){ var price = parseFloat($(this).find("td:eq(2)").text()); var amount = parseFloat($(this).find("td:eq(3)").find("input:first").val()); var value = $(this).find("td:eq(4)"); if (amount > 0) { value.text(price*amount); sum += price*amount; } else { value.text(0); } }); $("#summary").text(sum); } $(document).ready(function(){ update(); $("#calculator input").keyup(function(){ update(); }); }); </script> </head> <body> <table id="calculator"> <thead> <tr> <th>Rodzaj usługi</th> <th>Jm</th> <th>Cena</th> <th>Ilość</th> <th>Wartość</th> </tr> </thead> <tfoot> <tr> <th colspan="4">Razem</th> <th id="summary"></th> </tr> </tfoot> <tbody> <tr> <td>Gadzie gipsowe</td> <td>m<sup>2</sup></td> <td>12.00</td> <td><input type="text" name="gadzie-gipsowe"></td> <td></td> </tr> <tr> <td>Malowanie</td> <td>m<sup>2</sup></td> <td>5.00</td> <td><input type="text" name="malowanie"></td> <td></td> </tr> <tr> <td>Kafelkowanie</td> <td>m<sup>2</sup></td> <td>40.00</td> <td><input type="text" name="kafelkowanie" /></td> <td></td> </tr> <tr> <td>Montaż okien</td> <td>mb</td> <td>25.00</td> <td><input type="text" name="montaz-okien" /></td> <td></td> </tr> </tbody> </table> </body> </html> * formatowanie poprzez html jest do bani Ten post edytował nexis 6.02.2009, 02:15:27 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 23:24 |