]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/widgets/specific-timerange.day
17d017d03302b18901b50d3ac9a02e8f10d3aa77
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / specific-timerange.day
1 [%
2
3 USE date;
4 USE start = DateTime(now = 1);
5
6 PROCESS inputs;
7
8 WRAPPER html/table ;
9         WRAPPER html/row;
10                 INCLUDE html/cell content='Year';
11                 INCLUDE html/cell content='Month';
12                 INCLUDE html/cell content='Day';
13         END;
14
15         y = (current_value.year ? current_value.year : start.year);
16         m = (current_value.month ? current_value.month : start.month);
17         d = (current_value.day ? current_value.day : start.day);
18
19         WRAPPER html/row;
20                 WRAPPER html/cell;
21                         INCLUDE text name=input_prefix _ ':year' size=4 value=y;
22                 END;
23                 WRAPPER html/cell;
24                         INCLUDE text name=input_prefix _ ':month' size=4 value=m;
25                 END;
26                 WRAPPER html/cell;
27                         INCLUDE text name=input_prefix _ ':day' size=4 value=d;
28                 END;
29         END;
30
31 END;
32
33 %]