process.tpl 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <script type='text/javascript' src="../js/buycourses.js"></script>
  2. <link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
  3. <div class="row">
  4. <div class="span12">
  5. <div id="course_category_well" class="well span3">
  6. <ul class="nav nav-list">
  7. <li class="nav-header"><h4>{{ 'UserInformation'|get_plugin_lang('BuyCoursesPlugin') }}:</h4></li>
  8. <li class="nav-header">{{ 'Name'|get_lang }}:</li>
  9. <li><h5>{{ name }}</h5></li>
  10. <li class="nav-header">{{ 'User'|get_lang }}:</li>
  11. <li><h5>{{ user }}</h5></li>
  12. <li class="nav-header">{{ 'Email'|get_lang }}:</li>
  13. <li><h5>{{ email }}</h5></li>
  14. <br/>
  15. </ul>
  16. </div>
  17. <br/><br/>
  18. <div class="well_border span8">
  19. {% if isSession == "YES" %}
  20. <div class="row">
  21. <div class="span4">
  22. <div class="categories-course-description">
  23. <h3>{{ title }}</h3>
  24. <h5>{{ 'From'|get_lang }} {{ session.access_start_date }} {{ 'To'|get_lang }} {{ session.access_end_date }}</h5>
  25. </div>
  26. </div>
  27. <div class="span right">
  28. <div class="sprice right">
  29. {{ session.price }} {{ currency }}
  30. </div>
  31. <div class="cleared"></div>
  32. </div>
  33. </div>
  34. {% for course in session.courses %}
  35. <div class="row">
  36. <div class="span">
  37. <div class="thumbnail">
  38. <a class="ajax" rel="gb_page_center[778]" title="" href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
  39. <img alt="" src="{{ server }}{{ course.course_img }}">
  40. </a>
  41. </div>
  42. </div>
  43. <div class="span4">
  44. <div class="categories-course-description">
  45. <h3>{{ course.title }}</h3>
  46. <h5>{{ 'Teacher'|get_lang }}: {{ course.teacher }}</h5>
  47. </div>
  48. {% if course.enrolled == "YES" %}
  49. <span class="label label-info">{{ 'TheUserIsAlreadyRegisteredInTheCourse'|get_plugin_lang('BuyCoursesPlugin') }}</span>
  50. {% endif %}
  51. {% if course.enrolled == "TMP" %}
  52. <span class="label label-warning">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</span>
  53. {% endif %}
  54. </div>
  55. <div class="span right">
  56. <div class="cleared"></div>
  57. <div class="btn-toolbar right">
  58. <a class="ajax btn btn-primary" title="" href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
  59. {{ 'Description'|get_lang }}
  60. </a>
  61. </div>
  62. </div>
  63. </div>
  64. {% endfor %}
  65. {% else %}
  66. <div class="row">
  67. <div class="span">
  68. <div class="thumbnail">
  69. <a class="ajax" rel="gb_page_center[778]" title=""
  70. href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
  71. <img alt="" src="{{ server }}{{ course.course_img }}">
  72. </a>
  73. </div>
  74. </div>
  75. <div class="span4">
  76. <div class="categories-course-description">
  77. <h3>{{ course.title }}</h3>
  78. <h5>{{ 'Teacher'|get_lang }}: {{ course.teacher }}</h5>
  79. </div>
  80. </div>
  81. <div class="span right">
  82. <div class="sprice right">{{ course.price }} {{ currency }}</div>
  83. <div class="cleared"></div>
  84. <div class="btn-toolbar right">
  85. <a class="ajax btn btn-primary" title=""
  86. href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">{{'Description'|get_lang }}
  87. </a>
  88. </div>
  89. </div>
  90. </div>
  91. {% endif %}
  92. </div>
  93. </div>
  94. <div class="cleared"></div>
  95. <form class="form-horizontal span3 offset4" action="../src/process_confirm.php" method="post">
  96. <fieldset>
  97. <legend align="center">{{ 'PaymentMethods'|get_plugin_lang('BuyCoursesPlugin') }}</legend>
  98. <div align="center" class="control-group">
  99. <div class="controls margin-left-fifty">
  100. {% if paypal_enable == "true" %}
  101. <label class="radio">
  102. <input type="radio" id="payment_type-p" name="payment_type" value="PayPal" > Paypal
  103. </label>
  104. {% endif %}
  105. {% if transfer_enable == "true" %}
  106. <label class="radio">
  107. <input type="radio" id="payment_type-tra" name="payment_type" value="Transfer" > {{ 'BankTransfer'|get_plugin_lang('BuyCoursesPlugin') }}
  108. </label>
  109. {% endif %}
  110. </div>
  111. </br>
  112. <input type="hidden" name="currency_type" value="{{ currency }}" />
  113. <input type="hidden" name="server" value="{{ server }}"/>
  114. <input align="center" type="submit" class="btn btn-success" value="{{ 'ConfirmOrder'|get_plugin_lang('BuyCoursesPlugin') }}"/>
  115. </div>
  116. </fieldset>
  117. </form>
  118. <div class="cleared"></div>
  119. </div>