From be2cfee4a0d669d9dd16eddcf2cab8d3edb7b14c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Fri, 6 Jul 2001 22:36:29 +0000 Subject: moderator cp shows folders now so you can see whats locked/unlocked/. Also shows stick/announce status. git-svn-id: file:///svn/phpbb/trunk@590 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'phpBB/modcp.php') diff --git a/phpBB/modcp.php b/phpBB/modcp.php index de56cfb5d4..9e95544e7b 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -275,6 +275,7 @@ switch($mode) } break; + default: $template->set_filenames(array("body" => "modcp_body.tpl")); @@ -308,8 +309,29 @@ switch($mode) for($x = 0; $x < $total_topics; $x++) { + if($topics[$x]['topic_status'] == TOPIC_LOCKED) + { + $folder_image = "\"Topic"; + } + else + { + $folder_image = ""; + } + $topic_id = $topics[$x]['topic_id']; - $topic_title = stripslashes($topics[$x]['topic_title']); + + $topic_title = ""; + + if($topics[$x]['topic_type'] == POST_STICKY) + { + $topic_title = $lang['Sticky'] . " "; + } + else if($topics[$x]['topic_type'] == POST_ANNOUNCE) + { + $topic_title = $lang['Annoucement'] . " "; + } + + $topic_title .= stripslashes($topics[$x]['topic_title']); $u_view_topic = append_sid("viewtopic.$phpEx?".POST_TOPIC_URL."=$topic_id"); $topic_replies = $topics[$x]['topic_replies']; $last_post_time = create_date($board_config['default_dateformat'], $topics[$x]['post_time'], $board_config['default_timezone']); @@ -317,6 +339,7 @@ switch($mode) $template->assign_block_vars("topicrow", array( "U_VIEW_TOPIC" => $u_view_topic, + "FOLDER_IMG" => $folder_image, "TOPIC_TITLE" => $topic_title, "REPLIES" => $topic_replies, "LAST_POST" => $last_post_time, @@ -338,4 +361,4 @@ switch($mode) include('includes/page_tail.'.$phpEx); -?> +?> \ No newline at end of file -- cgit v1.2.1