1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

Siste nytt

Nå skal vi prøve at fredagstale skal komme live på www.iqskole.no

 

IT ViewPoint - Sep 09 Joomla Template by IceTheme

Saturday, 01 November 2008 01:00

Written by Admin

PDF Print E-mail

Image 0 0) { $conv_rate = strval($a)*strval($array[1]); } } $currentGoldRate = $conv_rate * $currentDollarRate;; echo '

'; /* Code to be removed */ echo '
'; echo '
Current Gold Rate is: $ '.round($currentDollarRate/31.10089891762979,2).'

'; echo '
Conversion Rate is: kr '.round($conv_rate,2).'

'; echo '
Current Gold Rate is: kr '.round($currentGoldRate,2).'

'; /* Code to be removed */ define('GOLD', $currentGoldRate); define('GOLD_GRAM', 84); define('SILVER', 4.25); define('SILVER_GRAM', 594); define('ZAKAH_PERCENT', 0.025); $gold = isset($_POST['gold']) && is_numeric($_POST['gold']) ? $_POST['gold'] : 0; $silver = isset($_POST['silver']) && is_numeric($_POST['silver']) ? $_POST['silver'] : 0; $cash = isset($_POST['cash']) && is_numeric($_POST['cash']) ? $_POST['cash'] : 0; $savings = isset($_POST['savings']) && is_numeric($_POST['savings']) ? $_POST['savings'] : 0; $lended_money = isset($_POST['lended_money']) && is_numeric($_POST['lended_money']) ? $_POST['lended_money'] : 0; $loan = isset($_POST['loan']) && is_numeric($_POST['loan']) ? $_POST['loan'] : 0; $goldV = $silverV = $loanV = $total = $partial = $partial2 = $zakah = $lended_moneyV = $cashV = $savingsV = 0; if( isset($_GET['zakah_action']) && $_GET['zakah_action'] == "calculate" ) { $goldV = $gold * GOLD; $silverV = $silver * SILVER; $loanV = $loan * -1; $total = number_format($goldV + $silverV + $cash + $savings + $lended_money + $loanV,2); $partial = $silverV + $cash + $savings + $lended_money; if( $gold > GOLD_GRAM || $partial > 0){ $partial2 = $goldV + $partial + $loanV; } if( SILVER * SILVER_GRAM < $partial2 ){$zakah = number_format($partial2 * ZAKAH_PERCENT,2); } $loanV = number_format($loanV,2); $lended_moneyV = number_format($lended_money,2); $cashV = number_format($cash,2); $savingsV = number_format($savings,2); $goldV = number_format($goldV,2); $silverV = number_format($silverV,2); } $str =<<
Gold, number of grams 1 Toula=11,66 Gram
Silver, number of grams kr
Cash kr The money you have in CASH
Share Values / JSC / Other saving convenience kr
Seconded Money kr Money you have given as loans to others.
Private loans kr Private loans borrowed Audiovisual other people, not audiovisual bank
Total asset for Zakat basis upon kr
Your Zakat is kr
START; echo $str; echo '
'; ?>