Minor - format code.

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 4721e47adf
commit 4164d76c1e
  1. 39
      main/admin/system_announcements.php
  2. 5
      main/auth/my_progress.php
  3. 2
      main/inc/lib/sessionmanager.lib.php

@ -171,29 +171,26 @@ if ($action_todo) {
array('id' => 'range')
);
$group = array();
$group[] = $form->createElement(
'checkbox',
'visible_teacher',
null,
get_lang('Teacher')
);
$group[] = $form->createElement(
'checkbox',
'visible_student',
null,
get_lang('Student')
);
$group[] = $form->createElement(
'checkbox',
'visible_guest',
null,
get_lang('Guest')
);
$visibleToUsers = [
'visible_teacher' => get_lang('Teacher'),
'visible_student' => get_lang('Student'),
'visible_drh' => get_lang('DRH'),
'visible_session_admin' => get_lang('SessionAdministrator'),
'visible_boss' => get_lang('StudentBoss'),
'visible_guest' => get_lang('Guest')
];
$group = [];
foreach ($visibleToUsers as $key => $name) {
$group[] = $form->createElement(
'checkbox',
$key,
null,
$name
);
}
$form->addGroup($group, null, get_lang('Visible'));
$form->addElement('hidden', 'id');
$userGroup = new UserGroup();
$group_list = $userGroup->get_all();

@ -16,8 +16,7 @@ $nameTools = get_lang('MyProgress');
api_block_anonymous_users();
$htmlHeadXtra[] = api_get_js('jquery.timelinr-0.9.54.js');
$htmlHeadXtra[] = "
<script language='javascript'>
$htmlHeadXtra[] = "<script>
$(function() {
$().timelinr({
containerDiv: '#my_timeline',
@ -77,7 +76,6 @@ if (!empty($dates)) {
if (!empty($content)) {
$content .= '';
}
$content .= Display::page_subheader(get_lang('Timeline'));
$content .= '<div class="row">';
$content .= '<div class="col-md-12">';
@ -89,7 +87,6 @@ if (!empty($dates)) {
$content .= '<a href="#" id="prev"></a>';
$content .= '<a href="#" id="next"></a>';
$content .= '</div></div>';
}
$message = null;

@ -5378,7 +5378,7 @@ class SessionManager
$studentIdList = array_keys($studentListSql);
$studentListSql = "'".implode("','", $studentIdList)."'";
}
} else {
$studentIdList = array_map('intval', $studentIdList);
$studentListSql = "'".implode("','", $studentIdList)."'";

Loading…
Cancel
Save