Source for file console.phtml
Documentation is available at console.phtml
- 1: <?php
- 3: /**
- 4: * Nette Framework - Dump console template.
- 5: *
- 11: *
- 14: */
- 21: {
- 22: return "$m[1]<a href='#' onclick='return !netteToggle(this)'>$m[2]($m[3]) " . ($m[3] < 7 ? '<abbr>▼</abbr> </a><code>' : '<abbr>►</abbr> </a><code class="collapsed">');
- 23: }
- 24: }
- 28: ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- 29: <html lang="en">
- 30: <head>
- 31: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- 32: <meta name="robots" content="noindex,noarchive">
- 33: <meta name="generator" content="Nette Framework">
- 35: <title>Nette Debug Console</title>
- 37: <style type="text/css">body{margin:0;padding:0;font:9pt/1.5 Verdana,sans-serif;background:white;color:#333}h1{font-size:13pt;margin:0;padding:2px 8px;background:black;color:white;border-bottom:1px solid black}h2{font:11pt/1.5 sans-serif;margin:0;padding:2px 8px;background:#3484d2;color:white}a{text-decoration:none;color:#4197E3}a abbr{font-family:sans-serif;color:#999}p{margin:.8em 0}pre,code,table{font:9pt/1.5 Consolas,monospace}pre,table{background:#fffbcc;padding:.4em .7em;border:1px dotted silver}table pre{padding:0;margin:0;border:none}pre.dump span{color:#c16549}pre.dump a{color:#333}table{border-collapse:collapse;width:100%}td,th{vertical-align:top;text-align:left;border:1px solid #eeb}th{width:10;padding:2px 3px 2px 8px;font-weight:bold}td{padding:2px 8px 2px 3px}.odd,.odd pre{background:#faf5c3}</style>
- 40: <script type="text/javascript">/*<![CDATA[*/document.write("<style> .collapsed { display: none; } </style>");function netteToggle(a,b){var c=a.getElementsByTagName("abbr")[0];for(a=b?document.getElementById(b):a.nextSibling;a.nodeType!==1;)a=a.nextSibling;b=a.currentStyle?a.currentStyle.display=="none":getComputedStyle(a,null).display=="none";c.innerHTML=String.fromCharCode(b?9660:9658);a.style.display=b?a.tagName.toLowerCase()==="code"?"inline":"block":"none";return true};/*]]>*/</script>
- 41: </head>
- 45: <body>
- 46: <h1>Nette Debug Console</h1>
- 47: </body>
- 48: </html>
- 57: <table>
- 62: <td><?php echo preg_replace_callback('#(<pre class="dump">|\s+)?(.*)\((\d+)\) <code>#', '_netteDumpCb2', $dump) ?></td>
- 63: </tr>
- 65: </table>
- 69: <script type="text/javascript">
- 70: /* <![CDATA[ */
- 71: if (typeof _netteConsole === 'undefined') {
- 72: _netteConsole = window.open('','_netteConsole','width=700,height=700,resizable,scrollbars=yes');
- 73: _netteConsole.document.write(<?php echo json_encode(preg_replace('#[ \t\r\n]+#', ' ', $document)) ?>);
- 74: _netteConsole.document.close();
- 75: _netteConsole.document.onkeyup = function(e) {
- 76: e = e || _netteConsole.event;
- 77: if (e.keyCode == 27) _netteConsole.close();
- 78: }
- 79: _netteConsole.document.body.focus();
- 80: }
- 81: _netteConsole.document.body.innerHTML = _netteConsole.document.body.innerHTML + <?php echo json_encode($body) ?>;
- 82: /* ]]> */
- 83: </script>