1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-04 11:41:38 +02:00

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
This commit is contained in:
James Atkinson
2001-07-06 22:36:29 +00:00
parent fd2ec7fad5
commit be2cfee4a0
3 changed files with 34 additions and 7 deletions

View File

@@ -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 = "<img src=\"" . $images['locked_folder'] . "\" alt=\"Topic Locked\">";
}
else
{
$folder_image = "<img src=\"" . $images['folder'] . "\">";
}
$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);
?>
?>