Files
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

45 lines
2.3 KiB
Smarty

<link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
<div class="row">
<div class="col-xs-12 col-md-12">
{% if infoExercise|length > 0 %}
<input type="hidden" id="course_id" value="{{course_id}}" />
<table id="courses_table" class="table table-hover table-striped data_table table">
<tr class="row_odd">
<th class="th-header">{{ 'Exercise'|get_plugin_lang('Test2pdfPlugin') }}</th>
<th class="th-header text-center">{{ 'DownloadOnlyQuestion'|get_plugin_lang('Test2pdfPlugin') }}</th>
<th class="th-header text-center">{{ 'DownloadOnlyAnswer'|get_plugin_lang('Test2pdfPlugin') }}</th>
<th class="th-header text-center">{{ 'DownloadAll'|get_plugin_lang('Test2pdfPlugin') }}</th>
</tr>
{% set i = 0 %}
{% for item in infoExercise %}
{{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
<td class="valign-middle">
&nbsp;&nbsp;&nbsp;<img src="{{ 'quiz.png'|icon(32) }}">
<strong>{{ item.title }}</strong>
</td>
<td class="text-center">
<a target="_blank" href="download-pdf.php?type=question&c_id={{course_id}}&id_quiz={{item.iid}}" title="{{ 'DownloadOnlyQuestion'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
</td>
<td class="text-center">
<a target="_blank" href="download-pdf.php?type=answer&c_id={{course_id}}&id_quiz={{item.iid}}" title="{{ 'DownloadOnlyAnswer'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
</td>
<td class="text-center">
<a target="_blank" href="download-pdf.php?type=all&c_id={{course_id}}&id_quiz={{item.iid}}" title="{{ 'DownloadAll'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
</td>
</tr>
{% set i = i + 1 %}
{% endfor %}
</table>
{% else %}
<div class="alert alert-warning">
{{ 'NoExercise'|get_plugin_lang('Test2pdfPlugin') }}
</div>
{% endif %}
</div>
<div class="cleared"></div>
</div>