@@ 426-436 (lines=11) @@ | ||
423 | // List all transitions for system role "author". |
|
424 | $rst = dal_query('states/rtlist2.sql', $state['state_id'], STATE_ROLE_AUTHOR); |
|
425 | ||
426 | if ($rst->rows != 0) |
|
427 | { |
|
428 | $xml .= " <author>\n"; |
|
429 | ||
430 | while (($next = $rst->fetch())) |
|
431 | { |
|
432 | $xml .= " <state>" . ustr2html($next['state_name']) . "</state>\n"; |
|
433 | } |
|
434 | ||
435 | $xml .= " </author>\n"; |
|
436 | } |
|
437 | ||
438 | // List all transitions for system role "responsible". |
|
439 | $rst = dal_query('states/rtlist2.sql', $state['state_id'], STATE_ROLE_RESPONSIBLE); |
|
@@ 441-451 (lines=11) @@ | ||
438 | // List all transitions for system role "responsible". |
|
439 | $rst = dal_query('states/rtlist2.sql', $state['state_id'], STATE_ROLE_RESPONSIBLE); |
|
440 | ||
441 | if ($rst->rows != 0) |
|
442 | { |
|
443 | $xml .= " <responsible>\n"; |
|
444 | ||
445 | while (($next = $rst->fetch())) |
|
446 | { |
|
447 | $xml .= " <state>" . ustr2html($next['state_name']) . "</state>\n"; |
|
448 | } |
|
449 | ||
450 | $xml .= " </responsible>\n"; |
|
451 | } |
|
452 | ||
453 | // List all transitions for system role "registered". |
|
454 | $rst = dal_query('states/rtlist2.sql', $state['state_id'], STATE_ROLE_REGISTERED); |
|
@@ 456-466 (lines=11) @@ | ||
453 | // List all transitions for system role "registered". |
|
454 | $rst = dal_query('states/rtlist2.sql', $state['state_id'], STATE_ROLE_REGISTERED); |
|
455 | ||
456 | if ($rst->rows != 0) |
|
457 | { |
|
458 | $xml .= " <registered>\n"; |
|
459 | ||
460 | while (($next = $rst->fetch())) |
|
461 | { |
|
462 | $xml .= " <state>" . ustr2html($next['state_name']) . "</state>\n"; |
|
463 | } |
|
464 | ||
465 | $xml .= " </registered>\n"; |
|
466 | } |
|
467 | ||
468 | // Enumerate local groups of the same project and all global groups. |
|
469 | $rsg = dal_query('groups/list.sql', $state['project_id'], 'is_global, group_name'); |