|
@@ -135,8 +135,8 @@ class DisplayGradebook
|
|
|
*/
|
|
|
function display_header_reduce_flatview($catobj, $showeval, $showlink,$simple_search_form) {
|
|
|
$header = '<div class="actions">';
|
|
|
+ $header .= '<span><a class="quiz_export_link" href="#" onclick="document.form1b.submit();">'.Display::return_icon('excel.gif', get_lang('ExportAsXLS')).' '.get_lang('ExportAsXLS').'</a></span>';
|
|
|
$header .= '<a href="'.$_SESSION['gradebook_dest'].'?'.api_get_cidreq().'">'. Display::return_icon('folder_document.gif',get_lang('FolderView')) . get_lang('FolderView') . '</a>';
|
|
|
-
|
|
|
// $header .= '<td style="vertical-align: top;"><a href="' . api_get_self() . '?exportpdf=&offset='.Security::remove_XSS($_GET['offset']).'&search=' . Security::remove_XSS($_GET['search']).'&selectcat=' . $catobj->get_id() . '"><img src=../img/file_pdf.gif alt=' . get_lang('ExportPDF') . '/> ' . get_lang('ExportPDF') . '</a>';
|
|
|
|
|
|
// this MUST be a GET variable not a POST
|
|
@@ -159,21 +159,20 @@ class DisplayGradebook
|
|
|
echo '</form>';
|
|
|
|
|
|
//$header .= '<a class="quiz_export_link" href="#" onclick="document.form1a.submit();">'.Display::return_icon('csv.gif', get_lang('ExportAsCSV')).' '.get_lang('ExportAsCSV').'</a>';
|
|
|
- $header .= '<a class="quiz_export_link" href="#" onclick="document.form1b.submit();">'.Display::return_icon('excel.gif', get_lang('ExportAsXLS')).' '.get_lang('ExportAsXLS').'</a>';
|
|
|
-
|
|
|
$header .= '<a href="' . api_get_self() . '?print=&selectcat=' . $catobj->get_id() . '" target="_blank">'.Display::return_icon('printmgr.gif', get_lang('Print')).' ' . get_lang('Print') . '</a>';
|
|
|
$header .= '<a href="' . api_get_self() . '?exportpdf=&selectcat=' . $catobj->get_id() . '" >'.Display::return_icon('file_pdf.gif', get_lang('ExportAsPDF')).' ' . get_lang('ExportToPDF') . '</a>';
|
|
|
//exportpdf
|
|
|
+ //<div class="clear">
|
|
|
$header .= '</div>';
|
|
|
-
|
|
|
if (!$catobj->get_id() == '0') {
|
|
|
//this is necessary?
|
|
|
//$header .= '<table border="0" cellpadding="5"><tr><td><form name="itemfilter" method="post" action="' . api_get_self() . '?selectcat=' . $catobj->get_id() . '"><input type="checkbox" name="showeval" onclick="document.itemfilter.submit()" ' . (($showeval == '1') ? 'checked' : '') . '>Show Evaluations ';
|
|
|
//$header .= '<input type="checkbox" name="showlink" onclick="document.itemfilter.submit()" ' . (($showlink == '1') ? 'checked' : '') . '>'.get_lang('ShowLinks').'</form></td></tr></table>';
|
|
|
}
|
|
|
+ /*
|
|
|
if (isset ($_GET['search'])) {
|
|
|
$header .= '<b>'.get_lang('SearchResults').' :</b>';
|
|
|
- }
|
|
|
+ }*/
|
|
|
echo $header;
|
|
|
}
|
|
|
|