
<html>
<title>Receipt</title>
<head>
    <link type="text/css" href="css/pdfstyle.css" rel="stylesheet">
    <link type="text/css" href="css/reset.css" rel="stylesheet">
</head>
<body onload="window.print();">
<div class="container" >

    <!-- LOGOS -->
   <!-- <div style="width: 100%;height: 120px;">
        <?php
        $qry_p=mysql_query("SELECT * FROM $my_sel_db.`company_det` order by id asc");
        $qry_p_fet=mysql_fetch_array($qry_p);
        if(isset($qry_p_fet['comp_logo']))
        {
            ?>
            <img src="ems_company_details/logo/<?php echo $qry_p_fet['comp_logo']; ?>" style="width: 200px;height: 90px;" />
        <?php
        }
        if(isset($qry_p_fet['company_head']))
        {
            ?>
            <img src="ems_company_details/header/<?php echo $qry_p_fet['company_head']; ?>" style="width: 518px;height: 124px;margin-left: 55px;" />
        <?php
        }
        ?>
   </div>  -->
    <!-- END LOGOS -->

    <br>
    <img src="img_pdf/cash_receipt.jpg" style="float: right;margin-right: 40px;" />
    <br><br>
    <div  style="width: 100%;text-align: center;"><img src="invoice/images/receipt_head.jpg" /></div>
    <br><br><br>
    
    <div style="width: 100%;min-height: 100px;">
        <p style="line-height: 30px;font-size: 15px;font-weight: bold;margin-left: 5px;float: left;">Receipt No&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;123</p>

        <p style="line-height: 30px;font-size: 15px;font-weight: bold;margin-left: 5px;float: right;">Date&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;12-12-2000</p>
    </div>
    <br><br>


    <table>
        <tr>
            <td style="line-height: 25px;font-weight: bold;font-size: 17px;width: 130px;">Received From</td>

            <td style="font-size: 19px;font-weight: bold;line-height: 25px;border-bottom: 1px solid #000000;width: 380px;text-align: center;font-style: italic;"><?php echo $qry_c_fet['cust_name']; ?></td>

            <td style="width: 120px;line-height: 25px;font-weight: bold;font-size: 17px;">the amount of</td>

            <td style="font-size: 19px;font-weight: bold;line-height: 25px;border-bottom: 1px solid #000000;padding-left: 15px;padding-right: 15px;width: 300px;text-align: center;font-style: italic;"><?php echo $qry222_fet['amount'].' Rs'; ?></td>

        </tr>
        <tr style="height: 50px;"></tr>
        <tr>

            <td style="line-height: 25px;font-weight: bold;font-size: 17px;">Towards</td>

            <td colspan="3" style="font-size: 19px;font-weight: bold;line-height: 25px;border-bottom: 1px solid #000000;padding-left: 15px;padding-right: 15px;width: 300px;text-align: center;font-style: italic;"><?php echo $qry222_fet['towards']; ?></td>

        </tr>
    </table>

    <br><br><br>

    <div style="float: right;">
        Received by (Name/Signature)
    </div>
    <div style="float: right;width: 100%;">
      <p style="font-size: 16px;font-weight: bold;">
          Cash&nbsp;&nbsp;&nbsp;:
          <?php
          if($qry222_fet['amt_type'] == 'cash')
          {
          ?>
              <img style="margin-left: 20px;margin-right: 20px;" src="img_pdf/checked.jpg" width="20" height="20">
          <?php
          }
          else
          {
          ?>
          <img style="margin-left: 20px;" src="img_pdf/un_checked.jpg" width="20" height="20"></p>
          <?php
          }
          ?>

          Cheque&nbsp;&nbsp;&nbsp;:
        <?php
        if($qry222_fet['amt_type'] == 'cheque')
        {
            ?>
            <img style="margin-left: 20px;margin-right: 20px;" src="img_pdf/checked.jpg" width="20" height="20">
        <?php
        }
        else
        {
            ?>
            <img style="margin-left: 20px;" src="img_pdf/un_checked.jpg" width="20" height="20"></p>
        <?php
        }
        ?>

    </div>