{foreach from=$children item=element}
	<li class="{$element->level}"><a href="#">{$element->name}</a>
	{if $element->children}
	<ul>{include file="recursive_menu.tpl" elements=$element->children}</ul>
	{/if}
	</li>
{/foreach}