Files
sam-kd/DBcontrol/templates/database/export/index.twig
hskwon aca1767eb9 초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경
- DB 연결 하드코딩 → .env 기반으로 변경
- MySQL strict mode DATE 오류 수정
2025-12-10 20:14:31 +09:00

64 lines
2.3 KiB
Twig

{% extends 'export.twig' %}
{% block title %}
{% if export_type == 'raw' %}
{% trans %}Exporting a raw query{% notes %}A query that the user has written freely{% endtrans %}
{% else %}
{{ 'Exporting tables from "%s" database'|trans|format(db) }}
{% endif %}
{% endblock %}
{% block selection_options %}
{% if export_type != 'raw' %}
<div class="exportoptions" id="databases_and_tables">
<h3>{% trans 'Tables:' %}</h3>
<div class="export_table_list_container">
<input type="hidden" name="structure_or_data_forced" value="{{ structure_or_data_forced }}">
<table class="pma-table export_table_select">
<thead>
<tr>
<th></th>
<th>{% trans 'Tables' %}</th>
<th class="export_structure">{% trans 'Structure' %}</th>
<th class="export_data">{% trans 'Data' %}</th>
</tr>
<tr>
<td></td>
<td class="export_table_name all">{% trans 'Select all' %}</td>
<td class="export_structure all">
<input type="checkbox" id="table_structure_all">
</td>
<td class="export_data all">
<input type="checkbox" id="table_data_all">
</td>
</tr>
</thead>
<tbody>
{% for each_table in tables %}
<tr class="marked">
<td>
<input class="checkall" type="checkbox" name="table_select[]" value="{{ each_table.name }}"{{ each_table.is_checked_select ? ' checked' }}>
</td>
<td class="export_table_name text-nowrap">{{ each_table.name }}</td>
<td class="export_structure">
<input type="checkbox" name="table_structure[]" value="{{ each_table.name }}"{{ each_table.is_checked_structure ? ' checked' }}>
</td>
<td class="export_data">
<input type="checkbox" name="table_data[]" value="{{ each_table.name }}"{{ each_table.is_checked_data ? ' checked' }}>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endblock %}
{% set filename_hint %}
{% trans '@SERVER@ will become the server name and @DATABASE@ will become the database name.' %}
{% endset %}