aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/page_header.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-03-04 04:17:02 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-03-04 04:17:02 +0000
commit476718aa43c3139f19a31f89356a21ff8e83fc74 (patch)
tree16f0d8c65fe17f5a329002d8900baf94a4164ea6 /phpBB/page_header.php
parent9411996f4568b026d009ecd6426d2d7dec7bef1a (diff)
downloadforums-476718aa43c3139f19a31f89356a21ff8e83fc74.tar
forums-476718aa43c3139f19a31f89356a21ff8e83fc74.tar.gz
forums-476718aa43c3139f19a31f89356a21ff8e83fc74.tar.bz2
forums-476718aa43c3139f19a31f89356a21ff8e83fc74.tar.xz
forums-476718aa43c3139f19a31f89356a21ff8e83fc74.zip
Viewtopic mostly done. Need private forum stuff, pagination, and some SQL tweaks
git-svn-id: file:///svn/phpbb/trunk@81 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/page_header.php')
-rw-r--r--phpBB/page_header.php82
1 files changed, 50 insertions, 32 deletions
diff --git a/phpBB/page_header.php b/phpBB/page_header.php
index cc5a577bf5..e05aeca7d1 100644
--- a/phpBB/page_header.php
+++ b/phpBB/page_header.php
@@ -72,38 +72,56 @@ $template->pparse("output", "overall_header");
// Do a switch on page type, this way we only load the templates that we need at the time
switch($pagetype)
{
- case 'index':
- $template->set_file(array("header" => "index_header.tpl",
- "body" => "index_body.tpl",
- "footer" => "index_footer.tpl"));
-
- $template->set_var(array("TOTAL_POSTS" => $total_posts,
- "TOTAL_USERS" => $total_users,
- "NEWEST_USER" => $newest_user,
- "NEWEST_UID" => $newest_uid,
- "USERS_BROWSING" => $users_browsing));
-
- $template->pparse("output", "header");
- break;
-
- case 'viewforum':
- $template->set_file(array("header" => "viewforum_header.tpl",
- "body" => "viewforum_body.tpl",
- "jumpbox" => "jumpbox.tpl",
- "footer" => "viewforum_footer.tpl"));
-
- $jumpbox = make_jumpbox($db);
- $template->set_var(array("JUMPBOX_LIST" => $jumpbox,
- "JUMPBOX_ACTION" => "viewforum.".$phpEx,
- "SELECT_NAME" => "forum_id"));
- $template->parse("JUMPBOX","jumpbox");
-
- $template->set_var(array("FORUM_ID" => $forum_id,
- "FORUM_NAME" => $forum_name,
- "MODERATORS" => $forum_moderators));
-
- $template->pparse("output", "header");
- break;
+ case 'index':
+ $template->set_file(array("header" => "index_header.tpl",
+ "body" => "index_body.tpl",
+ "footer" => "index_footer.tpl"));
+
+ $template->set_var(array("TOTAL_POSTS" => $total_posts,
+ "TOTAL_USERS" => $total_users,
+ "NEWEST_USER" => $newest_user,
+ "NEWEST_UID" => $newest_uid,
+ "USERS_BROWSING" => $users_browsing));
+
+ $template->pparse("output", "header");
+ break;
+
+ case 'viewforum':
+ $template->set_file(array("header" => "viewforum_header.tpl",
+ "body" => "viewforum_body.tpl",
+ "jumpbox" => "jumpbox.tpl",
+ "footer" => "viewforum_footer.tpl"));
+
+ $jumpbox = make_jumpbox($db);
+ $template->set_var(array("JUMPBOX_LIST" => $jumpbox,
+ "JUMPBOX_ACTION" => "viewforum.".$phpEx,
+ "SELECT_NAME" => "forum_id"));
+ $template->parse("JUMPBOX","jumpbox");
+
+ $template->set_var(array("FORUM_ID" => $forum_id,
+ "FORUM_NAME" => $forum_name,
+ "MODERATORS" => $forum_moderators));
+
+ $template->pparse("output", "header");
+ break;
+ case 'viewtopic':
+ $template->set_file(array("header" => "viewtopic_header.tpl",
+ "body" => "viewtopic_body.tpl",
+ "jumpbox" => "jumpbox.tpl",
+ "footer" => "viewtopic_footer.tpl"));
+ $jumpbox = make_jumpbox($db);
+ $template->set_var(array("JUMPBOX_LIST" => $jumpbox,
+ "JUMPBOX_ACTION" => "viewforum.".$phpEx,
+ "SELECT_NAME" => "forum_id"));
+ $template->parse("JUMPBOX","jumpbox");
+
+ $template->set_var(array("FORUM_ID" => $forum_id,
+ "FORUM_NAME" => $forum_name,
+ "TOPIC_ID" => $topic_id,
+ "TOPIC_TITLE" => $topic_title));
+ $template->pparse("output", "header");
+ break;
+
}
?>