Пример #1
0
        }
        if (!empty($_GET['user'])) {
            SessionManager::unsubscribe_user_from_session($sessionId, $_GET['user']);
        }
        break;
}
$sessionHeader = Display::page_header(Display::return_icon('session.png', get_lang('Session')) . ' ' . $sessionInfo['name'], null, 'h3');
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "session_edit.php?page=resume_session.php&id={$sessionId}");
$sessionTitle = Display::page_subheader(get_lang('GeneralProperties') . $url);
$generalCoach = api_get_user_info($sessionInfo['id_coach']);
$sessionField = new ExtraField('session');
$extraFieldData = $sessionField->getDataAndFormattedValues($sessionId);
$multiple_url_is_on = api_get_multiple_access_url();
$urlList = [];
if ($multiple_url_is_on) {
    $urlList = UrlManager::get_access_url_from_session($sessionId);
}
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "add_courses_to_session.php?page=resume_session.php&id_session={$sessionId}");
$courseListToShow = Display::page_subheader(get_lang('CourseList') . $url);
$courseListToShow .= '<table id="session-list-course" class="data_table">
<tr>
  <th width="35%">' . get_lang('CourseTitle') . '</th>
  <th width="30%">' . get_lang('CourseCoach') . '</th>
  <th width="10%">' . get_lang('UsersNumber') . '</th>
  <th width="25%">' . get_lang('Actions') . '</th>
</tr>';
if ($sessionInfo['nbr_courses'] == 0) {
    $courseListToShow .= '<tr>
			<td colspan="4">' . get_lang('NoCoursesForThisSession') . '</td>
		</tr>';
} else {
Пример #2
0
 } elseif ($session['visibility'] == 2) {
     echo get_lang('Visible');
 } elseif ($session['visibility'] == 3) {
     echo api_ucfirst(get_lang('Invisible'));
 }
 ?>
 	</td>
 </tr>
 <?php 
 $multiple_url_is_on = api_get_multiple_access_url();
 if ($multiple_url_is_on) {
     echo '<tr><td>';
     echo 'URL';
     echo '</td>';
     echo '<td>';
     $url_list = UrlManager::get_access_url_from_session($id_session);
     foreach ($url_list as $url_data) {
         echo $url_data['url'] . '<br />';
     }
     echo '</td></tr>';
 }
 ?>
 </table>
 <br />
 <?php 
 echo Display::page_subheader(get_lang('CourseList') . $url);
 ?>
 <!--List of courses -->
 <table class="data_table">
 <tr>
   <th width="35%"><?php