Update website
This commit is contained in:
parent
bb4b0f9be8
commit
011b183e28
4263 changed files with 3014 additions and 720369 deletions
|
@ -1,156 +0,0 @@
|
|||
<ul class="nav nav-pills m-2">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/table/search', {'db': db, 'table': table, 'pos': 0}) }}">
|
||||
{{ get_icon('b_search', 'Table search'|trans, false, false, 'TabsMode') }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="{{ url('/table/zoom-search', {'db': db, 'table': table}) }}">
|
||||
{{ get_icon('b_select', 'Zoom search'|trans, false, false, 'TabsMode') }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/table/find-replace', {'db': db, 'table': table}) }}">
|
||||
{{ get_icon('b_find_replace', 'Find and replace'|trans, false, false, 'TabsMode') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form method="post" action="{{ url('/table/zoom-search') }}" name="insertForm" id="zoom_search_form" class="ajax lock-page">
|
||||
{{ get_hidden_inputs(db, table) }}
|
||||
<input type="hidden" name="goto" value="{{ goto }}">
|
||||
<input type="hidden" name="back" value="{{ url('/table/zoom-search') }}">
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-header">{% trans 'Do a "query by example" (wildcard: "%") for two different columns' %}</div>
|
||||
|
||||
<div class="card-body" id="inputSection">
|
||||
<table class="table table-striped table-hover table-sm w-auto" id="tableFieldsId">
|
||||
<thead>
|
||||
<tr>
|
||||
{% if geom_column_flag %}
|
||||
<th>{% trans 'Function' %}</th>
|
||||
{% endif %}
|
||||
<th>{% trans 'Column' %}</th>
|
||||
<th>{% trans 'Type' %}</th>
|
||||
<th>{% trans 'Collation' %}</th>
|
||||
<th>{% trans 'Operator' %}</th>
|
||||
<th>{% trans 'Value' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% set type = [] %}
|
||||
{% set collation = [] %}
|
||||
{% set func = [] %}
|
||||
{% set value = [] %}
|
||||
|
||||
{% for i in 0..3 %}
|
||||
{# After X-Axis and Y-Axis column rows, display additional criteria option #}
|
||||
{% if i == 2 %}
|
||||
<tr>
|
||||
<th>
|
||||
{% trans 'Additional search criteria' %}
|
||||
</th>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr class="noclick">
|
||||
<th>
|
||||
<select name="criteriaColumnNames[]" id="tableid_{{ i }}">
|
||||
<option value="pma_null">
|
||||
{% trans 'None' %}
|
||||
</option>
|
||||
{% for j in 0..column_names|length - 1 %}
|
||||
{% if criteria_column_names[i] is defined and criteria_column_names[i] == column_names[j] %}
|
||||
<option value="{{ column_names[j] }}" selected>
|
||||
{{ column_names[j] }}
|
||||
</option>
|
||||
{% else %}
|
||||
<option value="{{ column_names[j] }}">
|
||||
{{ column_names[j] }}
|
||||
</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</th>
|
||||
{% if criteria_column_names[i] is defined and criteria_column_names[i] != 'pma_null' %}
|
||||
{% set key = keys[criteria_column_names[i]] %}
|
||||
{% set properties = self.getColumnProperties(i, key) %}
|
||||
{% set type = type|merge({(i): properties['type']}) %}
|
||||
{% set collation = collation|merge({(i): properties['collation']}) %}
|
||||
{% set func = func|merge({(i): properties['func']}) %}
|
||||
{% set value = value|merge({(i): properties['value']}) %}
|
||||
{% endif %}
|
||||
{# Column type #}
|
||||
<td dir="ltr">
|
||||
{{ type[i] is defined ? type[i] }}
|
||||
</td>
|
||||
{# Column Collation #}
|
||||
<td>
|
||||
{{ collation[i] is defined ? collation[i] }}
|
||||
</td>
|
||||
{# Select options for column operators #}
|
||||
<td>
|
||||
{{ func[i] is defined ? func[i]|raw }}
|
||||
</td>
|
||||
{# Inputbox for search criteria value #}
|
||||
<td>
|
||||
{{ value[i] is defined ? value[i]|raw }}
|
||||
</td>
|
||||
<td>
|
||||
{# Displays hidden fields #}
|
||||
<input type="hidden" name="criteriaColumnTypes[{{ i }}]" id="types_{{ i }}"
|
||||
{%- if criteria_column_types[i] is defined %} value="{{ criteria_column_types[i] }}"{% endif %}>
|
||||
<input type="hidden" name="criteriaColumnCollations[{{ i }}]" id="collations_{{ i }}">
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-borderless table-sm w-auto">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="dataLabel">
|
||||
{% trans 'Use this column to label each point' %}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<select name="dataLabel" id="dataLabel">
|
||||
<option value="">
|
||||
{% trans 'None' %}
|
||||
</option>
|
||||
{% for i in 0..column_names|length - 1 %}
|
||||
{% if data_label is defined and data_label == column_names[i]|e %}
|
||||
<option value="{{ column_names[i] }}" selected>
|
||||
{{ column_names[i] }}
|
||||
</option>
|
||||
{% else %}
|
||||
<option value="{{ column_names[i] }}">
|
||||
{{ column_names[i] }}
|
||||
</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="maxRowPlotLimit">
|
||||
{% trans 'Maximum rows to plot' %}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" name="maxPlotLimit" id="maxRowPlotLimit" required="required" value="{{ max_plot_limit }}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<input class="btn btn-primary" type="submit" name="zoom_submit" id="inputFormSubmitId" value="{% trans 'Go' %}">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="sqlqueryresultsouter"></div>
|
|
@ -1,102 +0,0 @@
|
|||
<form method="post" action="{{ url('/table/zoom-search') }}" name="displayResultForm" id="zoom_display_form" class="ajax">
|
||||
{{ get_hidden_inputs(db, table) }}
|
||||
<input type="hidden" name="goto" value="{{ goto }}">
|
||||
<input type="hidden" name="back" value="{{ url('/table/zoom-search') }}">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">{% trans 'Browse/Edit the points' %}</div>
|
||||
|
||||
<div class="card-body">
|
||||
{# JSON encode the data(query result) #}
|
||||
<div class="text-center">
|
||||
{% if zoom_submit and data is not empty %}
|
||||
<div id="resizer">
|
||||
<a class="text-center" id="help_dialog" href="#">{% trans 'How to use' %}</a>
|
||||
<div id="querydata" class="hide">{{ data_json }}</div>
|
||||
<div id="querychart"></div>
|
||||
<button class="btn btn-primary button-reset">{% trans 'Reset zoom' %}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="dataPointModal" tabindex="-1" aria-labelledby="dataPointModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="dataPointModalLabel">{% trans 'Loading' %}</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{% trans 'Close' %}"></button>
|
||||
</div>
|
||||
<div class="modal-body" style="overflow: auto;">
|
||||
{# Displays rows in point edit form #}
|
||||
<div id="dataDisplay">
|
||||
<table class="table align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans 'Column' %}</th>
|
||||
<th>{% trans 'Null' %}</th>
|
||||
<th>{% trans 'Value' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% 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, '', '') %}
|
||||
<tr class="noclick">
|
||||
<th>{{ column_names[column_index] }}</th>
|
||||
{# Null checkbox if column can be null #}
|
||||
<th>
|
||||
{% if column_null_flags[column_index] == 'YES' %}
|
||||
<input type="checkbox" class="checkbox_null" name="criteriaColumnNullFlags[{{ column_index }}]" id="edit_fields_null_id_{{ column_index }}">
|
||||
{% endif %}
|
||||
</th>
|
||||
{# Column's Input box #}
|
||||
<th>
|
||||
{% 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,
|
||||
'in_fbs': false
|
||||
} only %}
|
||||
</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" id="dataPointSaveButton" data-bs-dismiss="modal">{% trans 'Save' %}</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans 'Close' %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" id="queryID" name="sql_query">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="modal fade" id="helpModal" tabindex="-1" aria-labelledby="helpModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="helpModalLabel">{% trans 'Loading' %}</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{% trans 'Close' %}"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue