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