@@ 317-324 (lines=8) @@ | ||
314 | ||
315 | $rs = dal_query('groups/list.sql', $project_id, 'is_global, group_name'); |
|
316 | ||
317 | while (($row = $rs->fetch())) |
|
318 | { |
|
319 | $xml .= ($group_id == $row['group_id'] |
|
320 | ? '<listitem value="' . $row['group_id'] . '" selected="true">' |
|
321 | : '<listitem value="' . $row['group_id'] . '">') |
|
322 | . sprintf('%s (%s)', ustr2html($row['group_name']), get_html_resource($row['is_global'] ? RES_GLOBAL_ID : RES_LOCAL_ID)) |
|
323 | . '</listitem>'; |
|
324 | } |
|
325 | ||
326 | $xml .= '</combobox>' |
|
327 | . '</control>'; |
@@ 197-204 (lines=8) @@ | ||
194 | ||
195 | $rs = dal_query('groups/list.sql', $project_id, 'is_global, group_name'); |
|
196 | ||
197 | while (($row = $rs->fetch())) |
|
198 | { |
|
199 | $xml .= ($group_id == $row['group_id'] |
|
200 | ? '<listitem value="' . $row['group_id'] . '" selected="true">' |
|
201 | : '<listitem value="' . $row['group_id'] . '">') |
|
202 | . sprintf('%s (%s)', ustr2html($row['group_name']), get_html_resource($row['is_global'] ? RES_GLOBAL_ID : RES_LOCAL_ID)) |
|
203 | . '</listitem>'; |
|
204 | } |
|
205 | ||
206 | $xml .= '</combobox>' |
|
207 | . '</control>' |