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

<inp2:adm_ImportData var="prefix" result_to_var="importprefix" />
<inp2:{$importprefix}_PermSection section="main" result_to_var="permsection" />
<inp2:m_RenderElement name="combined_header" section="$permsection" prefix="adm" title_preset="csv_import"/>

<div id="scroll_container">
	<table class="edit-form">
		<inp2:m_RenderElement name="subsection" title="la_section_ImportCompleted"/>
		<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
			<td colspan="3" align="center">
				<inp2:m_Phrase label="la_text_ImportResults" />:
				<inp2:adm_ImportData var="updated" /> <inp2:m_Phrase label="la_text_RecordsUpdated" />,
				<inp2:adm_ImportData var="added" /> <inp2:m_Phrase label="la_text_RecordsAdded" />
			</td>
		</tr>
		<inp2:m_if check="adm_ImportData" var="not_imported_lines">
			<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
				<td colspan="3" align="center">
					<inp2:m_Phrase label="la_text_FollowingLinesWereNotImported" />:
				</td>
			</tr>
			<tr class="<inp2:m_odd_even odd='table-color1' even='table-color2'/>">
				<td colspan="3" align="center">
					<textarea readonly cols="80" rows="13" wrap="off"><inp2:adm_PrintCSVNotImportedLines /></textarea>
				</td>
			</tr>
		</inp2:m_if>
		<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.location.href='<inp2:m_Link template="incs/close_popup" no_amp="1" />';"/>
			</td>
		</tr>
	</table>
</div>

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