server/onyx/tpl/bootstrap/admin/export_teams.tpl

20 lines
550 B
Smarty
Raw Normal View History

2013-11-08 18:15:17 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<teams>
{foreach from=$teams item=t}
<team>
2014-01-21 02:08:08 +00:00
<name id="{$t->id}">{$t->team_name}</name>
2013-11-08 18:15:17 +00:00
{if $t->slogan}<slogan>{$t->slogan}</slogan>{/if}
{if $t->get_members()}
{foreach from=$t->get_members() item=m}
<member>
<lastname>{$m->lastname}</lastname>
<firstname>{$m->firstname}</firstname>
{if $m->nickname}<nickname>{$m->nickname}</nickname>{/if}
{if $m->company}<company>{$m->company}</company>{/if}
</member>
{/foreach}
{/if}
</team>
{/foreach}
</teams>