@ -1,4 +1,4 @@
<?php //$Id: work.lib.php 21043 2009-05-28 14:35:45Z pcool $
<?php //$Id: work.lib.php 21053 2009-05-28 22:59:15Z cvargas1 $
/* For licensing terms, see /dokeos_license.txt */
/**
* @package dokeos.work
@ -6,7 +6,7 @@
* @author Patrick Cool < patrick.cool @ UGent . be > , Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
* @author Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @version $Id: work.lib.php 21043 2009-05-28 14:35:45Z pcool $
* @version $Id: work.lib.php 21053 2009-05-28 22:59:15Z cvargas1 $
*/
/**
* Displays action links (for admins, authorized groups members and authorized students)
@ -609,16 +609,15 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou
$add_to_name = '';
}
$show_as_icon = get_work_id($mydir); //true or false
if ($cant_files>0) {
$zip='< a href = "'.api_get_self().'?cidReq='.api_get_course_id().'&gradebook='.$gradebook.'&action=downloadfolder&path=/'.$mydir.'" > < img src = "../img/zip_save.gif" style = "float:right;" alt = "'.get_lang('Save').'" title = "'.get_lang('Save').'" width = "17" height = "17" / > < / a > ';
}
if ($show_as_icon) {
$row[] = $zip.'< a href = "'.api_get_self().'?'.api_get_cidreq().'&origin='.$origin.'&gradebook='.Security::remove_XSS($_GET['gradebook']).'&curdirpath='.$mydir.'" ' . $ class . ' > '.$dir.'< / a > '.$add_to_name.'< br > '.$cant_files.' '.$text_file.$dirtext;
} else {
$row[] = '< a href = "'.api_get_self().'?'.api_get_cidreq().'&origin='.$origin.'&gradebook='.$gradebook.'&curdirpath='.$mydir.'" ' . $ class . ' > '.$dir.'< / a > '.$add_to_name.'< br > '.$cant_files.' '.$text_file.$dirtext;
}
if ($show_as_icon) {
if (is_allowed_to_edit()) {
$zip='< a href = "'.api_get_self().'?cidReq='.api_get_course_id().'&gradebook='.$gradebook.'&action=downloadfolder&path=/'.$mydir.'" > < img src = "../img/zip_save.gif" style = "float:right;" alt = "'.get_lang('Save').'" title = "'.get_lang('Save').'" width = "17" height = "17" / > < / a > ';
}
$row[] = $zip.'< a href = "'.api_get_self().'?'.api_get_cidreq().'&origin='.$origin.'&gradebook='.Security::remove_XSS($_GET['gradebook']).'&curdirpath='.$mydir.'" ' . $ class . ' > '.$dir.'< / a > '.$add_to_name.'< br > '.$cant_files.' '.$text_file.$dirtext;
} else {
$row[] = '< a href = "'.api_get_self().'?'.api_get_cidreq().'&origin='.$origin.'&gradebook='.$gradebook.'&curdirpath='.$mydir.'" ' . $ class . ' > '.$dir.'< / a > '.$add_to_name.'< br > '.$cant_files.' '.$text_file.$dirtext;
}
}
if ($count_files!=0) {
$row[] = "";
}