Example #1
0
</strong></p>
          </div>
          <div class="icon">
            <i class="fa fa-archive"></i>
          </div>
          </div>
      </div>

      <div class="col-lg-4 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
          <div class="inner">
            <h3><?php 
echo revenue()[0];
?>
</h3>
            <p>Available funds</p>
            <p>Total revenue generated:  <strong><?php 
echo revenue()[1];
?>
</strong></p>
          </div>
          <div class="icon">
            <i class="fa fa-archive"></i>
          </div>
        </div>
      </div>


  </div><!-- /.row -->
Example #2
0
    <th>
      Total Expected Income
    </th>
    <td><?php 
echo thrift_special(1)[3] + thrift_special(2)[3] + loan_report()[2];
?>
</td>
  </tr>
  <tr>
  <th>Total Paid on PassBook</th>
  <td><?php 
echo charge_total()[1];
?>
</td>
  </tr>
  <tr>
    <th>
Available Funds
    </th>
    <td><?php 
echo revenue()[0];
?>
</td>
  </tr>


</table>
</div>
</div>
</div>
Example #3
0
<?php

include 'conf/db_connect.php';
connect();
$amount = $_POST['amount'];
$acct_no = $_POST['acct_no'];
$result = query("SELECT * FROM percent WHERE id='1'");
$row = mysql_fetch_array($result);
$perc = $row['value'];
$new_amt = $amount;
$new_amt += $perc / 100 * $amount;
$int = $perc / 100 * $amount;
$rs = query("SELECT * FROM account WHERE acct_no='{$acct_no}'");
$row = mysql_fetch_array($rs);
$bal = $row['balance'];
$acct_type = $row['acct_type'];
$val = revenue()[0];
if ($new_amt > $bal) {
    echo "\n  <strong><i></i>Total Available funds</strong>\n  <p class=text-muted>{$val}</p>\n  <strong><i></i>Interest on Withdrawal</strong>\n  <p class=text-muted>{$int}</p>\n  <strong><i></i>Total Withdrawal Amount</strong>\n  <p class=text-danger><b>{$new_amt}</b></p>";
} else {
    echo "\n<strong><i></i>Total Available funds</strong>\n<p class=text-muted>{$val}</p>\n<strong><i></i>Interest on Withdrawal</strong>\n<p class=text-muted>{$int}</p>\n<strong><i></i>Total Withdrawal Amount</strong>\n<p class=text-success><b>{$new_amt}</b></p>\n<input type=text id=amont value={$new_amt} readonly>\n<div id=new_bal>\n\n</div>\n</div>\n";
}