|
|
|
@ -534,9 +534,9 @@ function showStudentWorkGrid() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$html = '<script> |
|
|
|
|
$(function() { |
|
|
|
|
'.Display::grid_js('workList', $url, $columns, $columnModel, $params, array(), null, true).' |
|
|
|
|
}); |
|
|
|
|
$(function() { |
|
|
|
|
'.Display::grid_js('workList', $url, $columns, $columnModel, $params, array(), null, true).' |
|
|
|
|
}); |
|
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
$html .= Display::grid_html('workList'); |
|
|
|
@ -907,7 +907,6 @@ function updateDirName($work_data, $newPath) |
|
|
|
|
$newPath = disable_dangerous_file($newPath); |
|
|
|
|
|
|
|
|
|
if ($oldPath == '/'.$newPath) { |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -926,10 +925,9 @@ function updateDirName($work_data, $newPath) |
|
|
|
|
* Return an array with all the folder's ids that are in the given path |
|
|
|
|
* @param string Path of the directory |
|
|
|
|
* @return array The list of ids of all the directories in the path |
|
|
|
|
* @author Julio Montoya Dokeos |
|
|
|
|
* @author Julio Montoya |
|
|
|
|
* @version April 2008 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
function get_parent_directories($id) |
|
|
|
|
{ |
|
|
|
|
$course_id = api_get_course_int_id(); |
|
|
|
@ -955,7 +953,7 @@ function get_parent_directories($id) |
|
|
|
|
* Transform an all directory structure (only directories) in an array |
|
|
|
|
* @param string path of the directory |
|
|
|
|
* @return array the directory structure into an array |
|
|
|
|
* @author Julio Montoya Dokeos |
|
|
|
|
* @author Julio Montoya |
|
|
|
|
* @version April 2008 |
|
|
|
|
*/ |
|
|
|
|
function directory_to_array($directory) |
|
|
|
@ -973,6 +971,7 @@ function directory_to_array($directory) |
|
|
|
|
} |
|
|
|
|
closedir($handle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $array_items; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1002,7 +1001,7 @@ function insert_all_directory_in_course_table($base_work_dir) |
|
|
|
|
$groupIid = $groupInfo['iid']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for($i = 0; $i < count($only_dir); $i++) { |
|
|
|
|
for ($i = 0; $i < count($only_dir); $i++) { |
|
|
|
|
$url = $only_dir[$i]; |
|
|
|
|
|
|
|
|
|
$params = [ |
|
|
|
@ -1761,7 +1760,6 @@ function get_work_user_list_from_documents( |
|
|
|
|
$editLink = Display::url($addIcon, $url); |
|
|
|
|
$addLinkShowed = true; |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
$row['title'] = $documentToWork['title']; |
|
|
|
|
$row['sent_date'] = $documentToWork['sent_date']; |
|
|
|
|
$newWorkId = $documentToWork['id']; |
|
|
|
@ -1781,12 +1779,10 @@ function get_work_user_list_from_documents( |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$viewLink = null; |
|
|
|
|
|
|
|
|
|
if (!empty($itemId)) { |
|
|
|
|
$viewLink = Display::url($viewIcon, $urlView.'&id='.$itemId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//$row['type'] = build_document_icon_tag('file', $row['url']); |
|
|
|
|
$row['type'] = null; |
|
|
|
|
|
|
|
|
|
if ($qualificationExists) { |
|
|
|
@ -1843,7 +1839,6 @@ function get_work_user_list( |
|
|
|
|
$getCount = false |
|
|
|
|
) { |
|
|
|
|
$work_table = Database::get_course_table(TABLE_STUDENT_PUBLICATION); |
|
|
|
|
$iprop_table = Database::get_course_table(TABLE_ITEM_PROPERTY); |
|
|
|
|
$user_table = Database::get_main_table(TABLE_MAIN_USER); |
|
|
|
|
|
|
|
|
|
$session_id = api_get_session_id(); |
|
|
|
@ -2221,9 +2216,7 @@ function send_reminder_users_without_publication($task_data) |
|
|
|
|
// The body can be as long as you wish, and any combination of text and variables |
|
|
|
|
$content = get_lang('ReminderToSubmitPendingTask')."\n".get_lang('CourseName').' : '.$_course['name']."\n"; |
|
|
|
|
$content .= get_lang('WorkName').' : '.$task_title."\n"; |
|
|
|
|
|
|
|
|
|
$list_users = get_list_users_without_publication($task_id); |
|
|
|
|
|
|
|
|
|
$mails_sent_to = array(); |
|
|
|
|
foreach ($list_users as $user) { |
|
|
|
|
$name_user = api_get_person_name($user[1], $user[0], null, PERSON_NAME_EMAIL_ADDRESS); |
|
|
|
@ -2661,7 +2654,7 @@ function getUserToWork($userId, $workId, $courseId) |
|
|
|
|
* @param int $workId |
|
|
|
|
* @param int $courseId |
|
|
|
|
* @param bool $getCount |
|
|
|
|
* @return array |
|
|
|
|
* @return array|int |
|
|
|
|
*/ |
|
|
|
|
function getAllUserToWork($workId, $courseId, $getCount = false) |
|
|
|
|
{ |
|
|
|
|