view-pdf.tpl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
  2. <div class="row">
  3. <div class="col-xs-12 col-md-12">
  4. {% if infoExercise|length > 0 %}
  5. <input type="hidden" id="course_id" value="{{course_id}}" />
  6. <table id="courses_table" class="data_table table">
  7. <tr class="row_odd">
  8. <th class="th-header">{{ 'Exercise'|get_plugin_lang('Test2pdfPlugin') }}</th>
  9. <th class="th-header text-center">{{ 'DownloadOnlyQuestion'|get_plugin_lang('Test2pdfPlugin') }}</th>
  10. <th class="th-header text-center">{{ 'DownloadOnlyAnswer'|get_plugin_lang('Test2pdfPlugin') }}</th>
  11. <th class="th-header text-center">{{ 'DownloadAll'|get_plugin_lang('Test2pdfPlugin') }}</th>
  12. </tr>
  13. {% set i = 0 %}
  14. {% for item in infoExercise %}
  15. {{ i%2 == 0 ? '<tr class="row_even">' : '<tr class="row_odd">' }}
  16. <td class="valign-middle">
  17. &nbsp;&nbsp;&nbsp;<img src="{{ 'quiz.png'|icon(32) }}">
  18. <strong>{{ item.title }}</strong>
  19. </td>
  20. <td class="text-center">
  21. <a target="_blank" href="download-pdf.php?type=question&c_id={{course_id}}&id_quiz={{item.id}}" title="{{ 'DownloadOnlyQuestion'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
  22. </td>
  23. <td class="text-center">
  24. <a target="_blank" href="download-pdf.php?type=answer&c_id={{course_id}}&id_quiz={{item.id}}" title="{{ 'DownloadOnlyAnswer'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
  25. </td>
  26. <td class="text-center">
  27. <a target="_blank" href="download-pdf.php?type=all&c_id={{course_id}}&id_quiz={{item.id}}" title="{{ 'DownloadAll'|get_plugin_lang('Test2pdfPlugin') }}"><img src="{{ 'pdf.png'|icon(32) }}" /></a>
  28. </td>
  29. </tr>
  30. {% set i = i + 1 %}
  31. {% endfor %}
  32. </table>
  33. {% else %}
  34. <div class="alert alert-warning">
  35. {{ 'NoExercise'|get_plugin_lang('Test2pdfPlugin') }}
  36. </div>
  37. {% endif %}
  38. </div>
  39. <div class="cleared"></div>
  40. </div>