function getShortcutImageString($configId, $width = 50) { $ret = ""; $configDb = new DbTable($_SESSION['config']->DBCONNECT, 'homecontrol_config', array("*"), "", "", "", "id=" . $configId); if ($configDb->getRow(1) != null) { $itm = new HomeControlItem($configDb->getRow(1), false); $ret = "<img src='" . $itm->getPic() . "' width='" . $width . "'>"; } return $ret; }