Update page_footer.php

This commit is contained in:
Roman Kelesidis 2023-11-18 12:41:35 +07:00
parent 6a733960a9
commit 7d4275bc12

View File

@ -60,13 +60,18 @@ if ($show_dbg_info)
$stat .= "  |  ". $lang['LIMIT'] ." $l[0] $l[1] $l[2]";
}
$stat .= '  ] |';
$stat .= !empty($_COOKIE['sql_log']) ? '&nbsp;[ <a href="#" class="med" onclick="$p(\'sqlLog\').className=\'sqlLog sqlLogWrapped\'; return false;">wrap</a> &middot; <a href="#sqlLog" class="med" onclick="$(\'#sqlLog\').css({ height: $(window).height()-50 }); return false;">max</a> ]&nbsp;|' : '';
$stat .= '
<label title="'. $lang['SHOW_LOG'] .'"><input type="checkbox" onclick="setCookie(\'sql_log\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log']) ? HTML_CHECKED : '') .' />'. $lang['SHOW_LOG'] .'</label>&nbsp;|
<label title="'. $lang['CUT_LONG_LOG'] .'"><input type="checkbox" onclick="setCookie(\'sql_log_full\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log_full']) ? HTML_CHECKED : '') .' />'. $lang['CUT_LONG_LOG'] .'</label>&nbsp;|
<label title="'. $lang['EXPLAIN_LOG'] .'"><input type="checkbox" onclick="setCookie(\'explain\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['explain']) ? HTML_CHECKED : '') .' />'. $lang['EXPLAIN_LOG'] .'</label>
';
$stat .= ' &nbsp;]';
if (SQL_DEBUG)
{
$stat .= '&nbsp;|';
$stat .= !empty($_COOKIE['sql_log']) ? '&nbsp;[ <a href="#" class="med" onclick="$p(\'sqlLog\').className=\'sqlLog sqlLogWrapped\'; return false;">wrap</a> &middot; <a href="#sqlLog" class="med" onclick="$(\'#sqlLog\').css({ height: $(window).height()-50 }); return false;">max</a> ]&nbsp;|' : '';
$stat .= '
<label title="'. $lang['SHOW_LOG'] .'"><input type="checkbox" onclick="setCookie(\'sql_log\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log']) ? HTML_CHECKED : '') .' />'. $lang['SHOW_LOG'] .'</label>&nbsp;|
<label title="'. $lang['CUT_LONG_LOG'] .'"><input type="checkbox" onclick="setCookie(\'sql_log_full\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['sql_log_full']) ? HTML_CHECKED : '') .' />'. $lang['CUT_LONG_LOG'] .'</label>&nbsp;|
<label title="'. $lang['EXPLAIN_LOG'] .'"><input type="checkbox" onclick="setCookie(\'explain\', this.checked ? 1 : 0); window.location.reload();" '. (!empty($_COOKIE['explain']) ? HTML_CHECKED : '') .' />'. $lang['EXPLAIN_LOG'] .'</label>
';
}
echo '<div style="margin: 6px; font-size:10px; color: #444444; letter-spacing: -1px; text-align: center;">'. $stat .'</div>';
}