Beispiel #1
0
The current value in <?php 
        echo htmlentities($currencies[$GLOBALS["pref_currency"]]["name"] . "s");
        ?>
 is approximately <?php 
        echo convert_money($reserve);
        ?>
.
</p>
<?php 
    }
    ?>
<table cellspacing=0 cellpadding=5 id="currency_table">
    <tr><th align=left>Currency</th><th align=right>Amount</th></tr>
<?php 
    foreach ($currencies as $code => $currency) {
        $amount = currency_value($reserve, $code);
        if (!ereg("[1-9]", $amount)) {
            continue;
        }
        ?>
    <tr>
        <td align=left><?php 
        echo $currency["name"];
        ?>
</td>
        <td align=right><?php 
        echo format_money($amount . $code, $code);
        ?>
</td>
    </tr>
<?php 
Beispiel #2
0
$hash = hash("sha512", $hash);
$attributes = array('id' => 'webpay_payment_form', 'target' => '_top');
echo form_open('https://stageserv.interswitchng.com/test_paydirect/pay', $attributes);
//	Sandbox
//echo form_open('https://webpay.interswitchng.com/paydirect/pay',$attributes);	//	Live
?>
	<input type="hidden" name="product_id" value="<?php 
echo $product_id;
?>
">
	<input type="hidden" name="amount" value="<?php 
echo $order_total;
?>
">	
	<input type="hidden" name="currency" value="<?php 
echo currency_value();
?>
">
	<input type="hidden" name="site_redirect_url" value="<?php 
echo $redirect_url;
?>
">
	<input type="hidden" name="txn_ref" value="<?php 
echo $txn_ref;
?>
">			
	<input type="hidden" name="hash" value="<?php 
echo $hash;
?>
">
	<input type="hidden" name="pay_item_id" value="<?php 
Beispiel #3
0
function get_FFC($money)
{
    return intval(currency_value($money, "FFC"));
}
Beispiel #4
0
?>
<p>
<table border=1 cellspacing=0 cellpadding=3>
<tr><th align=left>Account Group</th>
<?php 
list($rc, $currencies) = ff_currencies();
foreach ($currencies as $code => $c) {
    print "<th align=right>" . htmlentities($code) . "</th>";
}
?>
</tr>
<?php 
foreach ($report as $acct => $change) {
    print "<tr><td>" . htmlentities($acct) . "</td>";
    foreach ($currencies as $code => $c) {
        print "<td align=right>" . format_for_entryfield(currency_value($change, $code)) . "</td>";
    }
    print "</tr>\n";
}
?>
</table>
</p>

<?php 
foreach ($currencies as $code => $c) {
    list($rc, $transactions) = admin_getpaypaltransactions($code, $from, $to);
    ?>
<p>
<h2><?php 
    echo htmlentities($code);
    ?>
Beispiel #5
0
<?php 
} else {
    ?>
    <input type=hidden id=s_currency name=currency value="<?php 
    echo $one_currency["code"];
    ?>
">
<?php 
}
?>
    <div class="reserve-sponsorship">
    Sponsorship Amount: <span id=currency_prefix><?php 
echo htmlentities($one_currency["prefix"]);
?>
</span><input id=sponsor_amt name=sponsor_amount value="" size=7> (<span id=reserve_amount><?php 
echo htmlentities(format_money(currency_value($reserve, $one_currency["code"]) . $one_currency["code"], $one_currency["code"]));
?>
</span> in your reserve, <a href="account.php?tab=reserve">Add funds</a>)
    </div>
    <div class="bottom">
    <a href="" onClick="if(checkReserveSponsorshipForm())document.getElementById('reserve-form').submit();return false" class="normal-button" style="float:right;">Sponsor from Reserve</a>
    </div>
</form>

<script>
function checkPayPalSponsorshipForm() {
    var amt = document.getElementById('paypal_amt').value;
    if( amt == '' || !amt.match( /^[0-9]*(\.<?php 
echo str_repeat("[0-9]", $prefcurrency["decimal_places"]);
?>
)?$/) ||
Beispiel #6
0
</option>
<?php 
    }
    ?>
        </select>
    </div>
<?php 
} else {
    ?>
    <input type=hidden id=r_currency name=currency value=<?php 
    echo $one_currency["code"];
    ?>
>
<?php 
}
?>
    <div>
    Remove Amount: <span id=retract_currency_prefix><?php 
echo htmlentities($one_currency["prefix"]);
?>
</span><input id=retract_sponsor_amt name=remove_amount value="" size=7> (<span id=retract_sponsorship_amount><?php 
echo htmlentities(format_money(currency_value($sponsorship, $one_currency["code"]) . $one_currency["code"], $one_currency["code"]));
?>
</span> available to remove)
    </div>
<div class="bottom">
    <a href="" onClick="if(checkRetractForm())document.getElementById('retract-form').submit();return false" class="normal-button" style="float:right;">Submit</a>
</div>

</form>