From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../templates/table/search/input_box.twig | 97 ---------------------- 1 file changed, 97 deletions(-) delete mode 100644 srcs/phpmyadmin/templates/table/search/input_box.twig (limited to 'srcs/phpmyadmin/templates/table/search/input_box.twig') diff --git a/srcs/phpmyadmin/templates/table/search/input_box.twig b/srcs/phpmyadmin/templates/table/search/input_box.twig deleted file mode 100644 index 5c30535..0000000 --- a/srcs/phpmyadmin/templates/table/search/input_box.twig +++ /dev/null @@ -1,97 +0,0 @@ -{# Get inputbox based on different column types (Foreign key, geometrical, enum) #} -{% if foreigners and search_column_in_foreigners(foreigners, column_name) %} - {% if foreign_data['disp_row'] is iterable %} - - {% elseif foreign_data['foreign_link'] == true %} - - - {{ titles['Browse']|replace({"'": "\\'"})|raw }} - - {% endif %} -{% elseif column_type in get_gis_datatypes() %} - - {% if in_fbs %} - {% set edit_url = 'gis_data_editor.php' ~ get_common() %} - {% set edit_str = get_icon('b_edit', 'Edit/Insert'|trans) %} - - {{ link_or_button(edit_url, edit_str, [], '_blank') }} - - {% endif %} -{% elseif column_type starts with 'enum' - or (column_type starts with 'set' and in_zoom_search_edit) %} - {% set in_zoom_search_edit = false %} - {% set value = column_type|e|slice(5, -1)|replace({''': ''})|split(', ') %} - {% set cnt_value = value|length %} - {# - Enum in edit mode --> dropdown - Enum in search mode --> multiselect - Set in edit mode --> multiselect - Set in search mode --> input (skipped here, so the 'else' section would handle it) - #} - {% if (column_type starts with 'enum' and not in_zoom_search_edit) - or (column_type starts with 'set' and in_zoom_search_edit) %} - - {% endif %} - {# Add select options #} - - {% for i in 0..cnt_value - 1 %} - {% if criteria_values[column_index] is defined - and criteria_values[column_index] is iterable - and value[i] in criteria_values[column_index] %} - - {% else %} - - {% endif %} - {% endfor %} - -{% else %} - {% set the_class = 'textfield' %} - {% if column_type == 'date' %} - {% set the_class = the_class ~ ' datefield' %} - {% elseif column_type == 'datetime' or column_type starts with 'timestamp' %} - {% set the_class = the_class ~ ' datetimefield' %} - {% elseif column_type starts with 'bit' %} - {% set the_class = the_class ~ ' bit' %} - {% endif %} - -{% endif %} -- cgit