{***************************************************************************
 *	Generate as many controls attribtues panels as possible using the AJAX interface.
 *  The rest of the controls should be generated by the JS classes
****************************************************************************}

{foreach from=$loadPage.controls item=attr key=id}
	{if $CFG.DTM.module.ajaxModules[$attr.type]}
		{assign var=id value=$id+10000}
		
		{if $attr.type=='specialObject'}
			{assign var=objectName value=$attr._objectName}
		{else}
			{assign var=objectName value=$attr.type}
		{/if}
		
		{include file="ajax_loadPage/attributes/AJAXRequest.ajax_loadPage.attributes_`$attr.type`.tpl" type=$attr.type data=$attr.attributes id=$id attributes=$specialObjects[$attr._objectName].attributes}
		
	{/if}
{/foreach}