diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-09 10:55:03 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-09 13:09:38 +0100 |
| commit | 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch) | |
| tree | 5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/templates/server/status/queries/index.twig | |
| parent | 7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff) | |
| download | ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2 ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip | |
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/templates/server/status/queries/index.twig')
| -rw-r--r-- | srcs/phpmyadmin/templates/server/status/queries/index.twig | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/server/status/queries/index.twig b/srcs/phpmyadmin/templates/server/status/queries/index.twig new file mode 100644 index 0000000..be743b9 --- /dev/null +++ b/srcs/phpmyadmin/templates/server/status/queries/index.twig @@ -0,0 +1,56 @@ +{% extends 'server/status/base.twig' %} +{% set active = 'queries' %} +{% block content %} + +{% if is_data_loaded %} + <h3 id="serverstatusqueries"> + {% trans %} + Questions since startup: + {% notes %} + Questions is the name of a MySQL Status variable + {% endtrans %} + {{ format_number(stats.total, 0) }} + {{ show_mysql_docu('server-status-variables', false, null, null, 'statvar_Questions') }} + </h3> + + <ul> + <li>ø {% trans 'per hour:' %} {{ format_number(stats.per_hour, 0) }}</li> + <li>ø {% trans 'per minute:' %} {{ format_number(stats.per_minute, 0) }}</li> + {% if stats.per_second >= 1 %} + <li>ø {% trans 'per second:' %} {{ format_number(stats.per_second, 0) }}</li> + {% endif %} + </ul> + + <table id="serverstatusqueriesdetails" class="width100 data sortable noclick"> + <colgroup> + <col class="namecol"> + <col class="valuecol" span="3"> + </colgroup> + + <thead> + <tr> + <th>{% trans 'Statements' %}</th> + <th>{% trans %}#{% notes %}# = Amount of queries{% endtrans %}</th> + <th>ø {% trans 'per hour' %}</th> + <th>%</th> + </tr> + </thead> + + <tbody> + {% for query in queries %} + <tr> + <th class="name">{{ query.name }}</th> + <td class="value">{{ format_number(query.value, 5, 0, true) }}</td> + <td class="value">{{ format_number(query.per_hour, 4, 1, true) }}</td> + <td class="value">{{ format_number(query.percentage, 0, 2) }}</td> + </tr> + {% endfor %} + </tbody> + </table> + + <div id="serverstatusquerieschart" class="width100" data-chart="{{ chart|json_encode }}"></div> +{% else %} + {{ 'Not enough privilege to view query statistics.'|trans|error }} +{% endif %} + +{% endblock %} |
