1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Display total time in show only errors mode in SQL command

This commit is contained in:
Jakub Vrana
2010-12-17 18:11:06 +01:00
parent d7fdd06f12
commit 9eced7872d
2 changed files with 13 additions and 3 deletions

View File

@@ -108,6 +108,15 @@ function textarea($name, $value, $rows = 10, $cols = 80) {
echo "<textarea name='$name' rows='$rows' cols='$cols' style='width: 98%;' spellcheck='false' onkeypress='return textareaKeypress(this, event, true);'>" . h($value) . "</textarea>"; // spellcheck - not valid before HTML5
}
/** Format time difference
* @param array ($sec, $sec)
* @param array ($sec, $sec)
* @return string HTML code
*/
function format_time($start, $end) {
return " <span class='time'>(" . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . ")</span>";
}
/** Print table columns for type edit
* @param string
* @param array