|
|
|
@ -2,8 +2,8 @@ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @package chamilo.forum |
|
|
|
|
* @todo fix all this qualify files avoid including files, use classes POO jmontoya |
|
|
|
|
* @package chamilo.forum |
|
|
|
|
* @todo fix all this qualify files avoid including files, use classes POO jmontoya |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
require_once __DIR__.'/../inc/global.inc.php'; |
|
|
|
@ -60,12 +60,12 @@ $groupId = api_get_group_id(); |
|
|
|
|
/* |
|
|
|
|
Header and Breadcrumbs |
|
|
|
|
*/ |
|
|
|
|
if (isset($_SESSION['gradebook'])){ |
|
|
|
|
$gradebook= $_SESSION['gradebook']; |
|
|
|
|
if (isset($_SESSION['gradebook'])) { |
|
|
|
|
$gradebook = $_SESSION['gradebook']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($gradebook) && $gradebook=='view') { |
|
|
|
|
$interbreadcrumb[]= array ( |
|
|
|
|
if (!empty($gradebook) && $gradebook == 'view') { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
'url' => '../gradebook/'.$_SESSION['gradebook_dest'], |
|
|
|
|
'name' => get_lang('ToolGradebook') |
|
|
|
|
); |
|
|
|
@ -75,21 +75,21 @@ if ($origin == 'learnpath') { |
|
|
|
|
Display::display_reduced_header(); |
|
|
|
|
} else { |
|
|
|
|
if (!empty($groupId)) { |
|
|
|
|
$group_properties = GroupManager::get_group_properties($groupId); |
|
|
|
|
$group_properties = GroupManager::get_group_properties($groupId); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "../group/group.php?".api_get_cidreq(), |
|
|
|
|
"name" => get_lang('Groups') |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "../group/group_space.php?".api_get_cidreq(), |
|
|
|
|
"name"=> get_lang('GroupSpace').' ('.$group_properties['name'].')' |
|
|
|
|
"name" => get_lang('GroupSpace').' ('.$group_properties['name'].')' |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "viewforum.php?".api_get_cidreq()."&forum=".intval($_GET['forum'])."&search=".Security::remove_XSS(urlencode($_GET['search'])), |
|
|
|
|
"name" => prepare4display($currentForum['forum_title']) |
|
|
|
|
); |
|
|
|
|
if ($message <> 'PostDeletedSpecial') { |
|
|
|
|
$interbreadcrumb[]= array( |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "viewthread.php?".api_get_cidreq()."&forum=".intval($_GET['forum'])."&gradebook=".$gradebook."&thread=".intval($_GET['thread']), |
|
|
|
|
"name" => prepare4display($currentThread['thread_title']) |
|
|
|
|
); |
|
|
|
@ -101,14 +101,15 @@ if ($origin == 'learnpath') { |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// the last element of the breadcrumb navigation is already set in interbreadcrumb, so give empty string |
|
|
|
|
Display :: display_header(''); |
|
|
|
|
Display::display_header(''); |
|
|
|
|
api_display_tool_title($nameTools); |
|
|
|
|
} else { |
|
|
|
|
$search = isset($_GET['search']) ? Security::remove_XSS(urlencode($_GET['search'])) : ''; |
|
|
|
|
$info_thread = get_thread_information($currentForum['forum_id'], $_GET['thread']); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "index.php?".api_get_cidreq()."&search=".$search, |
|
|
|
|
"name" => $nameTools); |
|
|
|
|
"name" => $nameTools |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "viewforumcategory.php?".api_get_cidreq()."&forumcategory=".$currentForumCategory['cat_id']."&search=".$search, |
|
|
|
|
"name" => prepare4display($currentForumCategory['cat_title']) |
|
|
|
@ -133,8 +134,8 @@ if ($origin == 'learnpath') { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// the last element of the breadcrumb navigation is already set in interbreadcrumb, so give empty string |
|
|
|
|
$interbreadcrumb[]=array("url" => "#", "name" => get_lang('QualifyThread')); |
|
|
|
|
Display :: display_header(''); |
|
|
|
|
$interbreadcrumb[] = array("url" => "#", "name" => get_lang('QualifyThread')); |
|
|
|
|
Display::display_header(''); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -143,7 +144,7 @@ if ($origin == 'learnpath') { |
|
|
|
|
*/ |
|
|
|
|
$action = isset($_GET['action']) ? $_GET['action'] : ''; |
|
|
|
|
|
|
|
|
|
if ($action =='delete' && |
|
|
|
|
if ($action == 'delete' && |
|
|
|
|
isset($_GET['content']) && |
|
|
|
|
isset($_GET['id']) && api_is_allowed_to_edit(false, true) |
|
|
|
|
) { |
|
|
|
@ -162,189 +163,189 @@ if ($action == 'move' && isset($_GET['post'])) { |
|
|
|
|
Display the action messages |
|
|
|
|
*/ |
|
|
|
|
if (!empty($message)) { |
|
|
|
|
Display :: display_confirmation_message(get_lang($message)); |
|
|
|
|
Display:: display_confirmation_message(get_lang($message)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$currentThread = get_thread_information($currentForum['forum_id'], $_GET['thread']); |
|
|
|
|
$threadId = $currentThread['thread_id']; |
|
|
|
|
// Show max qualify in my form |
|
|
|
|
$maxQualify = showQualify('2', $userIdToQualify, $threadId); |
|
|
|
|
|
|
|
|
|
$score = isset($_POST['idtextqualify']) ? Security::remove_XSS($_POST['idtextqualify']) : ''; |
|
|
|
|
$currentThread = get_thread_information($currentForum['forum_id'], $_GET['thread']); |
|
|
|
|
$threadId = $currentThread['thread_id']; |
|
|
|
|
// Show max qualify in my form |
|
|
|
|
$maxQualify = showQualify('2', $userIdToQualify, $threadId); |
|
|
|
|
|
|
|
|
|
if ($score > $maxQualify) { |
|
|
|
|
Display:: display_error_message( |
|
|
|
|
get_lang('QualificationCanNotBeGreaterThanMaxScore'), |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
$score = isset($_POST['idtextqualify']) ? Security::remove_XSS($_POST['idtextqualify']) : ''; |
|
|
|
|
|
|
|
|
|
if (!empty($score)) { |
|
|
|
|
$saveResult = saveThreadScore( |
|
|
|
|
$currentThread, |
|
|
|
|
$userIdToQualify, |
|
|
|
|
$threadId, |
|
|
|
|
$score, |
|
|
|
|
api_get_utc_datetime(), |
|
|
|
|
api_get_session_id() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
if ($score > $maxQualify) { |
|
|
|
|
Display:: display_error_message( |
|
|
|
|
get_lang('QualificationCanNotBeGreaterThanMaxScore'), |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// show qualifications history |
|
|
|
|
$type = isset($_GET['type']) ? $_GET['type'] : ''; |
|
|
|
|
$historyList = getThreadScoreHistory( |
|
|
|
|
if (!empty($score)) { |
|
|
|
|
$saveResult = saveThreadScore( |
|
|
|
|
$currentThread, |
|
|
|
|
$userIdToQualify, |
|
|
|
|
$threadId, |
|
|
|
|
$type |
|
|
|
|
$score, |
|
|
|
|
api_get_utc_datetime(), |
|
|
|
|
api_get_session_id() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$counter = count($historyList); |
|
|
|
|
// show qualifications history |
|
|
|
|
$type = isset($_GET['type']) ? $_GET['type'] : ''; |
|
|
|
|
$historyList = getThreadScoreHistory( |
|
|
|
|
$userIdToQualify, |
|
|
|
|
$threadId, |
|
|
|
|
$type |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Show current qualify in my form |
|
|
|
|
$qualify = current_qualify_of_thread( |
|
|
|
|
$threadId, |
|
|
|
|
api_get_session_id(), |
|
|
|
|
$_GET['user'] |
|
|
|
|
); |
|
|
|
|
$counter = count($historyList); |
|
|
|
|
|
|
|
|
|
$result = get_statistical_information( |
|
|
|
|
$threadId, |
|
|
|
|
$_GET['user_id'], |
|
|
|
|
api_get_course_int_id() |
|
|
|
|
); |
|
|
|
|
// Show current qualify in my form |
|
|
|
|
$qualify = current_qualify_of_thread( |
|
|
|
|
$threadId, |
|
|
|
|
api_get_session_id(), |
|
|
|
|
$_GET['user'] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$url = api_get_path(WEB_CODE_PATH).'forum/forumqualify.php?'. |
|
|
|
|
api_get_cidreq().'&forum='.intval($_GET['forum']).'&thread='.$threadId.'&user='.intval($_GET['user']).'&user_id='.intval($_GET['user']); |
|
|
|
|
|
|
|
|
|
$userToQualifyInfo = api_get_user_info($userIdToQualify); |
|
|
|
|
$form = new FormValidator('forum-thread-qualify', 'post', $url); |
|
|
|
|
$form->addHeader($userToQualifyInfo['complete_name']); |
|
|
|
|
$form->addLabel(get_lang('Thread'), $currentThread['thread_title']); |
|
|
|
|
$form->addLabel(get_lang('CourseUsers'), $result['user_course']); |
|
|
|
|
$form->addLabel(get_lang('PostsNumber'), $result['post']); |
|
|
|
|
$form->addLabel(get_lang('NumberOfPostsForThisUser'), $result['user_post']); |
|
|
|
|
$form->addLabel( |
|
|
|
|
get_lang('AveragePostPerUser'), |
|
|
|
|
round($result['user_post'] / $result['post'], 2) |
|
|
|
|
); |
|
|
|
|
$form->addText( |
|
|
|
|
'idtextqualify', |
|
|
|
|
array(get_lang('Qualification'), get_lang('MaxScore').' '.$maxQualify), |
|
|
|
|
$qualify |
|
|
|
|
); |
|
|
|
|
$result = get_statistical_information( |
|
|
|
|
$threadId, |
|
|
|
|
$_GET['user_id'], |
|
|
|
|
api_get_course_int_id() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$course = api_get_course_info(); |
|
|
|
|
$url = api_get_path(WEB_CODE_PATH).'forum/forumqualify.php?'. |
|
|
|
|
api_get_cidreq().'&forum='.intval($_GET['forum']).'&thread='.$threadId.'&user='.intval($_GET['user']).'&user_id='.intval($_GET['user']); |
|
|
|
|
|
|
|
|
|
$userToQualifyInfo = api_get_user_info($userIdToQualify); |
|
|
|
|
$form = new FormValidator('forum-thread-qualify', 'post', $url); |
|
|
|
|
$form->addHeader($userToQualifyInfo['complete_name']); |
|
|
|
|
$form->addLabel(get_lang('Thread'), $currentThread['thread_title']); |
|
|
|
|
$form->addLabel(get_lang('CourseUsers'), $result['user_course']); |
|
|
|
|
$form->addLabel(get_lang('PostsNumber'), $result['post']); |
|
|
|
|
$form->addLabel(get_lang('NumberOfPostsForThisUser'), $result['user_post']); |
|
|
|
|
$form->addLabel( |
|
|
|
|
get_lang('AveragePostPerUser'), |
|
|
|
|
round($result['user_post'] / $result['post'], 2) |
|
|
|
|
); |
|
|
|
|
$form->addText( |
|
|
|
|
'idtextqualify', |
|
|
|
|
array(get_lang('Qualification'), get_lang('MaxScore').' '.$maxQualify), |
|
|
|
|
$qualify |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$rows = get_thread_user_post($course['code'], $currentThread['thread_id'], $_GET['user']); |
|
|
|
|
if (isset($rows)) { |
|
|
|
|
$counter = 1; |
|
|
|
|
foreach ($rows as $row) { |
|
|
|
|
if ($row['status']=='0') { |
|
|
|
|
$style =" id = 'post".$post_en."' class=\"hide-me\" style=\"border:1px solid red; display:none; background-color:#F7F7F7; width:95%; margin: 0px 0px 4px 40px; \" "; |
|
|
|
|
} else { |
|
|
|
|
$style = ''; |
|
|
|
|
$post_en = $row['post_parent_id']; |
|
|
|
|
} |
|
|
|
|
$course = api_get_course_info(); |
|
|
|
|
|
|
|
|
|
if ($row['user_id'] == '0') { |
|
|
|
|
$name = prepare4display($row['poster_name']); |
|
|
|
|
} else { |
|
|
|
|
$name = api_get_person_name($row['firstname'], $row['lastname']); |
|
|
|
|
} |
|
|
|
|
if ($counter == 1) { |
|
|
|
|
echo Display::page_subheader($name); |
|
|
|
|
} |
|
|
|
|
$rows = get_thread_user_post($course['code'], $currentThread['thread_id'], $_GET['user']); |
|
|
|
|
if (isset($rows)) { |
|
|
|
|
$counter = 1; |
|
|
|
|
foreach ($rows as $row) { |
|
|
|
|
if ($row['status'] == '0') { |
|
|
|
|
$style = " id = 'post".$post_en."' class=\"hide-me\" style=\"border:1px solid red; display:none; background-color:#F7F7F7; width:95%; margin: 0px 0px 4px 40px; \" "; |
|
|
|
|
} else { |
|
|
|
|
$style = ''; |
|
|
|
|
$post_en = $row['post_parent_id']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo "<div ".$style."><table class=\"data_table\">"; |
|
|
|
|
if ($row['user_id'] == '0') { |
|
|
|
|
$name = prepare4display($row['poster_name']); |
|
|
|
|
} else { |
|
|
|
|
$name = api_get_person_name($row['firstname'], $row['lastname']); |
|
|
|
|
} |
|
|
|
|
if ($counter == 1) { |
|
|
|
|
echo Display::page_subheader($name); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($row['visible'] == '0') { |
|
|
|
|
$titleclass = 'forum_message_post_title_2_be_approved'; |
|
|
|
|
$messageclass = 'forum_message_post_text_2_be_approved'; |
|
|
|
|
$leftclass = 'forum_message_left_2_be_approved'; |
|
|
|
|
} else { |
|
|
|
|
$titleclass = 'forum_message_post_title'; |
|
|
|
|
$messageclass = 'forum_message_post_text'; |
|
|
|
|
$leftclass = 'forum_message_left'; |
|
|
|
|
} |
|
|
|
|
echo "<div ".$style."><table class=\"data_table\">"; |
|
|
|
|
|
|
|
|
|
echo "<tr>"; |
|
|
|
|
echo "<td rowspan=\"3\" class=\"$leftclass\">"; |
|
|
|
|
if ($row['visible'] == '0') { |
|
|
|
|
$titleclass = 'forum_message_post_title_2_be_approved'; |
|
|
|
|
$messageclass = 'forum_message_post_text_2_be_approved'; |
|
|
|
|
$leftclass = 'forum_message_left_2_be_approved'; |
|
|
|
|
} else { |
|
|
|
|
$titleclass = 'forum_message_post_title'; |
|
|
|
|
$messageclass = 'forum_message_post_text'; |
|
|
|
|
$leftclass = 'forum_message_left'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '<br /><b>'. api_convert_and_format_date($row['post_date'], DATE_TIME_FORMAT_LONG).'</b><br />'; |
|
|
|
|
echo "<tr>"; |
|
|
|
|
echo "<td rowspan=\"3\" class=\"$leftclass\">"; |
|
|
|
|
|
|
|
|
|
echo "</td>"; |
|
|
|
|
echo '<br /><b>'.api_convert_and_format_date($row['post_date'], DATE_TIME_FORMAT_LONG).'</b><br />'; |
|
|
|
|
|
|
|
|
|
// The post title |
|
|
|
|
echo "<td class=\"$titleclass\">".prepare4display($row['post_title'])."</td>"; |
|
|
|
|
echo "</tr>"; |
|
|
|
|
echo "</td>"; |
|
|
|
|
|
|
|
|
|
// The post message |
|
|
|
|
echo "<tr >"; |
|
|
|
|
echo "<td class=\"$messageclass\">".prepare4display($row['post_text'])."</td>"; |
|
|
|
|
echo "</tr>"; |
|
|
|
|
// The post title |
|
|
|
|
echo "<td class=\"$titleclass\">".prepare4display($row['post_title'])."</td>"; |
|
|
|
|
echo "</tr>"; |
|
|
|
|
|
|
|
|
|
// The check if there is an attachment |
|
|
|
|
$attachment_list = get_attachment($row['post_id']); |
|
|
|
|
// The post message |
|
|
|
|
echo "<tr >"; |
|
|
|
|
echo "<td class=\"$messageclass\">".prepare4display($row['post_text'])."</td>"; |
|
|
|
|
echo "</tr>"; |
|
|
|
|
|
|
|
|
|
if (!empty($attachment_list)) { |
|
|
|
|
echo '<tr ><td height="50%">'; |
|
|
|
|
$realname = $attachment_list['path']; |
|
|
|
|
$user_filename = $attachment_list['filename']; |
|
|
|
|
echo Display::return_icon('attachment.gif', get_lang('Attachment')); |
|
|
|
|
echo '<a href="download.php?file='; |
|
|
|
|
echo $realname; |
|
|
|
|
echo ' "> '.$user_filename.' </a>'; |
|
|
|
|
echo '<span class="forum_attach_comment" >'.$attachment_list['comment'].'</span><br />'; |
|
|
|
|
echo '</td></tr>'; |
|
|
|
|
} |
|
|
|
|
// The check if there is an attachment |
|
|
|
|
$attachment_list = get_attachment($row['post_id']); |
|
|
|
|
|
|
|
|
|
echo "</table></div>"; |
|
|
|
|
$counter++; |
|
|
|
|
if (!empty($attachment_list)) { |
|
|
|
|
echo '<tr ><td height="50%">'; |
|
|
|
|
$realname = $attachment_list['path']; |
|
|
|
|
$user_filename = $attachment_list['filename']; |
|
|
|
|
echo Display::return_icon('attachment.gif', get_lang('Attachment')); |
|
|
|
|
echo '<a href="download.php?file='; |
|
|
|
|
echo $realname; |
|
|
|
|
echo ' "> '.$user_filename.' </a>'; |
|
|
|
|
echo '<span class="forum_attach_comment" >'.$attachment_list['comment'].'</span><br />'; |
|
|
|
|
echo '</td></tr>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo "</table></div>"; |
|
|
|
|
$counter++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$form->addButtonSave(get_lang('QualifyThisThread')); |
|
|
|
|
$form->setDefaults(array('idtextqualify' => $qualify)); |
|
|
|
|
$form->display(); |
|
|
|
|
$form->addButtonSave(get_lang('QualifyThisThread')); |
|
|
|
|
$form->setDefaults(array('idtextqualify' => $qualify)); |
|
|
|
|
$form->display(); |
|
|
|
|
|
|
|
|
|
// Show past data |
|
|
|
|
if (api_is_allowed_to_edit() && $counter > 0) { |
|
|
|
|
if (isset($_GET['gradebook'])) { |
|
|
|
|
$view_gradebook='&gradebook=view'; |
|
|
|
|
} |
|
|
|
|
echo '<h4>'.get_lang('QualificationChangesHistory').'</h4>'; |
|
|
|
|
if (isset($_GET['type']) && $_GET['type'] === 'false') { |
|
|
|
|
$buttons = '<a class="btn btn-default" href="forumqualify.php?'.api_get_cidreq().'&forum='.intval($_GET['forum']).'&origin='.$origin.'&thread='.$threadId.'&user='.intval($_GET['user']).'&user_id='.intval($_GET['user_id']).'&type=true&idtextqualify='.$score.$view_gradebook.'#history">'. |
|
|
|
|
get_lang('MoreRecent').'</a> <a class="btn btn-default disabled" >'.get_lang('Older').'</a>'; |
|
|
|
|
} else { |
|
|
|
|
$buttons = '<a class="btn btn-default">'.get_lang('MoreRecent').'</a> |
|
|
|
|
// Show past data |
|
|
|
|
if (api_is_allowed_to_edit() && $counter > 0) { |
|
|
|
|
if (isset($_GET['gradebook'])) { |
|
|
|
|
$view_gradebook = '&gradebook=view'; |
|
|
|
|
} |
|
|
|
|
echo '<h4>'.get_lang('QualificationChangesHistory').'</h4>'; |
|
|
|
|
if (isset($_GET['type']) && $_GET['type'] === 'false') { |
|
|
|
|
$buttons = '<a class="btn btn-default" href="forumqualify.php?'.api_get_cidreq().'&forum='.intval($_GET['forum']).'&origin='.$origin.'&thread='.$threadId.'&user='.intval($_GET['user']).'&user_id='.intval($_GET['user_id']).'&type=true&idtextqualify='.$score.$view_gradebook.'#history">'. |
|
|
|
|
get_lang('MoreRecent').'</a> <a class="btn btn-default disabled" >'.get_lang('Older').'</a>'; |
|
|
|
|
} else { |
|
|
|
|
$buttons = '<a class="btn btn-default">'.get_lang('MoreRecent').'</a> |
|
|
|
|
<a class="btn btn-default" href="forumqualify.php?'.api_get_cidreq().'&forum='.intval($_GET['forum']).'&origin='.$origin.'&thread='.$threadId.'&user='.intval($_GET['user']).'&user_id='.intval($_GET['user_id']).'&type=false&idtextqualify='.$score.$view_gradebook.'#history">'. |
|
|
|
|
get_lang('Older').'</a>'; |
|
|
|
|
} |
|
|
|
|
get_lang('Older').'</a>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$table_list = '<br /><div class="btn-group">'.$buttons.'</div>'; |
|
|
|
|
$table_list .= '<br /><table class="table">'; |
|
|
|
|
$table_list .= '<tr>'; |
|
|
|
|
$table_list .= '<th width="50%">'.get_lang('WhoChanged').'</th>'; |
|
|
|
|
$table_list .= '<th width="10%">'.get_lang('NoteChanged').'</th>'; |
|
|
|
|
$table_list .= '<th width="40%">'.get_lang('DateChanged').'</th>'; |
|
|
|
|
$table_list .= '</tr>'; |
|
|
|
|
|
|
|
|
|
for ($i = 0; $i < count($historyList); $i++) { |
|
|
|
|
$userInfo = api_get_user_info($historyList[$i]['qualify_user_id']); |
|
|
|
|
$table_list .= '<tr><td>'.$userInfo['complete_name'].'</td>'; |
|
|
|
|
$table_list .= '<td>'.$historyList[$i]['qualify'].'</td>'; |
|
|
|
|
$table_list .= '<td>'.api_convert_and_format_date( |
|
|
|
|
$table_list = '<br /><div class="btn-group">'.$buttons.'</div>'; |
|
|
|
|
$table_list .= '<br /><table class="table">'; |
|
|
|
|
$table_list .= '<tr>'; |
|
|
|
|
$table_list .= '<th width="50%">'.get_lang('WhoChanged').'</th>'; |
|
|
|
|
$table_list .= '<th width="10%">'.get_lang('NoteChanged').'</th>'; |
|
|
|
|
$table_list .= '<th width="40%">'.get_lang('DateChanged').'</th>'; |
|
|
|
|
$table_list .= '</tr>'; |
|
|
|
|
|
|
|
|
|
for ($i = 0; $i < count($historyList); $i++) { |
|
|
|
|
$userInfo = api_get_user_info($historyList[$i]['qualify_user_id']); |
|
|
|
|
$table_list .= '<tr><td>'.$userInfo['complete_name'].'</td>'; |
|
|
|
|
$table_list .= '<td>'.$historyList[$i]['qualify'].'</td>'; |
|
|
|
|
$table_list .= '<td>'.api_convert_and_format_date( |
|
|
|
|
$historyList[$i]['qualify_time'], |
|
|
|
|
DATE_TIME_FORMAT_LONG |
|
|
|
|
); |
|
|
|
|
$table_list .= '</td></tr>'; |
|
|
|
|
} |
|
|
|
|
$table_list.= '</table>'; |
|
|
|
|
|
|
|
|
|
echo $table_list; |
|
|
|
|
$table_list .= '</td></tr>'; |
|
|
|
|
} |
|
|
|
|
$table_list .= '</table>'; |
|
|
|
|
|
|
|
|
|
echo $table_list; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($origin!='learnpath') { |
|
|
|
|
Display :: display_footer(); |
|
|
|
|
if ($origin != 'learnpath') { |
|
|
|
|
Display:: display_footer(); |
|
|
|
|
} |
|
|
|
|