Файл: cache/c9/68/a4c1b055c212c9294ef7701c748484dbc55c82554f5bd4769a8ceb06d98f.php
Строк: 122
<?php
/* management/categories.tpl */
class __TwigTemplate_c968a4c1b055c212c9294ef7701c748484dbc55c82554f5bd4769a8ceb06d98f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
$this->env->loadTemplate("header.tpl")->display($context);
// line 2
echo "
";
// line 3
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable((isset($context["array"]) ? $context["array"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 4
echo "<div class="menu">
<a href="/management/categories/";
// line 5
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["row"]) ? $context["row"] : null), "id"), "html", null, true);
echo "">";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["row"]) ? $context["row"] : null), "name"), "html", null, true);
echo "</a> (";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["row"]) ? $context["row"] : null), "cnt"), "html", null, true);
echo ")
<span style="float: right;"><a href="?cat_delete=";
// line 6
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["row"]) ? $context["row"] : null), "id"), "html", null, true);
echo "">удалить</a></span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo "
";
// line 10
if ((isset($context["empty"]) ? $context["empty"] : null)) {
// line 11
echo "<div id="error" class="menu">";
echo twig_escape_filter($this->env, (isset($context["empty"]) ? $context["empty"] : null), "html", null, true);
echo "</div>
";
}
// line 13
echo "
";
// line 15
echo (isset($context["pages"]) ? $context["pages"] : null);
echo "
";
// line 17
echo "
<div class="list">
Добавить категорию:<br />
<form action="" method="POST">
Название:
<input type="text" name="name" /><br />
<input name="category" type="submit" value="Добавить" />
</form>
</div>
<div class="menu"><a href="/management/">В админ-панель</a></div>
";
// line 28
$this->env->loadTemplate("footer.tpl")->display($context);
}
public function getTemplateName()
{
return "management/categories.tpl";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 79 => 28, 66 => 17, 62 => 15, 59 => 13, 53 => 11, 51 => 10, 48 => 9, 39 => 6, 31 => 5, 28 => 4, 24 => 3, 21 => 2, 19 => 1,);
}
}