parent
							
								
									497a825d15
								
							
						
					
					
						commit
						61feb92221
					
				@ -0,0 +1,41 @@ | 
				
			||||
<?php | 
				
			||||
/** | 
				
			||||
 * This script initiates a video conference session, calling the BigBlueButton API | 
				
			||||
 * @package chamilo.plugin.bigbluebutton | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
$course_plugin = 'bbb'; //needed in order to load the plugin lang variables | 
				
			||||
$cidReset = true; | 
				
			||||
 | 
				
			||||
require_once __DIR__ . '/../../main/inc/global.inc.php'; | 
				
			||||
 | 
				
			||||
api_protect_admin_script(); | 
				
			||||
 | 
				
			||||
$plugin = BBBPlugin::create(); | 
				
			||||
$tool_name = $plugin->get_lang('Videoconference'); | 
				
			||||
$tpl = new Template($tool_name); | 
				
			||||
 | 
				
			||||
$isGlobal = isset($_GET['global']) ? true : false; | 
				
			||||
 | 
				
			||||
$bbb = new bbb('', '', $isGlobal); | 
				
			||||
$action = isset($_GET['action']) ? $_GET['action'] : null; | 
				
			||||
 | 
				
			||||
$meetings = $bbb->getMeetings(); | 
				
			||||
 | 
				
			||||
if (!empty($meetings)) { | 
				
			||||
    $meetings = array_reverse($meetings); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (!$bbb->isServerRunning()) { | 
				
			||||
    Display::addFlash( | 
				
			||||
        Display::return_message(get_lang('ServerIsNotRunning'), 'error') | 
				
			||||
    ); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
$tpl->assign('meetings', $meetings); | 
				
			||||
 | 
				
			||||
$content = $tpl->fetch('bbb/admin.tpl'); | 
				
			||||
 | 
				
			||||
$tpl->assign('header', get_lang('RecordList')); | 
				
			||||
$tpl->assign('content', $content); | 
				
			||||
$tpl->display_one_col_template(); | 
				
			||||
@ -0,0 +1,45 @@ | 
				
			||||
<table class="table table-hover table-striped"> | 
				
			||||
    <thead> | 
				
			||||
        <tr> | 
				
			||||
            <th>{{ 'CreatedAt'|get_lang }}</th> | 
				
			||||
            <th>{{ 'Status'|get_lang }}</th> | 
				
			||||
            <th>{{ 'Records'|get_lang }}</th> | 
				
			||||
            <th>{{ 'Course'|get_lang }}</th> | 
				
			||||
            <th>{{ 'Session'|get_lang }}</th> | 
				
			||||
            <th>{{ 'Actions'|get_lang }}</th> | 
				
			||||
        </tr> | 
				
			||||
    </thead> | 
				
			||||
        <tbody> | 
				
			||||
        {% for meeting in meetings %} | 
				
			||||
            <tr id="meeting-{{ meeting.id }}"> | 
				
			||||
                {% if meeting.visibility == 0 %} | 
				
			||||
                    <td class="muted">{{ meeting.created_at }}</td> | 
				
			||||
                {% else %} | 
				
			||||
                    <td>{{ meeting.created_at }}</td> | 
				
			||||
                {% endif %} | 
				
			||||
                <td> | 
				
			||||
                    {% if meeting.status == 1 %} | 
				
			||||
                        <span class="label label-success">{{ 'MeetingOpened'|get_lang }}</span> | 
				
			||||
                    {% else %} | 
				
			||||
                        <span class="label label-info">{{ 'MeetingClosed'|get_lang }}</span> | 
				
			||||
                    {% endif %} | 
				
			||||
                </td> | 
				
			||||
                <td> | 
				
			||||
                    {% if meeting.record == 1 %} | 
				
			||||
                        {# Record list #} | 
				
			||||
                        {{ meeting.show_links }} | 
				
			||||
                    {% endif %} | 
				
			||||
                </td> | 
				
			||||
                <td>{{ meeting.course ? meeting.course.title : '-' }}</td> | 
				
			||||
                <td>{{ meeting.session ? meeting.session.name : '-' }}</td> | 
				
			||||
                <td> | 
				
			||||
                    {% if meeting.status == 1 %} | 
				
			||||
                        <a class="btn btn-default" href="{{ meeting.end_url }} "> {{ 'CloseMeeting'|get_lang }}</a> | 
				
			||||
                    {% else %} | 
				
			||||
                        {{ meeting.action_links }} | 
				
			||||
                    {% endif %} | 
				
			||||
                </td> | 
				
			||||
            </tr> | 
				
			||||
        {% endfor %} | 
				
			||||
    </tbody> | 
				
			||||
</table> | 
				
			||||
					Loading…
					
					
				
		Reference in new issue