<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:use-macro="container/page_macro/macros/master_page">

<script metal:fill-slot="js_slot" type="text/javascript" src="js/checkAll2"></script>

<span tal:omit-tag="" metal:fill-slot="breadcrumbs">
	&gt; <label i18n:translate="">Courses</label>
	&gt; <label i18n:translate="">Import</label>
</span>

<span tal:omit-tag="" metal:fill-slot="main_content_slot">
	
	<h2 i18n:translate="">Importing...</h2>
	<form action="import_form_handler" method="post" enctype="multipart/form-data">
		<table border="0" width="100%">
		<tr><td colspan="2" class="helpLabel" i18n:translate="">Note: Courses will be created only if provided iva export file. Otherwise, create new course and use import form in bookshelf</td>
		</tr>
		<tr>
			<td width="50%" i18n:translate="">Please select the zipped export file containing the courses you wish to import.</td>
			<td width="50%"><input type="file" name="file" tabindex="1" /></td>
		</tr>
			<td width="50%">&nbsp;</td>
			<td width="50">
				<input type="submit" name="course_import" value="Import" i18n:attributes="value" tabindex="2" />
				<input type="submit" name="cancel" value="Cancel" i18n:attributes="value" tabindex="3" />
			</td>
		<tr>
		</table>
	</form>
	<br />
	<span tal:define="zips context/ziplist" tal:omit-tag="">
	<form action="import_form_handler2" method="post" name="zips" tal:condition="zips">
		<table width="80%" border="0" cellpadding="2" cellspacing="1" bgcolor="#EEEEEE">
		<tr>
			<th width="30" align="center">
				<a href="#" onclick="javascript:selectAll('zip:list', 'zips');;return false;;">
					<img src="images/select_all" alt="Select all zips" i18n:attributes="alt" />
				</a>
			</th>
			<th i18n:translate="">Zip-files on server</th>
		</tr>
		<tr tal:repeat="zip zips">
			<td class="t1"><input type="checkbox" value="zip" tal:attributes="value zip" name="zip:list" /></td>
			<td class="t1" tal:content="zip"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" i18n:attributes="value" value="Import" name="importB" /></td>
		</tr>
		</table>
	</form>
	<span tal:condition="not:zips" i18n:translate="">There are no zip-files on server.</span>
	</span>
</span>

</html>
