diff --git a/phpgwapi/inc/class.sbox2.inc.php b/phpgwapi/inc/class.sbox2.inc.php index 6bc2131e3f..9c4e335bee 100644 --- a/phpgwapi/inc/class.sbox2.inc.php +++ b/phpgwapi/inc/class.sbox2.inc.php @@ -23,32 +23,32 @@ /* $Id$ */ - include(PHPGW_API_INC."/class.sbox.inc.php"); + include(PHPGW_API_INC . '/class.sbox.inc.php'); - class sbox2 extends sbox { + class sbox2 extends sbox + { /* - * Function: search for an id of an db-entry, eg. an address - * Parameter: $name base name for all template-vars and of the submitted vars (not to conflict with other template-var-names !!!) - * $lang_name titel of the field - * $prompt for the JavaScript prompt() - * $id_name id of previosly selected entry - * $content from id (eg. 'company: lastname, givenname' for address $id) if $id != 0, or - * array with searchresult (id's as key), if array is empty if search was unsucsessful - * Returns: array with vars to set in temaplate, the vars are: - * {doSearchFkt} Javascript Funktion, place somewhere in Template (before rest of the vars) - * {$name.'_title} button with titel $lang_name (if JS) or just $lang_name - * {$name} content of $id if != 0, or lang('use Button to search for').$lang_name - * {$name.'_nojs} searchfield + button if we have no JavaScript, else empty + * Function: search for an id of an db-entry, eg. an address + * Parameter: $name base name for all template-vars and of the submitted vars (not to conflict with other template-var-names !!!) + * $lang_name titel of the field + * $prompt for the JavaScript prompt() + * $id_name id of previosly selected entry + * $content from id (eg. 'company: lastname, givenname' for address $id) if $id != 0, or + * array with searchresult (id's as key), if array is empty if search was unsucsessful + * Returns: array with vars to set in temaplate, the vars are: + * {doSearchFkt} Javascript Funktion, place somewhere in Template (before rest of the vars) + * {$name.'_title} button with titel $lang_name (if JS) or just $lang_name + * {$name} content of $id if != 0, or lang('use Button to search for').$lang_name + * {$name.'_nojs} searchfield + button if we have no JavaScript, else empty * * To use call $template->set_var(getIdSearch( ... )); * the template should look like {doSeachFkt}
getId('$name','$lang_name','$prompt',$id_name,'$content') ="; - global $phpgw; - $ret['doSearchFkt'] = '