{$xml[0]}
<form onsubmit="return false" name="ajaxForm" id="ajaxForm" method="post" action="module.php?mod={$mod}&action=extra&channelid={$channelid}&id={$id}">
<table cellpadding="1" cellspacing="1" class="tableborder"  id="down_table"> 
	<tr>          
		<td class="tablerow">             
			<div>
				<ul id="pic-box">
					
				</ul>
			</div>
		</td>      
	</tr> 
</table>
<input type="hidden" name="thumb" id="thumb" value="{$_output['thumb']}" />
</form>
<script type="text/javascript" reload="1">
var id = '{$_output['id']}';
var action = 'edit';
<!--{loop $data $val}-->
AddImage('thumb', '{$val['url']}','{$val['ext']}', '{$val['pid']}');
<!--{/loop}-->
</script>
{$xml[1]}