1 | <script language="javascript1.2" src="workflow/js/jscode/participants.js"></script> |
---|
2 | <script language="javascript1.2" src="workflow/js/jscode/adminInterface.js"></script> |
---|
3 | <div style="color:red; text-align:center">{message}</div> |
---|
4 | <div> |
---|
5 | <div> |
---|
6 | {proc_bar} |
---|
7 | </div> |
---|
8 | <div> |
---|
9 | {errors} |
---|
10 | </div> |
---|
11 | </div> |
---|
12 | <br /> |
---|
13 | <form action="{form_details_action}" method="post"> |
---|
14 | <input type="hidden" name="p_id" value="{p_id}" /> |
---|
15 | <input type="hidden" name="activity_id" value="{activity_id}" /> |
---|
16 | <input type="hidden" name="where2" value="{where2}" /> |
---|
17 | <input type="hidden" name="sort_mode2" value="{sort_mode2}" /> |
---|
18 | <input type="hidden" name="find" value="{find}" /> |
---|
19 | <input type="hidden" name="where" value="{where}" /> |
---|
20 | <input type="hidden" name="sort_mode" value="{sort_mode}" /> |
---|
21 | <input type="hidden" name="filter_type" value="{filter_type_value}" /> |
---|
22 | <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" /> |
---|
23 | <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" /> |
---|
24 | <input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" /> |
---|
25 | <table id="activitiesPropertiesTable" style="border: 1px solid black;width:100%; margin-bottom:10px"> |
---|
26 | <tr class="th"> |
---|
27 | <td colspan="2" style="font-size: 120%; font-weight:bold"> |
---|
28 | {lang_Add_or_edit_an_activity} - <a id="toggleLink" href="javascript:toggleTableVisibility('activitiesPropertiesTable')">Contrair</a> |
---|
29 | </td> |
---|
30 | </tr> |
---|
31 | <tr class="row_on"> |
---|
32 | <td width="20%">{lang_Name}</td> |
---|
33 | <td><input type="text" name="name" value="{name}" /></td> |
---|
34 | </tr> |
---|
35 | <tr class="row_off"> |
---|
36 | <td>{lang_Description}</td> |
---|
37 | <td><textarea name="description" rows="4" cols="60">{description}</textarea></td> |
---|
38 | </tr> |
---|
39 | <tr class="row_on"> |
---|
40 | <td>{lang_Type}</td> |
---|
41 | <td> |
---|
42 | <select name="type"> |
---|
43 | <!-- BEGIN block_select_type --> |
---|
44 | <option value="{type_value}" {type_selected}>{type_name}</option> |
---|
45 | <!-- END block_select_type --> |
---|
46 | </select> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | <tr class="row_off"> |
---|
50 | <td>{lang_Properties}</td> |
---|
51 | <td> |
---|
52 | <table cellpading="1" cellspacing="1"> |
---|
53 | <tr class="row_off"> |
---|
54 | <td colspan="4">{lang_users_can_act_on_activity_before_its_execution_with_form_and_after_by_sending_it_to_the_next_activity}</td> |
---|
55 | </tr> |
---|
56 | <tr class="row_on"> |
---|
57 | <td>{img_interactive}</td> |
---|
58 | <td>{lang_Interactive}</td> |
---|
59 | <td><input type="checkbox" name="is_interactive" {checked_interactive} /></td> |
---|
60 | <td>{lang_interactive_activities_show_form_before_being_executed}</td> |
---|
61 | </tr> |
---|
62 | <tr class="row_on"> |
---|
63 | <td>{img_transition_auto}</td> |
---|
64 | <td>{lang_auto_routed}</td> |
---|
65 | <td><input type="checkbox" name="is_autorouted" {checked_autorouted} /></td> |
---|
66 | <td>{lang_autorouted_activities_does_not_need_to_be_sent_by_any_user_after_their_execution}</td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | <tr class="row_on"> |
---|
72 | <td>{lang_menu_path}</td> |
---|
73 | <td><input type="text" name="menu_path" value="{menu_path}" /></td> |
---|
74 | </tr> |
---|
75 | <tr class="row_off"> |
---|
76 | <td>{lang_Add_transitions}</td> |
---|
77 | <td> |
---|
78 | <table border="0" width="70%"> |
---|
79 | <tr> |
---|
80 | <td> |
---|
81 | {lang_Add_transitions_from}:<br/> |
---|
82 | {add_trans_from} |
---|
83 | </td> |
---|
84 | <td> |
---|
85 | {lang_Add_transitions_to}:<br/> |
---|
86 | {add_trans_to} |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | </table> |
---|
90 | </td> |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr class="row_on"> |
---|
94 | <td>{lang_Roles_assigned_to_this_activity}</td> |
---|
95 | <td> |
---|
96 | <table style="border: 0;width:75%;"> |
---|
97 | <tr class="th"> |
---|
98 | <th>{txt_read_only}</th> |
---|
99 | <th>{txt_role_name}</th> |
---|
100 | <th> </th> |
---|
101 | </tr> |
---|
102 | <!-- BEGIN block_activity_roles --> |
---|
103 | <tr class="tr_activity_role"> |
---|
104 | <td width="25%" class="td_activity_role_ro" style="text-align:center"><input type="checkbox" name="activity_role_ro[{act_role_id}]" {act_role_ro_checked} disabled="disabled" /></td> |
---|
105 | <td width="70%" class="td_activity_role_name">{act_role_name}</td> |
---|
106 | <td width="5%" class="td_activity_role_del"><input type="checkbox" name="activity_role_delete[{act_role_id}]" {act_role_delete_checked} /></td> |
---|
107 | </tr> |
---|
108 | <!-- END block_activity_roles --> |
---|
109 | <tr class="tr_activity_role"> |
---|
110 | <td colspan="3" style="text-align:right"><input type="submit" name="remove_roles" value="{txt_Remove_selected_roles}"></td> |
---|
111 | </tr> |
---|
112 | </table> |
---|
113 | </td> |
---|
114 | </tr> |
---|
115 | <tr class="row_off"> |
---|
116 | |
---|
117 | <td>{lang_Add_role}</td> |
---|
118 | <td> |
---|
119 | <table style="width=100%; border=0;"> |
---|
120 | <tr class="th"> |
---|
121 | <th>{txt_Use_existing_roles}</th> |
---|
122 | <th>{lang_Add_new_role}</th> |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <td> |
---|
126 | {txt_read_only}<input type="checkbox" name="userole_ro" {userole_ro_checked} /> |
---|
127 | <select name="userole"> |
---|
128 | <option value=""> </option> |
---|
129 | <!-- BEGIN block_process_roles --> |
---|
130 | <option value="{proc_roleId}">{proc_roleName}</option> |
---|
131 | <!-- END block_process_roles --> |
---|
132 | </select> |
---|
133 | </td> |
---|
134 | <td> |
---|
135 | {txt_read_only}<input type="checkbox" name="newrole_ro" {userole_ro_checked} /> |
---|
136 | <input type="text" name="rolename" size="30"/> |
---|
137 | </td> |
---|
138 | </tr> |
---|
139 | <tr> |
---|
140 | <td> </td> |
---|
141 | <td>{lang_Description}<input type="text" name="roledescription" size="50"/></td> |
---|
142 | </tr> |
---|
143 | </table> |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | <tr class="row_on"> |
---|
147 | <td>{lang_Agents_assigned_to_this_activity}</td> |
---|
148 | <td> |
---|
149 | <ul class="ul_activity_agents"> |
---|
150 | <!-- BEGIN block_activity_agents --> |
---|
151 | <li class="li_activity_agent">{act_agent_type} [<a href="{act_agent_href}">{lang_delete}</a>]<br/> |
---|
152 | <!-- END block_activity_agents --> |
---|
153 | <ul> |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | <tr class="row_off"> |
---|
157 | <td>{lang_Add_agent}</td> |
---|
158 | <td> |
---|
159 | <select name="useagent"> |
---|
160 | <option value="">{lang_None}</option> |
---|
161 | <!-- BEGIN block_select_agents --> |
---|
162 | <option value="{select_agentType}">{select_agentType}</option> |
---|
163 | <!-- END block_select_agents --> |
---|
164 | </select> |
---|
165 | </td> |
---|
166 | </tr> |
---|
167 | <tr class="row_on"> |
---|
168 | <td> |
---|
169 | {lang_Default_User} |
---|
170 | </td> |
---|
171 | <td valign="top"> |
---|
172 | <input type="hidden" name="default_user" id="default_user" value="{wf_default_user}" /> |
---|
173 | <input type="hidden" name="default_user_temp" id="default_user_temp" value="{wf_default_user}" /> |
---|
174 | |
---|
175 | <input type="radio" value="0" {default_user_option_checked_0} onclick="toggleDefaultUserVisibility(0);" id="default_user_option_0" name="default_user_option"/><label for="default_user_option_0">{lang_select_only_one_user}</label> |
---|
176 | <input type="radio" value="1" {default_user_option_checked_1} onclick="toggleDefaultUserVisibility(1);" id="default_user_option_1" name="default_user_option"/><label for="default_user_option_1">{lang_select_one_process_role}</label> |
---|
177 | |
---|
178 | <div id="div_default_user_option_0" style="display:none;"> |
---|
179 | <input type="input" name="default_user_desc" id="default_user_desc" value="{wf_default_user_desc}" readonly="true" size="40" /> |
---|
180 | <a href="javascript:void(0)" onclick="openParticipantsWindow('default_user', 'uid=1&hidegroups=1');"><img border="0" src="workflow/templateFile.php?file=images/add_user.png" /></a> |
---|
181 | <button onclick="document.getElementById('default_user_desc').value=''; document.getElementById('default_user').value='*'; return false">{lang_without_default_user}</button> |
---|
182 | <br> |
---|
183 | <span style="color: gray"> |
---|
184 | {lang_the_default_user_will_only_be_set_if_he_is_mapped_to_a_role_on_the_activity} ({lang_setNextUser_directives_can_override_it}). |
---|
185 | </span> |
---|
186 | </div> |
---|
187 | |
---|
188 | <div id="div_default_user_option_1" style="display:none;"> |
---|
189 | <select name="default_roles" id="default_roles" onchange="document.getElementById('default_user').value=document.getElementById('default_roles').value;"> |
---|
190 | <option value="*"></option> |
---|
191 | <!-- BEGIN block_default_roles --> |
---|
192 | <option value="{proc_roleId}" {proc_role_selected}>{proc_roleName}</option> |
---|
193 | <!-- END block_default_roles --> |
---|
194 | </select> |
---|
195 | <br> |
---|
196 | <span style="color: gray"> |
---|
197 | {lang_default_role_will_be_set_only_if_it_is_mapped_on_the_activity} ({lang_setNextUser_directives_can_override_it}). |
---|
198 | </span> |
---|
199 | </div> |
---|
200 | <br/> |
---|
201 | </td> |
---|
202 | </tr> |
---|
203 | {agents_config_rows} |
---|
204 | <tr class="th"> |
---|
205 | <td colspan="2"> |
---|
206 | <table width="100%" cellpadding="0" cellspacing="0"> |
---|
207 | <tr><td style="font-size: 120%; font-weight:bold"> |
---|
208 | <input type="submit" name="save_act" value="{lang_save}" /> |
---|
209 | </td><td style="text-align: right;font-size: 120%; font-weight:bold"> |
---|
210 | <input type="submit" name="new_activity" value="{lang_new}" /> |
---|
211 | </td></tr> |
---|
212 | </table> |
---|
213 | </td> |
---|
214 | </tr> |
---|
215 | |
---|
216 | </table> |
---|
217 | </form> |
---|
218 | |
---|
219 | <div style="border: 1px solid black;margin-bottom:10px"> |
---|
220 | <form action="{form_process_activities_action}" method="post"> |
---|
221 | <div class="th" style="font-weight:bold; font-size:120%; margin-bottom:4px">{lang_Process_activities}</div> |
---|
222 | <input type="hidden" name="p_id" value="{p_id}" /> |
---|
223 | <input type="hidden" name="activity_id" value="{activity_id}" /> |
---|
224 | <input type="hidden" name="where2" value="{where2}" /> |
---|
225 | <input type="hidden" name="sort_mode2" value="{sort_mode2}" /> |
---|
226 | <input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" /> |
---|
227 | <table width="100%" cellpadding="0" cellspacing="0"> |
---|
228 | <tr class="th"> |
---|
229 | {left_arrow} |
---|
230 | <td style="text-align:center"> |
---|
231 | {lang_Type}: |
---|
232 | <select name="filter_type" > |
---|
233 | <option {selected_filter_type_all} value="">{lang_All}</option> |
---|
234 | <!-- BEGIN block_select_filter_type --> |
---|
235 | <option {selected_filter_type} value="{filter_type_en_name}">{filter_type_name}</option> |
---|
236 | <!-- END block_select_filter_type --> |
---|
237 | </select> |
---|
238 | {lang_Interactivity}: |
---|
239 | <select name="filter_interactive"> |
---|
240 | <option {selected_filter_interactive_all} value="">{lang_All}</option> |
---|
241 | <!-- BEGIN block_select_filter_interactive --> |
---|
242 | <option {selected_filter_interactive} value="{filter_interactive_value}">{filter_interactive_name}</option> |
---|
243 | <!-- END block_select_filter_interactive --> |
---|
244 | </select> |
---|
245 | {lang_Routing}: |
---|
246 | <select name="filter_autoroute"> |
---|
247 | <option {selected_filter_autoroute_all} value="">{lang_All}</option> |
---|
248 | <!-- BEGIN block_select_filter_autoroute --> |
---|
249 | <option {selected_filter_autoroute} value="{filter_autoroute_value}">{filter_autoroute_name}</option> |
---|
250 | <!-- END block_select_filter_autoroute --> |
---|
251 | </select> |
---|
252 | {lang_Search}: |
---|
253 | <input size="18" type="text" name="find" value="{find}" /> |
---|
254 | <input type="submit" name="filter" value="{lang_Filter}" /> |
---|
255 | </td> |
---|
256 | {right_arrow} |
---|
257 | </tr> |
---|
258 | </table> |
---|
259 | </form> |
---|
260 | |
---|
261 | <form action="{form_process_activities_action}" method="post"> |
---|
262 | <input type="hidden" name="find" value="{find}" /> |
---|
263 | <input type="hidden" name="where" value="{where}" /> |
---|
264 | <input type="hidden" name="sort_mode" value="{sort_mode}" /> |
---|
265 | <input type="hidden" name="where2" value="{where2}" /> |
---|
266 | <input type="hidden" name="sort_mode2" value="{sort_mode2}" /> |
---|
267 | <input type="hidden" name="p_id" value="{p_id}" /> |
---|
268 | <input type="hidden" name="activity_id" value="{activity_id}" /> |
---|
269 | <input type="hidden" name="filter_type" value="{filter_type_value}" /> |
---|
270 | <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" /> |
---|
271 | <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" /> |
---|
272 | <input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" /> |
---|
273 | <div style="position:relative"> |
---|
274 | <table border="0" width="100%"> |
---|
275 | <!-- BEGIN block_process_activities_header --> |
---|
276 | <tr class="th" style="font-weight:bold"> |
---|
277 | <td style="width: 20px;" align="center">#</td> |
---|
278 | <td style="width: 40%;">{header_name}</a></td> |
---|
279 | <td align="center">{header_type}</a></td> |
---|
280 | <td align="center">{header_interactive}</a></td> |
---|
281 | <td align="center">{header_route}</a></td> |
---|
282 | <td align="center">{header_default_user}</a></td> |
---|
283 | <td width="70px">{lang_Action}</td> |
---|
284 | </tr> |
---|
285 | <!-- END block_process_activities_header --> |
---|
286 | <!-- BEGIN block_process_activities --> |
---|
287 | <tr bgcolor="{color_line}"> |
---|
288 | <td style="text-align:center;"> |
---|
289 | {act_flowNum} |
---|
290 | </td> |
---|
291 | <td> |
---|
292 | <a href="{act_href}">{act_name}</a> |
---|
293 | {no_roles} |
---|
294 | </td> |
---|
295 | <td style="text-align:center;"> |
---|
296 | {act_icon} |
---|
297 | </td> |
---|
298 | <td style="text-align:center;"> |
---|
299 | <input type="checkbox" name="activity_inter[{act_activity_id}]" {act_inter_checked} /> |
---|
300 | </td> |
---|
301 | <td style="text-align:center;"> |
---|
302 | <input type="checkbox" name="activity_route[{act_activity_id}]" {act_route_checked} /> |
---|
303 | </td> |
---|
304 | <td style="text-align:center;"> |
---|
305 | {act_default_user} |
---|
306 | </td> |
---|
307 | <td> |
---|
308 | <a href="{act_href_edit}"><img src="{img_code}" alt="{lang_edit}" title="{lang_edit}" /></a> |
---|
309 | {act_template} |
---|
310 | <input style="position:absolute; right:5px" type="checkbox" name="activities[{act_activity_id}]" /> |
---|
311 | </td> |
---|
312 | </tr> |
---|
313 | <!-- END block_process_activities --> |
---|
314 | <!-- BEGIN block_process_activities_footer --> |
---|
315 | <tr class="th"> |
---|
316 | <td colspan="7"> |
---|
317 | <input type="submit" name="update_act" value="{lang_update}" /> |
---|
318 | <input style="position:absolute; right:5px" type="submit" name="delete_act" value="{lang_Delete_selected}" /> |
---|
319 | </td> |
---|
320 | </tr> |
---|
321 | <!-- END block_process_activities_footer --> |
---|
322 | </table> |
---|
323 | </div> |
---|
324 | </form> |
---|
325 | </div> |
---|
326 | |
---|
327 | <table border="0" width="100%" style="border: 1px solid black;"> |
---|
328 | <tr class="th"> |
---|
329 | <td colspan="2" style="font-size: 120%; font-weight:bold"> |
---|
330 | {img_transition}{lang_Process_transitions} |
---|
331 | </td> |
---|
332 | </tr> |
---|
333 | <tr valign="top"> |
---|
334 | <td width="50%"> |
---|
335 | <form action="{form_list_transitions_action}" method="post"> |
---|
336 | <input type="hidden" name="p_id" value="{p_id}" /> |
---|
337 | <input type="hidden" name="activity_id" value="{activity_id}" /> |
---|
338 | <input type="hidden" name="find" value="{find2}" /> |
---|
339 | <input type="hidden" name="where" value="{where2}" /> |
---|
340 | <input type="hidden" name="sort_mode" value="{sort_mode}" /> |
---|
341 | <input type="hidden" name="where2" value="{where2}" /> |
---|
342 | <input type="hidden" name="sort_mode2" value="{sort_mode2}" /> |
---|
343 | <input type="hidden" name="filter_type" value="{filter_type_value}" /> |
---|
344 | <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" /> |
---|
345 | <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" /> |
---|
346 | <input type="hidden" name="find" value="{find_value}" /> |
---|
347 | <table border="0" width="100%"> |
---|
348 | <tr class="th"> |
---|
349 | <td> |
---|
350 | <span style="font-weight:bold; margin-right:15px">{lang_List_of_transitions}</span>{lang_From}: {filter_trans_from} |
---|
351 | </td> |
---|
352 | <td> |
---|
353 | <input type="submit" name="filter" value="{lang_Filter}" /> |
---|
354 | </td> |
---|
355 | </tr> |
---|
356 | <!-- BEGIN block_transitions_table --> |
---|
357 | <tr bgcolor="{color_line}"> |
---|
358 | <td> |
---|
359 | <a href="{trans_href_from}">{trans_actFromName}</a> |
---|
360 | <img src='{trans_arrow}' alt='{lang_To}' /> |
---|
361 | <a href="{trans_href_to}">{trans_actToName}</a> |
---|
362 | </td> |
---|
363 | <td> |
---|
364 | <input type="checkbox" name="transition[{trans_actFromId}_{trans_actToId}]" /> |
---|
365 | </td> |
---|
366 | </tr> |
---|
367 | <!-- END block_transitions_table --> |
---|
368 | <!-- BEGIN block_transitions_table_footer --> |
---|
369 | <tr class="th"> |
---|
370 | <td align="right"> |
---|
371 | {img_transition_delete} |
---|
372 | </td> |
---|
373 | <td style="text-align:right;"><input type="submit" name="delete_tran" value="{lang_Delete_selected}" /></td> |
---|
374 | </tr> |
---|
375 | <!-- END block_transitions_table_footer --> |
---|
376 | </table> |
---|
377 | </form> |
---|
378 | </td> |
---|
379 | <td width="50%" valign="top" align="left"> |
---|
380 | <form action="{form_list_transitions_action}" method="post"> |
---|
381 | <input type="hidden" name="p_id" value="{p_id}" /> |
---|
382 | <input type="hidden" name="activity_rd" value="{activity_id}" /> |
---|
383 | <input type="hidden" name="find" value="{find2}" /> |
---|
384 | <input type="hidden" name="where" value="{where2}" /> |
---|
385 | <input type="hidden" name="sort_mode" value="{sort_mode}" /> |
---|
386 | <input type="hidden" name="where2" value="{where2}" /> |
---|
387 | <input type="hidden" name="sort_mode2" value="{sort_mode2}" /> |
---|
388 | <input type="hidden" name="filter_type" value="{filter_type_value}" /> |
---|
389 | <input type="hidden" name="filter_interactive" value="{filter_interactive_value}" /> |
---|
390 | <input type="hidden" name="filter_autoroute" value="{filter_autoroute_value}" /> |
---|
391 | <input type="hidden" name="filter_trans_from" value="{filter_trans_from_value}" /> |
---|
392 | <input type="hidden" name="find" value="{find_value}" /> |
---|
393 | <table class="normal" width="100%"> |
---|
394 | <tr class="th" style="font-weight:bold"> |
---|
395 | <td colspan="2"> |
---|
396 | {lang_Add_a_transition} |
---|
397 | </td> |
---|
398 | </tr> |
---|
399 | <tr class="row_off"> |
---|
400 | <td> |
---|
401 | {lang_From}: |
---|
402 | </td> |
---|
403 | <td width="90%"> |
---|
404 | {add_a_trans_from} |
---|
405 | </td> |
---|
406 | </tr> |
---|
407 | <tr class="row_on"> |
---|
408 | <td> |
---|
409 | {lang_To}: |
---|
410 | </td> |
---|
411 | <td> |
---|
412 | {add_a_trans_to} |
---|
413 | </td> |
---|
414 | </tr> |
---|
415 | <tr class="th"> |
---|
416 | <td align="right"> |
---|
417 | {img_transition_add} |
---|
418 | </td> |
---|
419 | <td> |
---|
420 | <input type="submit" name="add_trans" value="{lang_Add_Transition}" /> |
---|
421 | </td> |
---|
422 | </tr> |
---|
423 | </table> |
---|
424 | </form> |
---|
425 | </td> |
---|
426 | </tr> |
---|
427 | </table> |
---|
428 | <script language="javascript"> |
---|
429 | if (!{expandTable}) |
---|
430 | toggleTableVisibility('activitiesPropertiesTable'); |
---|
431 | |
---|
432 | if (document.getElementById('default_user_option_1').checked) |
---|
433 | toggleDefaultUserVisibility(1); |
---|
434 | else |
---|
435 | toggleDefaultUserVisibility(0); |
---|
436 | </script> |
---|