@@ 97-106 (lines=10) @@ | ||
94 | $ele = new XoopsFormTextArea($title, $config[$i]->getVar('conf_name'), $myts->htmlspecialchars($config[$i]->getConfValueForOutput()), 5, 50); |
|
95 | } |
|
96 | break; |
|
97 | case 'select': |
|
98 | $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()); |
|
99 | $options = $configHandler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
100 | $opcount = count($options); |
|
101 | for ($j = 0; $j < $opcount; ++$j) { |
|
102 | $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
103 | $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
104 | $ele->addOption($optval, $optkey); |
|
105 | } |
|
106 | break; |
|
107 | case 'select_multi': |
|
108 | $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true); |
|
109 | $options = $configHandler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
@@ 107-116 (lines=10) @@ | ||
104 | $ele->addOption($optval, $optkey); |
|
105 | } |
|
106 | break; |
|
107 | case 'select_multi': |
|
108 | $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true); |
|
109 | $options = $configHandler->getConfigOptions(new Criteria('conf_id', $config[$i]->getVar('conf_id'))); |
|
110 | $opcount = count($options); |
|
111 | for ($j = 0; $j < $opcount; ++$j) { |
|
112 | $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value'); |
|
113 | $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name'); |
|
114 | $ele->addOption($optval, $optkey); |
|
115 | } |
|
116 | break; |
|
117 | case 'yesno': |
|
118 | $ele = new XoopsFormRadioYN($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO); |
|
119 | break; |