@@ 161-179 (lines=19) @@ | ||
158 | { |
|
159 | $states = dal_query('states/list.sql', $id, 'state_name asc'); |
|
160 | ||
161 | if ($states->rows != 0) |
|
162 | { |
|
163 | $xml .= '<control name="next_state">' |
|
164 | . '<label>' . get_html_resource(RES_NEXT_STATE_BY_DEFAULT_ID) . '</label>' |
|
165 | . '<combobox>' |
|
166 | . '<listitem value="0">' . get_html_resource(RES_NONE_ID) . '</listitem>'; |
|
167 | ||
168 | while (($row = $states->fetch())) |
|
169 | { |
|
170 | $xml .= ($row['state_id'] == $next_state_id |
|
171 | ? '<listitem value="' . $row['state_id'] . '" selected="true">' |
|
172 | : '<listitem value="' . $row['state_id'] . '">') |
|
173 | . ustr2html($row['state_name']) |
|
174 | . '</listitem>'; |
|
175 | } |
|
176 | ||
177 | $xml .= '</combobox>' |
|
178 | . '</control>'; |
|
179 | } |
|
180 | ||
181 | $xml .= '<control name="responsible">' |
|
182 | . '<label>' . get_html_resource(RES_RESPONSIBLE_ID) . '</label>' |
@@ 159-177 (lines=19) @@ | ||
156 | { |
|
157 | $states = dal_query('states/list.sql', $state['template_id'], 'state_name asc'); |
|
158 | ||
159 | if ($states->rows != 0) |
|
160 | { |
|
161 | $xml .= '<control name="next_state">' |
|
162 | . '<label>' . get_html_resource(RES_NEXT_STATE_BY_DEFAULT_ID) . '</label>' |
|
163 | . '<combobox>' |
|
164 | . '<listitem value="0">' . get_html_resource(RES_NONE_ID) . '</listitem>'; |
|
165 | ||
166 | while (($row = $states->fetch())) |
|
167 | { |
|
168 | $xml .= ($row['state_id'] == $next_state_id |
|
169 | ? '<listitem value="' . $row['state_id'] . '" selected="true">' |
|
170 | : '<listitem value="' . $row['state_id'] . '">') |
|
171 | . ustr2html($row['state_name']) |
|
172 | . '</listitem>'; |
|
173 | } |
|
174 | ||
175 | $xml .= '</combobox>' |
|
176 | . '</control>'; |
|
177 | } |
|
178 | ||
179 | if (is_state_removable($id)) |
|
180 | { |