mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
reformatting acording to our standards - someone totaly screed it ;-)
This commit is contained in:
parent
ab5be9691a
commit
fa70cfed73
@ -135,20 +135,19 @@
|
||||
return $str;
|
||||
}
|
||||
|
||||
/*!
|
||||
@function select
|
||||
@abstract allows to show and select one item from an array
|
||||
@param $name string with name of the submitted var which holds the key of the selected item form array
|
||||
@param $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys
|
||||
@param $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe');
|
||||
@param $no_lang if !$no_lang send items through lang()
|
||||
@param $options additional options (e.g. 'width')
|
||||
@param $multiple number of lines for a multiselect, default 0 = no multiselect
|
||||
@returns string to set for a template or to echo into html page
|
||||
/**
|
||||
* allows to show and select one item from an array
|
||||
*
|
||||
* @param string $name string with name of the submitted var which holds the key of the selected item form array
|
||||
* @param string/array $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys
|
||||
* @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe');
|
||||
* @param boolean $no_lang if !$no_lang send items through lang()
|
||||
* @param string $options additional options (e.g. 'width')
|
||||
* @param int $multiple number of lines for a multiselect, default 0 = no multiselect
|
||||
* @return string to set for a template or to echo into html page
|
||||
*/
|
||||
function select($name, $key, $arr=0,$no_lang=0,$options='',$multiple=0)
|
||||
{
|
||||
// should be in class common.sbox
|
||||
if (!is_array($arr))
|
||||
{
|
||||
$arr = array('no','yes');
|
||||
@ -216,10 +215,8 @@
|
||||
return "<textarea name=\"$name\" $options>".$this->htmlspecialchars($value)."</textarea>\n";
|
||||
}
|
||||
|
||||
/*!
|
||||
@function htmlarea_avalible
|
||||
@author ralfbecker
|
||||
@abstract Checks if HTMLarea (or an other richtext editor) is availible for the used browser
|
||||
/**
|
||||
* Checks if HTMLarea (or an other richtext editor) is availible for the used browser
|
||||
*/
|
||||
function htmlarea_availible()
|
||||
{
|
||||
@ -336,7 +333,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* do stuff for every htmlarea in the page */
|
||||
@ -628,9 +624,10 @@
|
||||
return '<i>'.$content.'</i>';
|
||||
}
|
||||
|
||||
function hr($width,$options='')
|
||||
function hr($width=0,$options='')
|
||||
{
|
||||
if ($width) $options .= " width=\"$width\"";
|
||||
|
||||
return "<hr $options />\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user