get_url('images/icon-display.gif'); $strpreview = get_string('Preview'); $element['description'] = clean_html($element['description']); return << {$element['html']} {$element['labelhtml']} {$element['description']} {$strclicktopreview} EOF; } echo $form_tag; echo '' . get_string('chooseanexportformat', 'export') . ''; echo ''; echo '' . $elements['format']['html'] . ''; echo ''; echo '' . get_string('whatdoyouwanttoexport', 'export') . ''; echo ''; echo ''. $elements['what']['html'] . ''; echo ''; echo '' . get_string('viewstoexport', 'export') . "\n"; $body = array(); $row = $col = 0; foreach ($elements as $key => $element) { if (substr($key, 0, 5) == 'view_') { $body[$row][$col] = export_form_cell_html($element); $col++; if ($col % 3 == 0) { $row++; $col = 0; } } } if ($body) { echo '' . get_string('selectall', 'export') . ' | ' . get_string('reverseselection', 'export') . ''; echo "\n"; foreach ($body as $rownum => $row) { if ($rownum == 0) { switch (count($row)) { case 2: echo '' . "\n"; break; case 3: echo '' . "\n"; break; } echo " \n"; } echo ' \n"; $i = 0; foreach ($row as $col) { echo $col . "\n"; $i++; } for (; $i < 3; $i++) { echo "\n"; } echo " \n"; } echo " \n"; echo "\n"; } echo ''; echo ''; echo $elements['submit']['html']; echo ''; echo $hidden_elements; echo ''; ?>