Update website
This commit is contained in:
parent
a0b0d3dae7
commit
ae7ef6ad45
3151 changed files with 566766 additions and 48 deletions
|
@ -0,0 +1,11 @@
|
|||
<td class="text-center">
|
||||
<select name="criteriaColumn[{{ column_number }}]" size="1">
|
||||
<option value=""> </option>
|
||||
{% for column in column_names %}
|
||||
<option value="{{ column }}"
|
||||
{%- if column is same as(selected) %} selected="selected"{% endif %}>
|
||||
{{- column -}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
23
admin/phpMyAdmin/templates/database/qbe/index.twig
Normal file
23
admin/phpMyAdmin/templates/database/qbe/index.twig
Normal file
|
@ -0,0 +1,23 @@
|
|||
<ul class="nav nav-pills m-2">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url('/database/multi-table-query', url_params) }}">
|
||||
{% trans 'Multi-table query' %}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="{{ url('/database/qbe', url_params) }}">
|
||||
{% trans 'Query by example' %}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% apply format('<a href="' ~ url('/database/designer', url_params|merge({query: true})) ~ '">', '</a>')|notice %}
|
||||
{% trans 'Switch to %svisual builder%s' %}
|
||||
{% endapply %}
|
||||
|
||||
{% if has_message_to_display %}
|
||||
{{ 'You have to choose at least one column to display!'|trans|error }}
|
||||
{% endif %}
|
||||
|
||||
{{ selection_form_html|raw }}
|
|
@ -0,0 +1,28 @@
|
|||
<td class="value nowrap">
|
||||
<table class="table table-borderless table-sm">
|
||||
<tr>
|
||||
<td class="value nowrap p-0">
|
||||
<small>{% trans 'Ins:' %}</small>
|
||||
<input type="checkbox" name="criteriaRowInsert[{{ row_index }}]" aria-label="{% trans 'Insert' %}">
|
||||
</td>
|
||||
<td class="value p-0">
|
||||
<strong>{% trans 'And:' %}</strong>
|
||||
</td>
|
||||
<td class="p-0">
|
||||
<input type="radio" name="criteriaAndOrRow[{{ row_index }}]" value="and"{{ checked_options.and ? ' checked' }} aria-label="{% trans 'And' %}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value nowrap p-0">
|
||||
<small>{% trans 'Del:' %}</small>
|
||||
<input type="checkbox" name="criteriaRowDelete[{{ row_index }}]" aria-label="{% trans 'Delete' %}">
|
||||
</td>
|
||||
<td class="value p-0">
|
||||
<strong>{% trans 'Or:' %}</strong>
|
||||
</td>
|
||||
<td class="p-0">
|
||||
<input type="radio" name="criteriaAndOrRow[{{ row_index }}]" value="or"{{ checked_options.or ? ' checked' }} aria-label="{% trans 'Or' %}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
118
admin/phpMyAdmin/templates/database/qbe/selection_form.twig
Normal file
118
admin/phpMyAdmin/templates/database/qbe/selection_form.twig
Normal file
|
@ -0,0 +1,118 @@
|
|||
<form action="{{ url('/database/qbe') }}" method="post" id="formQBE" class="lock-page">
|
||||
{{ get_hidden_inputs(url_params) }}
|
||||
|
||||
<div class="w-100">
|
||||
<fieldset>
|
||||
|
||||
{{ saved_searches_field|raw }}
|
||||
|
||||
<div class="table-responsive jsresponsive">
|
||||
<table class="table table-borderless table-sm">
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Column:' %}</th>
|
||||
{{ column_names_row|raw }}
|
||||
</tr>
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Alias:' %}</th>
|
||||
{{ column_alias_row|raw }}
|
||||
</tr>
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Show:' %}</th>
|
||||
{{ show_row|raw }}
|
||||
</tr>
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Sort:' %}</th>
|
||||
{{ sort_row|raw }}
|
||||
</tr>
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Sort order:' %}</th>
|
||||
{{ sort_order|raw }}
|
||||
</tr>
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Criteria:' %}</th>
|
||||
{{ criteria_input_box_row|raw }}
|
||||
</tr>
|
||||
|
||||
{{ ins_del_and_or_criteria_rows|raw }}
|
||||
|
||||
<tr class="noclick">
|
||||
<th>{% trans 'Modify:' %}</th>
|
||||
{{ modify_columns_row|raw }}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<fieldset class="tblFooters">
|
||||
<div class="floatleft">
|
||||
<label for="criteriaRowAddSelect">{% trans 'Add/Delete criteria rows:' %}</label>
|
||||
<select size="1" name="criteriaRowAdd" id="criteriaRowAddSelect">
|
||||
<option value="-3">-3</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="0" selected>0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="floatleft">
|
||||
<label for="criteriaColumnAddSelect">{% trans 'Add/Delete columns:' %}</label>
|
||||
<select size="1" name="criteriaColumnAdd" id="criteriaColumnAddSelect">
|
||||
<option value="-3">-3</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="0" selected>0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="floatleft">
|
||||
<input class="btn btn-secondary" type="submit" name="modify" value="{% trans 'Update query' %}">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="floatleft w-100">
|
||||
<fieldset>
|
||||
<legend>{% trans 'Use tables' %}</legend>
|
||||
|
||||
<select name="TableList[]" id="listTable" size="{{ criteria_tables|length > 30 ? '15' : '7' }}" aria-label="{% trans 'Use tables' %}" multiple>
|
||||
{% for table, selected in criteria_tables %}
|
||||
<option value="{{ table }}"{{ selected|raw }}>{{ table }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="tblFooters">
|
||||
<input class="btn btn-secondary" type="submit" name="modify" value="{% trans 'Update query' %}">
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="{{ url('/database/qbe') }}" method="post" class="lock-page">
|
||||
{{ get_hidden_inputs(db) }}
|
||||
<input type="hidden" name="submit_sql" value="1">
|
||||
|
||||
<div class="floatleft w-50">
|
||||
<fieldset id="tblQbe">
|
||||
<legend>{{ 'SQL query on database <b>%s</b>:'|trans|format(db_link)|raw }}</legend>
|
||||
|
||||
<textarea cols="80" name="sql_query" id="textSqlquery" rows="{{ criteria_tables|length > 30 ? '15' : '7' }}" dir="ltr" aria-label="{% trans 'SQL query' %}">
|
||||
{{- sql_query -}}
|
||||
</textarea>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="tblFooters" id="tblQbeFooters">
|
||||
<input class="btn btn-primary" type="submit" value="{% trans 'Submit query' %}">
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>
|
|
@ -0,0 +1,10 @@
|
|||
<td class="text-center">
|
||||
<select name="criteriaSortOrder[{{ column_number }}]">
|
||||
<option value="1000"> </option>
|
||||
{% for i in 1..total_column_count %}
|
||||
<option value="{{ i }}"{{ i == sort_order ? ' selected="selected"' }}>
|
||||
{{ i }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
|
@ -0,0 +1,9 @@
|
|||
<td class="text-center">
|
||||
<select style="width:{{ real_width }}" name="criteriaSort[{{ column_number }}]" size="1">
|
||||
<option value=""> </option>
|
||||
<option value="ASC"
|
||||
{{- selected == 'ASC' ? ' selected="selected"' }}>{% trans 'Ascending' %}</option>
|
||||
<option value="DESC"
|
||||
{{- selected == 'DESC' ? ' selected="selected"' }}>{% trans 'Descending' %}</option>
|
||||
</select>
|
||||
</td>
|
Loading…
Add table
Add a link
Reference in a new issue