Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Strozzi <laps15@inf.ufpr.br>2018-03-23 06:34:26 +0300
committerLeonardo Strozzi <laps15@inf.ufpr.br>2018-03-23 06:34:26 +0300
commiteb6e40f053ae55c85ef1baab96b13d0a7cb177f0 (patch)
tree2b5aa11c5d625a847735f5a55a1818cd897317d0 /templates
parent2c7f3613ee8e4a2660bec672d2158f6695656d6b (diff)
Addapt getHtmlForTableNavigation to twig template
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
Diffstat (limited to 'templates')
-rw-r--r--templates/database/central_columns/table_navigation.twig42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/database/central_columns/table_navigation.twig b/templates/database/central_columns/table_navigation.twig
new file mode 100644
index 0000000000..3897cf085b
--- /dev/null
+++ b/templates/database/central_columns/table_navigation.twig
@@ -0,0 +1,42 @@
+<table style="display:inline-block;max-width:49%" class="navigation nospacing nopadding">
+ <tr>
+ <td class="navigation_separator"></td>
+ {% if pos - max_rows >= 0 %}
+ <td>
+ <form action="db_central_columns.php" method="post">
+ {{ Url_getHiddenInputs(db) }}
+ <input type="hidden" name="pos" value="{{ pos - max_rows }}" />
+ <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
+ <input type="submit" name="navig" class="ajax" value="&lt" />
+ </form>
+ </td>
+ {% endif %}
+ {% if nb_total_page > 1 %}
+ <td>
+ <form action="db_central_columns.php" method="post">
+ {{ Url_getHiddenInputs(db) }}
+ <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
+ {{ page_selector|raw }}
+ </form>
+ </td>
+ {% endif %}
+ {% if pos + max_rows < total_rows %}
+ <td>
+ <form action="db_central_columns.php" method="post">
+ {{ Url_getHiddenInputs(db) }}
+ <input type="hidden" name="pos" value="{{ pos + max_rows }}"/>
+ <input type="hidden" name="total_rows" value="{{ total_rows }}"/>
+ <input type="submit" name="navig" class="ajax" value="&gt" />
+ </form>
+ </td>
+ {% endif %}
+ </form>
+ </td>
+ <td class="navigation_separator"></td>
+ <td>
+ <span>{% trans 'Filter rows' %}:</span>
+ <input type="text" class="filter_rows" placeholder="{% trans 'Search this table' %}">
+ </td>
+ <td class="navigation_separator"></td>
+ </tr>
+</table>