| @@ 2307-2310 (lines=4) @@ | ||
| 2304 | Display::return_icon('default.png', get_lang('View'), array(), ICON_SIZE_SMALL).'</a>'; |
|
| 2305 | ||
| 2306 | if (api_get_course_setting('student_delete_own_publication') == 1) { |
|
| 2307 | if (api_is_allowed_to_session_edit(false, true)) { |
|
| 2308 | $action .= '<a href="'.$url.'edit.php?'.api_get_cidreq().'&item_id='.$item_id.'&id='.$work['parent_id'].'" title="'.get_lang('Modify').'">'. |
|
| 2309 | Display::return_icon('edit.png', get_lang('Comment'), array(), ICON_SIZE_SMALL).'</a>'; |
|
| 2310 | } |
|
| 2311 | $action .= ' <a href="'.$url.'work_list.php?'.api_get_cidreq().'&action=delete&item_id='.$item_id.'&id='.$work['parent_id'].'" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."'".')) return false;" title="'.get_lang('Delete').'" >'. |
|
| 2312 | Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'; |
|
| 2313 | } |
|
| @@ 578-585 (lines=8) @@ | ||
| 575 | array(), |
|
| 576 | ICON_SIZE_SMALL |
|
| 577 | ); |
|
| 578 | } else { |
|
| 579 | $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum=' |
|
| 580 | . $my_forum.'&action=delete&content=thread&id=' |
|
| 581 | . $row['thread_id']."\" onclick=\"javascript:if(!confirm('" |
|
| 582 | . addslashes(api_htmlentities(get_lang('DeleteCompleteThread'), ENT_QUOTES)) |
|
| 583 | . "')) return false;\">" |
|
| 584 | . Display::return_icon('delete.png', get_lang('Delete'), array(), ICON_SIZE_SMALL).'</a>'; |
|
| 585 | } |
|
| 586 | ||
| 587 | $iconsEdit .= return_visible_invisible_icon( |
|
| 588 | 'thread', |
|
| @@ 2297-2300 (lines=4) @@ | ||
| 2294 | if ($this_group['status'] == 1) { |
|
| 2295 | $edit_actions .= '<a href="'.api_get_self().'?'.api_get_cidreq(true, false).'&category='.$category_id.'&action=set_invisible&id='.$this_group['id'].'" title="'.get_lang('Hide').'">'. |
|
| 2296 | Display::return_icon('visible.png', get_lang('Hide'), '', ICON_SIZE_SMALL).'</a> '; |
|
| 2297 | } else { |
|
| 2298 | $edit_actions .= '<a href="'.api_get_self().'?'.api_get_cidreq(true, false).'&category='.$category_id.'&action=set_visible&id='.$this_group['id'].'" title="'.get_lang('Show').'">'. |
|
| 2299 | Display::return_icon('invisible.png', get_lang('Show'), '', ICON_SIZE_SMALL).'</a> '; |
|
| 2300 | } |
|
| 2301 | ||
| 2302 | $edit_actions .= '<a href="'.$url.'member_settings.php?'.api_get_cidreq(true, false).'&gidReq='.$this_group['id'].'" title="'.get_lang('GroupMembers').'">'. |
|
| 2303 | Display::return_icon('user.png', get_lang('GroupMembers'), '', ICON_SIZE_SMALL).'</a> '; |
|