|
|
|
|
@ -20,8 +20,7 @@ api_block_anonymous_users(); |
|
|
|
|
block_students(); |
|
|
|
|
|
|
|
|
|
if (isset ($_POST['submit']) && isset ($_POST['keyword'])) { |
|
|
|
|
header('Location: ' . api_get_self() . '?selectcat=' . Security::remove_XSS($_GET['selectcat']) |
|
|
|
|
. '&search=' . Security::remove_XSS($_POST['keyword'])); |
|
|
|
|
header('Location: '.api_get_self().'?selectcat='.Security::remove_XSS($_GET['selectcat']).'&search='.Security::remove_XSS($_POST['keyword'])); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -114,9 +113,6 @@ if (isset ($_GET['exportpdf'])) { |
|
|
|
|
$clear_send_printable_data[]=$clear_printable_data; |
|
|
|
|
$clear_printable_data=array(); |
|
|
|
|
} |
|
|
|
|
/*var_dump($printable_data[1]); |
|
|
|
|
var_dump('--------------'); |
|
|
|
|
var_dump($clear_send_printable_data);*/ |
|
|
|
|
export_pdf($pdf,$clear_send_printable_data,$printable_data[0],$format); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
@ -203,9 +199,8 @@ Display :: display_footer(); |
|
|
|
|
|
|
|
|
|
function get_printable_data($users,$alleval, $alllinks) { |
|
|
|
|
$datagen = new FlatViewDataGenerator ($users, $alleval, $alllinks); |
|
|
|
|
$offset = (isset($_GET['offset'])?$_GET['offset']:'0'); |
|
|
|
|
$count = (($offset+10) > $datagen->get_total_items_count()) ? |
|
|
|
|
($datagen->get_total_items_count()-$offset) : 10; |
|
|
|
|
$offset = isset($_GET['offset']) ? $_GET['offset'] : '0'; |
|
|
|
|
$count = (($offset + 10) > $datagen->get_total_items_count()) ? ($datagen->get_total_items_count() - $offset) : 10; |
|
|
|
|
$header_names = $datagen->get_header_names($offset, $count); |
|
|
|
|
$data_array = $datagen->get_data(FlatViewDataGenerator :: FVDG_SORT_LASTNAME, 0, null, $offset, $count, true); |
|
|
|
|
$newarray = array(); |
|
|
|
|
|