Exemplo n.º 1
0
" title="Adicionar Transação">Adicionar transação</a></li>
                </ul>
			</div>
		<?php 
            $totalGastos += $gastos + $creditos;
            $totalGanhos += $ganhos - $creditos;
            $totalSaldo += $acc->balance;
            ?>
		<?php 
        }
    }
    ?>
		<div class="account balance">
			<ul class="tableList">
				<li class="subtitle">Em <?php 
    echo thisMonthName();
    ?>
...</li>
				<li>ganhei: <span class="amount positive"><?php 
    echo moneyFormat($totalGanhos, true);
    ?>
</span></li>
				<li>gastei: <span class="amount negative"><?php 
    echo moneyFormat($totalGastos, true);
    ?>
</span></li>
				<li class="total">EU TENHO: <span class="amount  <?php 
    if ($totalSaldo >= 0) {
        echo 'positive';
    } else {
        echo 'negative';
Exemplo n.º 2
0
        echo $i;
        ?>
" class="block double">
                <div class="<?php 
        echo transactionType($acc->account_type_id);
        ?>
">
                    <h3><?php 
        echo $acc->name;
        ?>
</h3>
                </div>
        
                <!-- <div class="monthSelectInTitle">
                    <input type="text" class="calendar monthCalendar" value="<?php 
        echo thisMonthName($m) . " " . $y;
        ?>
" />
                </div> -->
        
                <div class="content">
                    <div class="block double">
                        <table id="accountResume" class="cashFlow">
                            <tbody>
                                <tr class="total">
                                    <td>Saldo anterior:</td>
                                    <td colspan="3" class="amount <?php 
        if ($oldBalance >= 0) {
            echo 'positive';
        } else {
            echo 'negative';
Exemplo n.º 3
0
    ?>

		<?php 
    $graphData = '';
    $categories = '[';
    //Percorre os meses
    foreach ($latestMonths as $latestMonth) {
        //Monta valor positivo ou negativo
        $math = (double) $info[$latestMonth];
        $math = $math * -1;
        $math2 = $math > 0 ? $math : $math * -1;
        $graphData .= '{y: ' . $math2 . ', color:"';
        $math > 0 ? $graphData .= "#ce6a6a" : ($graphData .= "#8cce6a");
        $graphData .= '"},';
        //Monta categorias
        $categories .= "'" . thisMonthName(date('m', strtotime($latestMonth)), true) . " " . date('Y', strtotime($latestMonth)) . "',";
    }
    $categories .= ']';
    ?>

		monthBalanceGraph = new Highcharts.Chart({
		 	chart: {
		 		renderTo: 'monthBalanceGraph', 
		 		type: 'column'
		 	},
		 	legend: {enabled: false},
			colors: ['#ce6a6a'],
			xAxis: {
				categories: <?php 
    echo $categories;
    ?>