]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/widgets/specific-timerange.multimonth
allow clone+edit of existing stage3 reports
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / specific-timerange.multimonth
1 [%
2
3 USE date;
4 USE start = DateTime(now = 1);
5 USE end = DateTime(now = 1);
6
7 PROCESS inputs;
8
9 WRAPPER html/table ;
10         WRAPPER html/row;
11                 INCLUDE html/cell colspan=2 align='center' content='Start time';
12         END;
13
14         WRAPPER html/row;
15                 INCLUDE html/cell content='Year';
16                 INCLUDE html/cell content='Month';
17         END;
18
19         syl = 'start-year';
20         sml = 'start-month';
21         eyl = 'end-year';
22         eml = 'end-month';
23
24         sy = (current_value.$syl ? current_value.$syl : start.year);
25         sm = (current_value.$sml ? current_value.$sml : start.month);
26         ey = (current_value.$eyl ? current_value.$eyl : end.year);
27         em = (current_value.$eml ? current_value.$eml : end.month);
28
29         WRAPPER html/row;
30                 WRAPPER html/cell;
31                         INCLUDE text name=input_prefix _ ':start-year' size=4 value=sy;
32                 END;
33                 WRAPPER html/cell;
34                         INCLUDE text name=input_prefix _ ':start-month' size=4 value=sm;
35                 END;
36         END;
37
38         WRAPPER html/row;
39                 INCLUDE html/cell colspan=2 align='center' content='End time';
40         END;
41
42         WRAPPER html/row;
43                 INCLUDE html/cell content='Year';
44                 INCLUDE html/cell content='Month';
45         END;
46
47         WRAPPER html/row;
48                 WRAPPER html/cell;
49                         INCLUDE text name=input_prefix _ ':end-year' size=4 value=ey;
50                 END;
51                 WRAPPER html/cell;
52                         INCLUDE text name=input_prefix _ ':end-month' size=4 value=em;
53                 END;
54         END;
55 END;
56
57 %]