| @@ 234-241 (lines=8) @@ | ||
| 231 | } |
|
| 232 | $actions .= ' <a onclick="javascript:if(!confirm(\''.$message_alert.'\')) return false;" href="index.php?'.api_get_cidreq().'&action=lock_attendance&attendance_id='.$attendance[0].'">'. |
|
| 233 | Display::return_icon('unlock.png', get_lang('LockAttendance')).'</a>'; |
|
| 234 | } else { |
|
| 235 | if (api_is_platform_admin()) { |
|
| 236 | $actions .= ' <a onclick="javascript:if(!confirm(\''.get_lang('AreYouSureToUnlockTheAttendance').'\')) return false;" href="index.php?'.api_get_cidreq().'&action=unlock_attendance&attendance_id='.$attendance[0].'">'. |
|
| 237 | Display::return_icon('locked.png', get_lang('UnlockAttendance')).'</a>'; |
|
| 238 | } else { |
|
| 239 | $actions .= ' '.Display::return_icon('locked_na.png', get_lang('LockedAttendance')); |
|
| 240 | } |
|
| 241 | } |
|
| 242 | } |
|
| 243 | $actions .= '</center>'; |
|
| 244 | ||
| @@ 597-601 (lines=5) @@ | ||
| 594 | $glossary_data = self::get_glossary_information($glossary_id); |
|
| 595 | $glossary_term = $glossary_data['name']; |
|
| 596 | if (api_is_allowed_to_edit(null, true)) { |
|
| 597 | if ($glossary_data['session_id'] == api_get_session_id()) { |
|
| 598 | $return .= '<a href="'.api_get_self().'?action=delete_glossary&glossary_id='.$glossary_id.'&'.api_get_cidreq().'" onclick="return confirmation(\''.$glossary_term.'\');">'. |
|
| 599 | Display::return_icon('delete.png', get_lang('Delete'), '', 22).'</a>'; |
|
| 600 | } else { |
|
| 601 | $return = get_lang('EditionNotAvailableFromSession'); |
|
| 602 | } |
|
| 603 | } |
|
| 604 | ||