91,16 → 91,14 |
function getCSSList($dblink) { |
$req =& $dblink->query("SELECT * FROM distribution"); |
if ($req->numRows()>0) { |
$css = "<style type=\"text/css\">\n"; |
while ($req->fetchInto($dist, DB_FETCHMODE_ASSOC)) { |
if ($dist["distlogo"]) { |
$css .= ".".stripslashes($dist["distua"])." { display: inline; padding-left: 15px; background: transparent url(./img/logo/".stripslashes($dist["distua"]).".png) top left no-repeat; }\n"; |
$css .= ".".stripslashes($dist["distua"])."-em { display: inline; padding-left: 30px; background: transparent url(./img/logo/".stripslashes($dist["distua"])."-em.png) top left no-repeat; }\n"; |
$css .= ".".stripslashes($dist["distua"])." { display: inline; padding-left: 15px; background: transparent url(./img/logo/".$dist["distua"].".png) top left no-repeat; }\n"; |
$css .= ".".stripslashes($dist["distua"])."-em { display: inline; padding-left: 32px; background: transparent url(./img/logo/".stripslashes($dist["distua"])."-em.png) top left no-repeat; }\n"; |
} else { |
$css .= ""; |
} |
} |
$css .= "</style>"; |
} else { |
$css = ""; |
} |