PHP Classes

File: view/box/db_debug.tpl

Recommend this page to a friend!
  Classes of mehmet samli  >  PHP 5 Namespace database cache class  >  view/box/db_debug.tpl  >  Download  
File: view/box/db_debug.tpl
Role: Auxiliary data
Content type: text/plain
Description: singleton
Class: PHP 5 Namespace database cache class
Cache database query results using memcached
Author: By
Last change:
Date: 3 years ago
Size: 2,280 bytes


Class file image Download
{capture name='_smarty_debug' assign=debug_output}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en">
    <title>DB Debug Console</title>
<style type="text/css">

body, h1, h2, td, th, p {
    font-family: sans-serif;
    font-weight: normal;
    font-size: 0.9em;
    margin: 1px;
    padding: 0;

h1 {
    margin: 0;
    text-align: left;
    padding: 2px;
    background-color: #f0c040;
    color:  black;
    font-weight: bold;
    font-size: 1.2em;

h2 {
    background-color: #9B410E;
    color: white;
    text-align: left;
    font-weight: bold;
    padding: 2px;
    border-top: 1px solid black;

body {
    background: black; 

p, table, div {
    background: #f0ead8;

p {
    margin: 0;
    font-style: italic;
    text-align: center;

table {
    width: 100%;

th, td {
    font-family: monospace;
    /*vertical-align: top;*/
    text-align: left;

td {
    color: green;

.odd {
    background-color: #eeeeee;

.even {
    background-color: #fafafa;

.exectime {
    font-size: 0.8em;
    font-style: italic;

#table_assigned_vars th {
    color: blue;

#table_config_vars th {
    color: maroon;

<h1>Database Debug</h1>
	<tr style="background-color:#C2C8CE">
		<th style="width:15%">param</th>
		<th>Total Count</th>
	{section name=n loop=$queryArr}
	    <tr style="background-color:{if $smarty.section.n.index%2==0}#EFF6FB{else}#FFFFFF{/if}">
<script type="text/javascript">
{$id = $template_name|default:''|md5}
    _smarty_console ="","console{$id}","width=880,height=600,resizable,scrollbars=yes");
    _smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}");