View | Details | Raw Unified | Return to bug 4281
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-40 / +4 lines)
Lines 21-27 Link Here
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/guided_reports.pl">Guided reports wizard</a>
22
[% IF ( new_dictionary ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Name the new definition</strong>
22
[% IF ( new_dictionary ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Name the new definition</strong>
23
[% ELSIF ( step_2 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 2: Choose the area </strong> 
23
[% ELSIF ( step_2 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 2: Choose the area </strong> 
24
[% ELSIF ( step_3 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 3: Choose columns </strong> 
24
[% ELSIF ( step_3 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 3: Choose a column </strong>
25
[% ELSIF ( step_4 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 4: Specify a value </strong> 
25
[% ELSIF ( step_4 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 4: Specify a value </strong> 
26
[% ELSIF ( step_5 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 5: Confirm definition</strong> 
26
[% ELSIF ( step_5 ) %] &rsaquo; <a href="/cgi-bin/koha/reports/dictionary.pl">Dictionary</a> &rsaquo; <strong>Step 5: Confirm definition</strong> 
27
[% ELSE %] &rsaquo; <strong> Dictionary </strong>[% END %]</div>
27
[% ELSE %] &rsaquo; <strong> Dictionary </strong>[% END %]</div>
Lines 136-148 Link Here
136
<h3>Add new definition</h3>
136
<h3>Add new definition</h3>
137
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
137
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">      
138
<fieldset class="rows">
138
<fieldset class="rows">
139
<legend>Step 3 of 5: Choose columns</legend>
139
<legend>Step 3 of 5: Choose a column</legend>
140
<input type="hidden" name="area" value="[% area %]" />
140
<input type="hidden" name="area" value="[% area %]" />
141
<input type="hidden" name="definition_name" value="[% definition_name %]" />
141
<input type="hidden" name="definition_name" value="[% definition_name %]" />
142
<input type="hidden" name="definition_description" value="[% definition_description %]" />
142
<input type="hidden" name="definition_description" value="[% definition_description %]" />
143
143
144
<table style="border: 0;margin:1em;"><tr>
144
<select id="availableColumns" name="columns" size="25" style="width:200px;height:300px;margin:1em;">
145
<td style="border: 0;"><select id="availableColumns" name="oldcolumns2" size="25" style="width:200px;height:300px;">    
146
[% FOREACH column IN columns %]
145
[% FOREACH column IN columns %]
147
[% IF ( column.table ) %]
146
[% IF ( column.table ) %]
148
[% IF ( loop.first ) %]                              
147
[% IF ( loop.first ) %]                              
Lines 161-171 Link Here
161
[% END %]              
160
[% END %]              
162
[% END %]                
161
[% END %]                
163
</optgroup>
162
</optgroup>
164
</select></td>
163
</select>
165
166
<td style="border: 0;"><input type="button" name="Add" value="Add" class="button"  style="width : 6em; margin-bottom : .5em;" onclick="addColumn()" /><br /><input type="button" name="delete" value="&lt;&lt; Delete" class="button" style="width : 6em;"  onclick="delColumn()" />  </td>
167
168
<td style="border: 0;"><select id="selectedColumns" name="columns" size="25" style="width:200px;height:300px;"></select>     </td>   </tr></table>     
169
164
170
<input type="hidden" name="phase" value="New Term step 4" />
165
<input type="hidden" name="phase" value="New Term step 4" />
171
</fieldset>
166
</fieldset>
Lines 282-315 Link Here
282
[% INCLUDE 'guided-reports-view.inc' %]
277
[% INCLUDE 'guided-reports-view.inc' %]
283
</div>
278
</div>
284
</div>
279
</div>
285
<script type="text/javascript">                            
286
//<![CDATA[
287
function setObjects() {                    
288
    selectedColumnsObj=document.getElementById('selectedColumns');           
289
	availableColumnsObj=document.getElementById('availableColumns');   
290
}              
291
setObjects();                          
292
293
function addColumn() {                             
294
  for (i=0;i<availableColumnsObj.length;i++) {   
295
    if (availableColumnsObj.options[i].selected==true) {     
296
	  var newColumnObj=document.createElement("OPTION");                           
297
	  newColumnObj.value=availableColumnsObj.options[i].value;          
298
	  newColumnObj.text=availableColumnsObj.options[i].text;              
299
	  selectedColumnsObj.appendChild(newColumnObj);          
300
	  newColumnObj.selected=true;    
301
	}        
302
  }                        
303
}   
304
305
function delColumn() {                   
306
  for (i=0;i<=selectedColumnsObj.options.length;i++) {       
307
    if (selectedColumnsObj.options.selectedIndex>=0) {    
308
	  selectedColumnsObj.remove(selectedColumnsObj.options.selectedIndex)        
309
    }  
310
  }
311
}
312
//]]>
313
</script>
314
315
[% INCLUDE 'intranet-bottom.inc' %]
280
[% INCLUDE 'intranet-bottom.inc' %]
316
- 

Return to bug 4281