Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

menubox.forum.php
Go to the documentation of this file.
1 <?php
3 //
4 // $Id: menubox.php 6363 2001-08-02 13:09:42Z jhe $
5 //
6 // Created on: <18-April-2001 13:00:00 th>
7 //
8 // This source file is part of Exponential Basic, publishing software.
9 //
10 // Copyright (C) 1999-2001 eZ Systems. All rights reserved.
11 //
12 // This program is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
25 //
26
27 // include_once( "classes/INIFile.php" );
28
29 $ini =& eZINI::instance( 'site.ini' );
30 $Language = $ini->variable( "eZTradeMain", "Language" );
31
32 // include_once( "classes/eztemplate.php" );
33 // include_once( "classes/ezdb.php" );
34 // include_once( "ezuser/classes/ezobjectpermission.php" );
35
36 $t = new eZTemplate( "kernel/eztrade/user/" . $ini->variable( "eZTradeMain", "TemplateDir" ),
37 "kernel/eztrade/user/intl", $Language, "menubox.php" );
38
39 $t->setAllStrings();
40
41 $t->set_file( "menu_box_tpl", "menubox.tpl" );
42 $t->set_block( "menu_box_tpl", "category_tpl", "category" );
43
44 $t->set_var( "sitedesign", $GlobalSiteDesign );
45
46 $categories = eZForumCategory::getAll( false, true, true );
47
48 foreach ( $categories as $category )
49 {
50 $t->set_var( "id", $category->id() );
51 $t->set_var( "name", $category->name() );
52 $t->parse( "category", "category_tpl", true );
53 }
54 //$t->set_var( "category", "" );
55
56 $t->pparse( "output", "menu_box_tpl" );
57
58 ?>
$category
if( $Action=="Edit") $category
Definition: adedit.php:378
eZForumCategory\getAll
static getAll()
Definition: ezforumcategory.php:162
eZTemplate
Definition: eztemplate.php:107
$GlobalSiteDesign
global $GlobalSiteDesign
Definition: latestmessages.php:52
$t
$t
Definition: menubox.forum.php:36
$Language
$Language
Definition: menubox.forum.php:30
$ini
$ini
Definition: menubox.forum.php:29
$categories
$categories
Definition: menubox.forum.php:46
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.