]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/widgets/specific-timerange.multiweek
big ol reporter cleanup for the meeting
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / specific-timerange.multiweek
1 [%
2
3 USE date;
4 USE start = DateTime(now = 1);
5
6 PROCESS inputs;
7
8 BLOCK editor;
9
10 WRAPPER html/table;
11
12         WRAPPER html/row;
13                 WRAPPER html/cell;
14                         'Year: ';
15                         INCLUDE name=input_prefix _ ':year' text size=4 value=(current_value.year ? current_value.year : start.year);
16                 END;
17         END;
18
19         WRAPPER html/row;
20                 WRAPPER html/cell;
21                         'Start week of year: ';
22                         WRAPPER select name=input_prefix _ ':start';
23                                 count = 1;
24                                 WHILE count < 53;
25                                         selected = 0;
26                                         IF count == current_value.start;
27                                                 selected = 1;
28                                         END;
29                                         INCLUDE option value=count;
30                                         count = count + 1;
31                                 END;
32                         END;
33                 END;
34         END;
35
36         WRAPPER html/row;
37                 WRAPPER html/cell;
38                         'End week of year: ';
39                         WRAPPER select name=input_prefix _ ':end';
40                                 count = 1;
41                                 WHILE count < 53;
42                                         selected = 0;
43                                         IF count == current_value.end;
44                                                 selected = 1;
45                                         END;
46                                         INCLUDE option value=count;
47                                         count = count + 1;
48                                 END;
49                         END;
50                 END;
51         END;
52 END;
53 END;
54
55 BLOCK display;
56 current_value.year _ ', weeks ' _ current_value.start _ ' through ' _ current_value.end;
57 END;
58
59 %]