G:
/
PleskVhosts
/
seeonsoft.com
/
hp.thefalconunited.com
/
up file
home
<!DOCTYPE html> <html lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <head> <script type="text/javascript"> window.onafterprint = window.close; window.print(); </script> <meta charset="utf-8" /> <style> td { vertical-align: bottom; } </style> </head> <?php include('config.php'); $id = $_GET['id']; $result = $js->prepare('SELECT * FROM `income` WHERE id = :id'); $result->execute(array(':id' => $id)); while($rowinv0 = $result->fetch(PDO::FETCH_ASSOC)) { $incid = $rowinv0['incid']; $invid = $rowinv0['invoiceid']; $incdate = date('d-m-Y', strtotime($rowinv0['incdate'])); $payamount = $rowinv0['incamount']; $obj = new toWords($payamount); $num = $obj->words; $inwords = strtoupper($num); $cust = $rowinv0['custid']; $mode = $rowinv0['pmode']; $towards = $rowinv0['premarks']; $invoice = $rowinv0['incheads']; $reference = $rowinv0['paidthru']; } ?> <script> function myFunction() { window.print(); } </script> <style type="text/css"> @media print { .noprint {display:none;} body { margin: 5mm 5mm 5mm 5mm; zoom:90%; font-size:14px; } } </style> <body> <table cellpadding='0' cellspacing='0' width="100%" style=" font-size:18px;"> <span> <tr> <td align="left"> <strong><span style="font-size:35px"> رحلات الصقر للتجارة ش م م </span><br> <span style="font-size:24px;"> FALCON EXPEDITIONS TRADE LLC</span> </strong> <br> PO Box: 102 , Postal Code: 114, Bousher, Muscat, Sultanate of Oman <br> <span>Tel : +968 941 55255 | Email : reservations@thefalconexpeditions.com </span> </td> <td align="center"><img src="images/falcons.PNG" style="margin:5px;" ></td> </tr> </table> <hr style="width:100%; border-color:#0046A5; color:#0046A5"> <table style="width:100%;" cellpadding="5" cellspacing="5" > <tr> <td colspan='4' align="center" style="font-size:20px;"> <strong><center>PAYMENT RECEIPT</center></strong> </td> </tr> <tr> <td colspan="2">Date : <?php echo $incdate?></td> <td align="right" colspan="2">Receipt No : <?php echo $incid?></td> </tr> <tr> <td style="border-bottom:1px solid #000"> <br>Received from / مستلم من </td> <td style="border-bottom:1px solid #000" colspan='3'><span style=" font-size:14px;"><?php echo strtoupper($cust);?> </span></td> </td> </tr> <tr> <td style="border-bottom:1px solid #000"><br> Against / ضد </td> <td style="border-bottom:1px solid #000" colspan='3'><span style=" font-size:14px;"> <?php echo $invoice?> </span></td> </td> </tr> <tr> <td style="border-bottom:1px solid #000"><br/> Towards / تجاه </td> <td style="border-bottom:1px solid #000" colspan='3'><span style="font-size:14px;"><?php echo $towards; ?> </span></td> </tr> <tr> <td style="border-bottom:1px solid #000" ><br/> An amount of / كمية من </td> <td style="border-bottom:1px solid #000" colspan='2'> <span style=" font-size:12px;"> <?php echo $inwords?> </span></td> <td style="border-bottom:1px solid #000"> <table frame="box"> <tr> <td style="vertical-align: middle;"></td> <td><input type='text' disabled style="border: 0px solid;text-align:center; font-weight:bold; width:100px" value="<?php echo $payamount ?>"></td> </tr> </table> </td> </tr> <tr> <td style="border-bottom:1px solid #000"> <br> By / بواسطة <td style="border-bottom:1px solid #000" > <span style=" font-size:14px;"><?php echo $mode; ?></span></td> <td style="border-bottom:1px solid #000"><br/>with reference / مع مرجع</td> <td style="border-bottom:1px solid #000"><span style=" font-size:14px;"><?php echo $reference ?></span></td> </tr> <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr> <tr> <td colspan="2" align="left"> </td> <td colspan="3" align="right"><br><img src="images/STAMP AND SIGN.jpg"><BR>AUTHORIZED SIGNATORY</td> </tr> </td> </table> <div class="noprint" style="margin-top:30px;"> <p align="center"><a href="#" onClick="myFunction()" style="border:5px solid; background-color:#093; color:#FFF; padding:8px; text-decoration:none;">PRINT</a> </p> <p align="center"><a href="invoicepayments.php" style="border:5px solid; background-color:#093; color:#FFF; padding:8px; text-decoration:none;">CLOSE</a> </p> </div> </body> <?php define("Riyals", 'pounds'); define("Baise", 'p'); class toWords { var $pounds; var $pence; var $major; var $minor; var $words = ''; var $number; var $magind; var $units = array('', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'); var $teens = array('ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'); var $tens = array('', 'ten', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'); var $mag = array('', 'thousand', 'million', 'billion', 'trillion'); function toWords($amount, $major = Riyals, $minor = Baise) { $this->__toWords__((int)($amount), $major); $whole_number_part = $this->words; #$right_of_decimal = (int)(($amount-(int)$amount) * 100); $strform = number_format($amount,3); $right_of_decimal = (int)substr($strform, strpos($strform,'.')+1); $this->__toWords__($right_of_decimal, $minor); $this->words = $whole_number_part . ' ' . $this->words; } function __toWords__($amount, $major) { $this->major = $major; #$this->minor = $minor; $this->number = number_format($amount, 3); list($this->pounds, $this->pence) = explode('.', $this->number); $this->words = " $this->major"; if ($this->pounds == 0) $this->words = "Zero $this->words"; else { $groups = explode(',', $this->pounds); $groups = array_reverse($groups); for ($this->magind = 0; $this->magind < count($groups); $this->magind++) { if (($this->magind == 1) && (strpos($this->words, 'hundred') === false) && ($groups[0] != '000')) $this->words = ' and ' . $this->words; $this->words = $this->_build($groups[$this->magind]) . $this->words; } } } function _build($n) { $res = ''; $na = str_pad("$n", 3, "0", STR_PAD_LEFT); if ($na == '000') return ''; if ($na{0} != 0) $res = ' ' . $this->units[$na{0}] . ' hundred'; if (($na{1} == '0') && ($na{2} == '0')) return $res . ' ' . $this->mag[$this->magind]; $res .= $res == '' ? '' : ' and'; $t = (int) $na{1}; $u = (int) $na{2}; switch ($t) { case 0: $res .= ' ' . $this->units[$u]; break; case 1: $res .= ' ' . $this->teens[$u]; break; default: $res .= ' ' . $this->tens[$t] . ' ' . $this->units[$u]; break; } $res .= ' ' . $this->mag[$this->magind]; return $res; } } ?>