<labelfor="tattempt">How to treat Attempts</label><br/>
<selectname="tattempt"id="tattempt">
<optionvalue="first">take only the first one</option>
<optionvalue="last">take only the last one</option>
<optionvalue="average">take the average value</option>
<optionvalue="min">take the minimum value</option>
<optionvalue="max">take the maximum value</option>
</select><br/>
<labelname="gcourses">Do you want to group quiz per courses</label><br/>
<selectname="gcourses"id="gcourses">
<optionvalue="nogroup">Do not group</option>
<optionvalue="average">group and take the average value</option>
<optionvalue="min">group and take the minimum value</option>
<optionvalue="max">group and take the maximum value</option>
</select></br>
<inputtype="hidden"class="link"value="format"/>
</span>
');
function reports_template_exercicesMultiCourses_getSQL() {
// foreach quiz
$result = array();
// fixme database name
$columns = Database::query('select r.id as kid, c.title as course, r.child_name as test from reports_keys r, course c where r.course_id=c.id order by r.course_id, r.child_name');