|
|
|
@ -132,8 +132,14 @@ if ($action == 'thematic_list') { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (api_get_session_id() == $thematic['session_id']) { |
|
|
|
|
$actions_first_col .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id='.$my_thematic_id.$params.$url_token.'">'.Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
$actions_first_col .= '<a onclick="javascript:if(!confirm(\''.get_lang('AreYouSureToDelete').'\')) return false;" href="index.php?'.api_get_cidreq().'&action=thematic_delete&thematic_id='.$my_thematic_id.$params.$url_token.'">'.Display::return_icon('delete.png',get_lang('Delete'),'',ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
$actions_first_col .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id=' |
|
|
|
|
.$my_thematic_id.$params.$url_token.'">' |
|
|
|
|
.Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
$actions_first_col .= '<a onclick="javascript:if(!confirm(\'' |
|
|
|
|
.get_lang('AreYouSureToDelete') |
|
|
|
|
.'\')) return false;" href="index.php?'.api_get_cidreq().'&action=thematic_delete&thematic_id=' |
|
|
|
|
.$my_thematic_id.$params.$url_token.'">' |
|
|
|
|
.Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$actions_first_col = Display::div($actions_first_col, array('id' => 'thematic_id_content_'.$thematic['id'], 'class' => 'thematic_tools')); |
|
|
|
|