aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/database/qbe
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/phpmyadmin/templates/database/qbe')
-rw-r--r--srcs/phpmyadmin/templates/database/qbe/column_select_cell.twig11
-rw-r--r--srcs/phpmyadmin/templates/database/qbe/footer_options.twig16
-rw-r--r--srcs/phpmyadmin/templates/database/qbe/sort_order_select_cell.twig10
-rw-r--r--srcs/phpmyadmin/templates/database/qbe/sort_select_cell.twig9
4 files changed, 46 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/database/qbe/column_select_cell.twig b/srcs/phpmyadmin/templates/database/qbe/column_select_cell.twig
new file mode 100644
index 0000000..071249f
--- /dev/null
+++ b/srcs/phpmyadmin/templates/database/qbe/column_select_cell.twig
@@ -0,0 +1,11 @@
+<td class="center">
+ <select name="criteriaColumn[{{ column_number }}]" size="1">
+ <option value="">&nbsp;</option>
+ {% for column in column_names %}
+ <option value="{{ column }}"
+ {%- if column is same as(selected) %} selected="selected"{% endif %}>
+ {{ column|e|replace({' ': '&nbsp;'}) }}
+ </option>
+ {% endfor %}
+ </select>
+</td>
diff --git a/srcs/phpmyadmin/templates/database/qbe/footer_options.twig b/srcs/phpmyadmin/templates/database/qbe/footer_options.twig
new file mode 100644
index 0000000..7f43f8d
--- /dev/null
+++ b/srcs/phpmyadmin/templates/database/qbe/footer_options.twig
@@ -0,0 +1,16 @@
+<div class="floatleft">
+ {% if type == 'row' %}
+ {% trans 'Add/Delete criteria rows' %}:
+ {% else %}
+ {% trans 'Add/Delete columns' %}:
+ {% endif %}
+ <select size="1" name="{{ type == 'row' ? 'criteriaRowAdd' : 'criteriaColumnAdd' }}">
+ <option value="-3">-3</option>
+ <option value="-2">-2</option>
+ <option value="-1">-1</option>
+ <option value="0" selected="selected">0</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ </select>
+</div>
diff --git a/srcs/phpmyadmin/templates/database/qbe/sort_order_select_cell.twig b/srcs/phpmyadmin/templates/database/qbe/sort_order_select_cell.twig
new file mode 100644
index 0000000..7a63d77
--- /dev/null
+++ b/srcs/phpmyadmin/templates/database/qbe/sort_order_select_cell.twig
@@ -0,0 +1,10 @@
+<td class="center">
+ <select name="criteriaSortOrder[{{ column_number }}]">
+ <option value="1000">&nbsp;</option>
+ {% for i in 1..total_column_count %}
+ <option value="{{ i }}"{{ i == sort_order ? ' selected="selected"' }}>
+ {{ i }}
+ </option>
+ {% endfor %}
+ </select>
+</td>
diff --git a/srcs/phpmyadmin/templates/database/qbe/sort_select_cell.twig b/srcs/phpmyadmin/templates/database/qbe/sort_select_cell.twig
new file mode 100644
index 0000000..4f0989e
--- /dev/null
+++ b/srcs/phpmyadmin/templates/database/qbe/sort_select_cell.twig
@@ -0,0 +1,9 @@
+<td class="center">
+ <select style="width:{{ real_width }}" name="criteriaSort[{{ column_number }}]" size="1">
+ <option value="">&nbsp;</option>
+ <option value="ASC"
+ {{- selected == 'ASC' ? ' selected="selected"' }}>{% trans 'Ascending' %}</option>
+ <option value="DESC"
+ {{- selected == 'DESC' ? ' selected="selected"' }}>{% trans 'Descending' %}</option>
+ </select>
+</td>