Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4a4d453
)
pulldown options can be disabled
author
Jason Woofenden
<jason@jasonwoof.com>
Tue, 19 Apr 2011 01:00:08 +0000
(21:00 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Tue, 19 Apr 2011 01:00:08 +0000
(21:00 -0400)
encode.php
patch
|
blob
|
history
diff --git
a/encode.php
b/encode.php
index
2dbf756
..
7afae37
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-343,12
+343,14
@@
function encode_options($selected, $options, $keys_from) {
}
$out = '';
- foreach($options as $valdisp) {
- list($value, $display) = $valdisp;
+ foreach($options as $option) {
+ list($value, $display, $arg3) = $option;
$out .= '<option';
- if(in_array($value, $selected)) {
- $out .= ' selected="selected"';
+ if($arg3 == 'disabled') {
+ $out .= ' disabled';
+ } elseif(in_array($value, $selected)) {
+ $out .= ' selected';
}
if($value !== $display || strpos($value, ' ') !== false) {