@@ 132-147 (lines=16) @@ | ||
129 | ||
130 | $template = template_find($filter['filter_param']); |
|
131 | ||
132 | if ($template) |
|
133 | { |
|
134 | $project_id = $template['project_id']; |
|
135 | $template_id = $template['template_id']; |
|
136 | ||
137 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '">' . ustr2html($template['project_name']) . '</text>' |
|
138 | . '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '">' . ustr2html($template['template_name']) . '</text>'; |
|
139 | } |
|
140 | else |
|
141 | { |
|
142 | $project_id = 0; |
|
143 | $template_id = 0; |
|
144 | ||
145 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '"><i>' . get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID) . '</i></text>' |
|
146 | . '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '"><i>' . get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID) . '</i></text>'; |
|
147 | } |
|
148 | ||
149 | $xml .= '<text label="' . get_html_resource(RES_STATES_ID) . '">' . get_html_resource(RES_ALL_STATES_ID) . '</text>'; |
|
150 | ||
@@ 157-172 (lines=16) @@ | ||
154 | ||
155 | $template = template_find($filter['filter_param']); |
|
156 | ||
157 | if ($template) |
|
158 | { |
|
159 | $project_id = $template['project_id']; |
|
160 | $template_id = $template['template_id']; |
|
161 | ||
162 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '">' . ustr2html($template['project_name']) . '</text>' |
|
163 | . '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '">' . ustr2html($template['template_name']) . '</text>'; |
|
164 | } |
|
165 | else |
|
166 | { |
|
167 | $project_id = 0; |
|
168 | $template_id = 0; |
|
169 | ||
170 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '"><i>' . get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID) . '</i></text>' |
|
171 | . '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '"><i>' . get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID) . '</i></text>'; |
|
172 | } |
|
173 | ||
174 | $xml .= '<text label="' . get_html_resource(RES_STATES_ID) . '">'; |
|
175 |