Source Code Documentation


pro\s2member-pro\includes\templates\forms\authnet-update-form.php


  1. <?php
  2. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  3. exit("Do not access this file directly.");
  4. ?>
  5.  
  6. <form id="s2member-pro-authnet-update-form" class="s2member-pro-authnet-form s2member-pro-authnet-update-form" method="post" action="%%action%%">
  7.  
  8. <!-- Response Section (this is auto-filled after form submission). -->
  9. <div id="s2member-pro-authnet-update-form-response-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-update-form-section s2member-pro-authnet-form-response-section s2member-pro-authnet-update-form-response-section">
  10. <div id="s2member-pro-authnet-update-form-response-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-response-div s2member-pro-authnet-update-form-response-div">
  11. %%response%%
  12. </div>
  13. <div style="clear:both;"></div>
  14. </div>
  15.  
  16. <!-- Checkout Description (this is the desc="" attribute from your Shortcode). -->
  17. <div id="s2member-pro-authnet-update-form-description-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-update-form-section s2member-pro-authnet-form-description-section s2member-pro-authnet-update-form-description-section">
  18. <div id="s2member-pro-authnet-update-form-description-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-description-div s2member-pro-authnet-update-form-description-div">
  19. %%description%%
  20. </div>
  21. <div style="clear:both;"></div>
  22. </div>
  23.  
  24. <!-- Billing Method (Customers can use a Credit/Debit card only). -->
  25. <div id="s2member-pro-authnet-update-form-billing-method-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-update-form-section s2member-pro-authnet-form-billing-method-section s2member-pro-authnet-update-form-billing-method-section">
  26. <div id="s2member-pro-authnet-update-form-billing-method-section-title" class="s2member-pro-authnet-form-section-title s2member-pro-authnet-update-form-section-title s2member-pro-authnet-form-billing-method-section-title s2member-pro-authnet-update-form-billing-method-section-title">
  27. <?php echo _x ("New Billing Method", "s2member-front", "s2member"); ?>
  28. </div>
  29. <div id="s2member-pro-authnet-update-form-card-type-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-card-type-div s2member-pro-authnet-update-form-card-type-div">
  30. %%card_type_options%%
  31. </div>
  32. <div id="s2member-pro-authnet-update-form-card-number-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-card-number-div s2member-pro-authnet-update-form-card-number-div">
  33. <label for="s2member-pro-authnet-update-card-number" id="s2member-pro-authnet-update-form-card-number-label" class="s2member-pro-authnet-form-card-number-label s2member-pro-authnet-update-form-card-number-label">
  34. <span><?php echo _x ("Card Number (no dashes or spaces)", "s2member-front", "s2member"); ?> *</span><br />
  35. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_update[card_number]" id="s2member-pro-authnet-update-card-number" class="s2member-pro-authnet-card-number s2member-pro-authnet-update-card-number" value="%%card_number_value%%" tabindex="20" />
  36. </label>
  37. </div>
  38. <div id="s2member-pro-authnet-update-form-card-expiration-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-card-expiration-div s2member-pro-authnet-update-form-card-expiration-div">
  39. <label for="s2member-pro-authnet-update-card-expiration" id="s2member-pro-authnet-update-form-card-expiration-label" class="s2member-pro-authnet-form-card-expiration-label s2member-pro-authnet-update-form-card-expiration-label">
  40. <span><?php echo _x ("Card Expiration Date (mm/yyyy)", "s2member-front", "s2member"); ?> *</span><br />
  41. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_update[card_expiration]" id="s2member-pro-authnet-update-card-expiration" class="s2member-pro-authnet-card-expiration s2member-pro-authnet-update-card-expiration" value="%%card_expiration_value%%" tabindex="30" />
  42. </label>
  43. </div>
  44. <div id="s2member-pro-authnet-update-form-card-verification-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-card-verification-div s2member-pro-authnet-update-form-card-verification-div">
  45. <label for="s2member-pro-authnet-update-card-verification" id="s2member-pro-authnet-update-form-card-verification-label" class="s2member-pro-authnet-form-card-verification-label s2member-pro-authnet-update-form-card-verification-label">
  46. <span><?php echo _x ("Card Verification Code (3-4 digits)", "s2member-front", "s2member"); ?> * <a href="http://en.wikipedia.org/wiki/Card_security_code" target="_blank" tabindex="-1" rel="external nofollow"><?php echo _x ("need help?", "s2member-front", "s2member"); ?></a></span><br />
  47. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_update[card_verification]" id="s2member-pro-authnet-update-card-verification" class="s2member-pro-authnet-card-verification s2member-pro-authnet-update-card-verification" value="%%card_verification_value%%" tabindex="40" />
  48. </label>
  49. </div>
  50. <!-- This is displayed only when Maestro®/Solo® cards are selected as the Payment Method. -->
  51. <div id="s2member-pro-authnet-update-form-card-start-date-issue-number-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-card-start-date-issue-number-div s2member-pro-authnet-update-form-card-start-date-issue-number-div">
  52. <label for="s2member-pro-authnet-update-card-start-date-issue-number" id="s2member-pro-authnet-update-form-card-start-date-issue-number-label" class="s2member-pro-authnet-form-card-start-date-issue-number-label s2member-pro-authnet-update-form-card-start-date-issue-number-label">
  53. <span><?php echo _x ("Card Start Date (mm/yyyy), or Issue Number", "s2member-front", "s2member"); ?> *</span><br />
  54. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_update[card_start_date_issue_number]" id="s2member-pro-authnet-update-card-start-date-issue-number" class="s2member-pro-authnet-card-start-date-issue-number s2member-pro-authnet-update-card-start-date-issue-number" value="%%card_start_date_issue_number_value%%" tabindex="50" />
  55. </label>
  56. </div>
  57. <div style="clear:both;"></div>
  58. </div>
  59.  
  60. <!-- Billing Address (hidden dynamically when/if no Payment Method is selected yet). -->
  61. <div id="s2member-pro-authnet-update-form-billing-address-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-update-form-section s2member-pro-authnet-form-billing-address-section s2member-pro-authnet-update-form-billing-address-section">
  62. <div id="s2member-pro-authnet-update-form-billing-address-section-title" class="s2member-pro-authnet-form-section-title s2member-pro-authnet-update-form-section-title s2member-pro-authnet-form-billing-address-section-title s2member-pro-authnet-update-form-billing-address-section-title">
  63. <?php echo _x ("Billing Address", "s2member-front", "s2member"); ?>
  64. </div>
  65. <div id="s2member-pro-authnet-update-form-street-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-street-div s2member-pro-authnet-update-form-street-div">
  66. <label for="s2member-pro-authnet-update-street" id="s2member-pro-authnet-update-form-street-label" class="s2member-pro-authnet-form-street-label s2member-pro-authnet-update-form-street-label">
  67. <span><?php echo _x ("Street Address", "s2member-front", "s2member"); ?> *</span><br />
  68. <input type="text" aria-required="true" maxlength="60" autocomplete="off" name="s2member_pro_authnet_update[street]" id="s2member-pro-authnet-update-street" class="s2member-pro-authnet-street s2member-pro-authnet-update-street" value="%%street_value%%" tabindex="100" />
  69. </label>
  70. </div>
  71. <div id="s2member-pro-authnet-update-form-city-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-city-div s2member-pro-authnet-update-form-city-div">
  72. <label for="s2member-pro-authnet-update-city" id="s2member-pro-authnet-update-form-city-label" class="s2member-pro-authnet-form-city-label s2member-pro-authnet-update-form-city-label">
  73. <span><?php echo _x ("City / Town", "s2member-front", "s2member"); ?> *</span><br />
  74. <input type="text" aria-required="true" maxlength="40" autocomplete="off" name="s2member_pro_authnet_update[city]" id="s2member-pro-authnet-update-city" class="s2member-pro-authnet-city s2member-pro-authnet-update-city" value="%%city_value%%" tabindex="110" />
  75. </label>
  76. </div>
  77. <div id="s2member-pro-authnet-update-form-state-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-state-div s2member-pro-authnet-update-form-state-div">
  78. <label for="s2member-pro-authnet-update-state" id="s2member-pro-authnet-update-form-state-label" class="s2member-pro-authnet-form-state-label s2member-pro-authnet-update-form-state-label">
  79. <span><?php echo _x ("State / Province", "s2member-front", "s2member"); ?> *</span><br />
  80. <input type="text" aria-required="true" maxlength="2" autocomplete="off" name="s2member_pro_authnet_update[state]" id="s2member-pro-authnet-update-state" class="s2member-pro-authnet-state s2member-pro-authnet-update-state" value="%%state_value%%" tabindex="120" />
  81. </label>
  82. </div>
  83. <div id="s2member-pro-authnet-update-form-country-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-country-div s2member-pro-authnet-update-form-country-div">
  84. <label for="s2member-pro-authnet-update-country" id="s2member-pro-authnet-update-form-country-label" class="s2member-pro-authnet-form-country-label s2member-pro-authnet-update-form-country-label">
  85. <span><?php echo _x ("Country", "s2member-front", "s2member"); ?> *</span><br />
  86. <select aria-required="true" name="s2member_pro_authnet_update[country]" id="s2member-pro-authnet-update-country" class="s2member-pro-authnet-country s2member-pro-authnet-update-country" tabindex="130">
  87. %%country_options%%
  88. </select>
  89. </label>
  90. </div>
  91. <div id="s2member-pro-authnet-update-form-zip-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-zip-div s2member-pro-authnet-update-form-zip-div">
  92. <label for="s2member-pro-authnet-update-zip" id="s2member-pro-authnet-update-form-zip-label" class="s2member-pro-authnet-form-zip-label s2member-pro-authnet-update-form-zip-label">
  93. <span><?php echo _x ("Postal / Zip Code", "s2member-front", "s2member"); ?> *</span><br />
  94. <input type="text" aria-required="true" maxlength="20" autocomplete="off" name="s2member_pro_authnet_update[zip]" id="s2member-pro-authnet-update-zip" class="s2member-pro-authnet-zip s2member-pro-authnet-update-zip" value="%%zip_value%%" tabindex="140" />
  95. </label>
  96. </div>
  97. <div style="clear:both;"></div>
  98. </div>
  99.  
  100. <!-- Captcha ( A reCaptcha section, with a required security code will appear here; if captcha="1" ). -->
  101. %%captcha%%
  102.  
  103. <!-- Checkout Now (this holds the submit button, and also some dynamic hidden input variables). -->
  104. <div id="s2member-pro-authnet-update-form-submission-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-update-form-section s2member-pro-authnet-form-submission-section s2member-pro-authnet-update-form-submission-section">
  105. <div id="s2member-pro-authnet-update-form-submission-section-title" class="s2member-pro-authnet-form-section-title s2member-pro-authnet-update-form-section-title s2member-pro-authnet-form-submission-section-title s2member-pro-authnet-update-form-submission-section-title">
  106. <?php echo _x ("Update Billing Information", "s2member-front", "s2member"); ?>
  107. </div>
  108. <div id="s2member-pro-authnet-update-form-submit-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-update-form-div s2member-pro-authnet-form-submit-div s2member-pro-authnet-update-form-submit-div">
  109. %%hidden_inputs%% <!-- Auto-filled by the s2Member software. Do NOT remove this under any circumstance. -->
  110. <input type="submit" id="s2member-pro-authnet-update-submit" class="s2member-pro-authnet-submit s2member-pro-authnet-update-submit" value="<?php echo esc_attr (_x ("Submit Form", "s2member-front", "s2member")); ?>" tabindex="300" />
  111. </div>
  112. <div style="clear:both;"></div>
  113. </div>
  114. </form>

pro\s2member-pro\includes\templates\forms\authnet-update-form.php

Source Code Documentation