Advertisement
Guest User

MCB Theme

a guest
Jul 9th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.24 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <style type="text/css">
  6. * {margin: 0;padding: 0}
  7.  
  8. body {background: #ffffff;font-family: Arial, sans-serif;font-size: 14px;color: #4b4b4b;text-transform: uppercase}
  9.  
  10. td.seperator {height: 25px}
  11.  
  12. h1 {font-size: 21px;color: #4b4b4b}
  13.  
  14. h2 {font-size: 17px;color: #4b4b4b}
  15.  
  16. h3 {font-size: 15px;color: #c8c8c8}
  17.  
  18. h4 {font-size: 21px;color: #c8c8c8}
  19.  
  20. p {text-transform: none}
  21.  
  22. table#template {background: #ffffff;width: 100%;margin: 0 auto;padding: 25px}
  23.  
  24. td#invoice {width: 50%}
  25.  
  26. td#date {width: 50%;text-align: right}
  27.  
  28. td#to {width: 50%}
  29.  
  30. td#to span, td#from span {color: #4b4b4b}
  31.  
  32. .right {text-align: right}
  33.  
  34. td.legend {background: #4b4b4b;padding: 9px 12px;font-size: 15px;color: #ffffff}
  35.  
  36. td#item {width: 50%}
  37.  
  38. td#quantity {width: 12%;text-align: center}
  39.  
  40. td#price {width: 19%;text-align: center}
  41.  
  42. td#amount {width: 19%;text-align: right}
  43.  
  44. td.items {width: 50%;padding: 11px 12px;border-bottom: 1px dashed #4b4b4b}
  45. td.items span {font-size: 12px;color: #777;margin: 5px 0 0;display: block}
  46.  
  47. td.quantities {width: 12%;padding: 11px 12px;border-bottom: 1px dashed #4b4b4b;text-align: center}
  48.  
  49. td.prices {width: 19%;padding: 11px 12px;border-bottom: 1px dashed #4b4b4b;text-align: center}
  50.  
  51. td.amounts {width: 19%;padding: 11px 12px;border-bottom: 1px dashed #4b4b4b;text-align: right}
  52.  
  53. td.total-amount {width: 50%;background: #f8f8f8;padding: 9px 12px;font-size: 15px}
  54.  
  55. td.total-amount-2 {width: 50%;background: #f8f8f8;padding: 9px 12px;font-size: 15px;text-align: right}
  56.  
  57. td.discount-percent {width: 50%;padding: 9px 12px;font-size: 15px}
  58.  
  59. td.discount-amount {width: 50%;padding: 9px 12px;font-size: 15px;text-align: right}
  60.  
  61. td.total-discount {background: #4b4b4b;padding: 9px 12px;font-size: 15px;color: #ffffff}
  62.  
  63. td#total-discount-exkl {width: 50%}
  64.  
  65. td#total-discount-amount {width: 50%;text-align: right}
  66.  
  67. td#payment {width: 50%}
  68.  
  69. td#vat {width: 50%;text-align: right}
  70.  
  71. td#bank {width: 50%}
  72.  
  73. td#account {width: 50%;text-align: right}
  74.  
  75. td#logo img {border: none}
  76. </style>
  77. </head>
  78.  
  79. <body>
  80. <table id="template" border="0" cellspacing="0" cellpadding="0">
  81.     <tr>
  82.     <td id="logo"><?php echo invoice_logo_pdf(); ?></td>
  83.     <td id="from" colspan="3" class="right">
  84.         <table border="0" cellspacing="0" cellpadding="0" width="100%" class="right">
  85.             <tr>
  86.                 <td width="33%">
  87.                     <strong><?php echo $quote->user_name; ?></strong>
  88.                 <p>
  89.                     <?php echo $quote->user_address_1; ?><br />
  90.                     <?php if ($quote->user_address_2) { echo $quote->user_address_2); echo '<br />'; } ?>
  91.                     <?php echo $quote->user_city; ?>, <?php echo $quote->user_state; ?> <?php echo $quote->user_zip; ?>
  92.                 </p>
  93.                 </td>
  94.                 <td width="66%" class="right">
  95.                     <p>
  96.                         <?php echo $quote->user_email; ?><br />
  97.                         www.CJAerialPhotography.com<br />
  98.                         <?php echo $quote->user_phone; ?>
  99.                     </p>                   
  100.                 </td>
  101.             </tr>
  102.         </table>
  103.     </td>
  104.   </tr>
  105.   <tr>
  106.     <td class="seperator" colspan="4"> </td>
  107.   </tr>
  108.   <tr>
  109.     <td id="invoice" colspan="2">
  110.       <h1><?php echo lang('quote'); ?></h1>
  111.       <h3>#<?php echo $quote->quote_number; ?></h3>
  112.     </td>
  113.     <td id="date" colspan="2">
  114.       <h1><?php echo lang('quote_date'); ?></h1>
  115.       <h3><?php echo date_from_mysql($quote->quote_date_created, TRUE); ?></h3>
  116.     </td>
  117.   </tr>
  118.   <tr>
  119.     <td class="seperator" colspan="4"> </td>
  120.   </tr>
  121.   <tr>
  122.     <td id="to" colspan="4">
  123.       <h4><?php echo lang('bill_to'); ?></h4>
  124.       <p>
  125.         <?php echo $quote->client_name; ?><br />
  126.         <?php echo $quote->client_address_1; ?><br />
  127.        <?php if ($quote->client_address_2) { echo $quote->client_address_2; echo '<br />'; } ?>
  128.         <?php echo $quote->client_city; ?>, <?php echo $quote->client_state; ?> <?php echo $quote->client_zip; ?><br />
  129.         <?php echo $quote->client_phone; ?>
  130.       </p>
  131.     </td>
  132.   </tr>
  133.   <tr>
  134.     <td class="seperator" colspan="4"> </td>
  135.   </tr>
  136.   <tr>
  137.     <td id="item" class="legend"><?php echo lang('item'); ?></td>
  138.     <td id="quantity" class="legend"><?php echo lang('qty'); ?></td>
  139.     <td id="price" class="legend"><?php echo lang('price'); ?></td>
  140.     <td id="amount" class="legend"><?php echo lang('total'); ?></td>
  141.   </tr>
  142.  
  143.   <?php foreach ($items as $item) { ?>
  144.   <tr>
  145.     <td class="items"><strong><?php echo $item->item_name; ?></strong><br /><span><?php echo $item->item_description; ?></span></td>
  146.     <td class="quantities"><?php echo $item->item_quantity; ?></td>
  147.     <td class="prices"><?php echo $item->item_price; ?></td>
  148.     <td class="amounts"><?php echo $item->item_subtotal; ?></td>
  149.     </tr>
  150.   <?php } ?>
  151.  
  152.   <tr>
  153.     <td class="total-amount" colspan="2"><?php echo lang('subtotal'); ?></td>
  154.     <td class="total-amount-2" colspan="2"><?php echo $quote->quote_item_subtotal; ?></td>
  155.   </tr>
  156.  
  157.   <?php if ($quote->quote_item_tax_total > 0) { ?>
  158.   <tr>
  159.     <td class="discount-percent" colspan="2"><?php echo lang('item_tax'); ?></td>
  160.     <td class="discount-amount" colspan="2"><?php echo format_currency($quote->quote_item_tax_total; ?></td>
  161.   </tr>
  162.  
  163.   <tr>
  164.     <td id="total-discount-exkl" class="total-discount" colspan="2"><?php echo lang('total'); ?></td>
  165.     <td id="total-discount-amount" class="total-discount" colspan="2"><?php echo format_currency($quote->quote_total); ?></td>
  166.   </tr>
  167.  
  168.   <tr>
  169.     <td class="seperator" colspan="4"> </td>
  170.   </tr>
  171.  
  172.   <tr>
  173.     <td id="payment" colspan="2">
  174.       <h2>Payment Information</h2>
  175.       <p>
  176.         This is a quote for the final value of services rendered
  177.         <br>
  178.         Cash In Person: Exact Change Only!
  179.         <br>
  180.         Check To: Excellent Exposures Photography
  181.         <br>
  182.         Credit Card: Discover, VISA, Mastercard, American Express
  183.         <br>
  184.         PayPal: PayPal@CJAerialPhotography.com
  185.       </p>
  186.     </td>
  187.     <td id="vat" colspan="2">
  188.       <h2>Thank You!</h2>
  189.       <p>
  190.         For considering CJ Aerial Photography
  191.       </p>
  192.     </td>
  193.   </tr>
  194.  
  195.   <?php } ?>
  196.  
  197. </table>
  198. </body>
  199. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement