require_once '../../include/baseTheme.php';
require_once 'include/lib/multimediahelper.class.php';
require_once 'main/perso.php';

$pageName = $langMyPersoAnnouncements;

if (!getUserAnnouncements($lesson_ids)) {
    $tool_content .= action_bar(array(
                                array('title' => $langBack,
                                      'url' => $urlAppend,
                                      'icon' => 'fa-reply',
                                      'level' => 'primary-label',
                                      'button-class' => 'btn-default')
                            ),false);
    $tool_content .= "<div class='alert alert-warning'>$langNoAnnounce</div>";
} else {
    $tool_content .= action_bar(array(
                                array('title' => $langBack,
                                      'url' => $urlAppend,
                                      'icon' => 'fa-reply',
                                      'level' => 'primary-label',
                                      'button-class' => 'btn-default')
                            ),false);
    $tool_content .= "<div class='row'><div class='col-xs-12'><div class='panel panel-default'><div class='panel-body'>
                    <ul class='tablelist'>"
                .getUserAnnouncements($lesson_ids, 'more').
                "</ul></div></div></div></div>";
}

draw($tool_content, 1, null, $head_content, null, null, $perso_tool_content);
Exemple #2
0
        $courses[$mycours->code] = $mycours->status;
    }
}
$_SESSION['courses'] = $courses;

$_user['persoLastLogin'] = last_login($uid);
$_user['lastLogin'] = str_replace('-', ' ', $_user['persoLastLogin']);

$user_announcements = '';

//  Get user's course info
$user_lesson_info = getUserLessonInfo($uid);
//if user is registered to at least one lesson
if (count($lesson_ids) > 0) {    
    // get user announcements    
    $user_announcements = getUserAnnouncements($lesson_ids);        
}

// get user latest personal messages
$user_messages = getUserMessages();

// create array with content
$today = getdate();
$day = $today['mday'];
$month = $today['mon'];
$year = $today['year'];
Calendar_Events::get_calendar_settings();
$user_personal_calendar = Calendar_Events::small_month_calendar($day, $month, $year);

// create array with personalised content
$perso_tool_content = array(
<?php

/* ========================================================================
 * Open eClass 3.0
 * E-learning and Course Management System
 * ========================================================================
 * Copyright 2003-2012  Greek Universities Network - GUnet
 * A full copyright notice can be read in "/info/copyright.txt".
 * For a full list of contributors, see "credits.txt".
 *
 * Open eClass is an open platform distributed in the hope that it will
 * be useful (without any warranty), under the terms of the GNU (General
 * Public License) as published by the Free Software Foundation.
 * The full license can be read in "/info/license/license_gpl.txt".
 *
 * Contact address: GUnet Asynchronous eLearning Group,
 *                  Network Operations Center, University of Athens,
 *                  Panepistimiopolis Ilissia, 15784, Athens, Greece
 *                  e-mail: info@openeclass.org
 * ======================================================================== */
define('INDEX_START', 1);
require_once '../../include/baseTheme.php';
require_once 'include/lib/multimediahelper.class.php';
require_once 'main/perso.php';
$pageName = $langMyPersoAnnouncements;
$tool_content = "<div class='panel_content'>\n                    <ul class='tablelist'>" . getUserAnnouncements($lesson_ids, 'more') . "</ul></div>";
draw($tool_content, 1, null, $head_content, null, null, $perso_tool_content);