2
There's a couple of possibilities depending on where this code is being placed...
1) near the top of the file add the following line:
le="color: #000000"><?php global $xoopsDB;
OR
2) everywhere you see
le="color: #000000"><?php $xoopsDB
replace it with
le="color: #000000"><?php $GLOBALS['xoopsDB']
If neither of these work, like if you're trying this in a custom page, etc. then it could be a little more involved... but I'd try one of the above methods first.