| @@ 1639-1644 (lines=6) @@ | ||
| 1636 | Display::return_icon($image_visibility.'.png', $alt_visibility, '', ICON_SIZE_SMALL)."</a>"; |
|
| 1637 | ||
| 1638 | // DISPLAY MOVE UP COMMAND only if it is not the top announcement |
|
| 1639 | if ($iterator != 1) { |
|
| 1640 | $modify_icons .= "<a href=\"".$actionUrl."&action=move&up=".$myrow["id"]."&sec_token=".$stok."\">". |
|
| 1641 | Display::return_icon('up.gif', get_lang('Up'))."</a>"; |
|
| 1642 | } else { |
|
| 1643 | $modify_icons .= Display::return_icon('up_na.gif', get_lang('Up')); |
|
| 1644 | } |
|
| 1645 | if ($iterator < $bottomAnnouncement) { |
|
| 1646 | $modify_icons .= "<a href=\"".$actionUrl."&action=move&down=".$myrow["id"]."&sec_token=".$stok."\">". |
|
| 1647 | Display::return_icon('down.gif', get_lang('Down'))."</a>"; |
|
| @@ 255-258 (lines=4) @@ | ||
| 252 | ) |
|
| 253 | ); |
|
| 254 | // Move |
|
| 255 | if ($index != 0) { |
|
| 256 | $actions .= ' <a href="group.php?'.api_get_cidreq().'&action=swap_cat_order&id1='.$categoryId.'&id2='.$group_cats[$index - 1]['id'].'">'. |
|
| 257 | Display::return_icon('up.png', ' ', '', ICON_SIZE_SMALL).'</a>'; |
|
| 258 | } |
|
| 259 | if ($index != count($group_cats) - 1) { |
|
| 260 | $actions .= ' <a href="group.php?'.api_get_cidreq().'&action=swap_cat_order&id1='.$categoryId.'&id2='.$group_cats[$index + 1]['id'].'">'. |
|
| 261 | Display::return_icon('down.png', ' ', '', ICON_SIZE_SMALL).'</a>'; |
|
| @@ 259-262 (lines=4) @@ | ||
| 256 | $actions .= ' <a href="group.php?'.api_get_cidreq().'&action=swap_cat_order&id1='.$categoryId.'&id2='.$group_cats[$index - 1]['id'].'">'. |
|
| 257 | Display::return_icon('up.png', ' ', '', ICON_SIZE_SMALL).'</a>'; |
|
| 258 | } |
|
| 259 | if ($index != count($group_cats) - 1) { |
|
| 260 | $actions .= ' <a href="group.php?'.api_get_cidreq().'&action=swap_cat_order&id1='.$categoryId.'&id2='.$group_cats[$index + 1]['id'].'">'. |
|
| 261 | Display::return_icon('down.png', ' ', '', ICON_SIZE_SMALL).'</a>'; |
|
| 262 | } |
|
| 263 | } |
|
| 264 | ||
| 265 | echo Display::page_header( |
|
| @@ 599-603 (lines=5) @@ | ||
| 596 | //only allow platform admins to login_as, or session admins only for students (not teachers nor other admins) |
|
| 597 | if (api_is_platform_admin() || (api_is_session_admin() && $current_user_status_label == $statusname[STUDENT])) { |
|
| 598 | if (!$user_is_anonymous) { |
|
| 599 | if (api_global_admin_can_edit_admin($user_id)) { |
|
| 600 | $result .= '<a href="user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon('login_as.png', get_lang('LoginAs')).'</a> '; |
|
| 601 | } else { |
|
| 602 | $result .= Display::return_icon('login_as_na.png', get_lang('LoginAs')).' '; |
|
| 603 | } |
|
| 604 | } else { |
|
| 605 | $result .= Display::return_icon('login_as_na.png', get_lang('LoginAs')).' '; |
|
| 606 | } |
|