uc_order-invoice-page.tpl.php 904 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a printable Ubercart invoice.
  5. *
  6. * @see template_preprocess_uc_order_invoice_page()
  7. */
  8. ?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  10. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  12. <head>
  13. <?php print $head; ?>
  14. <title><?php print $head_title; ?></title>
  15. <style type="text/css">
  16. .buttons {
  17. text-align: right;
  18. margin: 0 1em 1em 0;
  19. }
  20. </style>
  21. <style type="text/css" media="print">
  22. .buttons {
  23. display: none;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="buttons">
  29. <input type="button" value="<?php print t('Print invoice'); ?>" onclick="window.print();" />
  30. </div>
  31. <?php print $content; ?>
  32. </body>
  33. </html>