You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
5.0 KiB
108 lines
5.0 KiB
<script type='text/javascript' src="../js/buycourses.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
|
|
|
|
<script>
|
|
$(function() {
|
|
/* Binds a tab id in the url */
|
|
$("#tabs").bind('tabsselect', function(event, ui) {
|
|
window.location.href=ui.tab;
|
|
});
|
|
// Generate tabs with jquery-ui
|
|
$('#tabs').tabs();
|
|
$( "#sub_tab" ).tabs();
|
|
});
|
|
</script>
|
|
|
|
{% if sessionsAreIncluded == "YES" %}
|
|
<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"> Cursos</a></li><li class="ui-state-default ui-corner-top"> <a href="#tabs-2"> Sesiones</a></li></ul>
|
|
{% endif %}
|
|
|
|
<div id="tabs-1" class="row">
|
|
<div class="span12">
|
|
<table id="courses_table" class="data_table">
|
|
<tr class="row_odd">
|
|
<th>{{ 'Title'|get_lang }}</th>
|
|
<th>{{ 'OfficialCode'|get_lang }}</th>
|
|
<th class="ta-center">{{ 'Visible'|get_lang }}</th>
|
|
<th class="span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
|
|
<th class="span1 ta-center">{{ 'Option'|get_lang }}</th>
|
|
</tr>
|
|
{% set i = 0 %}
|
|
|
|
{% for course in courses %}
|
|
{{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
|
|
{% set i = i + 1 %}
|
|
<td>
|
|
{{ visibility[course.visibility] }}
|
|
<a href="{{ server }}courses/{{course.code}}/index.php">{{course.title}}</a>
|
|
<span class="label label-info">{{ course.visual_code }}</span>
|
|
</td>
|
|
<td>
|
|
{{course.code}}
|
|
</td>
|
|
<td class="ta-center">
|
|
{% if course.visible == 1 %}
|
|
<input type="checkbox" name="visible" value="1" checked="checked" size="6" />
|
|
{% else %}
|
|
<input type="checkbox" name="visible" value="1" size="6" />
|
|
{% endif %}
|
|
</td>
|
|
<td><input type="text" name="price" value="{{course.price}}" class="span1 price" /> {{ currency }}</td>
|
|
<td class=" ta-center" id="course{{ course.id }}">
|
|
<div class="confirmed"><img src="{{ confirmation_img }}" alt="ok"/></div>
|
|
<div class="modified" style="display:none"><img id="{{course.course_id}}" src="{{ save_img }}" alt="save" class="cursor save"/></div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
<div class="cleared"></div>
|
|
</div>
|
|
{% if sessionsAreIncluded == "YES" %}
|
|
<div id="tabs-2" class="row">
|
|
<div class="span12">
|
|
<table id="courses_table" class="data_table">
|
|
<tr class="row_odd">
|
|
<th>{{ 'Title'|get_lang }}</th>
|
|
<th>{{ 'StartDate'|get_lang }}</th>
|
|
<th>{{ 'EndDate'|get_lang }}</th>
|
|
<th class="ta-center">{{ 'Visible'|get_lang }}</th>
|
|
<th class="span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
|
|
<th class="span1 ta-center">{{ 'Option'|get_lang }}</th>
|
|
</tr>
|
|
{% set i = 0 %}
|
|
|
|
{% for session in sessions %}
|
|
{{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
|
|
{% set i = i + 1 %}
|
|
<td>
|
|
{{ visibility[session.visibility] }}
|
|
<a href="{{ server }}main/session/index.php?session_id={{ session.id }}">{{session.name}}</a>
|
|
</td>
|
|
<td>
|
|
{{session.date_start}}
|
|
</td>
|
|
<td>
|
|
{{session.date_end}}
|
|
</td>
|
|
<td class="ta-center">
|
|
{% if session.visible == 1 %}
|
|
<input type="checkbox" name="visible" value="1" checked="checked" size="6" />
|
|
{% else %}
|
|
<input type="checkbox" name="visible" value="1" size="6" />
|
|
{% endif %}
|
|
</td>
|
|
<td><input type="text" name="price" value="{{session.price}}" class="span1 price" /> {{ currency }}</td>
|
|
<td class=" ta-center" id="session{{ session.id }}">
|
|
<div class="confirmed"><img src="{{ confirmation_img }}" alt="ok"/></div>
|
|
<div class="modified" style="display:none"><img id="{{session.id}}" src="{{ save_img }}" alt="save" class="cursor save"/></div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
<div class="cleared"></div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|