From 038cc6d0e2b2d6ea4b4b4a570ad378159f3abd46 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 24 Feb 2002 21:21:53 +0000 Subject: [PATCH] Updating to ralf's latest version --- phpgwapi/inc/class.sbox2.inc.php | 199 ++++++++++++++++++++++++------- 1 file changed, 159 insertions(+), 40 deletions(-) diff --git a/phpgwapi/inc/class.sbox2.inc.php b/phpgwapi/inc/class.sbox2.inc.php index 1dffb20d2e..aea7471127 100644 --- a/phpgwapi/inc/class.sbox2.inc.php +++ b/phpgwapi/inc/class.sbox2.inc.php @@ -6,7 +6,7 @@ * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* * This library is part of the phpGroupWare API * - * http://www.phpgroupware.org/api * + * http://www.phpgroupware.org/api * * ------------------------------------------------------------------------ * * This library is free software; you can redistribute it and/or modify it * * under the terms of the GNU Lesser General Public License as published by * @@ -23,7 +23,11 @@ /* $Id$ */ - include(PHPGW_API_INC . '/class.sbox.inc.php'); + if(!isset($GLOBALS['phpgw_info']['flags']['included_classes']['sbox'])) + { + include(PHPGW_API_INC . '/class.sbox.inc.php'); + $GLOBALS['phpgw_info']['flags']['included_classes']['sbox'] = True; + } class sbox2 extends sbox { @@ -50,7 +54,7 @@ function getId($name,$lang_name,$prompt,$id_name,$content='',$note='',$multiple=False) { // echo "

getId('$name','$lang_name','$prompt',$id_name,'$content') ="; - $ret['doSearchFkt'] = + $ret['doSearchFkt'] = ''; - $ret[$name.'_title'] = is_array($content) && count($content) ? $lang_name : + $ret[$name.'_title'] = is_array($content) && count($content) ? $lang_name : '