configuration.tpl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <script type='text/javascript' src="../js/buycourses.js"></script>
  2. <link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
  3. <script>
  4. $(function() {
  5. /* Binds a tab id in the url */
  6. $("#tabs").bind('tabsselect', function(event, ui) {
  7. window.location.href=ui.tab;
  8. });
  9. // Generate tabs with jquery-ui
  10. $('#tabs').tabs();
  11. $( "#sub_tab" ).tabs();
  12. });
  13. </script>
  14. {% if sessionsAreIncluded == "YES" %}
  15. <div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"> <a href="#tabs-1">{{ 'Courses'|get_lang }}</a></li><li class="ui-state-default ui-corner-top"> <a href="#tabs-2">{{ 'Sessions'|get_lang }}</a></li></ul>
  16. {% endif %}
  17. <div id="tabs-1" class="row">
  18. <div class="span12">
  19. <table id="courses_table" class="data_table">
  20. <tr class="row_odd">
  21. <th class="bg-color">{{ 'Title'|get_lang }}</th>
  22. <th class="bg-color">{{ 'OfficialCode'|get_lang }}</th>
  23. <th class="ta-center bg-color">{{ 'Visible'|get_lang }}</th>
  24. <th class="span2 bg-color">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
  25. <th class="span1 ta-center bg-color">{{ 'Option'|get_lang }}</th>
  26. </tr>
  27. {% set i = 0 %}
  28. {% for course in courses %}
  29. {{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
  30. {% set i = i + 1 %}
  31. <td>
  32. {{ visibility[course.visibility] }}
  33. <a href="{{ server }}courses/{{course.code}}/index.php">{{course.title}}</a>
  34. <span class="label label-info">{{ course.visual_code }}</span>
  35. </td>
  36. <td>
  37. {{course.code}}
  38. </td>
  39. <td class="ta-center">
  40. {% if course.visible == 1 %}
  41. <input type="checkbox" name="visible" value="1" checked="checked" size="6" />
  42. {% else %}
  43. <input type="checkbox" name="visible" value="1" size="6" />
  44. {% endif %}
  45. </td>
  46. <td><input type="text" name="price" value="{{course.price}}" class="span1 price" /> {{ currency }}</td>
  47. <td class=" ta-center" id="course{{ course.id }}">
  48. <div class="confirmed"><img src="{{ confirmation_img }}" alt="ok"/></div>
  49. <div class="modified" style="display:none"><img id="{{course.course_id}}" src="{{ save_img }}" alt="save" class="cursor save"/></div>
  50. </td>
  51. </tr>
  52. {% endfor %}
  53. </table>
  54. </div>
  55. <div class="cleared"></div>
  56. </div>
  57. {% if sessionsAreIncluded == "YES" %}
  58. <div id="tabs-2" class="row">
  59. <div class="span12">
  60. <table id="courses_table" class="data_table">
  61. <tr class="row_odd">
  62. <th class="bg-color">{{ 'Title'|get_lang }}</th>
  63. <th class="bg-color">{{ 'StartDate'|get_lang }}</th>
  64. <th class="bg-color">{{ 'EndDate'|get_lang }}</th>
  65. <th class="bg-color ta-center">{{ 'Visible'|get_lang }}</th>
  66. <th class="bg-color span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
  67. <th class="bg-color span1 ta-center">{{ 'Option'|get_lang }}</th>
  68. </tr>
  69. {% set i = 0 %}
  70. {% for session in sessions %}
  71. {{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
  72. {% set i = i + 1 %}
  73. <td>
  74. {{ visibility[session.visibility] }}
  75. <a href="{{ server }}main/session/index.php?session_id={{ session.id }}">{{session.name}}</a>
  76. </td>
  77. <td>
  78. {{ session.access_start_date }}
  79. </td>
  80. <td>
  81. {{ session.access_end_date }}
  82. </td>
  83. <td class="ta-center">
  84. {% if session.visible == 1 %}
  85. <input type="checkbox" name="visible" value="1" checked="checked" size="6" />
  86. {% else %}
  87. <input type="checkbox" name="visible" value="1" size="6" />
  88. {% endif %}
  89. </td>
  90. <td><input type="text" name="price" value="{{session.price}}" class="span1 price" /> {{ currency }}</td>
  91. <td class=" ta-center" id="session{{ session.id }}">
  92. <div class="confirmed"><img src="{{ confirmation_img }}" alt="ok"/></div>
  93. <div class="modified" style="display:none"><img id="{{session.id}}" src="{{ save_img }}" alt="save" class="cursor save"/></div>
  94. </td>
  95. </tr>
  96. {% endfor %}
  97. </table>
  98. </div>
  99. <div class="cleared"></div>
  100. </div>
  101. </div>
  102. {% endif %}