Esempio n. 1
0
								<td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;Training Levy - 0.2 %</td>
								<td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo number_format((double) round($print_array['training_levy']), 2, '.', '');
?>
</td>
							</tr>
							<tr>
								<td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;Stamp Duty</td>
								<td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo number_format((double) round($print_array['stamp_duty']), 2, '.', '');
?>
</td>
							</tr>
							<tr>
								<td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo ucwords(convertNumber($print_array['total_amount_to_pay']) . ' ' . $this->session->userdata('currency') . ' Only');
?>
</td>
								<td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo $print_array['total_amount_to_pay'];
?>
</td>
							</tr>							
							<tr>
								<td colspan="6">&nbsp;</td>
							</tr>
							
							<tr>
								<td colspan="6" align="right">For and Behalf of</td>
							</tr>
							<tr>
Esempio n. 2
0
 $pdf->SetXY(10, 30);
 // ori Y=60
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 12, "Received From :", "", 0, 'L');
 $pdf->SetFont("Times", "B", 10);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
 $pdf->Cell(0, 12, "{$paidfrom}", "", 0, 'L');
 //Receipt AMT in Text label block (7)
 $pdf->SetXY(10, 38);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 12, "The Sum Of :", "", 0, 'L');
 $pdf->SetFont("Times", "", 10);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
 //$pdf->Line($pdf->GetX(),86,$pdf->GetX()+150,86);
 //echo ucwords("SAAAS SDA asDDS");
 $txt_sum = ucwords(strtolower(convertNumber($originalamt)));
 $pdf->MultiCell(0, 10, $currency_code . " " . $txt_sum, "", 'L');
 //Receipt AMT in Text label block (8)
 $pdf->SetXY(10, 45);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 10, "Description :", "", 0, 'L');
 $pdf->SetFont("Times", "", 10);
 $pdf->Line($pdf->GetX(), 53, $pdf->GetX() + 150, 53);
 $pdf->Line($pdf->GetX(), 61, $pdf->GetX() + 150, 61);
 $pdf->MultiCell(0, 8, $description, "", 'L');
 //detail table
 $pdf->SetXY(10, 65);
 $pdf->SetFont("Times", "B", 8);
 $pdf->Cell(10, 5, "No", "TB", 0, 'C');
 $pdf->Cell(90, 5, "Item", "TB", 0, 'L');
 $pdf->Cell(40, 5, "Payment Method", "TB", 0, 'C');
Esempio n. 3
0
            <td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;Training Levy</td>
            <td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;text-align:right;">&nbsp;<?php 
echo number_format($print_array['training_levy'], 2);
?>
</td>
        </tr>
        <tr>
            <td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;Stamp Duty</td>
            <td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;text-align:right;">&nbsp;<?php 
echo number_format($print_array['stamp_duty'], 2);
?>
</td>
        </tr>
        <tr>
            <td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo ucwords(convertNumber($print_array['total_amount_to_pay']) . ' Kenyan Shillings Only');
?>
</td>
            <td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;text-align:right;">&nbsp;<?php 
echo number_format($print_array['total_amount_to_pay'], 2);
?>
</td>
        </tr>							
        <tr>
            <td colspan="6">&nbsp;</td>
        </tr>
        <?php 
if (sizeof($product_details_array) > 0) {
    $i = 0;
    foreach ($product_details_array as $product_details) {
        $i++;
</td>
                                <td align="left" style="border:1px solid; margin:0px; padding:3px; text-align:right;">&nbsp;<?php 
        echo number_format($policy['total_amount_to_pay'], 2);
        ?>
</td>
                                <td align="left" style="border:1px solid; margin:0px; padding:3px; text-align:right;">&nbsp;<?php 
        echo number_format($policy['paid_amount'], 2);
        ?>
</td>
                            </tr>
                            <?php 
    }
    ?>
                        <tr>
                            <td align="left" style="border:1px solid; margin:0px; padding:3px;" colspan="5"><?php 
    echo ucwords(convertNumber($total) . ' Kenyan Shillings Only');
    ?>
</td>
                            <td align="left" style="border:1px solid; margin:0px; padding:3px; text-align:right;">&nbsp;<?php 
    echo number_format($total, 2);
    ?>
</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <?php 
}
?>

         <tr>
