</span></div>
                <?php 
    }
}
array_pop($_cb->its);
$iterator = end($_cb->its);
if (SnippetHelper::$outputAllowed) {
    array_pop($_cb->snippets)->finish();
}
if (SnippetHelper::$outputAllowed) {
    ?>
    
</body>
<?php 
}
if ($_cb->foo = SnippetHelper::create($control, "popup")) {
    $_cb->snippets[] = $_cb->foo;
    ?>
        <?php 
}
if (isset($show_popup) and $show_popup == true) {
    if (SnippetHelper::$outputAllowed) {
        ?>
            <div id="overlay"></div>
            <div class="popup">
            <a href="<?php 
        echo TemplateHelpers::escapeHtml($control->link("closePopup!"));
        ?>
" class="ajax"><div class="close_popup"></div></a>
                <?php 
    }
    function _cbbc088336200_content($_cb)
    {
        extract(func_get_arg(1));
        if (SnippetHelper::$outputAllowed) {
            ?>
<div id="content">
    <div id="terms_list">
    <ol>
<?php 
        }
        if ($_cb->foo = SnippetHelper::create($control, "terms")) {
            $_cb->snippets[] = $_cb->foo;
            ?>
    <?php 
        }
        foreach ($iterator = $_cb->its[] = new SmartCachingIterator($terms) as $exam) {
            if (SnippetHelper::$outputAllowed) {
                ?>
        <li>
            
                <div class="term">
                    <p class="header">
                        <span class="date"><strong><?php 
                echo TemplateHelpers::escapeHtml($template->translate('start'));
                ?>
:</strong><?php 
                echo TemplateHelpers::escapeHtml($template->date($exam->start_datetime, '%d.%m.%Y %H:%M'));
                ?>
</span>
                    </p>
                    <div class="left">
                    <p><strong><?php 
                echo TemplateHelpers::escapeHtml($template->translate('deadline'));
                ?>
:</strong> <?php 
                echo TemplateHelpers::escapeHtml($template->date($exam->application_deadline, '%d.%m.%Y %H:%M'));
                ?>
<strong><?php 
                echo TemplateHelpers::escapeHtml($template->translate('free places'));
                ?>
:</strong> <?php 
                echo TemplateHelpers::escapeHtml($exam->max_students - $exam->students_applied);
                ?>
</p>
                    <p>
                                            </p>
                    </div>
                    <div class="right">
                        <?php 
                if ($exam->my_id !== null) {
                    ?>
<div class="icon icon-success"></div><br /><br /><br /><br /><br />
                        <a href="<?php 
                    echo TemplateHelpers::escapeHtml($control->link("cancelApplication!", array('exam_id' => $exam->id, 'popup' => false)));
                    ?>
" class="ajax add_new" title="<?php 
                    echo TemplateHelpers::escapeHtml($template->translate('Cancel application for exam from %d', $course));
                    ?>
"><div class="icon_remove"></div><span><?php 
                    echo TemplateHelpers::escapeHtml($template->translate('Cancel application'));
                    ?>
</span></a>
<?php 
                }
                if ($exam->my_id == null and $exam->max_students - $exam->students_applied != 0) {
                    ?>
                        <a href="<?php 
                    echo TemplateHelpers::escapeHtml($control->link("applyForExam!", array('exam_id' => $exam->id, 'popup' => false)));
                    ?>
" class="ajax add_new" title="<?php 
                    echo TemplateHelpers::escapeHtml($template->translate('Apply for exam from %d', $course));
                    ?>
"><div class="icon_add"></div><span><?php 
                    echo TemplateHelpers::escapeHtml($template->translate('Apply'));
                    ?>
</span></a>
<?php 
                }
                if ($exam->max_students - $exam->students_applied == 0) {
                    ?>
                        <p><strong><?php 
                    echo TemplateHelpers::escapeHtml($template->translate('Term full'));
                    ?>
</strong></p>
<?php 
                }
                ?>
                    </div>
                    <p class="bottom"><a class="ajax" href="<?php 
                echo TemplateHelpers::escapeHtml($control->link("showDetail!", array('exam_id' => $exam->id)));
                ?>
"><?php 
                echo TemplateHelpers::escapeHtml($template->translate('List of applied students'));
                ?>
</a></p>
                </div>
            
        </li>
    <?php 
            }
        }
        array_pop($_cb->its);
        $iterator = end($_cb->its);
        if (SnippetHelper::$outputAllowed) {
            array_pop($_cb->snippets)->finish();
        }
        if (SnippetHelper::$outputAllowed) {
            ?>
    </ol>
    </div>
</div>
<?php 
        }
    }
</title>
<?php 
    if (!$_cb->extends) {
        call_user_func(reset($_cb->blocks['css']), $_cb, $template->getParams());
    }
    if (!$_cb->extends) {
        call_user_func(reset($_cb->blocks['js']), $_cb, $template->getParams());
    }
    ?>
</head>
<body>
    <div id="container">
	<div id="content">
<?php 
}
if ($_cb->foo = SnippetHelper::create($control, "flash")) {
    $_cb->snippets[] = $_cb->foo;
    ?>
            <?php 
}
foreach ($iterator = $_cb->its[] = new SmartCachingIterator($flashes) as $flash) {
    if (SnippetHelper::$outputAllowed) {
        ?>
                <div class="flash <?php 
        echo TemplateHelpers::escapeHtml($flash->type);
        ?>
"><?php 
        echo TemplateHelpers::escapeHtml($flash->message);
        ?>
</div>
            <?php 
<?php

//netteCache[01]000203a:2:{s:4:"time";s:21:"0.69509300 1267235076";s:9:"callbacks";a:1:{i:0;a:3:{i:0;a:2:{i:0;s:5:"Cache";i:1;s:9:"checkFile";}i:1;s:48:"D:\www\skusky\app\components\Datagrid/grid.phtml";i:2;i:1263349006;}}}
// file D:\www\skusky\app\components\Datagrid/grid.phtml
//
$_cb = LatteMacros::initRuntime($template, NULL, 'fc280d5fed');
unset($_extends);
if (isset($presenter, $control) && $presenter->isAjax()) {
    LatteMacros::renderSnippets($control, $_cb, get_defined_vars());
}
if (SnippetHelper::$outputAllowed) {
}
if ($_cb->foo = SnippetHelper::create($control, "grid")) {
    $_cb->snippets[] = $_cb->foo;
    ?>

<?php 
    foreach ($iterator = $_cb->its[] = new SmartCachingIterator($flashes) as $flash) {
        ?>
<div class="flash <?php 
        echo TemplateHelpers::escapeHtml($flash->type);
        ?>
"><?php 
        echo TemplateHelpers::escapeHtml($flash->message);
        ?>
</div>
<?php 
    }
    array_pop($_cb->its);
    $iterator = end($_cb->its);
    ?>
    function _cbbf1cb892188_content($_cb)
    {
        extract(func_get_arg(1));
        if (SnippetHelper::$outputAllowed) {
            ?>

<div id="header">
	<h1>TreeView</h1>

	<h2>Nette Framework example.</h2>
</div>

<br />

<?php 
        }
        if ($_cb->foo = SnippetHelper::create($control, "message")) {
            $_cb->snippets[] = $_cb->foo;
            if (isset($site)) {
                ?>
	<div class="ui-widget ui-state-highlight ui-corner-all">
		You clicked on "<?php 
                echo TemplateHelpers::escapeHtml($site->name);
                ?>
" link in tree view example.
	</div>
<?php 
            }
            array_pop($_cb->snippets)->finish();
        }
        if (SnippetHelper::$outputAllowed) {
        }
        if ($_cb->foo = SnippetHelper::create($control, "mode")) {
            $_cb->snippets[] = $_cb->foo;
            ?>
	Modes: 	<a href="<?php 
            echo TemplateHelpers::escapeHtml($control->link("mode!", array(TreeView::EXPANDED)));
            ?>
" class="ajax<?php 
            if ($mode == TreeView::EXPANDED) {
                ?>
 active<?php 
            }
            ?>
">Expanded</a> | <a href="<?php 
            echo TemplateHelpers::escapeHtml($control->link("mode!", array(TreeView::AJAX)));
            ?>
" class="ajax<?php 
            if ($mode == TreeView::AJAX) {
                ?>
 active<?php 
            }
            ?>
">Ajax</a>
<?php 
            array_pop($_cb->snippets)->finish();
        }
        if (SnippetHelper::$outputAllowed) {
            ?>

<?php 
        }
        $control->getWidget("tree")->render();
        if (SnippetHelper::$outputAllowed) {
        }
    }