/mall/upload/admin/view/template/payment/authorizenet_aim.tpl

https://bitbucket.org/allanxyh/uniquemall · Smarty Template · 132 lines · 132 code · 0 blank · 0 comment · 29 complexity · 2f3316bb70b2488b1dd6a9485578f22c MD5 · raw file

  1. <?php echo $header; ?>
  2. <div id="content">
  3. <div class="breadcrumb">
  4. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  5. <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  6. <?php } ?>
  7. </div>
  8. <?php if ($error_warning) { ?>
  9. <div class="warning"><?php echo $error_warning; ?></div>
  10. <?php } ?>
  11. <div class="box">
  12. <div class="heading">
  13. <h1><img src="view/image/payment.png" alt="" /> <?php echo $heading_title; ?></h1>
  14. <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>
  15. </div>
  16. <div class="content">
  17. <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
  18. <table class="form">
  19. <tr>
  20. <td><span class="required">*</span> <?php echo $entry_login; ?></td>
  21. <td><input type="text" name="authorizenet_aim_login" value="<?php echo $authorizenet_aim_login; ?>" />
  22. <?php if ($error_login) { ?>
  23. <span class="error"><?php echo $error_login; ?></span>
  24. <?php } ?></td>
  25. </tr>
  26. <tr>
  27. <td><span class="required">*</span> <?php echo $entry_key; ?></td>
  28. <td><input type="text" name="authorizenet_aim_key" value="<?php echo $authorizenet_aim_key; ?>" />
  29. <?php if ($error_key) { ?>
  30. <span class="error"><?php echo $error_key; ?></span>
  31. <?php } ?></td>
  32. </tr>
  33. <tr>
  34. <td><?php echo $entry_hash; ?></td>
  35. <td><input type="text" name="authorizenet_aim_hash" value="<?php echo $authorizenet_aim_hash; ?>" /></td>
  36. </tr>
  37. <tr>
  38. <td><?php echo $entry_server; ?></td>
  39. <td><select name="authorizenet_aim_server">
  40. <?php if ($authorizenet_aim_server == 'live') { ?>
  41. <option value="live" selected="selected"><?php echo $text_live; ?></option>
  42. <?php } else { ?>
  43. <option value="live"><?php echo $text_live; ?></option>
  44. <?php } ?>
  45. <?php if ($authorizenet_aim_server == 'test') { ?>
  46. <option value="test" selected="selected"><?php echo $text_test; ?></option>
  47. <?php } else { ?>
  48. <option value="test"><?php echo $text_test; ?></option>
  49. <?php } ?>
  50. </select></td>
  51. </tr>
  52. <tr>
  53. <td><?php echo $entry_mode; ?></td>
  54. <td><select name="authorizenet_aim_mode">
  55. <?php if ($authorizenet_aim_mode == 'live') { ?>
  56. <option value="live" selected="selected"><?php echo $text_live; ?></option>
  57. <?php } else { ?>
  58. <option value="live"><?php echo $text_live; ?></option>
  59. <?php } ?>
  60. <?php if ($authorizenet_aim_mode == 'test') { ?>
  61. <option value="test" selected="selected"><?php echo $text_test; ?></option>
  62. <?php } else { ?>
  63. <option value="test"><?php echo $text_test; ?></option>
  64. <?php } ?>
  65. </select></td>
  66. </tr>
  67. <tr>
  68. <td><?php echo $entry_method; ?></td>
  69. <td><select name="authorizenet_aim_method">
  70. <?php if ($authorizenet_aim_method == 'authorization') { ?>
  71. <option value="authorization" selected="selected"><?php echo $text_authorization; ?></option>
  72. <?php } else { ?>
  73. <option value="authorization"><?php echo $text_authorization; ?></option>
  74. <?php } ?>
  75. <?php if ($authorizenet_aim_method == 'capture') { ?>
  76. <option value="capture" selected="selected"><?php echo $text_capture; ?></option>
  77. <?php } else { ?>
  78. <option value="capture"><?php echo $text_capture; ?></option>
  79. <?php } ?>
  80. </select></td>
  81. </tr>
  82. <tr>
  83. <td><?php echo $entry_total; ?></td>
  84. <td><input type="text" name="authorizenet_aim_total" value="<?php echo $authorizenet_aim_total; ?>" /></td>
  85. </tr>
  86. <tr>
  87. <td><?php echo $entry_order_status; ?></td>
  88. <td><select name="authorizenet_aim_order_status_id">
  89. <?php foreach ($order_statuses as $order_status) { ?>
  90. <?php if ($order_status['order_status_id'] == $authorizenet_aim_order_status_id) { ?>
  91. <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
  92. <?php } else { ?>
  93. <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
  94. <?php } ?>
  95. <?php } ?>
  96. </select></td>
  97. </tr>
  98. <tr>
  99. <td><?php echo $entry_geo_zone; ?></td>
  100. <td><select name="authorizenet_aim_geo_zone_id">
  101. <option value="0"><?php echo $text_all_zones; ?></option>
  102. <?php foreach ($geo_zones as $geo_zone) { ?>
  103. <?php if ($geo_zone['geo_zone_id'] == $authorizenet_aim_geo_zone_id) { ?>
  104. <option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option>
  105. <?php } else { ?>
  106. <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>
  107. <?php } ?>
  108. <?php } ?>
  109. </select></td>
  110. </tr>
  111. <tr>
  112. <td><?php echo $entry_status; ?></td>
  113. <td><select name="authorizenet_aim_status">
  114. <?php if ($authorizenet_aim_status) { ?>
  115. <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
  116. <option value="0"><?php echo $text_disabled; ?></option>
  117. <?php } else { ?>
  118. <option value="1"><?php echo $text_enabled; ?></option>
  119. <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
  120. <?php } ?>
  121. </select></td>
  122. </tr>
  123. <tr>
  124. <td><?php echo $entry_sort_order; ?></td>
  125. <td><input type="text" name="authorizenet_aim_sort_order" value="<?php echo $authorizenet_aim_sort_order; ?>" size="1" /></td>
  126. </tr>
  127. </table>
  128. </form>
  129. </div>
  130. </div>
  131. </div>
  132. <?php echo $footer; ?>