You are here

commerce-order-invoice-view.tpl.php in Commerce Invoice Receipt 7

File

theme/commerce-order-invoice-view.tpl.php
View source
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>
  <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#CCCCCC">
      <tr>
        <td>
          <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: 10px;">
            <tr>
              <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family: verdana, arial, helvetica; font-size: 11px;">
                  <tr>
                    <td nowrap="nowrap" style="line-height: 1.6em;" valign="middle">
											<!-- Invoice Header -->
											<img src="<?php

print $info['site_logo'];
?>" />
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family: verdana, arial, helvetica; font-size: 11px;">
                  <tr>
                    <th colspan="2"><?php

print t('Order Summary');
?></th>
                  </tr>
                  <tr>
                    <td colspan="2">

                      <table class="details" width="100%" cellspacing="0" cellpadding="0" style="font-family: verdana, arial, helvetica; font-size: 1em;">
                        <tr>
                          <td valign="top" width="50%">
                            <br/>
                            <b><?php

print t('Account No:');
?></b> <?php

print $info['order_uid'];
?><br/>
                            <br/>
                            <b><?php

print t('Order Date:');
?></b> <?php

print date('j F, Y', $info['order_created']);
?><br/>
                            <br/>
                            <b><?php

print t('Billing Address:');
?></b><br />
                            <?php

print isset($info['customer_billing']) ? $info['customer_billing'] : '';
?><br />
                          </td>
                          <td valign="top" width="50%">
                            <br/>
                            <b><?php

print t('Web Order No:');
?></b> <?php

print $info['order_number'];
?><br/>
                            <br/>
                            <b><?php

print t('Email Address:');
?></b> <?php

print $info['order_mail'];
?><br/>
                            <?php

if (isset($info['customer_shipping']) && !empty($info['customer_shipping'])) {
  ?>
                            <br/>
                            <b><?php

  print t('Shipping Address:');
  ?></b><br />
                            <?php

  print $info['customer_shipping'];
  ?><br />
                            <?php

}
?>
                          </td>
                        </tr>
                      </table>

                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td>
                <table class="products" width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family: verdana, arial, helvetica; font-size: 11px;">
                  <tbody>
                    <tr>
                      <td class="line-items"><?php

print isset($info['line_items']) ? $info['line_items'] : '';
?></td>
                    </tr>
                    <tr>
                      <td><?php

print isset($info['order_total']) ? $info['order_total'] : '';
?></td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td>
                <table>
                  <tr>
                    <td colspan="2" style="background: #EEEEEE; color: #666666; padding: 1em; font-size: 0.9em; line-height: 1.6em; border-top: #CCCCCC 1px dotted; text-align: center;">
                      <!-- Invoice Footer -->
											<a href="<?php

print url('<front>', array(
  'absolute' => TRUE,
));
?>" target="_blank">
                        <?php

print variable_get('site_name', NULL);
?>
                      </a><br>
                      <?php

print variable_get('site_mail', NULL);
?>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>