@@ 123-127 (lines=5) @@ | ||
120 | $html .= '<div class="actions">'; |
|
121 | $html .= '<a href="index.php?gradebook='.$gradebook.'&'.api_get_cidreq().'">'. |
|
122 | Display::return_icon('back.png', get_lang('BackToForumOverview'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
123 | if (api_is_allowed_to_edit(false,true)) { |
|
124 | $html .= '<a href="' . api_get_self() . '?' . api_get_cidreq() . '&forumcategory=' |
|
125 | . $current_forum_category['cat_id'] . '&action=add&content=forum"> ' |
|
126 | . Display::return_icon('new_forum.png', get_lang('AddForum'), '', ICON_SIZE_MEDIUM) . '</a>'; |
|
127 | } |
|
128 | $html .= search_link(); |
|
129 | $html .= '</div>'; |
|
130 |
@@ 2014-2018 (lines=5) @@ | ||
2011 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'survey/reporting.php?survey_id='.$surveyId.'&'.api_get_cidreq().'">'. |
|
2012 | Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('ReportingOverview'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
2013 | if (isset($_GET['user'])) { |
|
2014 | if (api_is_allowed_to_edit()) { |
|
2015 | // The delete link |
|
2016 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'survey/reporting.php?action=deleteuserreport&survey_id='.$surveyId.'&'.api_get_cidreq().'&user='.Security::remove_XSS($_GET['user']).'" >'. |
|
2017 | Display::return_icon('delete.png', get_lang('Delete'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
2018 | } |
|
2019 | ||
2020 | // Export the user report |
|
2021 | echo '<a href="javascript: void(0);" onclick="document.form1a.submit();">'. |