adding widgets
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / specific-timerange.any
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=6 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                 INCLUDE html/cell content='Day';
18                 INCLUDE html/cell content='Hour';
19                 INCLUDE html/cell content='Minute';
20                 INCLUDE html/cell content='Second';
21         END;
22
23         WRAPPER html/row;
24                 WRAPPER html/cell;
25                         INCLUDE text name=input_prefix _ ':start:year' size=4 value=start.year;
26                 END;
27                 WRAPPER html/cell;
28                         INCLUDE text name=input_prefix _ ':start:month' size=4 value=start.month;
29                 END;
30                 WRAPPER html/cell;
31                         INCLUDE text name=input_prefix _ ':start:day' size=4 value=start.day;
32                 END;
33                 WRAPPER html/cell;
34                         INCLUDE text name=input_prefix _ ':start:hour' size=4 value=start.hour;
35                 END;
36                 WRAPPER html/cell;
37                         INCLUDE text name=input_prefix _ ':start:minute' size=4 value=start.minute;
38                 END;
39                 WRAPPER html/cell;
40                         INCLUDE text name=input_prefix _ ':start:second' size=4 value=start.second;
41                 END;
42         END;
43
44         WRAPPER html/row;
45                 INCLUDE html/cell colspan=6 align='center' content='End time';
46         END;
47
48         WRAPPER html/row;
49                 INCLUDE html/cell content='Year';
50                 INCLUDE html/cell content='Month';
51                 INCLUDE html/cell content='Day';
52                 INCLUDE html/cell content='Hour';
53                 INCLUDE html/cell content='Minute';
54                 INCLUDE html/cell content='Second';
55         END;
56
57         WRAPPER html/row;
58                 WRAPPER html/cell;
59                         INCLUDE text name=input_prefix _ ':end:year' size=4 value=end.year;
60                 END;
61                 WRAPPER html/cell;
62                         INCLUDE text name=input_prefix _ ':end:month' size=4 value=end.month;
63                 END;
64                 WRAPPER html/cell;
65                         INCLUDE text name=input_prefix _ ':end:day' size=4 value=end.day;
66                 END;
67                 WRAPPER html/cell;
68                         INCLUDE text name=input_prefix _ ':end:hour' size=4 value=end.hour;
69                 END;
70                 WRAPPER html/cell;
71                         INCLUDE text name=input_prefix _ ':end:minute' size=4 value=end.minute;
72                 END;
73                 WRAPPER html/cell;
74                         INCLUDE text name=input_prefix _ ':end:second' size=4 value=end.second;
75                 END;
76         END;
77 END;
78
79 %]