background: #c0e0e0;
}
+#db-trace div.hide { display: none; }
+#db-trace:hover div.hide { display: block }
+
#suid {
color: red;
background: #ffc0cb;
vertical-align: top;
}
/* vim: set et ts=4 sts=4 sw=4: */
-/* $Id: default.css,v 1.22 2004-02-20 01:46:22 x2000habouzit Exp $ */
+/* $Id: default.css,v 1.23 2004-02-20 11:44:06 x2000habouzit Exp $ */
if(isset($_SESSION['suid'])) $this->caching=false;
$id = $this->make_id($append_to_id);
if($site_dev) {
- echo $globals->db->trace_format($this, 'database-debug.tpl');
-
+ $this->assign('db_trace', $globals->db->trace_format($this, 'database-debug.tpl'));
$this->assign('validate', urlencode($baseurl.'/valid.html'));
$result = $this->fetch('skin/'.$_SESSION['skin'], $id);
$fd = fopen($this->cache_dir."valid.html","w");
{dynamic}
{foreach item=query from=$trace_data}
-<br />
-<table class="bicol" style="width: 75%; font-family: fixed">
+<table class="bicol" style="width: 75%; font-family: fixed; margin-left:2px; margin-top: 3px;">
<tr class="impair">
<td>
<strong>QUERY:</strong><br />
</tr>
{/if}
</table>
-<table class="bicol" style="width: 75%; font-family: fixed">
+<table class="bicol" style="width: 75%; font-family: fixed; margin-left: 2px; margin-bottom: 3px; margin-top: -1px;">
<tr>
<th>table</th>
<th>type</th>
<td class="center">{$query.explain.Extra}</td>
</tr>
</table>
-<br />
{/foreach}
{/dynamic}
+++ /dev/null
-{* $Id: common.dev.tpl,v 1.1 2004-02-12 02:58:16 x2000habouzit Exp $ *}
-
- <div id="dev">
- <div class="title">Outils de dev</div>
- <div>
- <a href="http://validator.w3.org/check?uri={$validate}">VALIDER XHTML 1.1</a><br />
- <a href="http://jigsaw.w3.org/css-validator/validator?uri={$validate}">VALIDER CSS</a>
- </div>
- <div>
- <a href="http://www.w3schools.com/xhtml/xhtml_reference.asp">XHTML ref.</a><br />
- <a href="http://www.w3schools.com/css/css_reference.asp">CSS2 ref.</a>
- </div>
- </div>
-
-{* vim:set et sw=2 sts=2 sws=2: *}
--- /dev/null
+{* $Id: common.devel.tpl,v 1.1 2004-02-20 11:44:07 x2000habouzit Exp $ *}
+
+{if $validate}
+ <div id="dev">
+ <div class="title">Outils de dev</div>
+ <div>
+ <a href="http://validator.w3.org/check?uri={$validate}">VALIDER XHTML 1.1</a><br />
+ <a href="http://jigsaw.w3.org/css-validator/validator?uri={$validate}">VALIDER CSS</a>
+ </div>
+ <div>
+ <a href="http://www.w3schools.com/xhtml/xhtml_reference.asp">XHTML ref.</a><br />
+ <a href="http://www.w3schools.com/css/css_reference.asp">CSS2 ref.</a>
+ </div>
+ </div>
+{/if}
+
+{dynamic}
+{if $db_trace neq "\n\n"}
+ <div id="db-trace">
+ <div class="rubrique">
+ Trace de l'exécution de cette page sur mysql (hover me)
+ </div>
+ <div class="hide">
+ {$db_trace}
+ </div>
+ </div>
+{/if}
+{/dynamic}
+
+{* vim:set et sw=2 sts=2 sws=2: *}
-{* $Id: default.tpl,v 1.10 2004-02-12 02:58:16 x2000habouzit Exp $ *}
+{* $Id: default.tpl,v 1.11 2004-02-20 11:44:07 x2000habouzit Exp $ *}
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{include file=skin/common.bandeau.head.tpl}
</head>
<body>
-{if $validate}
-{include file=skin/common.dev.tpl validate=$validate}
-{/if}
+{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
<table id="suid" cellpadding="0" cellspacing="0">