Line # Revision Author
1 3 ahitrov@rambler.ru <script LANGUAGE="JavaScript">
2
3 function Commit_<% $name %>()
4 {
5 var tmp = Array();
6 for (var j=0;j<document.form.<% $name %>_show.options.length;j++)
7 {
8 if (document.form.includers_show.options[j].selected){
9 tmp[j] = document.form.<% $name %>_show.options[j].value;
10 }
11 }
12 document.form.document.form.<% $name %>.value = tmp.join(',');
13 return true;
14 }
15
16 </script>
17
18 <select multiple size="6" name="<% $name %>_show" style="width:25%;font-family:arial;font-size:9pt;" onChange="javascript:Commit_<% $name %>()">
19 % my @local_checks = split(/,/,$check);
20 % my %ch = map { $_ => 1 } @local_checks;
21 % for my $class (@{ $state->{available_documents} })
22 % {
23 % my $doc = new $class($keeper);
24 <option value="<% $class %>" <% ($ch{$class}) ? 'selected' : '' %>><% $class.' / '.$doc->class_name.' ('.$class.')' %></option>
25 % }
26 </select>
27 <input type="hidden" name="<% $name %>" value="<% $check %>">
28 <%ARGS>
29
30 $name => undef
31 $check => undef
32
33 </%ARGS>
34 <%INIT>
35
36
37 </%INIT>