diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-18 12:08:22 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-18 12:08:22 +0000 |
| commit | 3c99a2e8c2dd141362ccc16ed2e2bd0fb2c60192 (patch) | |
| tree | cad1473d548ac1509b638f10d658939902411e1d /frontends/php/include/html.inc.php | |
| parent | 3695a20101806e32166923450b42add7b044b970 (diff) | |
| download | zabbix-3c99a2e8c2dd141362ccc16ed2e2bd0fb2c60192.tar.gz zabbix-3c99a2e8c2dd141362ccc16ed2e2bd0fb2c60192.tar.xz zabbix-3c99a2e8c2dd141362ccc16ed2e2bd0fb2c60192.zip | |
- Minor changes (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2537 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/html.inc.php')
| -rw-r--r-- | frontends/php/include/html.inc.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php index 8d7f6e41..65d9337b 100644 --- a/frontends/php/include/html.inc.php +++ b/frontends/php/include/html.inc.php @@ -24,15 +24,22 @@ function bold($str) { - if(is_array($str)) - { + if(is_array($str)){ foreach($str as $key => $val) if(is_string($val)) $str[$key] = "<b>$val</b>"; - return $str; + } elseif(is_string($str)) { + $str = "<b>$str</b>"; } - if(is_string($str)) - return "<b>$str</b>"; + return $str; + } + + function bfirst($str) // mark first symbol of string as bold + { + $res = bold($str[0]); + for($i=1; $i<strlen($str); $i++) $res .= $str[$i]; + $str = $res; + return $str; } function nbsp($str) |
