@@ 107-113 (lines=7) @@ | ||
104 | ||
105 | $list = dal_query('states/rtlist.sql', $state['template_id'], $id, $role); |
|
106 | ||
107 | while (($row = $list->fetch())) |
|
108 | { |
|
109 | $xml .= sprintf('transitions["g%d"]["state%d"] = %s;', |
|
110 | $role, |
|
111 | $row['state_id'], |
|
112 | ($row['is_set'] == 0 ? 'false' : 'true')); |
|
113 | } |
|
114 | } |
|
115 | ||
116 | while (($group = $groups->fetch())) |
|
@@ 122-128 (lines=7) @@ | ||
119 | ||
120 | $list = dal_query('states/gtlist.sql', $state['template_id'], $id, $group['group_id']); |
|
121 | ||
122 | while (($row = $list->fetch())) |
|
123 | { |
|
124 | $xml .= sprintf('transitions["g%d"]["state%d"] = %s;', |
|
125 | $group['group_id'], |
|
126 | $row['state_id'], |
|
127 | ($row['is_set'] == 0 ? 'false' : 'true')); |
|
128 | } |
|
129 | } |
|
130 | ||
131 | // local JS functions |