Хранилища Subversion ant

Редакция

Редакция 82 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 82 Редакция 83
Строка 89... Строка 89...
89
        }
89
        }
90
90
91
        function getCSSList($dblink) {
91
        function getCSSList($dblink) {
92
                $req =& $dblink->query("SELECT * FROM distribution");
92
                $req =& $dblink->query("SELECT * FROM distribution");
93
                if ($req->numRows()>0) {
93
                if ($req->numRows()>0) {
-
 
94
                        $css = "<style type=\"text/css\">\n";
94
                        while ($req->fetchInto($dist, DB_FETCHMODE_ASSOC)) {
95
                        while ($req->fetchInto($dist, DB_FETCHMODE_ASSOC)) {
95
                                if ($dist["distlogo"]) {
96
                                if ($dist["distlogo"]) {
96
                                        $css .= ".".stripslashes($dist["distua"])." { display: inline; padding-left: 15px; background: transparent url(./img/logo/".$dist["distua"].".png) top left no-repeat; }\n";
97
                                        $css .= ".".stripslashes($dist["distua"])." { display: inline; padding-left: 15px; background: transparent url(./img/logo/".stripslashes($dist["distua"]).".png) top left no-repeat; }\n";
97
                                        $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";
98
                                        $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";
98
                                } else {
99
                                } else {
99
                                        $css .= "";
100
                                        $css .= "";
100
                                }
101
                                }
101
                        }
102
                        }
-
 
103
                        $css .= "</style>";
102
                } else {
104
                } else {
103
                        $css = "";
105
                        $css = "";
104
                }
106
                }
105
                return $css;
107
                return $css;
106
        }
108
        }