@@ 4292-4297 (lines=6) @@ | ||
4289 | $return .= '<a href="'.api_get_path(WEB_CODE_PATH).'survey/reporting.php?'.api_get_cidreq().'&survey_id='.$survey_id.'">'. |
|
4290 | Display::return_icon('stats.png', get_lang('Reporting'),'',ICON_SIZE_SMALL).'</a>'; |
|
4291 | ||
4292 | if (api_is_allowed_to_edit() || |
|
4293 | api_is_element_in_the_session(TOOL_SURVEY, $survey_id) |
|
4294 | ) { |
|
4295 | $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;">'. |
|
4296 | Display::return_icon('delete.png', get_lang('Delete'),'',ICON_SIZE_SMALL).'</a> '; |
|
4297 | } |
|
4298 | ||
4299 | return $return; |
|
4300 | } |
@@ 310-314 (lines=5) @@ | ||
307 | $modify_icons .= "<a href=\"" . api_get_self() . "?" . api_get_cidreq() . "&action=showhide&id=" . $announcement_id . "&sec_token=" . $stok . "\">" . |
|
308 | Display::return_icon($image_visibility . '.png', $alt_visibility, '', ICON_SIZE_SMALL) . "</a>"; |
|
309 | ||
310 | if (api_is_allowed_to_edit(false, true)) { |
|
311 | $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;\">" . |
|
312 | Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . |
|
313 | "</a>"; |
|
314 | } |
|
315 | $html .= "<tr><th style='text-align:right'>$modify_icons</th></tr>"; |
|
316 | } |
|
317 | ||
@@ 1556-1560 (lines=5) @@ | ||
1553 | } else { |
|
1554 | $modify_icons .= Display::return_icon('down_na.gif', get_lang('Down')); |
|
1555 | } |
|
1556 | if (api_is_allowed_to_edit(false,true)) { |
|
1557 | $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;\">". |
|
1558 | Display::return_icon('delete.png', get_lang('Delete'),'',ICON_SIZE_SMALL). |
|
1559 | "</a>"; |
|
1560 | } |
|
1561 | $iterator ++; |
|
1562 | } else { |
|
1563 | $modify_icons = Display::url( |