adding mike's widgets
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Nov 2005 20:55:24 +0000 (20:55 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Nov 2005 20:55:24 +0000 (20:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1937 dcc99617-32d9-48b4-a31d-7c20da2025e4

14 files changed:
Open-ILS/src/reporter/templates/widgets/relative-timerange.day [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/relative-timerange.month [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/relative-timerange.quarter [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/relative-timerange.week [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/relative-timerange.year [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.day [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.multiquarter [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.multiweek [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.multiyear [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.quarter [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.week [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/specific-timerange.year [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/string-input.initial-substring [new file with mode: 0644]
Open-ILS/src/reporter/templates/widgets/string-input.multistring [new file with mode: 0644]

diff --git a/Open-ILS/src/reporter/templates/widgets/relative-timerange.day b/Open-ILS/src/reporter/templates/widgets/relative-timerange.day
new file mode 100644 (file)
index 0000000..a4d5f15
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 366;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+' days before runtime';
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/relative-timerange.month b/Open-ILS/src/reporter/templates/widgets/relative-timerange.month
new file mode 100644 (file)
index 0000000..1a3384f
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 37;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+' months before runtime';
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/relative-timerange.quarter b/Open-ILS/src/reporter/templates/widgets/relative-timerange.quarter
new file mode 100644 (file)
index 0000000..303b96e
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 37;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+' (calendar) quarters before runtime';
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/relative-timerange.week b/Open-ILS/src/reporter/templates/widgets/relative-timerange.week
new file mode 100644 (file)
index 0000000..5aea847
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 53;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+' weeks before runtime';
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/relative-timerange.year b/Open-ILS/src/reporter/templates/widgets/relative-timerange.year
new file mode 100644 (file)
index 0000000..1b47134
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 37;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+' years before runtime';
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.day b/Open-ILS/src/reporter/templates/widgets/specific-timerange.day
new file mode 100644 (file)
index 0000000..7ca6382
--- /dev/null
@@ -0,0 +1,29 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table ;
+       WRAPPER html/row;
+               INCLUDE html/cell content='Year';
+               INCLUDE html/cell content='Month';
+               INCLUDE html/cell content='Day';
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':year' size=4 value=start.year;
+               END;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':month' size=4 value=start.month;
+               END;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':day' size=4 value=start.day;
+               END;
+       END;
+
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiquarter b/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiquarter
new file mode 100644 (file)
index 0000000..2ffe1b0
--- /dev/null
@@ -0,0 +1,35 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table ;
+
+       WRAPPER html/row;
+               INCLUDE html/cell content='Year';
+               INCLUDE html/cell content='Quarter';
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':year' size=4 value=start.year;
+               END;
+               WRAPPER html/cell;
+                       WRAPPER select name=input_prefix _ ':quarter';
+                               FOR i IN [1,2,3,4];
+                                       INCLUDE option value=i;
+                               END;
+                       END;
+               END;
+               WRAPPER html/cell;
+                       'For ';
+                       INCLUDE text name=input_prefix _ ':quarter-count' value=2;
+                       ' quarters';
+               END;
+       END;
+
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiweek b/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiweek
new file mode 100644 (file)
index 0000000..68ac827
--- /dev/null
@@ -0,0 +1,45 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       'Year: ';
+                       INCLUDE name=input_prefix _ ':year' text size=4 value=start.year;
+               END;
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       'Start week of year: ';
+                       WRAPPER select name=input_prefix _ ':start';
+                               count = 1;
+                               WHILE count < 53;
+                                       INCLUDE option value=count;
+                                       count = count + 1;
+                               END;
+                       END;
+               END;
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       'End week of year: ';
+                       WRAPPER select name=input_prefix _ ':end';
+                               count = 1;
+                               WHILE count < 53;
+                                       INCLUDE option value=count;
+                                       count = count + 1;
+                               END;
+                       END;
+               END;
+       END;
+END;
+
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiyear b/Open-ILS/src/reporter/templates/widgets/specific-timerange.multiyear
new file mode 100644 (file)
index 0000000..744a678
--- /dev/null
@@ -0,0 +1,27 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table ;
+
+       WRAPPER html/row;
+               INCLUDE html/cell content='Year';
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':year' size=4 value=start.year;
+               END;
+               WRAPPER html/cell;
+                       'For ';
+                       INCLUDE text name=input_prefix _ ':year-count' value=2;
+                       ' years';
+               END;
+       END;
+
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.quarter b/Open-ILS/src/reporter/templates/widgets/specific-timerange.quarter
new file mode 100644 (file)
index 0000000..9bacd82
--- /dev/null
@@ -0,0 +1,30 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table ;
+
+       WRAPPER html/row;
+               INCLUDE html/cell content='Year';
+               INCLUDE html/cell content='Quarter';
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix _ ':year' size=4 value=start.year;
+               END;
+               WRAPPER html/cell;
+                       WRAPPER select name=input_prefix _ ':quarter';
+                               FOR i IN [1,2,3,4];
+                                       INCLUDE option value=i;
+                               END;
+                       END;
+               END;
+       END;
+
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.week b/Open-ILS/src/reporter/templates/widgets/specific-timerange.week
new file mode 100644 (file)
index 0000000..762d165
--- /dev/null
@@ -0,0 +1,14 @@
+[%
+
+PROCESS inputs;
+
+'Week of year: ';
+WRAPPER select name=input_prefix;
+       count = 1;
+       WHILE count < 53;
+               INCLUDE option value=count;
+               count = count + 1;
+       END;
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.year b/Open-ILS/src/reporter/templates/widgets/specific-timerange.year
new file mode 100644 (file)
index 0000000..a7746e4
--- /dev/null
@@ -0,0 +1,22 @@
+[%
+
+USE date;
+USE start = DateTime(now = 1);
+
+PROCESS inputs;
+
+WRAPPER html/table ;
+
+       WRAPPER html/row;
+               INCLUDE html/cell content='Year';
+       END;
+
+       WRAPPER html/row;
+               WRAPPER html/cell;
+                       INCLUDE text name=input_prefix size=4 value=start.year;
+               END;
+       END;
+
+END;
+
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/string-input.initial-substring b/Open-ILS/src/reporter/templates/widgets/string-input.initial-substring
new file mode 100644 (file)
index 0000000..23a56dc
--- /dev/null
@@ -0,0 +1,4 @@
+[%
+PROCESS inputs;
+INCLUDE text name=input_prefix size=20;
+%]
diff --git a/Open-ILS/src/reporter/templates/widgets/string-input.multistring b/Open-ILS/src/reporter/templates/widgets/string-input.multistring
new file mode 100644 (file)
index 0000000..2d4ebbb
--- /dev/null
@@ -0,0 +1,4 @@
+[%
+PROCESS inputs;
+INCLUDE textarea name=input_prefix;
+%]