From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/display/import/import.twig | 195 +++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 srcs/phpmyadmin/templates/display/import/import.twig (limited to 'srcs/phpmyadmin/templates/display/import/import.twig') diff --git a/srcs/phpmyadmin/templates/display/import/import.twig b/srcs/phpmyadmin/templates/display/import/import.twig new file mode 100644 index 0000000..dab14a3 --- /dev/null +++ b/srcs/phpmyadmin/templates/display/import/import.twig @@ -0,0 +1,195 @@ + +
+
+ ajax clock + + + +
+ + + {% if import_type == 'server' %} + {{ get_hidden_inputs('', '', 1) }} + {% elseif import_type == 'database' %} + {{ get_hidden_inputs(db, '', 1) }} + {% else %} + {{ get_hidden_inputs(db, table, 1) }} + {% endif %} + + + + +
+

{% trans 'File to import:' %}

+ + {# We don't have show anything about compression, when no supported #} + {% if compressions is not empty %} +
+

+ {{ 'File may be compressed (%s) or uncompressed.'|trans|format(compressions|join(', ')) }} +
+ {% trans 'A compressed file\'s name must end in .[format].[compression]. Example: .sql.zip' %} +

+
+ {% endif %} + +
+ {% if is_upload and upload_dir is not empty %} +
    +
  • + + {{ get_browse_upload_file_block(max_upload_size) }} + {% trans 'You may also drag and drop a file on any page.' %} +
  • +
  • + + {{ get_select_upload_file_block( + import_list, + upload_dir + ) }} +
  • +
+ {% elseif is_upload %} + {{ get_browse_upload_file_block(max_upload_size) }} +

{% trans 'You may also drag and drop a file on any page.' %}

+ {% elseif not is_upload %} + {{ 'File uploads are not allowed on this server.'|trans|notice }} + {% elseif upload_dir is not empty %} + {{ get_select_upload_file_block( + import_list, + upload_dir + ) }} + {% endif %} +
+ +
+ {# Charset of file #} + + {% if is_encoding_supported %} + + {% else %} + + {% endif %} +
+
+ +
+

{% trans 'Partial import:' %}

+ + {% if timeout_passed is defined and timeout_passed %} +
+ + {{ 'Previous import timed out, after resubmitting will continue from position %d.'|trans|format(offset) }} +
+ {% endif %} + +
+ + +
+ + {% if not (timeout_passed is defined and timeout_passed) %} +
+ + +
+ {% else %} + {# If timeout has passed, + do not show the Skip dialog to avoid the risk of someone + entering a value here that would interfere with "skip" #} + + {% endif %} +
+ +
+

{% trans 'Other options:' %}

+
+ {{ get_fk_checkbox() }} +
+
+ +
+

{% trans 'Format:' %}

+ {{ get_choice('Import', 'format', import_list) }} +
+
+ +
+

{% trans 'Format-specific options:' %}

+

+ {% trans 'Scroll down to fill in the options for the selected format and ignore the options for other formats.' %} +

+ {{ get_options('Import', import_list) }} +
+
+ + {# Japanese encoding setting #} + {% if can_convert_kanji %} +
+

{% trans 'Encoding Conversion:' %}

+ {% include 'encoding/kanji_encoding_form.twig' %} +
+ {% endif %} + +
+ +
+
+
-- cgit