if (!empty($_control->snippetMode)) {
	return NUIMacros::renderSnippets($_control, $_l, get_defined_vars());
}

//
// main template
//
?>
<script>
       $(function() {
                $("table.tablesorter")
                        .tablesorter( { widthFixed: true, widgets: ['zebra'] } );
        });
</script>
<div class="vysledky">
<?php if ($vysledky): NDebugger::barDump(array('$vysledky' => $vysledky), "Template " . str_replace(dirname(dirname($template->getFile())), "\xE2\x80\xA6", $template->getFile())) ?>
        <table cellspacing="1" class="tablesorter clickselect" >
            <thead>
                <tr>
                    <th>&nbsp;</th>
                    <th>Jméno</th>
                    <th>Ročník</th>
                    <th>Oddíl</th>
                    <th>Trenér</th>
<?php $iterations = 0; foreach ($naradi as $nar=>$preklad_naradi): ?>
                    <th>D</th>
                    <th>E</th>
                    <th>pen</th>
                    <th><?php echo NTemplateHelpers::escapeHtml($preklad_naradi, ENT_NOQUOTES) ?></th>
<?php $iterations++; endforeach ?>
                    <th>Celkem</th>
コード例 #2
0
ファイル: bootstrap.php プロジェクト: krecek/nrsn
function dd($var, $name = null)
{
    return NDebugger::barDump($var, $name);
}
コード例 #3
0
<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<style> html { background: url(data/arrow.png) no-repeat bottom right; height: 100%; } </style>

<h1>Nette Debugger & Variables | dibi</h1>

<p>Dibi can dump variables via Nette Debugger, part of Nette Framework.</p>

<ul>
	<li>Nette Framework: http://nette.org
</ul>

<?php 
require dirname(__FILE__) . '/Nette/Debugger.php';
require dirname(__FILE__) . '/../dibi/dibi.php';
// enable Nette Debugger
NDebugger::enable();
dibi::connect(array('driver' => 'sqlite', 'database' => 'data/sample.sdb', 'profiler' => array('run' => TRUE)));
NDebugger::barDump(dibi::fetchAll('SELECT * FROM customers WHERE customer_id < ?', 38), '[customers]');