@ -4,15 +4,15 @@
use ChamiloSession as Session;
use ChamiloSession as Session;
/**
/**
* @package chamilo.work
* @package chamilo.work
* @author Thomas, Hugues, Christophe - original version
* @author Thomas, Hugues, Christophe - original version
* @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 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 Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @author Frederic Vauthier, directories management
* @author Julio Montoya < gugli100 @ gmail . com > BeezNest 2011 LOTS of bug fixes
* @author Julio Montoya < gugli100 @ gmail . com > BeezNest 2011 LOTS of bug fixes
*
*
* @todo refactor more code into functions, use quickforms, coding standards, ... jm
* @todo refactor more code into functions, use quickforms, coding standards, ... jm
*/
*/
/**
/**
* STUDENT PUBLICATIONS MODULE
* STUDENT PUBLICATIONS MODULE
@ -39,7 +39,7 @@ use ChamiloSession as Session;
* documents path.
* documents path.
*
*
*
*
*/
*/
/* INIT SECTION */
/* INIT SECTION */
@ -708,7 +708,7 @@ switch ($action) {
$emailsubject = "[" . api_get_setting('siteName') . "] ".get_lang('SendMailBody')."\n".get_lang('CourseName')." : ".$_course['name']." ";
$emailsubject = "[" . api_get_setting('siteName') . "] ".get_lang('SendMailBody')."\n".get_lang('CourseName')." : ".$_course['name']." ";
foreach ($user_list as $user_data) {
foreach ($user_list as $user_data) {
$user_id = $user_data;
$user_id = $user_data['user_id'];
$emailbody = get_lang('SendMailBody')."\n".get_lang('CourseName')." : ".$_course['name']."\n";
$emailbody = get_lang('SendMailBody')."\n".get_lang('CourseName')." : ".$_course['name']."\n";
//$emailbody .= get_lang('WorkName')." : ".substr($my_cur_dir_path, 0, -1)."\n";
//$emailbody .= get_lang('WorkName')." : ".substr($my_cur_dir_path, 0, -1)."\n";
$emailbody .= get_lang('UserName')." : ".api_get_person_name($user_data['firstname'], $user_data['lastname'])."\n";
$emailbody .= get_lang('UserName')." : ".api_get_person_name($user_data['firstname'], $user_data['lastname'])."\n";
@ -921,7 +921,7 @@ switch ($action) {
case 'make_invisible':
case 'make_invisible':
case 'move':
case 'move':
case 'move_to':
case 'move_to':
case 'list':
case 'list':
/* Move file command */
/* Move file command */
if ($is_allowed_to_edit & & $action == 'move_to') {
if ($is_allowed_to_edit & & $action == 'move_to') {
$move_to_path = get_work_path($_REQUEST['move_to_id']);
$move_to_path = get_work_path($_REQUEST['move_to_id']);
@ -1112,7 +1112,7 @@ switch ($action) {
}
}
//User works
//User works
if (isset($work_id) & & !empty($work_id) & & !$display_list_users_without_publication) {
if (isset($work_id) & & !empty($work_id) & & !$display_list_users_without_publication) {
$work_data = get_work_assignment_by_id($work_id);
$work_data = get_work_assignment_by_id($work_id);
$check_qualification = intval($my_folder_data['qualification']);
$check_qualification = intval($my_folder_data['qualification']);
@ -1174,13 +1174,13 @@ switch ($action) {
< / script >
< / script >
<?php
<?php
echo Display::grid_html('results');
echo Display::grid_html('results');
} elseif (isset($_GET['list']) & & $_GET['list'] == 'without') {
} elseif (isset($_GET['list']) & & $_GET['list'] == 'without') {
//User with no works
//User with no works
display_list_users_without_publication($work_id);
display_list_users_without_publication($work_id);
} else {
} else {
//Work list
//Work list
display_student_publications_list($work_id, $link_target_parameter, $dateFormatLong, $origin, $add_query);
display_student_publications_list($work_id, $link_target_parameter, $dateFormatLong, $origin, $add_query);
}
}
break;
break;
}
}
if ($origin != 'learnpath') {
if ($origin != 'learnpath') {