<td style="display:table-cell; text-align:center; width:70px; height: 12px; border: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="9">FOLIO</font> </td> <td style="display:table-cell; text-align:center; width:80px; height: 12px; border: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="9">AMOUNT</font> </td> </tr> <?php $previousDate = null; ?> <?php foreach ($incomes as $income) { ?> <?php $endDate = substr($income->date, 8, 2) . ' ' . substr(Defaults::monthName(substr($income->date, 5, 2)), 0, 3) . ' ' . substr($income->date, 0, 4); ?> <tr> <td style="display:table-cell; text-align:center; width:90px; height: 12px; border-left: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="9"> <?php if ($income->date != $previousDate) { echo $endDate; } ?> </font> </td> <td style="display:table-cell; text-align:center; width:85px; height: 12px; border-left: 1px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="9"> <?php echo $income->receipt_no;
</font> <?php } ?> </td> </tr> <tr> <td style="display:table-cell; text-align:center; width:150px; height: 10px; border-left: 2px solid #000000"> </td> <td style="display:table-cell; text-align:center; width:150px; height: 10px; border-left: 1px solid #000000"> </td> <td style="display:table-cell; text-align:center; width:100px; height: 10px; border-left: 1px solid #000000"> </td> <td style="display:table-cell; text-align:center; width:100px; height: 10px; border-left: 1px solid #000000; border-right: 2px solid #000000"> </td> </tr> <?php $date = '01' . ' ' . Defaults::monthName(01) . ' ' . $year; ?> <tr> <td style="display:table-cell; text-align:center; width:150px; height: 12px; border-left: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="11"><?php echo $date; ?> </font> </td> <td style="display:table-cell; text-align:center; width:150px; height: 12px; border-left: 1px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="11">Balance b/f</font> </td> <td style="display:table-cell; text-align:center; width:100px; height: 12px; border-left: 1px solid #000000"> <?php if ($netContributions >= 0) { ?>
<table style="width: 100%; padding: 0; margin: 0"> <?php $i = 0; ?> <?php foreach ($receipts as $receipt) { ?> <?php $total = 0; foreach ($contributions = ContributionsByMembers::model()->findAll('receiptno=:rcpt', array(':rcpt' => $receipt->receiptno)) as $contribution) { $total = $total + $contribution->amount; } ?> <?php $endDate = substr($endDate = $receipt->date, 8, 2) . ' ' . Defaults::monthName(substr($endDate, 5, 2)) . ' ' . substr($endDate, 0, 4); ?> <tr> <td style="width: <?php echo $no; ?> %; text-align: center"><?php echo ++$i; ?> .</td> <td style="width: <?php echo $type; ?> %;"><?php echo $receipt->contribution_type == 3 ? 'Savings' : 'Monthly Contribution'; ?>
<td colspan="2" style="display:table-cell; text-align:center; width:350px; height: 12px"> <font style="font-family: sans-serif; font-weight: bold" size="11">Name</font> </td> <td style="display:table-cell; text-align:center; width:150px; height: 12px"> <font style="font-family: sans-serif; font-weight: bold" size="11">Date Of Birth</font> </td> </tr> <?php $i = 0; ?> <?php foreach ($children as $child) { ?> <?php $dob = empty($child->dob) ? null : substr($child->dob, 8, 2) . ' ' . Defaults::monthName(substr($child->dob, 5, 2)) . ' ' . substr($child->dob, 0, 4); ?> <tr> <td style="display:table-cell; text-align:right; width:30px; height: 12px"> <font style="font-family: sans-serif; font-weight: bold" size="11"><?php echo ++$i; ?> .</font> </td> <td style="display:table-cell; text-align:justify; width:320px; height: 12px"> <font style="font-family: sans-serif; font-weight: normal" size="11"><?php echo $child->name; ?> </font> </td>
</tr> <tr> <td style="display:table-cell; text-align:justify; width:80px; height: 12px"> <font style="font-family: sans-serif; font-weight: bold" size="11">Nat. ID. No.:</font> </td> <td style="display:table-cell; text-align:justify; width:70px; height: 12px"> <font style="font-family: sans-serif; font-weight: normal" size="11"> <?php echo $person->idno; ?> </font> </td> <?php $endDate = substr($endDate = $contribution->date, 8, 2) . ' ' . Defaults::monthName(substr($endDate, 5, 2)) . ' ' . substr($endDate, 0, 4); ?> <td style="display:table-cell; text-align:justify; width:50px; height: 12px"> <font style="font-family: sans-serif; font-weight: bold" size="11">Date:</font> </td> <td style="display:table-cell; text-align:justify; width:150px; height: 12px"> <font style="font-family: sans-serif; font-weight: normal" size="11"> <?php echo $endDate; ?> </font> </td> </tr> <tr> <td style="display:table-cell; text-align:justify; width:80px; height: 12px">
<font style="font-family: sans-serif; font-weight: normal" size="8">Amount</font> </td> <td style="display:table-cell; text-align:center; width:65px; height: 12px; border: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="8">Withdrawal</font> </td> <td style="display:table-cell; text-align:center; width:70px; height: 12px; border: 2px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="8">Balance</font> </td> </tr> <?php foreach ($transactions as $transaction) { ?> <?php $endDate = empty($transaction[ContributionsByMembers::DATE]) ? null : substr($endDate = $transaction[ContributionsByMembers::DATE], 8, 2) . ' ' . substr(Defaults::monthName(substr($endDate, 5, 2)), 0, 3) . ' ' . substr($endDate, 0, 4); ?> <tr> <td style="display:table-cell; text-align:center; width:65px; height: 12px; border-left: 2px solid #000000; border-right: 1px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="8"> <?php echo $endDate; ?> </font> </td> <td style="display:table-cell; text-align:center; width:70px; height: 12px; border-right: 1px solid #000000"> <font style="font-family: sans-serif; font-weight: normal" size="8"> <?php echo $transaction[ContributionsByMembers::RECEIPT]; ?> </font>