More work on the dictionary, nearly have all the interface done
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / guided_reports_start.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha -- Reports</title>
3
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
6 </head>
7 <body>
8 <!-- TMPL_INCLUDE NAME="header.inc" -->
9 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation.pl">Reports</a> &rsaquo; <strong>Guided Reports Wizard </strong></div>
12
13 <div id="doc3" class="yui-t2">
14
15    <div id="bd">
16     <div id="yui-main">
17     <div class="yui-b">
18
19         <div class="details">
20
21 <!-- TMPL_IF NAME="start" -->
22         <form action="/cgi-bin/koha/reports/guided_reports.pl">
23                 <input type="submit" name="phase" value="Build new"/>
24                 <input type="submit" name="phase" value="Used saved"/>
25                 <input type="submit" name="phase" value="Create report from SQL"/>
26                 <input type="submit" name="phase" value="Create Compound Report"/>
27                 <input type="submit" name="phase" value="View Dictionary"/>
28         </form>
29 <!-- /TMPL_IF -->
30
31 <!-- TMPL_IF NAME="saved1" -->
32 Choose the report from the list
33 <form action="/cgi-bin/koha/reports/guided_reports.pl">
34 <select name="reports">
35 <!-- TMPL_LOOP NAME="savedreports" -->
36 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="report_name"--></option>
37 <!-- /TMPL_LOOP -->
38 </select>
39 <input type="submit" name="phase" value="Run this report">
40 </form>
41 <!-- /TMPL_IF -->
42
43
44 <!-- TMPL_IF NAME="build1" -->
45 <h3>Step 1 of 6: Choose a Module to Report on</h3>
46 <form action="/cgi-bin/koha/reports/guided_reports.pl">
47 <select name="areas">
48 <!-- TMPL_LOOP NAME="areas" -->
49 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name"--></option>
50 <!-- /TMPL_LOOP -->
51 </select>
52 <br />
53 <input type="submit" name="phase" value="Report on this Area">
54 </form>
55 <!-- /TMPL_IF -->
56
57
58 <!-- TMPL_IF NAME="build2" -->
59 <h3>Step 2 of 6: Pick a Report Type</h3>
60 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
61 <input type="hidden" name="area" value="<!-- TMPL_VAR NAME="area" -->">
62 <select name="types">
63 <!-- TMPL_LOOP NAME="types" -->
64 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name"--></option>
65 <!-- /TMPL_LOOP -->
66 </select>
67 <br />
68 <input type="submit" name="phase" value="Choose this type">
69 <br />
70 </form>
71 Tabular:
72 <img src="http://staff-crc.dev.kohalibrary.com/intranet-tmpl/prog/img/reports-tabular-graphic.gif" />
73 Summary:
74 <img src="http://staff-crc.dev.kohalibrary.com/intranet-tmpl/prog/img/reports-summary-graphic.gif" />
75 Matrix:
76 <img src="http://staff-crc.dev.kohalibrary.com/intranet-tmpl/prog/img/reports-matrix-graphic.gif" />
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF NAME="build3" -->
80 <h3>Step 3 of 6: Select Columns for Display</h3>
81 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
82         <input type="hidden" name="area" value="<!-- TMPL_VAR NAME="area" -->">
83         <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
84         <select id="availableColumns" name="oldcolumns2" multiple size="25" style="width:200px;height:300px;">
85 <!-- TMPL_LOOP NAME="columns" -->
86 <!-- TMPL_IF NAME="table" -->
87
88 <!-- TMPL_IF NAME="__first__" -->
89 <!-- TMPL_ELSE -->
90 </optgroup>
91 <!-- /TMPL_IF -->
92
93 <optgroup label="<!-- TMPL_VAR NAME="table"-->">
94 <!-- TMPL_ELSE -->
95 <option value="<!-- TMPL_VAR NAME="name" -->">
96 <!-- TMPL_IF NAME="description" --><!-- TMPL_VAR NAME="description" -->
97 <!-- TMPL_ELSE -->
98 <!-- TMPL_VAR NAME="name" -->
99 <!-- /TMPL_IF -->
100 <!-- /TMPL_IF -->
101 </option>
102 <!-- /TMPL_LOOP -->
103 </select>
104 <input type="button" name="Add" value="Add" class="button" onClick="addColumn()"/>
105 <select id="selectedColumns" name="columns" multiple size="25" style="width:200px;height:300px;"></select>
106 <input type="button" name="delete" value="delete" class="button" onClick="delColumn()"/>
107
108 <input type="submit" name="phase" value="Choose these columns">
109 </form>
110 <!-- /TMPL_IF -->
111
112 <!-- TMPL_IF NAME="build4" -->
113 <h3>Step 4 of 6: Select Criteria to Limit on </h3>
114
115 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post" >
116 <input type="hidden" name="area" value="<!-- TMPL_VAR NAME="area" -->">
117 <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
118 <input type="hidden" name="column" value="<!-- TMPL_VAR NAME="column" -->">
119 <!-- TMPL_LOOP NAME="criteria" -->
120 <input type=checkbox name="criteria_column" value="<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="description" --> = 
121 <!-- TMPL_IF NAME="date" -->
122 <input type="text" size="10" id="<!-- TMPL_VAR NAME="name" -->_value" name="<!-- TMPL_VAR NAME="name" -->_value" value="" >                                             
123 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="buttonfrom1" style="cursor: pointer;"  />                 
124 <script type="text/javascript">   
125 Calendar.setup({  
126 inputField     : "<!-- TMPL_VAR NAME="name" -->_value",                               
127 ifFormat       : "%Y-%m-%d",                               
128 button         : "buttonfrom1",                               
129 align          : "Tl" 
130 });     
131 </script>          
132
133 <!-- TMPL_ELSE -->
134 <select name="<!-- TMPL_VAR NAME="name" -->_value">
135 <!-- TMPL_LOOP NAME="values" -->
136 <option value="<!-- TMPL_VAR NAME="availablevalues"-->"><!-- TMPL_VAR NAME="availablevalues" --></option>
137 <!-- /TMPL_LOOP -->
138 </select>
139 <!-- /TMPL_IF -->
140 <br />
141 <!-- /TMPL_LOOP -->
142 <br />
143 <input type="submit" name="phase" value="Choose these criteria">
144 </form>
145 <!-- /TMPL_IF -->
146
147
148 <!-- TMPL_IF NAME="build5" -->
149 <h3>Step 5 of 6: Pick which columns to total</h3>
150 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
151 <input type="hidden" name="area" value="<!-- TMPL_VAR NAME="area" -->">
152 <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
153 <input type="hidden" name="column" value="<!-- TMPL_VAR NAME="column" -->">
154 <input type="hidden" name="criteria" value="<!-- TMPL_VAR NAME="criteriastring" -->">
155 <!-- TMPL_LOOP NAME="total_by" -->
156 <input type=checkbox name="total_by" value="<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="name"-->
157 <select name="<!-- TMPL_VAR NAME="name" -->_tvalue">
158
159 <!-- TMPL_LOOP NAME="select" -->
160 <option value="<!-- TMPL_VAR NAME="value"-->"><!-- TMPL_VAR NAME="value" --></option>
161 <!-- /TMPL_LOOP -->
162 </select>
163
164 <br />
165 <!-- /TMPL_LOOP -->
166 <br />
167 <input type="submit" name="phase" value="Choose Totals">
168 </form>
169 <!-- /TMPL_IF -->
170
171
172 <!-- TMPL_IF NAME="build6" -->
173 <h3>Step 6 of 6: Select the ordering</h3>
174 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
175 <input type="hidden" name="area" value="<!-- TMPL_VAR NAME="area" -->">
176 <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
177 <input type="hidden" name="column" value="<!-- TMPL_VAR NAME="column" -->">
178 <input type="hidden" name="criteria" value="<!-- TMPL_VAR NAME="criteriastring" -->">
179 <input type="hidden" name="totals" value="<!-- TMPL_VAR NAME="totals" -->">
180 <!-- TMPL_LOOP NAME="order_by" -->
181 <input type=checkbox name="order_by" value="<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="name"-->
182 <select name="<!-- TMPL_VAR NAME="name" -->_ovalue">
183
184 <!-- TMPL_LOOP NAME="select" -->
185 <option value="<!-- TMPL_VAR NAME="value"-->"><!-- TMPL_VAR NAME="value" --></option>
186 <!-- /TMPL_LOOP -->
187 </select>
188
189 <br />
190 <!-- /TMPL_LOOP -->
191 <br />
192 <input type="submit" name="phase" value="Build Report">
193 </form>
194 <!-- /TMPL_IF -->
195
196
197 <!-- TMPL_IF NAME="showreport" -->
198 <!-- TMPL_VAR NAME="sql" -->
199
200 <p>
201 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
202 <input type="hidden" name="sql" value="<!-- TMPL_VAR NAME="sql" -->">
203 <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
204 <input type="submit" name="phase" value="Save">  <input type="submit" name="phase" value="Execute">
205 </form>
206 <!-- /TMPL_IF -->
207
208 <!-- TMPL_IF NAME="save" -->
209 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
210 <input type="hidden" name="sql" value="<!-- TMPL_VAR NAME="sql" -->">
211 <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->">
212 Report Name: <input type="text" name="reportname"> <br />
213 Notes: <textarea name="notes"></textarea><br />
214 <input type="submit" name="phase" value="Save Report">
215 </form>
216 <!-- /TMPL_IF -->
217
218 <!-- TMPL_IF NAME="execute" -->
219 Show results
220 <table>
221 <!-- TMPL_LOOP NAME="results" -->
222 <!-- TMPL_VAR NAME="row" -->
223 <!-- /TMPL_LOOP -->
224 </table>
225 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
226 <select name="format">
227 <option value="csv">Comma Separated Text</option>
228 <option value="tab">Tab Separated Text</option>
229 </select>
230 <input type="submit" name="phase" value="Export">
231 <input type="hidden" name="sql" value="<!-- TMPL_VAR NAME="sql" -->">
232 </form>
233 <!-- /TMPL_IF -->
234
235 <!-- TMPL_IF NAME="create" -->
236 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
237 Report Name: <input type="text" name="reportname"> <br />
238 Type:
239 <select name="types">
240 <!-- TMPL_LOOP NAME="types" -->
241 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name"--></option>
242 <!-- /TMPL_LOOP -->
243 </select>
244 <br />
245 SQl: <textarea name="sql" cols=30 rows=10></textarea><br />
246 <input type="submit" name="phase" value="Save Report">
247 </form>
248 <!-- /TMPL_IF -->
249
250 <!-- TMPL_IF NAME="compound" -->
251 <form action="/cgi-bin/koha/reports/guided_reports.pl" method="post">
252 Master: <select name="master">
253 <!-- TMPL_LOOP NAME="savedreports" -->
254 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="report_name"--></option>
255 <!-- /TMPL_LOOP -->
256 </select>
257  &nbsp;
258 Sub report:<select name="subreport">
259 <!-- TMPL_LOOP NAME="savedreports" -->
260 <option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="report_name"--></option>
261 <!-- /TMPL_LOOP -->
262 </select>
263 <br />
264 <input type="submit" name="phase" value="Save Compound">
265 </form>
266 <!-- /TMPL_IF -->
267
268 <!-- TMPL_IF NAME="save_compound" -->
269 <!-- TMPL_VAR NAME="master" --> <br />
270 <!-- TMPL_VAR NAME="subsql" -->
271 <!-- /TMPL_IF -->
272 </div>
273 </div>
274 </div>
275 <div class="yui-b">
276 <!-- TMPL_INCLUDE NAME="guided-reports-view.inc" -->
277 </div>
278 </div>
279 <script type="text/javascript">
280 function setObjects() {
281         selectedColumnsObj=document.getElementById('selectedColumns');
282         availableColumnsObj=document.getElementById('availableColumns');
283 }
284 setObjects();
285
286 function addColumn() {
287         for (i=0;i<availableColumnsObj.length;i++) {
288                 if (availableColumnsObj.options[i].selected==true) {
289                         var newColumnObj=document.createElement("OPTION");
290                         newColumnObj.value=availableColumnsObj.options[i].value;
291                         newColumnObj.text=availableColumnsObj.options[i].text;
292                         selectedColumnsObj.appendChild(newColumnObj);
293                         newColumnObj.selected=true;
294                 }
295         }
296 }
297
298 function delColumn() {
299         for (i=0;i<=selectedColumnsObj.options.length;i++) {
300                 if (selectedColumnsObj.options.selectedIndex>=0)
301                 selectedColumnsObj.remove(selectedColumnsObj.options.selectedIndex)
302         }
303 }
304 </script>
305 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->