PHP Classes

File: example1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Martin Sadera  >  Price Calculator  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Price Calculator
Calculate price variations
Author: By
Last change:
Date: 9 years ago
Size: 1,047 bytes


Class file image Download
  <title>Price Calculator Class Example</title>
    label {width:10em;}
    input {display:block;text-align:right}

/* set price without taxes */
/* set taxes in percents */
/* set price reduction in percents */
/* set price signature */

$price = new PriceCalc($price_wihout_taxes,$taxes,$reduction,$price_signature);
  <label>Old price with tax:</label> <input type="text" value="'
.$price->OldWithDph_f().'" />
  <label>New price with tax:</label> <input type="text" value="'
.$price->WithDph_f().'" />
  <label>Price without tax:</label> <input type="text" value="'
.$price->WithoutDph_f().'" />
  <label>Tax part of price:</label> <input type="text" value="'
.$price->DPH_f().'" />
  <label>Saved moneys with tax:</label> <input type="text" value="'
.$price->SavedMoneyWithDph_f().'" />