Exemplo n.º 1
0
    header('Location: index.php');
}
$overall_balance = 0;
$closed_wallets = get_closed_wallets($logged_user);
foreach ($closed_wallets as $wallet) {
    $overall_balance = $overall_balance + bilance($wallet['id']);
}
$savings_from_db = get_savings($logged_user);
?>
<div style="float:left;">
    <h1 style="margin:0px;">Oszczędności</h1>
</div>
<div style="float:right; margin-top:15px;">
    Aktualny bilans:
    <span class="bigger <?php 
echo get_class_by_bilance_include_white(bilance($overall_balance));
?>
">
    <?php 
echo number_format($overall_balance - $savings_from_db['amount_out'], $decimals = 2, $dec_point = '.', $thousands_sep = '');
?>
 PLN
    </span>
</div>
<div style="clear:both;"></div>

<hr class="full" />
<div class="details" style="margin:5px 0px 5px 0px;">
    <div style="float:left;">
    Suma oszczędności: <strong><?php 
echo number_format($overall_balance, $decimals = 2, $dec_point = '.', $thousands_sep = '');
Exemplo n.º 2
0
    <h1 style="margin:0px;">Portfel:
    <span class="regular orange">&nbsp;&nbsp;<?php 
echo mb_convert_case($wallet_from_db['name'], MB_CASE_UPPER, "UTF-8");
?>
</span>
    <?php 
if (!is_wallet_opened($wallet_id)) {
    echo '<span class="regular gray">(portfel zamknięty)</span>';
}
?>
    </h1>
</div>
<div style="float:right; margin-top:15px;">
    Aktualny bilans:
    <span class="bigger <?php 
echo get_class_by_bilance_include_white(bilance($wallet_id));
?>
">
    <?php 
echo number_format(bilance($wallet_id), $decimals = 2, $dec_point = '.', $thousands_sep = '');
?>
 PLN
    </span>
</div>
<div style="clear:both;"></div>

<hr class="full" />
<div class="details" style="margin:5px 0px 5px 0px;">
    <div style="float:left;">
    Suma wpłat: <strong><?php 
echo number_format($wallet_from_db['amount_in'], $decimals = 2, $dec_point = '.', $thousands_sep = '');