@@ 70-74 (lines=5) @@ | ||
67 | $select_category .= "<option value=\"all\""; |
|
68 | if (empty($category) || count($category) == 0) $select_category .= "selected=\"selected\""; |
|
69 | $select_category .= ">" . XoopsLocale::ALL . "</option>"; |
|
70 | foreach ($categories as $id => $cat) { |
|
71 | $select_category .= "<option value=\"" . $id . "\""; |
|
72 | if (in_array($id, $category)) $select_category .= "selected=\"selected\""; |
|
73 | $select_category .= ">" . $cat . "</option>"; |
|
74 | } |
|
75 | $select_category .= "</select>"; |
|
76 | ||
77 | /* scope */ |
@@ 227-233 (lines=7) @@ | ||
224 | $select_category .= "selected=\"selected\""; |
|
225 | } |
|
226 | $select_category .= ">" . XoopsLocale::ALL . "</option>"; |
|
227 | foreach ($categories as $id => $cat) { |
|
228 | $select_category .= "<option value=\"" . $id . "\""; |
|
229 | if (in_array($id, $category)) { |
|
230 | $select_category .= "selected=\"selected\""; |
|
231 | } |
|
232 | $select_category .= ">" . $cat . "</option>"; |
|
233 | } |
|
234 | $select_category .= "</select>"; |
|
235 | ||
236 | /* scope */ |