A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. <div id="PaymentModule">
  2. <?php
  3. if($_CONTROL->HasActiveMethods)
  4. {
  5. print '<div class="heading">' . Quinta::Translate('Billing Address') . ': </div>';
  6. $_CONTROL->objAddressSelectionModule->Render();
  7. print '<div class="spacer"></div><hr> <div class="spacer"></div>';
  8. print '<div class="heading">' . Quinta::Translate('Payment Method') . ': </div>';
  9. print '<div class="PaymentRadioButtons"> ';
  10. if( $_CONTROL->ShowCCInput )
  11. {
  12. print '<div class="spacer"></div>';
  13. foreach($_CONTROL->aryPaymentMethodControllers as $objMethodView)
  14. {
  15. if($objMethodView->PaymentMethod->RequiresCcNumber)
  16. {
  17. print '<div class="spacer"></div>';
  18. $objMethodView->Render();
  19. print '<div class="spacer"></div>';
  20. }
  21. }
  22. ?>
  23. <table class="CCInput">
  24. <tr>
  25. <td colspan="2"><?php $_CONTROL->txtCCNumber->RenderWithName(); ?></td>
  26. </tr>
  27. <tr>
  28. <td><div class="renderWithName"><?php print Quinta::Translate('Expiration Date') . ': '; ?></div></td>
  29. <td>
  30. <?php
  31. $_CONTROL->lstCCExpirationMonth->RenderWithError();
  32. $_CONTROL->lstCCExpirationYear->RenderWithError();
  33. ?>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td colspan="2"><?php $_CONTROL->txtCCVNumber->RenderWithName(); ?></td>
  38. </tr>
  39. </table>
  40. <?php
  41. }
  42. foreach($_CONTROL->aryPaymentMethodControllers as $objMethodView)
  43. {
  44. if( ! $objMethodView->PaymentMethod->RequiresCcNumber)
  45. {
  46. print '<div class="spacer"></div>';
  47. print '<div class="spacer"></div>';
  48. $objMethodView->Render();
  49. print '<div class="spacer"></div>';
  50. }
  51. }
  52. print '</div>';
  53. }
  54. ?>
  55. </div>