Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezlink/admin/typelist.php
Go to the documentation of this file.
1 <?php
3 //
4 // $Id: typelist.php 6220 2001-07-20 11:15:21Z jakobn $
5 //
6 // Created on: <21-Jun-2001 11:55:24 jhe>
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 // include_once( "classes/eztemplate.php" );
29 // include_once( "classes/ezlocale.php" );
30 // include_once( "classes/ezcurrency.php" );
31
32 $ini =& eZINI::instance( 'site.ini' );
33 $Language = $ini->variable( "eZLinkMain", "Language" );
34
35 // include_once( "ezlink/classes/ezlinkcategory.php" );
36 // include_once( "ezlink/classes/ezlink.php" );
37 // include_once( "ezlink/classes/ezlinktype.php" );
38
39 if( isset( $Delete ) )
40 {
41 foreach( $DeleteArrayID as $typeid )
42 {
43 $typed = new eZLinkType( $typeid );
44 $typed->delete();
45 }
46 }
47
48 $t = new eZTemplate( "kernel/ezlink/admin/" . $ini->variable( "eZLinkMain", "AdminTemplateDir" ),
49 "kernel/ezlink/admin/intl/", $Language, "typelist.php" );
50
51 $t->setAllStrings();
52
53 $t->set_file( "type_list_page_tpl", "typelist.tpl" );
54
55 // type
56 $t->set_block( "type_list_page_tpl", "type_list_tpl", "type_list" );
57 $t->set_block( "type_list_tpl", "type_item_tpl", "type_item" );
58
59 $t->set_var( "site_style", $SiteDesign );
60
61 $type = new eZLinkType();
62 $typeList = $type->getAll();
63
64 // categories
65 $i=0;
66 $t->set_var( "type_list", "" );
67
68 foreach ( $typeList as $typeItem )
69 {
70 $t->set_var( "type_id", $typeItem->id() );
71
72 $t->set_var( "type_name", $typeItem->name() );
73
74
75 if ( ( $i % 2 ) == 0 )
76 {
77 $t->set_var( "td_class", "bglight" );
78 }
79 else
80 {
81 $t->set_var( "td_class", "bgdark" );
82 }
83
84 $t->parse( "type_item", "type_item_tpl", true );
85 $i++;
86 }
87
88 if ( count( $typeList ) > 0 )
89 $t->parse( "type_list", "type_list_tpl" );
90 else
91 $t->set_var( "type_list", "" );
92
93 $t->pparse( "output", "type_list_page_tpl" );
94
95 ?>
eZLinkType
Definition: ezlinktype.php:33
eZTemplate
Definition: eztemplate.php:107
$SiteDesign
$SiteDesign
Definition: ezbulkmail/user/datasupplier.php:31
$typeList
$typeList
Definition: ezlink/admin/typelist.php:62
$i
$i
Definition: ezlink/admin/typelist.php:65
$Language
$Language
Definition: ezlink/admin/typelist.php:33
$ini
$ini
Definition: ezlink/admin/typelist.php:32
$type
$type
Definition: ezlink/admin/typelist.php:61
$t
if(isset( $Delete)) $t
Definition: ezlink/admin/typelist.php:48
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.