'.$error.'
'); if( $ilosc1=="") $ilosc1=1; //$link = 'Do strony głównej' ; $link = '' ; print('
Buying the book
Antoni Niederliński
"A Gentle Guide to
Constraint Logic Programming via ECLiPSe"
and example text files
Price '.$cena_produktu_1.' EUR + Delivery Cost


Delivery to Single or double book delivery cost (economy) EUR Single or double book delivery cost (priority) EUR
Poland 2.0 2.5
Europe and Middle East 12.0 17.5
North America 12.50 22.80
Latin America 12.25 28.20
Africa 12.50 22.80
Asia 12.50 22.80
Australia and Oceania 12.25 43.50
For more than two books contact teresa@uktn.com

ordered by:
 
Name and Family Name
Company
Street address
Postal code and city
Country
E-mail
Number of books
Cost of book (EUR)
Delivery cost
 

Immediately after submitting your order, you will receive a pro forma invoice that you can print with your web browser.


'); } function podsumowanie($tryb, $name,$company,$street,$city,$country,$email, $no_of_books,$cost_of_book,$cost_of_delivery) { // zmienna tryb określa, czy jest to ostateczne zatwierdzenie, czy kontrola danych z możliwością powrotu do poprawy // 1 - ostateczne zatwierdzenie // 0 - kontrola danych global $cena_produktu_1; global $koszt_wysylki; global $koszt_pobrania; global $slownie1; global $slownie2; global $slownie3; global $slownie4; global $slownie5; global $slownie6; global $slownie7; global $slownie8; global $slownie9; global $slownie10; if (get_magic_quotes_gpc ()) { $name = stripslashes ($name); $company = stripslashes ($company); $street = stripslashes ($street); $city = stripslashes ($city); } // if( $VATnumber=="") $VATnumber="  -"; // $total1=($cena_produktu_1*$ilosc1); $total1=($cena_produktu_1*$no_of_books); $total=($total1+$cost_of_delivery); /* if( $ilosc1=="1") {$slownie=$slownie1; $wyslemy="książkę";} if( $ilosc1>1) $wyslemy="książki"; if( $ilosc1=="2") $slownie=$slownie2; if( $ilosc1=="3") $slownie=$slownie3; if( $ilosc1=="4") $slownie=$slownie4; if( $ilosc1=="5") $slownie=$slownie5; if( $ilosc1=="6") $slownie=$slownie6; if( $ilosc1=="7") $slownie=$slownie7; if( $ilosc1=="8") $slownie=$slownie8; if( $ilosc1=="9") $slownie=$slownie9; if( $ilosc1=="10") $slownie=$slownie10; */ if($tryb=="0") { print('

Please check your data and authorize your order.

'); } //if($delivery=="1" && $tryb=="1") { print('
Pro Forma Invoice'); print('

Gliwice, '.date("Y-m-d").'


'); } $tabela=' '; print("$tabela"); // if ($delivery=="1") print('
Seller:
 
Uslugi Komputerowe Teresa Niederlinska
ul. Pszczynska 118A/28
PL 44-100 Gliwice, POLAND
tel/fax: 032 232 26 43
mail: teresa@uktn.com
NIP: 631-107-25-36
Bank Account:
PL 85 1050 1298 1000 0090 6013 2967
SWIFT code: INGBPLPW
Local bank office: ING BANK O/GLIWICE POLAND
Buyer:
 
'.$name.'
'.$company.'
'.$street.'
'.$city.'
'.$country.'
'.$email.'
Item PKWiU Units Unit price Number
of books
Price
netto
VAT Value of
VAT
Price
brutto
Book A. Niederlinski "A Quick and Gentle Guide to Constraint Logic Programming via ECLiPSe" 22.11 item '.$cena_produktu_1.' EUR '.$no_of_books.' '.$total1.' EUR 0% 0 '.$total1.' EUR
Cost of delivery: '.$cost_of_delivery.'EUR
Total: '.$total.'EUR

 
'.$total.' EUR to be paid by transfer to Bank Account

'); { print ('

The book (books) and invoice will be send after bank transfer is accomplished

'); } /* if ($delivery=="2") { $total=$total1+$koszt_pobrania; print(' Delivery cost: '.$koszt_pobrania.'zł Razem: '.$total.'zł

 Do zapłaty przy odbiorze: '.$total.' zł. '); } */ if ($tryb=="0") { print('

Order is accepted for realization after clicking "Order authorization".
'); } // dla celów HTML'a zastąpić znaki specjalne kodami $name = htmlspecialchars ($name, ENT_QUOTES); $company = htmlspecialchars ($company, ENT_QUOTES); $street = htmlspecialchars ($street, ENT_QUOTES); $city = htmlspecialchars ($city, ENT_QUOTES); $country = htmlspecialchars ($country, ENT_QUOTES); $e_mail = htmlspecialchars ($e_mail, ENT_QUOTES); $no_of_books = htmlspecialchars ($no_of_books, ENT_QUOTES); $cost_of_book = htmlspecialchars ($cost_of_book, ENT_QUOTES); $cost_of_delivery = htmlspecialchars ($cost_of_delivery, ENT_QUOTES); print ( '

'); if ($tryb=="0") { print (' '); print (''); } print ('

' ); //Faktura VAT $tresc='



Faktura VAT nr

Oryginał / Kopia
Data wystawienia faktury:
Data sprzedaży:

'; $tresc.=$tabela; $tresc.=' Razem: '.$total1.'EUR
Zapłacono: '.$total1.' zł
słownie: '.$slownie.' EUR
 
 
 
 
 
 
osoba uprawniona do
wystawienia faktury vat
'; //if ($delivery=="1" && $tryb=="1") if ($tryb=="1") { @mail("teresa@uktn.com", "Książka angielska-czekaj",$tresc,"Content-Type: text/html; charset=iso-8859-2"); } /* if ($delivery=="2" && $tryb=="1") { @mail("teresa@uktn.com", "Książka-wyślij",$tresc,"Content-Type: text/html; charset=iso-8859-2"); }*/ } // koniec funkcji podsumowanie function sprawdz_dane2($name,$company,$street,$city,$country,$e_mail,$no_of_books, $cost_of_book,$cost_of_delivery) { $error=''; if(empty($name)) $error.="no buyers name
"; if(empty($street)) $error.="no buyers address
"; if(empty($city)) $error.="no buyers city and postal code
"; if(empty($country)) $error.="no buyers country
"; if(empty($e_mail)) $error.="no buyers e_mail
"; if(empty($no_of_books)) $error.="no number of books
"; if(empty($cost_of_book)) $error.="no cost of book
"; if(empty($cost_of_delivery)) $error.="no cost of delivery
"; if($error!='') $error="uncomplete buyers data
".$error; return $error; } ?>