diff --git a/infolog/inc/class.html.inc.php b/infolog/inc/class.html.inc.php index 003b91a003..105782d42f 100644 --- a/infolog/inc/class.html.inc.php +++ b/infolog/inc/class.html.inc.php @@ -15,6 +15,15 @@ class html { + var $prefered_img_title; + + function html() + { + global $HTTP_USER_AGENT; + // should be Ok for all HTML 4 compatible browsers + $this->prefered_img_title = stristr($HTTP_USER_AGENT,'konqueror') ? 'title' : 'alt'; + } + function input_hidden($vars,$value='') { if (!is_array($vars)) @@ -42,7 +51,6 @@ class html */ function link($url,$vars='') { - global $phpgw; if (is_array( $vars )) { $v = array( ); @@ -59,7 +67,7 @@ class html if ($v) $vars .= ($vars ? '&' : '') . $v; - return $phpgw->link($url,$vars); + return $GLOBALS['phpgw']->link($url,$vars); } function checkbox($name,$value='') @@ -67,6 +75,11 @@ class html return "\n"; } + function file($name) + { + return "\n"; + } + function form($content,$hidden_vars,$url,$url_vars='',$method='POST') { $html = "