		{foreach item=structure from=$structure_tree}
			{if $parent_id == $structure->parent_id}
			<li class="{$structure->pos}">
				<div class="header" style="position:relative;background:{if $structure_data->id == $structure->id}#ff0000;font-weight:bold;{else}#cccccc;{/if}text-align:left;padding-top:4px;padding-left:4px;margin-top:2px;">{$structure->name}</div>
				<input type="hidden" name="sort_item_id[]" value="{$structure->id}">
				<input type="hidden" name="sort_item_pos[]" value="{$structure->pos}">
			</li>
			{/if}
		{/foreach}
		{if !$structure_data->id}
		<li class="{$structure->pos}">
			<div class="header" style="position:relative;background:#ff0000;font-weight:bold;text-align:left;padding-top:4px;padding-left:4px;margin-top:2px;">[actual item]</div>
			<input type="hidden" name="sort_item_id[]" value="0">
			<input type="hidden" name="sort_item_pos[]" value="">
		</li>
		{else if $structure_data->parent_id != $parent_id}
		<li class="{$structure->pos}">
			<div class="header" style="position:relative;background:#ff0000;font-weight:bold;text-align:left;padding-top:4px;padding-left:4px;margin-top:2px;">[{$structure_data->name}]</div>
			<input type="hidden" name="sort_item_id[]" value="{$structure_data->id}">
			<input type="hidden" name="sort_item_pos[]" value="{$structure->pos}">
		</li>
		{/if}
		