@@ 268-272 (lines=5) @@ | ||
265 | $modify_icons .= "<a href=\"" . api_get_self() . "?" . api_get_cidreq() . "&origin=" . (!empty($_GET['origin']) ? Security::remove_XSS($_GET['origin']) : '') . "&action=showhide&id=" . $announcement_id . "&sec_token=" . $stok . "\">" . |
|
266 | Display::return_icon($image_visibility . '.png', $alt_visibility, '', ICON_SIZE_SMALL) . "</a>"; |
|
267 | ||
268 | if (api_is_allowed_to_edit(false, true)) { |
|
269 | $modify_icons .= "<a href=\"" . api_get_self() . "?" . api_get_cidreq() . "&action=delete&id=" . $announcement_id . "&sec_token=" . $stok . "\" onclick=\"javascript:if(!confirm('" . addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)) . "')) return false;\">" . |
|
270 | Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . |
|
271 | "</a>"; |
|
272 | } |
|
273 | $html .= "<tr><th style='text-align:right'>$modify_icons</th></tr>"; |
|
274 | } |
|
275 | ||
@@ 1699-1703 (lines=5) @@ | ||
1696 | } else { |
|
1697 | $modify_icons .= Display::return_icon('down_na.gif', get_lang('Down')); |
|
1698 | } |
|
1699 | if (api_is_allowed_to_edit(false,true)) { |
|
1700 | $modify_icons .= "<a href=\"".$actionUrl."&action=delete&id=".$myrow['id']."&sec_token=".$stok."\" onclick=\"javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,api_get_system_encoding()))."')) return false;\">". |
|
1701 | Display::return_icon('delete.png', get_lang('Delete'),'',ICON_SIZE_SMALL). |
|
1702 | "</a>"; |
|
1703 | } |
|
1704 | $iterator ++; |
|
1705 | } else { |
|
1706 | $modify_icons = Display::url( |
@@ 4346-4351 (lines=6) @@ | ||
4343 | $return .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/reporting.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'. |
|
4344 | Display::return_icon('stats.png', get_lang('Reporting'),'',ICON_SIZE_SMALL).'</a>'; |
|
4345 | ||
4346 | if (api_is_allowed_to_edit() || |
|
4347 | api_is_element_in_the_session(TOOL_SURVEY, $survey_id) |
|
4348 | ) { |
|
4349 | $return .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/survey_list.php?'.api_get_cidreq().'&action=delete&survey_id='.$survey_id.'" onclick="javascript: if(!confirm(\''.addslashes(api_htmlentities(get_lang("DeleteSurvey").'?', ENT_QUOTES)).'\')) return false;">'. |
|
4350 | Display::return_icon('delete.png', get_lang('Delete'),'',ICON_SIZE_SMALL).'</a> '; |
|
4351 | } |
|
4352 | ||
4353 | return $return; |
|
4354 | } |