paymentsetup.tpl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <script type='text/javascript' src="../js/buycourses.js"></script>
  2. <link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
  3. <div class="row">
  4. <div class="span12">
  5. <p class="normal-message">{{ 'PluginInstruction'|get_plugin_lang('BuyCoursesPlugin') }}<a href="{{ server }}main/admin/configure_plugin.php?name=buycourses">{{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }}</a></p>
  6. </div>
  7. </div>
  8. <div class="row">
  9. <div class="span6">
  10. <div class="info">
  11. <h3>{{ 'CurrencyType'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  12. <p>{{ 'InfoCurrency'|get_plugin_lang('BuyCoursesPlugin') }}</p>
  13. </div>
  14. <div class="input-content">
  15. <select id="currency_type">
  16. <option value="" selected="selected">{{ 'SelectACurrency'|get_plugin_lang('BuyCoursesPlugin') }}</option>
  17. {% for currency in currencies %}
  18. {% if currency.status == 1 %}
  19. <option value="{{ currency.country_id }}" selected="selected">{{ currency.country_name }} => {{ currency.currency_code }}
  20. </option>
  21. {% else %}
  22. <option value="{{ currency.country_id }}">{{ currency.country_name }} => {{ currency.currency_code }}</option>
  23. {% endif %}
  24. {% endfor %}
  25. </select>
  26. <input type="button" id="save_currency" class="btn btn-primary" value="{{ 'Save'|get_lang }}" />
  27. </div>
  28. </div>
  29. {% if paypal_enable == "true" %}
  30. <div class="span6">
  31. <div class="info">
  32. <h3>{{ 'PayPalConfig'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  33. </div>
  34. <div class="input-content">
  35. <p>{{ 'InfoApiCredentials'|get_plugin_lang('BuyCoursesPlugin') }}</p>
  36. <ul>
  37. <li>{{ 'InfoApiStepOne'|get_plugin_lang('BuyCoursesPlugin') }}</li>
  38. <li>{{ 'InfoApiStepTwo'|get_plugin_lang('BuyCoursesPlugin') }}</li>
  39. <li>{{ 'InfoApiStepThree'|get_plugin_lang('BuyCoursesPlugin') }}</li>
  40. </ul>
  41. <label class="control-label">API_UserName: </label><input type="text" id="username" value="{{ paypal.username | e}}" />
  42. <label class="control-label">API_Password: </label><input type="text" id="password" value="{{ paypal.password | e }}"/>
  43. <label class="control-label">API_Signature: </label> <input type="text" id="signature" value="{{ paypal.signature | e }}"/>
  44. {% if paypal.sandbox == "YES" %}
  45. <label class="checkbox">
  46. <input type="checkbox" id="sandbox" value="YES" checked="checked"> {{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}
  47. </label>
  48. {% else %}
  49. <label class="checkbox">
  50. <input type="checkbox" id="sandbox" value="YES" />{{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}
  51. </label>
  52. {% endif %}
  53. <input type="button" id="save_paypal" class="btn btn-primary" value="{{ 'Save'|get_lang }}"/>
  54. </div>
  55. </div>
  56. {% endif %}
  57. </div>
  58. <div class="row">
  59. <div class="span12">
  60. {% if transfer_enable == "true" %}
  61. <hr />
  62. <h3>{{ 'TransfersConfig'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
  63. <table id="transfer_table" class="data_table">
  64. <tr class="row_odd">
  65. <th class="bg-color">{{ 'Name'|get_lang }}</th>
  66. <th class="bg-color">{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}</th>
  67. <th class="bg-color">{{ 'SWIFT'|get_lang }}</th>
  68. <th class="span1 ta-center bg-color">{{ 'Option'|get_lang }}</th>
  69. </tr>
  70. {% set i = 0 %}
  71. {% for transf in transfer %}
  72. {{ i%2==0 ? '
  73. <tr class="row_even">' : '
  74. <tr class="row_odd">' }}
  75. {% set i = i + 1 %}
  76. <td>{{ transf.name | e }}</td>
  77. <td>{{ transf.account | e }}</td>
  78. <td>{{ transf.swift | e }}</td>
  79. <td class="ta-center" id="account{{ transf.id }}">
  80. <img src="{{ delete_img }}" class="cursor delete_account" alt="ok"/>
  81. <input type="hidden" id="id_account{{ transf.id }}" name="id_account{{ transf.id }}" value="{{ transf.id }}" />
  82. </td>
  83. </tr>
  84. {% endfor %}
  85. {{ i%2==0 ? '
  86. <tr class="row_even">' : '
  87. <tr class="row_odd">' }}
  88. <td><input class="span4" type="text" id="tname"/></td>
  89. <td><input type="text" id="taccount"/></td>
  90. <td><input class="span2" type="text" id="tswift"</td>
  91. <td class="ta-center">
  92. <img class="cursor" id="add_account" src="{{ more_img }}" alt="add account"/>
  93. </td>
  94. </tr>
  95. </table>
  96. {% endif %}
  97. </div>
  98. <div class="cleared"></div>
  99. </div>