cvs: phpweb / bugs.php
| From: | Jim Winstead | Date: | Sat, 07 Jul 2001 19:18:54 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5296@lists.php.net to get a copy of this message | ||
jimw Sat Jul 7 15:18:54 2001 EDT
Modified files:
/phpweb bugs.php
Log:
ah, blank defaults get sent on a couple of the selects. i get it now....
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.130 phpweb/bugs.php:1.131
--- phpweb/bugs.php:1.130 Sat Jul 7 14:57:07 2001
+++ phpweb/bugs.php Sat Jul 7 15:18:54 2001
@@ -62,19 +62,19 @@
/* regular users can only pick states with type = 1 for unclosed bugs */
if($state != "All" && $state_types[$state] == 1 && $user_mode == 2) {
- echo "<option>$state\n";
- if($state != "Bogus") echo "<option>Closed\n";
+ echo "<option>$state</option>\n";
+ if($state != "Bogus") echo "<option>Closed</option>\n";
} else {
foreach($state_types as $type => $mode) {
if($mode == $user_mode || $user_mode < 2) {
echo "<option";
- if($type == $state) echo " SELECTED";
- echo ">$type\n";
+ if($type == $state) echo " selected";
+ echo ">$type</option>\n";
}
}
if($show_all) {
- $sel = ($state == "All") ? "SELECTED" : "";
- echo "<option $sel>All\n";
+ $sel = ($state == "All") ? " selected" : "";
+ echo "<option$sel>All</option>\n";
}
}
}
@@ -85,7 +85,7 @@
echo "<option", ($current == $v ? " selected" : ""),
">$v</option>\n";
if ($current == $v) $use++;
}
- if (!$use) echo "<option selected>$current</option>\n";
+ if (!$use && $current) echo "<option selected>$current</option>\n";
echo "<option value=\"earlier\">Earlier? Upgrade
first!</option>\n";
}
@@ -110,7 +110,7 @@
if ($key == $current) $use++;
}
}
- if (!$use) {
+ if (!$use && $current) {
echo "<option selected>$current</option>\n";
}
}