<inp2:adm_SetPopupSize width="515" height="194"/>
<inp2:m_include t="incs/header"/>

<inp2:adm_ExportData var="prefix" result_to_var="exportprefix" />
<inp2:{$exportprefix}_PermSection section="main" result_to_var="permsection" />
<inp2:m_RenderElement name="combined_header" section="$permsection" prefix="adm" title_preset="csv_export"/>

<div id="scroll_container">
	<table class="edit-form">
		<inp2:m_RenderElement name="subsection" title="la_prompt_ExportCompleteMessage"/>
		<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
			<td colspan="3" align="center">
				<a href="<inp2:m_t template="index" adm_event="OnGetCSV" pass="m,adm"/>"><inp2:m_phrase name="la_DownloadCSV"/></a>
			</td>
		</tr>
		<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
			<td colspan="3" align="center">
				<input type="button" value="<inp2:m_phrase name="la_Close"/>" class="button" onclick="window_close();"/>
			</td>
		</tr>
	</table>
</div>

<script type="text/javascript">
	$(document).ready(
		function() {
			window.location.href = '<inp2:m_t template="index" adm_event="OnGetCSV" pass="m,adm" no_amp="1" js_escape="1"/>';
		}
	);
</script>

<inp2:m_include t="incs/footer"/>