123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578 |
- <?php
- /**
- * Simple Machines Forum (SMF)
- *
- * @package SMF
- * @author Simple Machines http://www.simplemachines.org
- * @copyright 2014 Simple Machines and individual contributors
- * @license http://www.simplemachines.org/about/smf/license.php BSD
- *
- * @version 2.1 Alpha 1
- */
- function template_reported_posts()
- {
- global $context, $txt, $scripturl;
- // Let them know the action was a success.
- if (!empty($context['report_post_action']))
- {
- echo '
- <div class="infobox">
- ', $txt['report_action_'. $context['report_post_action']], '
- </div>';
- }
- echo '
- <form id="reported_posts" action="', $scripturl, '?action=moderate;area=reportedposts;sa=show', $context['view_closed'] ? ';closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
- <div class="cat_bar">
- <h3 class="catbg">
- ', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '
- </h3>
- </div>';
- // Make the buttons.
- $close_button = create_button('close.png', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"');
- $details_button = create_button('details.png', 'mc_reportedp_details', 'mc_reportedp_details', 'class="centericon"');
- $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"');
- $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"');
- $ban_button = create_button('close.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"');
- $delete_button = create_button('delete.png', 'mc_reportedp_delete', 'mc_reportedp_delete', 'class="centericon"');
- foreach ($context['reports'] as $report)
- {
- echo '
- <div class="generic_list_wrapper ', $report['alternate'] ? 'windowbg' : 'windowbg2', '">
- <div class="content">
- <h5>
- <strong>', !empty($report['topic']['board_name']) ? '<a href="' . $scripturl . '?board=' . $report['topic']['id_board'] . '.0">' . $report['topic']['board_name'] . '</a>' : '??', ' / <a href="', $report['topic']['href'], '">', $report['subject'], '</a></strong> ', $txt['mc_reportedp_by'], ' <strong>', $report['author']['link'], '</strong>
- </h5>
- <div class="smalltext">
- ', $txt['mc_reportedp_last_reported'], ': ', $report['last_updated'], ' - ';
- // Prepare the comments...
- $comments = array();
- foreach ($report['comments'] as $comment)
- $comments[$comment['member']['id']] = $comment['member']['link'];
- echo '
- ', $txt['mc_reportedp_reported_by'], ': ', implode(', ', $comments), '
- </div>
- <hr>
- ', $report['body'], '
- <br>
- <ul class="quickbuttons">
- <li><a href="', $report['report_href'], '">', $details_button, '</a></li>
- <li><a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="report_ignore" data-ignore="', (int) !$report['ignore'], '">', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li>
- <li><a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;closed=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a></li>';
- // Delete message button.
- if (!$report['closed'] && (is_array($context['report_remove_any_boards']) && in_array($report['topic']['id_board'], $context['report_remove_any_boards'])))
- echo '
- <li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'] ,'.0;msg=', $report['topic']['id_msg'] ,';modcenter;', $context['session_var'], '=', $context['session_id'], '" class="delete_message">', $delete_button, '</a></li>';
- // Ban this user button.
- if (!$report['closed'] && !empty($context['report_manage_bans']))
- echo '
- <li><a href="', $scripturl, '?action=admin;area=ban;sa=add', (!empty($report['author']['id']) ? ';u='. $report['author']['id'] : ';msg='. $report['topic']['id_msg']) ,';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>';
- echo '
- <li>', !$context['view_closed'] ? '<input type="checkbox" name="close[]" value="' . $report['id'] . '" class="input_check">' : '', '</li>
- </ul>
- </div>
- </div>';
- }
- // Were none found?
- if (empty($context['reports']))
- echo '
- <div class="windowbg2">
- <div class="content">
- <p class="centertext">', $txt['mc_reportedp_none_found'], '</p>
- </div>
- </div>';
- echo '
- <div class="pagesection">
- ', !empty($context['total_reports']) && $context['total_reports'] >= $context['reports_how_many'] ? '<div class="pagelinks floatleft">'. $context['page_index']. '</div>' : '' ,'
- <div class="floatright">', !$context['view_closed'] ? '
- <input type="hidden" name="'. $context['mod-report-close-all_token_var'] .'" value="'. $context['mod-report-close-all_token'] .'">
- <input type="submit" name="close_selected" value="' . $txt['mc_reportedp_close_selected'] . '" class="button_submit">' : '', '
- </div>
- </div>
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
- </form>';
- }
- // A block to show the current top reported posts.
- function template_reported_posts_block()
- {
- global $context, $txt, $scripturl;
- echo '
- <div class="cat_bar">
- <h3 class="catbg">
- <span id="reported_posts_toggle" class="', !empty($context['admin_prefs']['mcrp']) ? 'toggle_down' : 'toggle_up', ' floatright" style="display: none;"></span>
- <a href="', $scripturl, '?action=moderate;area=reportedposts" id="reported_posts_link">', $txt['mc_recent_reports'], '</a>
- </h3>
- </div>
- <div class="windowbg" id="reported_posts_panel">
- <div class="content modbox">
- <ul class="reset">';
- foreach ($context['reported_posts'] as $report)
- echo '
- <li class="smalltext">
- <a href="', $report['report_href'], '">', $report['subject'], '</a> ', $txt['mc_reportedp_by'], ' ', $report['author']['link'], '
- </li>';
- // Don't have any watched users right now?
- if (empty($context['reported_posts']))
- echo '
- <li>
- <strong class="smalltext">', $txt['mc_recent_reports_none'], '</strong>
- </li>';
- echo '
- </ul>
- </div>
- </div>
- <script><!-- // --><![CDATA[
- var oReportedPostsPanelToggle = new smc_Toggle({
- bToggleEnabled: true,
- bCurrentlyCollapsed: ', !empty($context['admin_prefs']['mcrp']) ? 'true' : 'false', ',
- aSwappableContainers: [
- \'reported_posts_panel\'
- ],
- aSwapImages: [
- {
- sId: \'reported_posts_toggle\',
- altExpanded: ', JavaScriptEscape($txt['hide']), ',
- altCollapsed: ', JavaScriptEscape($txt['show']), '
- }
- ],
- aSwapLinks: [
- {
- sId: \'reported_posts_link\',
- msgExpanded: ', JavaScriptEscape($txt['mc_recent_reports']), ',
- msgCollapsed: ', JavaScriptEscape($txt['mc_recent_reports']), '
- }
- ],
- oThemeOptions: {
- bUseThemeSettings: true,
- sOptionName: \'admin_preferences\',
- sSessionVar: smf_session_var,
- sSessionId: smf_session_id,
- sThemeId: \'1\',
- sAdditionalVars: \';admin_key=mcrp\'
- }
- });
- // ]]></script>';
- }
- function template_viewmodreport()
- {
- global $context, $scripturl, $txt;
- // Let them know the action was a success.
- if (!empty($context['report_post_action']))
- {
- echo '
- <div class="infobox">
- ', $txt['report_action_'. $context['report_post_action']], '
- </div>';
- }
- echo '
- <div id="modcenter">
- <form action="', $scripturl, '?action=moderate;area=reportedposts;sa=handlecomment;rid=', $context['report']['id'], '" method="post" accept-charset="', $context['character_set'], '">
- <div class="cat_bar">
- <h3 class="catbg">
- ', sprintf($txt['mc_viewmodreport'], $context['report']['message_link'], $context['report']['author']['link']), '
- </h3>
- </div>
- <div class="title_bar">
- <h3 class="titlebg">
- <span class="floatleft">
- ', sprintf($txt['mc_modreport_summary'], $context['report']['num_reports'], $context['report']['last_updated']), '
- </span>
- <span class="floatright">';
- // Make the buttons.
- $close_button = create_button('close.png', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"');
- $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"');
- $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"');
- echo '
- <a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="report_ignore" data-ignore="', !$context['report']['ignore'] ,'">', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a>
- <a href="', $scripturl, '?action=moderate;area=reportedposts;sa=handle;closed=', (int) !$context['report']['closed'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a>
- </span>
- </h3>
- </div>
- <div class="windowbg2">
- <div class="content">
- ', $context['report']['body'], '
- </div>
- </div>
- <br>
- <div class="cat_bar">
- <h3 class="catbg">', $txt['mc_modreport_whoreported_title'], '</h3>
- </div>';
- foreach ($context['report']['comments'] as $comment)
- echo '
- <div class="windowbg">
- <div class="content">
- <p class="smalltext">', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'] . (empty($comment['member']['id']) && !empty($comment['member']['ip']) ? ' (' . $comment['member']['ip'] . ')' : ''), $comment['time']), '</p>
- <p>', $comment['message'], '</p>
- </div>
- </div>';
- echo '
- <br>
- <div class="cat_bar">
- <h3 class="catbg">', $txt['mc_modreport_mod_comments'], '</h3>
- </div>
- <div>';
- if (empty($context['report']['mod_comments']))
- echo '
- <div class="information">
- <p class="centertext">', $txt['mc_modreport_no_mod_comment'], '</p>
- </div>';
- foreach ($context['report']['mod_comments'] as $comment)
- {
- echo
- '<div class="cat_bar">
- <h4 class="catbg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=editcomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';'. $context['session_var'] .'='. $context['session_id'] .'">'. $txt['mc_reportedp_comment_edit'] .'</a> | <a href="' . $scripturl . '?action=moderate;area=reportedposts;sa=handlecomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';delete;'. $context['session_var'] .'='. $context['session_id']. ';'. $context['mod-reportC-delete_token_var'] .'='. $context['mod-reportC-delete_token'] .'" class="deleteModComment">'. $txt['mc_reportedp_comment_delete'] .'</a></span>' : '') ,'
- </div></h4>';
- echo '
- <div class="windowbg">
- <p class="content">', $comment['message'], '</p>
- </div>';
- }
- echo '
- <div class="title_bar">
- <h3 class="titlebg">
- <span class="floatleft">
- ', $txt['mc_reportedp_new_comment'], '
- </span>
- </h3>
- </div>
- <div class="content">
- <textarea rows="2" cols="60" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 60%; min-width: 60%' : 'width: 60%') . ';" name="mod_comment"></textarea>
- <div class="padding">
- <input type="submit" name="add_comment" value="', $txt['mc_modreport_add_mod_comment'], '" class="button_submit">
- <input type="hidden" name="', $context['mod-reportC-add_token_var'], '" value="', $context['mod-reportC-add_token'], '">
- </div>
- </div>
- </div>
- <br>';
- template_show_list('moderation_actions_list');
- echo '
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
- </form>
- </div>';
- }
- function template_edit_comment()
- {
- global $context, $scripturl, $txt;
- echo '
- <div id="modcenter">
- <form action="', $scripturl, '?action=moderate;area=reported', $context['report_type'], ';sa=editcomment;mid=', $context['comment_id'], ';rid=', $context['report_id'] ,';save" method="post" accept-charset="', $context['character_set'], '">';
- echo '
- <br>
- <div class="cat_bar">
- <h3 class="catbg">', $txt['mc_modreport_edit_mod_comment'] ,'</h3>
- </div>
- <div class="windowbg2">
- <div class="content">';
- echo '
- <textarea rows="6" cols="60" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 60%; min-width: 60%' : 'width: 60%') . ';" name="mod_comment">', $context['comment']['body'] ,'</textarea>
- <div>
- <input type="submit" name="edit_comment" value="', $txt['mc_modreport_edit_mod_comment'], '" class="button_submit">
- </div>
- </div>
- </div>
- <br>';
- echo '
- <input type="hidden" name="', $context['mod-reportC-edit_token_var'], '" value="', $context['mod-reportC-edit_token'], '">
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
- </form>
- </div>';
- }
- // A block to show the current top reported member profiles.
- function template_reported_members_block()
- {
- global $context, $txt, $scripturl;
- echo '
- <div class="cat_bar">
- <h3 class="catbg">
- <span id="reported_members_toggle" class="', !empty($context['admin_prefs']['mcru']) ? 'toggle_down' : 'toggle_up', ' floatright" style="display: none;"></span>
- <a href="', $scripturl, '?action=moderate;area=reportedmembers" id="reported_members_link">', $txt['mc_recent_member_reports'], '</a>
- </h3>
- </div>
- <div class="windowbg" id="reported_users_panel">
- <div class="content modbox">
- <ul class="reset">';
- foreach ($context['reported_members'] as $report)
- echo '
- <li class="smalltext">
- <a href="', $report['report_href'], '">', $report['user_name'], '</a>
- </li>';
- // Don't have any reported members right now?
- if (empty($context['reported_members']))
- echo '
- <li>
- <strong class="smalltext">', $txt['mc_recent_reports_none'], '</strong>
- </li>';
- echo '
- </ul>
- </div>
- </div>
-
- <script><!-- // --><![CDATA[
- var oReportedPostsPanelToggle = new smc_Toggle({
- bToggleEnabled: true,
- bCurrentlyCollapsed: ', !empty($context['admin_prefs']['mcrm']) ? 'true' : 'false', ',
- aSwappableContainers: [
- \'reported_members_panel\'
- ],
- aSwapImages: [
- {
- sId: \'reported_members_toggle\',
- altExpanded: ', JavaScriptEscape($txt['hide']), ',
- altCollapsed: ', JavaScriptEscape($txt['show']), '
- }
- ],
- aSwapLinks: [
- {
- sId: \'reported_members_link\',
- msgExpanded: ', JavaScriptEscape($txt['mc_recent_member_reports']), ',
- msgCollapsed: ', JavaScriptEscape($txt['mc_recent_member_reports']), '
- }
- ],
- oThemeOptions: {
- bUseThemeSettings: true,
- sOptionName: \'admin_preferences\',
- sSessionVar: smf_session_var,
- sSessionId: smf_session_id,
- sThemeId: \'1\',
- sAdditionalVars: \';admin_key=mcrm\'
- }
- });
- // ]]></script>';
- }
- function template_reported_members()
- {
- global $context, $txt, $scripturl;
- // Let them know the action was a success.
- if (!empty($context['report_post_action']) && !empty($txt['report_action_'. $context['report_post_action']]))
- {
- echo '
- <div class="infobox">
- ', $txt['report_action_'. $context['report_post_action']], '
- </div>';
- }
- echo '
- <form id="reported_members" action="', $scripturl, '?action=moderate;area=reportedmembers;sa=show', $context['view_closed'] ? ';closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
- <div class="cat_bar">
- <h3 class="catbg">
- ', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '
- </h3>
- </div>
- <div class="pagesection">
- <div class="pagelinks">', $context['page_index'], '</div>
- </div>';
- // Make the buttons.
- $close_button = create_button('close.png', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['view_closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"');
- $details_button = create_button('details.png', 'mc_reportedp_details', 'mc_reportedp_details', 'class="centericon"');
- $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"');
- $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"');
- $ban_button = create_button('close.png', 'mc_reportedp_ban', 'mc_reportedp_ban', 'class="centericon"');
- foreach ($context['reports'] as $report)
- {
- echo '
- <div class="generic_list_wrapper ', $report['alternate'] ? 'windowbg' : 'windowbg2', '">
- <div class="content">
- <h5>
- <strong><a href="', $report['user']['href'], '">', $report['user']['name'], '</a></strong>
- </h5>
- <div class="smalltext">
- ', $txt['mc_reportedp_last_reported'], ': ', $report['last_updated'], ' - ';
- // Prepare the comments...
- $comments = array();
- foreach ($report['comments'] as $comment)
- $comments[$comment['member']['id']] = $comment['member']['link'];
- echo '
- ', $txt['mc_reportedp_reported_by'], ': ', implode(', ', $comments), '
- </div>
- <hr>
- <ul class="quickbuttons">
- <li><a href="', $report['report_href'], '">', $details_button, '</a></li>
- <li><a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$report['ignore'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="report_ignore" data-ignore="', (int) !$report['ignore'], '">', $report['ignore'] ? $unignore_button : $ignore_button, '</a></li>
- <li><a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;closed=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a></li>';
- // Ban this user button.
- if (!$report['closed'] && !empty($context['report_manage_bans']) && !empty($report['user']['id']))
- echo '
- <li><a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $report['user']['id'] ,';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>';
- echo '
- <li>', !$context['view_closed'] ? '<input type="checkbox" name="close[]" value="' . $report['id'] . '" class="input_check">' : '', '</li>
- </ul>
- </div>
- </div>';
- }
- // Were none found?
- if (empty($context['reports']))
- echo '
- <div class="windowbg2">
- <div class="content">
- <p class="centertext">', $txt['mc_reportedp_none_found'], '</p>
- </div>
- </div>';
- echo '
- <div class="pagesection">
- <div class="pagelinks floatleft">', $context['page_index'], '</div>
- <div class="floatright">
- ', !$context['view_closed'] ? '<input type="submit" name="close_selected" value="' . $txt['mc_reportedp_close_selected'] . '" class="button_submit">' : '', '
- </div>
- </div>
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
- </form>';
- }
- function template_viewmemberreport()
- {
- global $context, $scripturl, $txt;
- // Let them know the action was a success.
- if (!empty($context['report_post_action']))
- {
- echo '
- <div class="infobox">
- ', $txt['report_action_'. $context['report_post_action']], '
- </div>';
- }
- echo '
- <div id="modcenter">
- <form action="', $scripturl, '?action=moderate;area=reportedmembers;sa=handlecomment;rid=', $context['report']['id'], '" method="post" accept-charset="', $context['character_set'], '">
- <div class="cat_bar">
- <h3 class="catbg">
- ', sprintf($txt['mc_viewmemberreport'], $context['report']['user']['link']), '
- </h3>
- </div>
- <div class="title_bar">
- <h3 class="titlebg">
- <span class="floatleft">
- ', sprintf($txt['mc_memberreport_summary'], $context['report']['num_reports'], $context['report']['last_updated']), '
- </span>
- <span class="floatright">';
- // Make the buttons.
- $close_button = create_button('close.png', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', 'class="centericon"');
- $ignore_button = create_button('ignore.png', 'mc_reportedp_ignore', 'mc_reportedp_ignore', 'class="centericon"');
- $unignore_button = create_button('ignore.png', 'mc_reportedp_unignore', 'mc_reportedp_unignore', 'class="centericon"');
- echo '
- <a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;ignore=', (int) !$context['report']['ignore'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-ignore_token_var'], '=', $context['mod-report-ignore_token'], '" class="report_ignore" data-ignore="', !$context['report']['ignore'] ,'">', $context['report']['ignore'] ? $unignore_button : $ignore_button, '</a>
- <a href="', $scripturl, '?action=moderate;area=reportedmembers;sa=handle;closed=', (int) !$context['report']['closed'], ';rid=', $context['report']['id'], ';', $context['session_var'], '=', $context['session_id'], ';', $context['mod-report-closed_token_var'], '=', $context['mod-report-closed_token'], '">', $close_button, '</a>
- </span>
- </h3>
- </div>
- <br>
- <div class="cat_bar">
- <h3 class="catbg">', $txt['mc_memberreport_whoreported_title'], '</h3>
- </div>';
- foreach ($context['report']['comments'] as $comment)
- echo '
- <div class="windowbg">
- <div class="content">
- <p class="smalltext">', sprintf($txt['mc_modreport_whoreported_data'], $comment['member']['link'] . (empty($comment['member']['id']) && !empty($comment['member']['ip']) ? ' (' . $comment['member']['ip'] . ')' : ''), $comment['time']), '</p>
- <p>', $comment['message'], '</p>
- </div>
- </div>';
- echo '
- <br>
- <div class="cat_bar">
- <h3 class="catbg">', $txt['mc_modreport_mod_comments'], '</h3>
- </div>
- <div>';
- if (empty($context['report']['mod_comments']))
- echo '
- <div class="information">
- <p class="centertext">', $txt['mc_modreport_no_mod_comment'], '</p>
- </div>';
- foreach ($context['report']['mod_comments'] as $comment)
- {
- echo
- '<div class="cat_bar">
- <h4 class="catbg">', $comment['member']['link'], ': <em class="smalltext">(', $comment['time'], ')</em>', ($comment['can_edit'] ? '<span class="floatright"><a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=editcomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';'. $context['session_var'] .'='. $context['session_id'] .'">'. $txt['mc_reportedp_comment_edit'] .'</a> | <a href="' . $scripturl . '?action=moderate;area=reportedmembers;sa=handlecomment;rid='. $context['report']['id'] .';mid='. $comment['id'] .';delete;'. $context['session_var'] .'='. $context['session_id']. ';'. $context['mod-reportC-delete_token_var'] .'='. $context['mod-reportC-delete_token'] .'" class="deleteModComment">'. $txt['mc_reportedp_comment_delete'] .'</a></span>' : '') ,'
- </div></h4>';
- echo '
- <div class="windowbg">
- <p class="content">', $comment['message'], '</p>
- </div>';
- }
- echo '
- <div class="title_bar">
- <h3 class="titlebg">
- <span class="floatleft">
- ', $txt['mc_reportedp_new_comment'], '
- </span>
- </h3>
- </div>
- <div class="content">
- <textarea rows="2" cols="60" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 60%; min-width: 60%' : 'width: 60%') . ';" name="mod_comment"></textarea>
- <div class="padding">
- <input type="submit" name="add_comment" value="', $txt['mc_modreport_add_mod_comment'], '" class="button_submit">
- <input type="hidden" name="', $context['mod-reportC-add_token_var'], '" value="', $context['mod-reportC-add_token'], '">
- </div>
- </div>
- </div>
- <br>';
- template_show_list('moderation_actions_list');
- echo '
- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
- </form>
- </div>';
- }
- ?>
|