<ul class="menu root">
[%foreach from=$table_list item="table_name"%]
  <li class="menu">
    <div onclick="yanaMenu(this)">[%$table_name%]</div>
    <ul class="menu">
[%foreach from=$event_list item=event%]
[%if $event.table_name == $table_name%]
[%ldelim%]if $PERMISSION >= [%$event.permission%][%rdelim%]
        <li class="entry"><a href=[%ldelim%]"action=[%$event.action%]"|url[%rdelim%]>[%$event.name%]</a></li>
[%ldelim%]/if[%rdelim%]
[%/if%]
[%/foreach%]
    </ul>
  </li>
[%/foreach%]
  <li class="entry"><a href=[%ldelim%]"action=about&target=[%$plugin_id%].config&type=plugin"|url[%rdelim%]>About ...</a></li>
</ul>