</tr> <tr> <th> Expected Number of Deposits </th> <td><?php echo thrift_special(2)[2]; ?> </td> </tr> <tr> <th> Expected Deposit Amount </th> <td><?php echo thrift_special(2)[3]; ?> </td> </tr> </table> <table class="table"> <thead> <tr> <td> <strong><h4>LOAN RECOVERY REPORT SUMMARY</h4></strong> </td> </tr> </thead>
<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 thrift_special(1)[3] + thrift_special(2)[3] + loan_report()[2]; ?> </h3> <p>Total expected income</p> <p>Total expected deposits: <strong><?php echo thrift_special(1)[3] + thrift_special(2)[3]; ?> </strong></p> <p>Total expected loans: <strong><?php echo loan_report()[2]; ?> </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 -->
</td> </tr> <tr> <th>Charge Recieved on Loan</th> <td><?php echo charge_total()[0]; ?> </td> </tr> <tr> <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
$type = $_GET['type']; // $arr = [0,0,0,0]; $result = query("SELECT * FROM deposit WHERE acct_type='{$type}'"); $count = 0; $amount = 0; $i = 0; $body = ''; while ($row = mysql_fetch_array($result)) { $date = $row['date']; $acct_no = $row['acct_no']; $time = strtotime($date); if ($time >= $start && $time <= $end) { ++$i; $amount1 = $row['amount']; $count += 1; $amount += $row['amount']; $body .= "<tr>\n <td>{$i}</td>\n <td><a href=index.php?page=../dep_witd&id={$acct_no}> {$acct_no}</a></td>\n <td>{$amount1}</td>\n <td>{$date}</td>\n </tr>"; } } //$arr[0] = $count; //$arr[1] = $amount; $t_n_d = $count; $t_n_d_a = $amount; //$body = duration_filter(1, $start, $end)[2]; $overall = thrift_special(1)[1]; $top = "<div class=box>\n<div class=box-body no-padding>\n<table class=table>\n <thead>\n <tr>\n\n <td>\n <strong><h4>THRIFT SAVINGS REPORT</h4></strong>\n </td>\n </tr>\n </thead>\n <tr>\n <th>\n Total Number Deposits\n </th>\n <td>{$t_n_d}</td>\n </tr>\n <tr>\n <th>\n Total Amount Deposited\n </th>\n <td>{$t_n_d_a}</td>\n </tr>\n <tr>\n <th>\n Overall Deposit Amount\n </th>\n <td> {$overall}</td>\n </tr>\n\n</table>\n</div>\n</div>\n"; $table_top = "\n<div class=box>\n<div class=box-body no-padding>\n<table class=table id=tableentry>\n<thead>\n <tr>\n <th>S/N</th>\n <th>ACCT NO</th>\n <th>AMOUNT</th>\n <th>DATE</th>\n </tr>\n</thead>\n<tbody>"; $end = "</tbody></table></div></div>"; $top .= $table_top; $htm = $top . $body . $end; echo $htm;