From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/table/search/zoom_result_form.twig | 86 ++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 srcs/phpmyadmin/templates/table/search/zoom_result_form.twig (limited to 'srcs/phpmyadmin/templates/table/search/zoom_result_form.twig') diff --git a/srcs/phpmyadmin/templates/table/search/zoom_result_form.twig b/srcs/phpmyadmin/templates/table/search/zoom_result_form.twig new file mode 100644 index 0000000..7543f85 --- /dev/null +++ b/srcs/phpmyadmin/templates/table/search/zoom_result_form.twig @@ -0,0 +1,86 @@ +
+ {{ get_hidden_inputs(db, table) }} + + + +
+ {% trans 'Browse/Edit the points' %} + + {# JSON encode the data(query result) #} +
+ {% if zoom_submit and data is not empty %} +
+
+ + {% trans 'How to use' %} + +
+
+ {{ data_json }} +
+
+ +
+ {% endif %} +
+ + {# Displays rows in point edit form #} +
+ + + + + + + + + + {% for column_index in 0..column_names|length - 1 %} + {% set field_popup = column_names[column_index] %} + {% set foreign_data = get_foreign_data( + foreigners, + field_popup, + false, + '', + '' + ) %} + + + {# Null checkbox if column can be null #} + + {# Column's Input box #} + + + {% endfor %} + +
{% trans 'Column' %}{% trans 'Null' %}{% trans 'Value' %}
{{ column_names[column_index] }} + {% if column_null_flags[column_index] == 'YES' %} + + {% endif %} + + {% include 'table/search/input_box.twig' with { + 'str': '', + 'column_type': column_types[column_index], + 'column_id': column_types[column_index] ? 'edit_fieldID_' : 'fieldID_', + 'in_zoom_search_edit': true, + 'foreigners': foreigners, + 'column_name': field_popup, + 'column_name_hash': column_name_hashes[field_popup], + 'foreign_data': foreign_data, + 'table': table, + 'column_index': column_index, + 'foreign_max_limit': foreign_max_limit, + 'criteria_values': '', + 'db': db, + 'titles': titles, + 'in_fbs': false + } only %} +
+
+ +
+
-- cgit