Esempio n. 5
0
							<tr>
								<td colspan="6">We have debited your account as follows</td>
							</tr>
                                                        <tr>
								<td colspan="6">&nbsp;</td>
							</tr>
                                                        <tr>
								<td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;Debited Amount</td>
								<td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo number_format((double) round($recovery_data['recovery_amount']), 2, '.', '');
?>
</td>
							</tr>
                                                        <tr>
								<td align="left" colspan="5" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo ucwords(convertNumber($recovery_data['recovery_amount']) . " " . $this->session->userdata('currency') . " Only");
?>
</td>
								<td align="left" width="150px" style="border:1px solid; margin:0px; padding:3px;">&nbsp;<?php 
echo $recovery_data['recovery_amount'];
?>
</td>
							</tr>
                                                        
							
							<tr>
								<td colspan="6">&nbsp;</td>
							</tr>
							
                                                        <tr>
								<td colspan="6">&nbsp;</td>
echo $smi_array[0]['bid_tendor_no'];
?>
</span>
            </td>
        </tr>
        <tr>
            <td colspan="9">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="9" align="left">KNOW ALL PEOPLE by these presents that  <span style="font-weight:bold;font-size:16px;text-transform:uppercase;">WE TAKAFUL INSURANCE OF AFRICA LIMITED.</span> having our registered office at
                <span style="font-weight:bold;font-size:16px;text-transform:uppercase;">MARA ROAD NAIROBI</span> (hereinafter called "the surety"), are bound unto <span style="font-weight:bold;font-size:16px;text-transform:uppercase;"><?php 
echo $smi_array[0]['bid_employer'];
?>
</span> 
                (hereinafter called "the Employer") in the sum of <span  style="font-weight:bold;font-size:16px;text-transform:uppercase;"><?php 
echo ucwords(convertNumber($smi_array[0]['bid_gurantee']) . ' Kenyan Shillings Only');
?>
 ONLY  (KSHS.<?php 
echo number_format($smi_array[0]['bid_gurantee'], 2);
?>
)</span>

                for which payment well and truly to be made to the said Employer, the insurers binds itself, its successors, and assignees by these presents. 
            </td>
        </tr>        
        <tr>
            <td colspan="9">&nbsp;</td>
        </tr>

        <tr>
            <td colspan="9">
Esempio n. 7
0
    $pdf->Cell(0, 10, "{$timetext} {$lastword}", 0, 0, 'C');
    //company name block (1)
    $pdf->SetXY(10, 11);
    $pdf->SetTextColor(0, 0, 0);
    //paymentvoucher Date label block (5)
    //	$pdf->SetXY(10,10);
    //	$pdf->SetFont("Arial","B",14);
    $day = substr($paymentvoucher_date, -2, 2);
    $month = substr($paymentvoucher_date, -5, 2);
    $year = substr($paymentvoucher_date, 2, 2);
    $pdf->SetXY(132, 18);
    $pdf->SetFont("Arial", "B", 20);
    $pdf->Cell(12, 12, $day, "", 0, 'R');
    $pdf->Cell(12, 12, $month, "", 0, 'R');
    $pdf->Cell(12, 12, $year, "", 0, 'R');
    //paymentvoucher From label block (6)
    $pdf->SetXY(23, 28);
    $pdf->SetFont("Times", "", 10);
    $pdf->Cell(95, 10, "{$paidto}", "", 0, 'L');
    //paymentvoucher AMT in Text label block (7)
    $pdf->SetXY(23, 39);
    $pdf->SetFont("Times", "", 10);
    $pdf->MultiCell(95, 9, convertNumber($originalamt) . "------", "", 'L');
    //paymentvoucher AMT number in block (9)
    $pdf->SetXY(130, 39);
    $pdf->SetFont("Times", "B", 15);
    $pdf->Cell(30, 12, "{$originalamt}", "", 0, 'R');
    //$pdf->AddPage();
    $pdf->Output("bpartnerstatement.pdf", "I");
    exit(1);
}
 $pdf->SetFont("times", "B", 10);
 $pdf->Cell(0, 12, "{$paymentvoucher_date}", "", 0, 'R');
 //paymentvoucher From label block (6)
 $pdf->SetXY($xmargin, 30);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(30, 12, "PAID TO :", "", 0, 'L');
 $pdf->SetFont("Times", "B", 12);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 155, $pdf->GetY() + 9);
 $pdf->Cell(0, 12, "{$paidto}", "", 0, 'L');
 //paymentvoucher AMT in Text label block (7)
 $pdf->SetXY($xmargin, 38);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell($xmargin + 15, 12, "THE SUM OF :", "", 0, 'L');
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 155, $pdf->GetY() + 9);
 //$pdf->Line($pdf->GetX(),86,$pdf->GetX()+150,86);
 $pdf->MultiCell(0, 12, "{$currency_code} " . convertNumber($originalamt), "", 'L');
 //paymentvoucher AMT in Text label block (8)
 $pdf->SetXY($xmargin, 45);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(30, 12, "DESCRIPTION :", "", 0, 'L');
 $pdf->SetFont("Arial", "", 10);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 155, $pdf->GetY() + 9);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 16, $pdf->GetX() + 155, $pdf->GetY() + 16);
 $pdf->MultiCell(0, 10, "{$description}", "", 'L');
 //detail table
 $pdf->SetXY($xmargin, 65);
 $pdf->SetFont("Times", "B", 8);
 $pdf->Cell(10, 5, "No", "TB", 0, 'C');
 $pdf->Cell(120, 5, "Item", "TB", 0, 'L');
 //$pdf->Cell(40,5,"Payment Method","TB",0,'C');
 $pdf->Cell(0, 5, "Amount ({$currency_code})", "TB", 1, 'R');
