bernd commited on 2009-02-26 14:19:39
Zeige 1 geänderte Dateien mit 6 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1271 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -13,6 +13,10 @@ function db_query($query) |
13 | 13 |
logger("inc/base", "dberror", "mysql error: {$error}"); |
14 | 14 |
system_failure('Interner Datenbankfehler: »'.iconv('ISO-8859-1', 'UTF-8', $error).'«.'); |
15 | 15 |
} |
16 |
+ $count = @mysql_num_rows($result); |
|
17 |
+ if (! $count) |
|
18 |
+ $count = 'no'; |
|
19 |
+ DEBUG("=> {$count} rows"); |
|
16 | 20 |
return $result; |
17 | 21 |
} |
18 | 22 |
|
... | ... |
@@ -173,10 +177,10 @@ function html_form($form_id, $scriptname, $querystring, $content) |
173 | 177 |
} |
174 | 178 |
|
175 | 179 |
|
176 |
-function html_select($name, $options, $default='') |
|
180 |
+function html_select($name, $options, $default='', $free='') |
|
177 | 181 |
{ |
178 | 182 |
require_once('inc/security.php'); |
179 |
- $ret = "<select name=\"{$name}\" size=\"1\">\n"; |
|
183 |
+ $ret = "<select name=\"{$name}\" id=\"{$name}\" size=\"1\" {$free} >\n"; |
|
180 | 184 |
foreach ($options as $key => $value) |
181 | 185 |
{ |
182 | 186 |
$selected = ''; |
183 | 187 |