<div id='cmntainer'>

	[% IF csvPreview %]
		<form name='[% importCSVFormName %]' action='[% thisScript %]' method='post' [% IF importConfigFormType %]enctype="[% importConfigFormType %]"[% END %]>
		<input type='hidden' id='buttonTmp_[% importCSVFormName %]' name='buttonTmp' value='' />

		<div id='box' style='width:auto;'>
      <p id='boxHeader'>[% csvPreview %]</p>
      <div id='boxBody'>
        [% cnter  = 0 %]
	
				<br><br>
				<div style='width:49em;margin:0 auto;'>
					<div id='box' style="float:left;width:15em;">
						<p id='boxHeader'>[% importCSVHeader %]</p>
						<div id='boxBody'>
							[% INCLUDE HaCiBox.tmpl
								menu			= importCSVMenu
								hiddens		= importCSVHiddens
								parentFormName	= importCSVFormName
							%]
						</div>
					</div>
					<div id='box' style="width:15em;margin-left:2em;float:left;">
						<p id='boxHeader'>[% importCSVTypeHeader %]</p>
						<div id='boxBody'>
							[% INCLUDE HaCiBox.tmpl
								menu			= importCSVTypeMenu
								parentFormName	= importCSVFormName
							%]
						</div>
					</div>
					<div id='box' style="width:15em;margin-left:34em;">
						<p id='boxHeader'></p>
						<div id='boxBody'>
							[% INCLUDE HaCiBox.tmpl
								menu			= importCSVButtonMenu
								parentFormName	= importCSVFormName
							%]
						</div>
					</div>
				</div>

				<br><br>
				<table id='box' rules='cols'>
					<tr>
						[% WHILE cnter < nrOfCols %]
							[% cnter = cnter + 1 %]
							<th>
								<select 
									name	= 'COL_[% cnter %]' 
									class	= 'box' 
									size	= '1' 
								/>
									[% FOREACH col IN cols %]
										<option value	= '[% col.ID %]' />[% col.name %]</option>
									[% END %]
								</select>
							</th>
						[% END %]
					</tr>
					[% IF noCSVContent %]
						<tr><td colspan='[% nrOfCols %]' align='center'>[% gettext_noContent %]</td></tr>
					[% ELSE %]
						[% FOREACH entry IN csvData %]
							[% cnter = cnter + 1 %] [% IF cnter mod 2 %] [% bgColor = '#AAFFAA' %] [% ELSE %] [% bgColor = '#DDFFDD' %] [% END %]
							<tr style='background-color:[% bgColor %]'>
								[% FOREACH col IN entry %]
									<td align='left'>[% col %]</td>
								[% END %]
							</tr>
						[% END %]
					[% END %]
					<tr><td colspan='[% nrOfCols %]' align='center'>
						.<br>.<br>.<br>
					</td></tr>
				</table>
      </div>
    </div>
		</form>
	[% ELSE %]
		<form name='[% importConfigFormName %]' action='[% thisScript %]' method='post' [% IF importConfigFormType %]enctype="[% importConfigFormType %]"[% END %]>
		<input type='hidden' id='buttonTmp_[% importConfigFormName %]' name='buttonTmp' value='' />

		<table width='100%'><tr><td align='center'><table><tr><td>
		<div id='box'>
			<p id='boxHeader'>[% importConfigHeader %]</p>
			<div id='boxBody'>
				[% INCLUDE HaCiBox.tmpl
					menu						= importConfigMenu
					parentFormName	= importConfigFormName
					formType				= importConfigFormType
					hiddens					= importConfigHiddens
				%]
			</div>
		</div>
		</td></tr></table></td></tr></table>

		<br>

		<table width='100%'><tr><td align='center'><table><tr><td>
		<div id='box'>
			<p id='boxHeader'></p>
			<div id='boxBody'>
				[% INCLUDE HaCiBox.tmpl
					menu						= importConfigButtons
					parentFormName	= importConfigFormName
				%]
			</div>
		</div>
		</td></tr></table></td></tr></table>

		</form>
	[% END %]

</div>

<!--
# vim:ts=2:sw=2:sws=2
-->
