<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html i18n:domain="iva">
<head>
	<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=utf-8')" />
	<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Expires', 'Sat, 1 Jan 2000 00:00:00 GMT')" />
	<title i18n:translate="">Course list</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<style type="text/css"><!--
                @import url("style_css");
        --></style>
</head>
<body>

<div style="position:absolute;margin-left:5%;margin-top:20px;width:90%">
<table border="0" cellspacing="1" cellpadding="1" bgcolor="#EEEEEE" width="100%">
	<tr>
		<th i18n:translate="">Course ID</th>
		<th>
			<a href="?sortc=2" i18n:translate="">Course name</a>
		</th>
		<th i18n:translate="">Teachers</th>
		<th i18n:translate="">Starting- and ending time</th>
		<th>
			<a href="?sortc=10" i18n:translate="">Status</a>
		</th>
		<th>
                        <a href="?sortc=40" i18n:translate="">Last access</a>
                </th>
		<th>
                        <a href="?sortc=30" i18n:translate="">Last modify</a>
                </th>
		<th>
			<a href="?sortc=20" i18n:translate="">Student count</a>
		</th>
		<th>
                        <a href="?sortc=50" i18n:translate="">n of notes</a>
                </th>
		<th>
                        <a href="?sortc=60" i18n:translate="">n of artefacts</a>
                </th>
	</tr>
	<tr tal:repeat="c python:here.courses.get_courses(request)">
		<td class="t1" tal:content="c/get_courseID" />
		<td class="t1" tal:content="c/get_name" />
		<td class="t1">
			<label tal:omit-tag="" tal:repeat="t c/get_teachers">
				<label tal:omit-tag="" tal:content="python:here.firstAndLast(t)" />
				<label tal:omit-tag="" tal:condition="not:repeat/t/end">,</label>
			</label>
		</td>
		<td class="t1">
			<label tal:content="python:c.get_printable_starting_date(request)" />
			-
			<label tal:content="python:c.get_printable_ending_date(request)" />
		</td>
		<td class="t1" tal:content="python:context.courses.getPrintableStatus(c.getStatus)" />
		<td class="t1" tal:content="python:c.lastActive" />
		<td class="t1" tal:content="python:c.lastModify" />
		<td class="t1" tal:content="c/get_n_users" />
		<td class="t1" tal:content="c/get_n_notes" />
		<td class="t1" tal:content="c/get_n_artefacts" />
	</tr>
</table>
</div>

</body>
</html>

