123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796 |
- <?php
- $language_file = array('registration','messages','userInfo','admin');
- $cidReset = true;
- require '../inc/global.inc.php';
- require_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php');
- require_once (api_get_path(LIBRARY_PATH).'social.lib.php');
- $user_id = api_get_user_id();
- $show_full_profile = true;
- if (isset($_GET['u'])) {
- $user_id = (int) Database::escape_string($_GET['u']);
-
- if (api_get_user_id() != $user_id) {
- $user_info = UserManager::get_user_info_by_id($user_id);
- $show_full_profile = false;
- if ($user_info==false) {
-
- api_not_allowed();
- } else {
-
- $my_status= UserFriend::get_relation_between_contacts(api_get_user_id(), $user_id);
- if (in_array($my_status, array(SOCIALPARENT, SOCIALFRIEND, SOCIALGOODFRIEND))) {
- $show_full_profile = true;
- }
-
- $my_friend_status = UserFriend::get_relation_between_contacts($user_id, api_get_user_id());
- if (in_array($my_friend_status, array(SOCIALPARENT, SOCIALFRIEND, SOCIALGOODFRIEND))) {
- $show_full_profile = true;
- } else {
-
- $show_full_profile = false;
- }
- }
- } else {
- $user_info = UserManager::get_user_info_by_id($user_id);
- }
- } else {
- $user_info = UserManager::get_user_info_by_id($user_id);
- }
- require_once (api_get_path(SYS_CODE_PATH).'calendar/myagenda.inc.php');
- require_once (api_get_path(SYS_CODE_PATH).'announcements/announcements.inc.php');
- require_once (api_get_path(LIBRARY_PATH).'course.lib.php');
- require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
- api_block_anonymous_users();
- $htmlHeadXtra[] = '<script src="../inc/lib/javascript/jquery.js" type="text/javascript" language="javascript"></script>';
- $htmlHeadXtra[] = '<script src="../inc/lib/javascript/jquery.corners.min.js" type="text/javascript" language="javascript"></script>';
- $htmlHeadXtra[] = '<script type="text/javascript" src="../inc/lib/javascript/thickbox.js"></script>';
- $htmlHeadXtra[] = '<link rel="stylesheet" href="../inc/lib/javascript/thickbox.css" type="text/css" media="projection, screen">';
- $htmlHeadXtra[] = '
- <script type="text/javascript">
- function toogle_function (element_html, course_code){
- elem_id=$(element_html).attr("id");
- id_elem=elem_id.split("_");
- ident="div#div_group_"+id_elem[1];
-
- id_button="#btn_"+id_elem[1];
- elem_src=$(id_button).attr("src");
- image_show=elem_src.split("/");
- my_image=image_show[2];
- if (my_image=="nolines_plus.gif") {
- $(ident).hide("slow");
- $(id_button).attr("src","../img/nolines_minus.gif"); var action = "load_course";
- } else {
- $(ident).show("slow");
- $(id_button).attr("src","../img/nolines_plus.gif"); var action = "unload";
- }
- var content = \'social_content\' + id_elem[1];
- $.ajax({
- contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("#id_response").html("'.get_lang('Loading').'"); },
- type: "POST",
- url: "../social/data_personal.inc.php",
- data: "load_ajax="+id_elem+"&action="+action+"&course_code="+course_code,
- success: function(datos) {
- //$("div#"+name_div_id).hide("slow");
- $("div#"+content).html(datos);
- }
- });
- }
- </script>';
- $htmlHeadXtra[] = '<script type="text/javascript">
- $(document).ready(function (){
- $("input#id_btn_send_invitation").bind("click", function(){
- if (confirm("'.get_lang('SendMessageInvitation').'")) {
- $("#form_register_friend").submit();
- }
- });
- });
- function change_panel (mypanel_id,myuser_id) {
- $.ajax({
- contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("#id_content_panel").html("'.get_lang('Loading').'"); },
- type: "POST",
- url: "../messages/send_message.php",
- data: "panel_id="+mypanel_id+"&user_id="+myuser_id,
- success: function(datos) {
- $("div#id_content_panel_init").html(datos);
- $("div#display_response_id").html("");
- }
- });
- }
- function action_database_panel(option_id,myuser_id) {
-
- if (option_id==5) {
- my_txt_subject=$("#txt_subject_id").val();
- } else {
- my_txt_subject="clear";
- }
- my_txt_content=$("#txt_area_invite").val();
- if (my_txt_content.length==0 || my_txt_subject.length==0) {
- $("#display_response_id").html(" '.get_lang('MessageInformationBySendMessage').'");
- setTimeout("message_information_display()",3000);
- return false;
- }
- $.ajax({
- contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("#display_response_id").html("'.get_lang('Loading').'"); },
- type: "POST",
- url: "../messages/send_message.php",
- data: "panel_id="+option_id+"&user_id="+myuser_id+"&txt_subject="+my_txt_subject+"&txt_content="+my_txt_content,
- success: function(datos) {
- $("#display_response_id").html(datos);
- }
- });
- }
- function display_hide () {
- setTimeout("hide_display_message()",3000);
- }
- function message_information_display() {
- $("#display_response_id").html("");
- }
- function hide_display_message () {
- $("div#display_response_id").html("");
- try {
- $("#txt_subject_id").val("");
- $("#txt_area_invite").val("");
- }catch(e) {
- $("#txt_area_invite").val("");
- }
- }
- function register_friend(element_input) {
- if(confirm("'.get_lang('AddToContacts').'")) {
- name_button=$(element_input).attr("id");
- name_div_id="id_"+name_button.substring(13);
- user_id=name_div_id.split("_");
- user_friend_id=user_id[1];
- $.ajax({
- contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("#id_response").html("'.get_lang('Loading').'"); },
- type: "POST",
- url: "../social/register_friend.php",
- data: "friend_id="+user_friend_id,
- success: function(datos) {
- $("div#id_response").html(datos);
- }
- });
- }
- }
- </script>';
- $interbreadcrumb[]= array ('url' => '#','name' => get_lang('ModifyProfile') );
- $interbreadcrumb[]= array (
- 'url' => '../social/index.php?#remote-tab-1',
- 'name' => get_lang('ViewSharedProfile')
- );
- if (isset($_GET['u'])) {
- $info_user=api_get_user_info(api_get_user_id());
- $interbreadcrumb[]= array (
- 'url' => '../social/profile.php'.$param_user,
- 'name' => $info_user['firstName'].' '.$info_user['lastName']
- );
- }
- if (isset($_GET['u'])) {
- $info_user=api_get_user_info(Security::remove_XSS($_GET['u']));
- $param_user='?u='.Security::remove_XSS($_GET['u']);
- }else {
- $info_user=api_get_user_info(api_get_user_id());
- $param_user='';
- }
- $interbreadcrumb[]= array (
- 'url' => '../social/profile.php'.$param_user,
- 'name' => $info_user['firstName'].' '.$info_user['lastName']
- );
- $_SESSION['social_user_id'] = $user_id;
- function get_logged_user_course_html($my_course, $count) {
- global $nosession;
- if (api_get_setting('use_session_mode')=='true' && !$nosession) {
- global $now, $date_start, $date_end;
- }
-
- $result = '';
-
- $main_user_table = Database :: get_main_table(TABLE_MAIN_USER);
- $tbl_session = Database :: get_main_table(TABLE_MAIN_SESSION);
- $course_database = $my_course['db'];
- $course_tool_table = Database :: get_course_table(TABLE_TOOL_LIST, $course_database);
- $tool_edit_table = Database :: get_course_table(TABLE_ITEM_PROPERTY, $course_database);
- $course_group_user_table = Database :: get_course_table(TOOL_USER, $course_database);
-
- $user_id = api_get_user_id();
- $course_system_code = $my_course['k'];
- $course_visual_code = $my_course['c'];
- $course_title = $my_course['i'];
- $course_directory = $my_course['d'];
- $course_teacher = $my_course['t'];
- $course_teacher_email = isset($my_course['email'])?$my_course['email']:'';
- $course_info = Database :: get_course_info($course_system_code);
- $course_access_settings = CourseManager :: get_access_settings($course_system_code);
-
- $course_visibility = $course_access_settings['visibility'];
-
- $user_in_course_status = CourseManager :: get_user_in_course_status(api_get_user_id(), $course_system_code);
-
- $is_virtual_course = CourseManager :: is_virtual_course_from_system_code($my_course['k']);
- if ($is_virtual_course) {
-
-
-
- $target_course_code = CourseManager :: get_target_of_linked_course($course_system_code);
- $is_subscribed_in_target_course = CourseManager :: is_user_subscribed_in_course(api_get_user_id(), $target_course_code);
- if ($is_subscribed_in_target_course) {
- return;
- }
- }
- $has_virtual_courses = CourseManager :: has_virtual_courses_from_code($course_system_code, api_get_user_id());
- if ($has_virtual_courses) {
- $return_result = CourseManager :: determine_course_title_from_course_info(api_get_user_id(), $course_info);
- $course_display_title = $return_result['title'];
- $course_display_code = $return_result['code'];
- } else {
- $course_display_title = $course_title;
- $course_display_code = $course_visual_code;
- }
- $s_course_status=$my_course['s'];
- $s_htlm_status_icon="";
- if ($s_course_status==1) {
- $s_htlm_status_icon=Display::return_icon('teachers.gif', get_lang('Teacher'));
- }
- if ($s_course_status==2) {
- $s_htlm_status_icon=Display::return_icon('coachs.gif', get_lang('GeneralCoach'));
- }
- if ($s_course_status==5) {
- $s_htlm_status_icon=Display::return_icon('students.gif', get_lang('Student'));
- }
-
- $result .= '<div id="div_'.$count.'">';
-
- $result .= '<h2><img src="../img/nolines_plus.gif" id="btn_'.$count.'" onclick="toogle_function(this,\''.$course_database.'\' )">';
- $result .= $s_htlm_status_icon;
-
-
- if ($course_visibility != COURSE_VISIBILITY_CLOSED || $user_in_course_status == COURSEMANAGER) {
- $result .= '<a href="#" id="ln_'.$count.'" onclick=toogle_function(this,\''.$course_database.'\');> '.$course_title.'</a></h2>';
-
- } else {
- $result .= $course_display_title." "." ".get_lang('CourseClosed')."";
- }
-
-
-
- $current_course_settings = CourseManager :: get_access_settings($my_course['k']);
-
-
- if ((CONFVAL_showExtractInfo == SCRIPTVAL_InCourseList || CONFVAL_showExtractInfo == SCRIPTVAL_Both) && $nbDigestEntries > 0) {
- reset($digest);
- $result .= '<ul>';
- while (list ($key2) = each($digest[$thisCourseSysCode])) {
- $result .= '<li>';
- if ($orderKey[1] == 'keyTools') {
- $result .= "<a href=\"$toolsList[$key2] [\"path\"] $thisCourseSysCode \">";
- $result .= "$toolsList[$key2][\"name\"]</a>";
- } else {
- $result .= format_locale_date(CONFVAL_dateFormatForInfosFromCourses, strtotime($key2));
- }
- $result .= '</li>';
- $result .= '<ul>';
- reset($digest[$thisCourseSysCode][$key2]);
- while (list ($key3, $dataFromCourse) = each($digest[$thisCourseSysCode][$key2])) {
- $result .= '<li>';
- if ($orderKey[2] == 'keyTools') {
- $result .= "<a href=\"$toolsList[$key3] [\"path\"] $thisCourseSysCode \">";
- $result .= "$toolsList[$key3][\"name\"]</a>";
- } else {
- $result .= format_locale_date(CONFVAL_dateFormatForInfosFromCourses, strtotime($key3));
- }
- $result .= '<ul compact="compact">';
- reset($digest[$thisCourseSysCode][$key2][$key3]);
- while (list ($key4, $dataFromCourse) = each($digest[$thisCourseSysCode][$key2][$key3])) {
- $result .= '<li>';
- $result .= htmlspecialchars(substr(strip_tags($dataFromCourse), 0, CONFVAL_NB_CHAR_FROM_CONTENT));
- $result .= '</li>';
- }
- $result .= '</ul>';
- $result .= '</li>';
- }
- $result .= '</ul>';
- $result .= '</li>';
- }
- $result .= '</ul>';
- }
- $result .= '</li>';
- $result .= '</div>';
-
- if (api_get_setting('use_session_mode')=='true' && !$nosession) {
- $session = '';
- $active = false;
- if (!empty($my_course['session_name'])) {
-
-
- $sql = 'SELECT lastname, firstname
- FROM '.$tbl_session.' ts LEFT JOIN '.$main_user_table .' tu
- ON ts.id_coach = tu.user_id
- WHERE ts.id='.(int) $my_course['id_session']. ' LIMIT 1';
- $rs = api_sql_query($sql, __FILE__, __LINE__);
- $sessioncoach = api_store_result($rs);
- $sessioncoach = $sessioncoach[0];
-
- $session = array();
- $session['title'] = $my_course['session_name'];
- if ( $my_course['date_start']=='0000-00-00' ) {
- $session['dates'] = get_lang('WithoutTimeLimits');
- if ( api_get_setting('show_session_coach') === 'true' ) {
- $session['coach'] = get_lang('GeneralCoach').': '.$sessioncoach['lastname'].' '.$sessioncoach['firstname'];
- }
- $active = true;
- } else {
- $session ['dates'] = ' - '.get_lang('From').' '.$my_course['date_start'].' '.get_lang('To').' '.$my_course['date_end'];
- if ( api_get_setting('show_session_coach') === 'true' ) {
- $session['coach'] = get_lang('GeneralCoach').': '.$sessioncoach['lastname'].' '.$sessioncoach['firstname'];
- }
- $active = ($date_start <= $now && $date_end >= $now)?true:false;
- }
- }
- $output = array ($my_course['user_course_cat'], $result, $my_course['id_session'], $session, 'active'=>$active);
- } else {
- $output = array ($my_course['user_course_cat'], $result);
- }
- return $output;
- }
- Display :: display_header(null);
- $img_array= UserManager::get_user_picture_path_by_id($user_id,'web',true,true);
- echo $s="<script>$(document).ready( function(){
- $('.rounded').corners();
- });</script>";
-
-
- $personal_course_list = UserManager::get_personal_session_course_list($_user['user_id']);
- $course_list_code = array();
- $i=1;
- foreach ($personal_course_list as $my_course) {
- $list[] = get_logged_user_course_html($my_course,$i);
- $course_list_code[] = array('code'=>$my_course['c'],'dbName'=>$my_course['db'], 'title'=>$my_course['i']);
- $i++;
- }
-
- echo '<div id="social-profile-wrapper">';
- echo '<div id="social-profile-right">';
-
- if ($show_full_profile) {
- $list_path_friends= $list_path_normal_friends = $list_path_parents = array();
-
- $list_path_good_friends = UserFriend::get_list_path_web_by_user_id($user_id, SOCIALGOODFRIEND);
- $list_path_normal_friends = UserFriend::get_list_path_web_by_user_id($user_id, SOCIALFRIEND);
- $list_path_parents = UserFriend::get_list_path_web_by_user_id($user_id, SOCIALPARENT);
-
- $list_path_friends = array_merge_recursive($list_path_good_friends, $list_path_normal_friends, $list_path_parents);
-
- $friend_html='';
- $number_of_images=3;
- $number_friends=0;
- $list_friends_id=array();
- $list_friends_dir=array();
- $list_friends_file=array();
-
- if (count($list_path_friends)!=0) {
- $friends_count = count($list_path_friends['id_friend']);
- for ($z=0;$z< $friends_count ;$z++) {
- $list_friends_id[] = $list_path_friends['id_friend'][$z]['friend_user_id'];
- $list_friends_dir[] = $list_path_friends['path_friend'][$z]['dir'];
- $list_friends_file[]= $list_path_friends['path_friend'][$z]['file'];
- }
- $number_friends= count($list_friends_dir);
- $number_loop = ($number_friends/$number_of_images);
- $loop_friends = ceil($number_loop);
- $j=0;
- $friend_html.= '<div id="friend-container">';
-
- $friend_html.= '<div id="friend-header">';
-
- if ($friends_count == 1)
- $friend_html.= '<div style="float:left;">'.$friends_count.' '.get_lang('Friend').'</div>';
- else
- $friend_html.= '<div style="float:left;">'.$friends_count.' '.get_lang('Friends').'</div>';
- $friend_html.= '<div style="float:right;">'.get_lang('SeeAll').'</div>';
- $friend_html.= '</div><br/>';
-
-
- for ($k=0;$k<$loop_friends;$k++) {
- if ($j==$number_of_images) {
- $number_of_images=$number_of_images*2;
- }
- while ($j<$number_of_images) {
- if ($list_friends_file[$j]<>"") {
- $my_user_info=api_get_user_info($list_friends_id[$j]);
- $name_user=$my_user_info['firstName'].' '.$my_user_info['lastName'];
-
- $friend_html.=' <div id=div_'.$list_friends_id[$j].' style="float:left;" >';
- $margin_top = 10;
- if ($k==0) $margin_top = 0;
- $friend_html.='<a href="profile.php?u='.$list_friends_id[$j].'">';
- $friend_html.='<img src="'.$list_friends_dir[$j]."/".$list_friends_file[$j].'" width="90px" height="110px" style="margin-left:3px;margin-right:3px;margin-top:'.$margin_top.'px;margin-bottom:3px;" id="imgfriend_'.$list_friends_id[$j].'" title="'.$name_user.'" />';
- $friend_html.= '<br />'.$my_user_info['firstName'].'<br />'.$my_user_info['lastName'];
- $friend_html.= '</a>';
- $friend_html.= '</div> ';
- }
- $j++;
- }
- }
-
- }
- $friend_html.= '</div>';
- echo $friend_html;
-
-
-
- $pending_invitations = UserFriend::get_list_invitation_of_friends_by_user_id($user_id);
- $list_get_path_web=UserFriend::get_list_web_path_user_invitation_by_user_id($user_id);
- $count_pending_invitations = count($pending_invitations);
- echo '<div class="clear"></div><br />';
-
-
-
- echo '<div class="clear"></div><br />';
-
-
- $production_list = UserManager::build_production_list($user_id);
- if (!empty($production_list )) {
- api_display_tool_title(get_lang('Productions'));
- echo '<div class="rounded1">';
- echo $production_list;
- echo '</div>';
- }
-
-
- $file_list = '';
- foreach ($course_list_code as $course) {
- $file_list.= UserManager::get_user_upload_files_by_course($user_id,$course['code']);
- }
- if (!empty($file_list)) {
- api_display_tool_title(get_lang('ImagesUploaded'));
- echo '<div class="rounded2">';
- echo $file_list;
- echo '</div>';
- }
- }
-
- echo '</div>';
-
-
- echo '<div id="social-profile-container">';
-
- echo '<div id="social-profile-left">';
-
- echo '<img src='.$img_array['dir'].$img_array['file'].' /> <br /><br />';
-
- if (api_get_user_id() == $user_id) {
-
- echo Display::return_icon('email.gif');
- echo ' <a href="../social/index.php#remote-tab-2">'.get_lang('MyInbox').'</a><br />';
- echo Display::return_icon('edit.gif');
- echo ' <a href="../auth/profile.php?show=1">'.get_lang('EditInformation').'</a>';
-
- } else {
- echo ' <a href="../messages/send_message_to_userfriend.inc.php?height=365&width=610&user_friend='.$user_id.'&view=profile" class="thickbox" title="'.get_lang('SendMessage').'">'.Display::return_icon('message_new.png').' '.get_lang('SendMessage').'</a><br />';
-
- }
- echo '<br /><br />';
-
-
-
-
- if ($show_full_profile) {
-
- api_display_tool_title(get_lang('ExtraInformation'));
- $extra_user_data = UserManager::get_extra_user_data($user_id);
- echo '<div class="rounded left-side">';
- foreach($extra_user_data as $key=>$data) {
- echo ucfirst($key).': '.$data;
- echo '<br />';
- }
- echo '</div>';
- echo '<br /><br />';
-
-
- api_display_tool_title(get_lang('MyAgenda'));
- $tbl_personal_agenda = Database :: get_user_personal_table(TABLE_PERSONAL_AGENDA);
-
- echo '<div class="rounded left-side">';
- echo show_simple_personal_agenda($user_id);
- echo '</div>';
- echo '<br /><br />';
-
-
- api_display_tool_title(get_lang('Announcements'));
- foreach ($course_list_code as $course) {
- echo '<h2>'.$course['title'].'</h2>';
- echo '<div class="rounded left-side">';
- get_all_annoucement_by_user_course($course['dbName'],$user_id);
- echo '</div>';
- echo '<br/>';
- }
- }
- echo '</div>';
-
-
- echo '<div id="social-profile-content">';
-
- api_display_tool_title(get_lang('Information'));
-
- if ($show_full_profile) {
- echo '<div class="social-profile-info" >';
- echo '<dl>';
- echo '<dt>'.mb_convert_encoding(get_lang('UserName'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['username'],'UTF-8',$charset).' </dd>';
-
- if (!empty($user_info['firstname']) || !empty($user_info['lastname']))
- echo '<dt>'.mb_convert_encoding(get_lang('Name'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['firstname'].' '.$user_info['lastname'],'UTF-8',$charset).'</dd>';
-
- if (!empty($user_info['official_code']))
- echo '<dt>'.mb_convert_encoding(get_lang('OfficialCode'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['official_code'],'UTF-8',$charset).'</dd>';
- if (!empty($user_info['email']))
- if (api_get_setting('show_email_addresses')=='true')
- echo '<dt>'.mb_convert_encoding(get_lang('Email'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['email'],'UTF-8',$charset).'</dd>';
- if (!empty($user_info['phone']))
- echo '<dt>'.mb_convert_encoding(get_lang('Phone'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['phone'],'UTF-8',$charset).'</dd>';
- echo '</dl>';
- echo '</div>';
- } else {
- echo '<div class="social-profile-info" >';
- echo '<dl>';
- if (!empty($user_info['firstname']) || !empty($user_info['lastname']))
- echo '<dt>'.mb_convert_encoding(get_lang('Name'),'UTF-8',$charset).'</dt> <dd>'. mb_convert_encoding($user_info['firstname'].' '.$user_info['lastname'],'UTF-8',$charset).'</dd>';
- echo '</dl>';
- echo '</div>';
- }
-
- echo '<div class="clear"></div><br />';
-
-
- if ($show_full_profile) {
- api_display_tool_title(ucfirst(get_lang('Courses')));
-
-
- if ( is_array($list) ) {
-
- $old_user_category = 0;
- $i=1;
- foreach($list as $key=>$value) {
- if ( empty($value[2]) ) {
-
- echo $value[1];
- echo '<div id="loading'.$i.'"></div>';
-
- echo '<div id="social_content'.$i.'" class="rounded maincourse" style="background : #EFEFEF; padding:0px; ">';
- echo '</div>';
- $i++;
- }
- }
- $listActives = $listInactives = $listCourses = array();
- foreach ( $list as $key=>$value ) {
- if ( $value['active'] ) {
- $listActives[] = $value;
- } elseif ( !empty($value[2]) ) {
- $listInactives[] = $value;
- }
- }
-
- }
- echo '</ul>';
-
-
-
- foreach ($course_list_code as $course) {
-
-
-
-
- }
-
- echo '<br />';
-
-
- echo '</div>';
- }
- echo '</div>';
-
-
-
-
-
- echo '</div>';
- echo '</div>';
- Display :: display_footer();
- ?>
|