table_navigation.twig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <table style="display:inline-block;max-width:49%" class="navigation nospacing nopadding">
  2. <tr>
  3. <td class="navigation_separator"></td>
  4. {% if pos - max_rows >= 0 %}
  5. <td>
  6. <form action="db_central_columns.php" method="post">
  7. {{ Url_getHiddenInputs(db) }}
  8. <input type="hidden" name="pos" value="{{ pos - max_rows }}" />
  9. <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
  10. <input type="submit" name="navig" class="ajax" value="&lt" />
  11. </form>
  12. </td>
  13. {% endif %}
  14. {% if nb_total_page > 1 %}
  15. <td>
  16. <form action="db_central_columns.php" method="post">
  17. {{ Url_getHiddenInputs(db) }}
  18. <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
  19. {{ page_selector|raw }}
  20. </form>
  21. </td>
  22. {% endif %}
  23. {% if pos + max_rows < total_rows %}
  24. <td>
  25. <form action="db_central_columns.php" method="post">
  26. {{ Url_getHiddenInputs(db) }}
  27. <input type="hidden" name="pos" value="{{ pos + max_rows }}"/>
  28. <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
  29. <input type="submit" name="navig" class="ajax" value="&gt" />
  30. </form>
  31. </td>
  32. {% endif %}
  33. </form>
  34. </td>
  35. <td class="navigation_separator"></td>
  36. <td>
  37. <span>{% trans 'Filter rows' %}:</span>
  38. <input type="text" class="filter_rows" placeholder="{% trans 'Search this table' %}">
  39. </td>
  40. <td class="navigation_separator"></td>
  41. </tr>
  42. </table>