init web ems all

This commit is contained in:
agtuser
2024-09-27 17:13:36 +08:00
parent 81c97acbe9
commit 5cc56f8078
4263 changed files with 798779 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<tr class="noclick">
<td>{{ value['Log_name'] }}</td>
<td class="right">{{ value['Pos'] }}</td>
<td>{{ value['Event_type'] }}</td>
<td class="right">{{ value['Server_id'] }}</td>
<td class="right">
{{- value['Orig_log_pos'] is defined ? value['Orig_log_pos'] : value['End_log_pos'] -}}
</td>
<td>{{ Util_formatSql(value['Info'], not dontlimitchars) }}</td>
</tr>

View File

@@ -0,0 +1,29 @@
<form action="server_binlog.php" method="post">
{{ Url_getHiddenInputs(url_params) }}
<fieldset>
<legend>
{% trans 'Select binary log to view' %}
</legend>
{% set full_size = 0 %}
<select name="log">
{% for each_log in binary_logs %}
<option value="{{ each_log['Log_name'] }}"
{{- each_log['Log_name'] == log ? ' selected="selected"' }}>
{{ each_log['Log_name'] }}
{% if each_log['File_size'] is defined %}
({{ Util_formatByteDown(each_log['File_size'], 3, 2)|join(' ') }})
{% set full_size = full_size + each_log['File_size'] %}
{% endif %}
</option>
{% endfor %}
</select>
{{ binary_logs|length }}
{% trans 'Files' %},
{% if full_size > 0 %}
{{ Util_formatByteDown(full_size)|join(' ') }}
{% endif %}
</fieldset>
<fieldset class="tblFooters">
<input type="submit" value="{% trans 'Go' %}" />
</fieldset>
</form>