Esempio n. 9
0
                    //Print for a4
                    $currentx = $currentx + $w0[$k];
                } else {
                    $pdf->MultiCell($w1[$k], $defaultfontheight, $c, 0, $align[$k]);
                    // print for letter
                    $currentx = $currentx + $w1[$k];
                }
                $k++;
                if ($nextrowy < $pdf->GetY()) {
                    $nextrowy = $pdf->GetY();
                }
            }
            $pdf->Ln();
            $i++;
        }
        $pdf->printotal = true;
        $numberintext = strtoupper($currency_name . ": " . convertNumber($originalamt));
        $pdf->SetXY($marginx[$statementpapersource] + 8, $nextrowy);
        $pdf->Ln();
        $pdf->MultiCell(0, 5, $numberintext, 0, 'L');
        // $pdf->MultiCell(0,5,$sql,0,'L');
        $pdf->Ln();
    }
    $pdf->Output("bpartnerstatement.pdf", "I");
    //exit (1);
} else {
    echo $_POST['invoice_id'] . $_POST['submit'];
}
?>

										</tr>
									</table>
								</td>
							</tr>							
							<tr>
								<td colspan="6">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="6">&nbsp;We are pleased to attach herewith our discharge voucher for <b><?php 
echo $this->session->userdata('currency');
?>
.<?php 
echo $total_amount;
?>
/-</b> (<?php 
echo ucwords(convertNumber($total_amount)) . ' ' . $this->session->userdata('currency') . ' Only';
?>
)  in full and final settlement of the above claim. <br/>
                                                                </td>
							</tr>
							
							<tr>
								<td colspan="6">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="6">&nbsp;Please have the same duly signed, witnessed and returned to us for further processing.</td>
							</tr>
							
							<tr>
								<td colspan="6">&nbsp;</td>
							</tr>
Esempio n. 11
0
    }
    if ($num[0] == "0") {
        $output .= " zero";
    } else {
        $num = str_pad($num, 36, "0", STR_PAD_LEFT);
        $group = rtrim(chunk_split($num, 3, " "), " ");
        $groups = explode(" ", $group);
        $groups2 = array();
        foreach ($groups as $g) {
            $groups2[] = convertThreeDigit($g[0], $g[1], $g[2]);
        }
        for ($z = 0; $z < count($groups2); $z++) {
            if ($groups2[$z] != "") {
                $output .= $groups2[$z] . convertGroup(11 - $z) . ($z < 11 && !array_search("", array_slice($groups2, $z + 1, -1)) && $groups2[11] != "" && $groups[11][0] == '0' ? " and " : ", ");
            }
        }
        $output = rtrim($output, ", ");
    }
    if ($dec > 0) {
        $output .= " point";
        for ($i = 0; $i < strlen($dec); $i++) {
            $output .= " " . convertDigit($dec[$i]);
        }
    }
    return $output;
}
if (count($argv) < 2) {
    echo "Incomplete command. Usage is 'php num_to_text.php' number_to_convert";
} else {
    echo convertNumber($argv[1]);
}