Bug 4472 - Missing / in img tags breaking xslt (and other img tags)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqplan.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>
3 Budget &amp; fund planning
4 </title>
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
7 <link href="<!-- TMPL_VAR NAME="yuipath" -->/reset/reset.css" rel="stylesheet" type="text/css" />
8 <link href="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts.css" rel="stylesheet" type="text/css" />
9 <link href="<!-- TMPL_VAR NAME="yuipath" -->/menu/assets/menu.css" rel="stylesheet" type="text/css" />
10 <link href="<!-- TMPL_VAR NAME="yuipath" -->/container/assets/skins/sam/container.css"  rel="stylesheet" type="text/css" />
11
12 <script  src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo/yahoo.js" type="text/javascript"></script>
13 <script  src="<!-- TMPL_VAR NAME="yuipath" -->/event/event.js" type="text/javascript"></script>
14 <script  src="<!-- TMPL_VAR NAME="yuipath" -->/dom/dom.js" type="text/javascript"></script>
15 <script  src="<!-- TMPL_VAR NAME="yuipath" -->/menu/menu.js" type="text/javascript"></script>
16 <script  src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo-dom-event/yahoo-dom-event.js"  type="text/javascript"></script>
17
18 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
19 <script type="text/javascript">
20 //<![CDATA[
21 // ---------------------------------------------------------------------
22 // Javascript
23 // ---------------------------------------------------------------------
24     function Check(f) {
25             var ok=1;
26             var _alertString="";
27             var alertString2;
28             var arr = document.getElementsByName('est_total')
29
30             for ( var i=0, len=arr.length; i<len; ++i ){
31                     var tot = arr[i].innerHTML;
32
33                     if (tot == 'NaN') {
34                         _alertString += "\n- " + _("One or more cell values is non-numeric");
35                     }
36             }
37
38             if (_alertString.length==0) {
39
40                 var op  = document.createElement('input');
41                 op.setAttribute("type","hidden");
42                 op.setAttribute("name","op");
43                 op.setAttribute("value","save");   //ohh the pain...
44
45                 document.Aform.appendChild(op);
46                 document.Aform.submit()
47
48             } else {
49                     alertString2  = _("Form not submitted because of the following problem(s)");
50                     alertString2 += "\n------------------------------------------------------------------------------------\n";
51                     alertString2 += _alertString;
52                     alert(alertString2);
53             }
54     }
55
56
57 YAHOO.util.Event.onAvailable("popmenu", function () {
58
59     var itemData  = new Array();
60     table = document.getElementById('plan') 
61     tableTmp =  table.cloneNode(true); 
62     tableTmp.id = 'planTmp';
63
64     <!-- TMPL_LOOP NAME="authvals_row" -->
65         itemData.push( {   text: "<!-- TMPL_VAR NAME="val" -->",  onclick: { fn: addColumn, obj:  ["<!-- TMPL_VAR NAME="colnum" -->",  "<!-- TMPL_VAR NAME="code" -->"]    }    }     );
66
67     <!-- /TMPL_LOOP -->
68     oMenu = new YAHOO.widget.Menu("basicmenu",
69             {  position: "dynamic", itemdata: itemData , clicktohide  : "true" , context:["popmenu","tl","tr"] }
70     );
71
72    oMenu.render("popmenu");
73    YAHOO.util.Event.addListener("add_popmenu_item", "click", oMenu.show, null, oMenu);
74
75 // oMenu.removeItem(2);   // TODO.....
76
77 });
78 //]]>
79 </script>
80
81 </head>
82 <body>
83 <!-- TMPL_INCLUDE NAME="header.inc" -->
84 <!-- TMPL_INCLUDE NAME="budgets-admin-search.inc" -->
85
86 <div id="breadcrumbs">
87     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
88     <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
89     <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo; 
90     <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->">Funds</a> &rsaquo;
91     <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->">Planning</a> &rsaquo;
92 </div>
93
94 <div id="doc3" class="yui-t2">
95 <div id="bd">
96 <div id="yui-main">
97 <div class="yui-b">
98
99
100 <!-- TMPL_INCLUDE NAME="budgets-admin-toolbar.inc" -->
101
102 <br />
103
104 <form method="post" id='Aform' name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
105
106 <fieldset style=" border:2px solid #EEEEEE; " >
107 <legend>Planning for <!-- TMPL_VAR NAME="budget_period_description" --> by <!-- TMPL_VAR NAME="authcat" --></legend>
108     <table class="invis" >
109     <tr><td>
110     <!-- TMPL_IF NAME="show_mine" -->
111         <input type="checkbox" id="show_mine"  name="show_mine" value="1" checked="checked" />
112     <!-- TMPL_ELSE -->
113         <input type="checkbox" id="show_mine"  name="show_mine" value="1"  />
114     <!-- /TMPL_IF -->
115     <label for="show_mine">Show my funds only</label>
116     </td>
117     <td>
118         <label for="authcat"  > Select planning type:</label>
119         <!-- TMPL_VAR NAME="authcat_dropbox" -->
120         <input type="submit" name="option_submit" value="Select" />
121     </td>
122     </tr>
123
124     <tr><td>
125     <!-- TMPL_IF NAME="show_active" -->
126         <input type="checkbox" id="show_active" name="show_active" value="1" checked="checked" />
127     <!-- TMPL_ELSE -->
128         <input type="checkbox" id="show_active" name="show_active" value="1" />
129         <!-- /TMPL_IF -->
130     <label for="show_active">Show active funds only</label>
131     </td>
132     <td></td>
133     </tr>
134
135     <tr><td>
136         <!-- TMPL_IF NAME="show_actual" -->
137             <input type="checkbox"    id="show_actual"   name="show_actual" value="1"   checked="checked" />
138         <!-- TMPL_ELSE -->
139             <input type="checkbox" id="show_actual" name="show_actual" value="1"  />
140         <!-- /TMPL_IF -->
141         <label for="show_actual">Show actual/estimated values:</label>
142     </td>
143     <td></td>
144     </tr>
145     </table>
146 </fieldset>
147
148 <br />
149
150 <!-- Budget Lines -->
151
152     <!-- TMPL_IF NAME="budget_lines" -->
153
154     <!-- TMPL_IF name="cur" --><p><b>Currency = <!-- TMPL_VAR name="cur" --></b></p><!-- TMPL_ELSE --><div class="dialog alert"><h3>No active currency is defined</h3><p>Please <a href="/cgi-bin/koha/admin/currency.pl">specify an active currency</a>.</p></div><!-- /TMPL_IF -->
155
156     <table id="plan" width="100%">
157     <thead>
158     <tr>
159     <th>Fund name</th>
160     <th>Fund total</th>
161
162     <!-- TMPL_LOOP NAME="authvals_row" -->
163          <!-- TMPL_IF NAME="display" -->
164             <th id="<!-- TMPL_VAR NAME="code" -->"   style="text-align: center;"
165                         class="<!-- TMPL_VAR NAME='colnum' -->" >
166         <!-- TMPL_ELSE -->
167             <th id="<!-- TMPL_VAR NAME="code" -->"   style="text-align: center;
168                             display:none;" 
169                         class="<!-- TMPL_VAR NAME='colnum' -->" >
170         <!-- /TMPL_IF -->
171
172     <!-- TMPL_VAR NAME="code" -->&nbsp;<span class="buttonPlus" onclick="delColumn('<!-- TMPL_VAR NAME="colnum" -->', '<!-- TMPL_VAR NAME="code" -->')"  > - &nbsp;</span></th>
173
174     <!-- /TMPL_LOOP -->
175
176     <th>Fund remaining</th>
177
178     <th id='popmenu' style=" text-align: center;" >
179     <span id="add_popmenu_item" class="buttonPlus" > + </span></th>
180     </tr>
181     </thead>
182
183     <tbody>
184     <!-- TMPL_LOOP NAME="budget_lines" -->
185             <!-- TMPL_IF Name="budget_lock" -->
186         <tr  class="highlight"  > 
187             <!--TMPL_ELSE -->
188         <tr > 
189             <!--/TMPL_IF -->
190
191         <td align='left'><!-- TMPL_VAR NAME="budget_name_indent"--></td>
192         <td align='right'><span id='budget_tot_formatted_<!-- TMPL_VAR NAME="budget_id" -->'><!-- TMPL_VAR NAME="budget_amount_formatted"-->&nbsp;</span>
193
194         <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
195         <div style="display:none;" id='budget_tot_<!-- TMPL_VAR NAME="budget_id" -->'><!-- TMPL_VAR NAME="budget_amount"--></div></td>
196
197         <!-- TMPL_LOOP NAME="lines"     -->
198             <!-- TMPL_IF NAME="display" -->
199                 <td class="<!-- TMPL_VAR NAME="colnum"-->">
200             <!-- TMPL_ELSE -->
201                 <td style="display:none;" class="<!-- TMPL_VAR NAME="colnum"-->">
202             <!-- /TMPL_IF -->
203             <table class="invis" width="100%">
204                 <tr>
205                     <!-- TMPL_IF Name="show_actual" -->
206                         <td   width="50%"  align="right" ><!-- TMPL_VAR NAME="actual_amount" --></td>
207                     <!--/TMPL_IF -->
208                 <td align="right">
209
210                 <!--TMPL_IF  Name="budget_lock" -->
211                     <!-- TMPL_VAR NAME="estimated_amount" -->&nbsp;
212                     <input type="hidden" style="text-align: right;"  name='<!-- TMPL_VAR NAME="cell_name"-->' value="<!-- TMPL_VAR NAME="estimated_amount" -->"   />
213                 <!--TMPL_ELSE -->
214                     <input type="text" style="text-align: right;  width:90%; " size='6' name='<!-- TMPL_VAR NAME="cell_name"-->'  value="<!-- TMPL_VAR NAME="estimated_amount" -->"  id='budget_<!-- TMPL_VAR NAME="budget_id"--><!-- TMPL_VAR NAME="colnum"-->' class='plan_entry_<!-- TMPL_VAR NAME="budget_id"-->' onchange="calcTotalRow(this);" />
215                 <!--/TMPL_IF -->
216
217                 </td></tr>
218             </table>
219             </td>
220         <!-- /TMPL_LOOP -->
221
222         <td>
223         <table class="invis" width="100%">
224             <tr>
225        <!-- TMPL_IF Name="show_actual" -->
226             <!-- TMPL_IF NAME="act_negative" -->
227                 <td width="50%" align="right" style="color: red;"> 
228             <!-- TMPL_ELSIF NAME="act_positive" -->
229                 <td width="50%" align="right" style="color: green;"> 
230             <!-- TMPL_ELSE -->
231                 <td width="50%" align="right">
232             <!--/TMPL_IF -->
233                     <!-- TMPL_VAR NAME="budget_act_remain"-->
234         <!-- TMPL_ELSE -->
235             <td width="50%" align="right">
236         <!-- /TMPL_IF -->
237             </td>
238
239         <!-- TMPL_IF NAME="est_negative" -->
240             <td width="50%"    align="right"  style="color: red;" id='budget_est_<!-- TMPL_VAR NAME="budget_id"-->'> 
241         <!-- TMPL_ELSIF NAME="est_positive" -->
242             <td width="50%"    align="right"  style="color: green;" id='budget_est_<!-- TMPL_VAR NAME="budget_id"-->'> 
243         <!-- TMPL_ELSE -->
244             <td width="50%"    align="right" id='budget_est_<!-- TMPL_VAR NAME="budget_id"-->'> 
245         <!--/TMPL_IF --> 
246                 <!-- TMPL_VAR NAME="budget_est_remain"-->&nbsp;    
247             </td>
248             </tr>
249         </table>
250         </td>
251
252         <td align="center">
253              <!-- TMPL_UNLESS Name="budget_lock" -->
254                     <input type="button"  onclick="autoFillRow('<!-- TMPL_VAR NAME="budget_id"-->')" value="Auto-fill row"/>
255             <!-- TMPL_ELSE  -->
256              <div style="color:red;">not owned</div>
257             <!-- /TMPL_UNLESS  -->
258         </td>
259         </tr>
260     <!-- /TMPL_LOOP -->
261     </tbody>
262     </table>
263
264     <!-- TMPL_IF NAME="show_actual" -->
265         <span><b>Each cell contain both actual and estimated values.</b></span><br />
266     <!-- TMPL_ELSE -->
267         <span><b>Cells contain estimated values only.</b></span><br />
268     <!-- /TMPL_IF -->
269     <!-- TMPL_IF name="budget_period_locked" -->
270         <!-- <input STYLE="background: gray;"   type="submit" value="Save" disabled='disabled'/> -->
271     <!-- TMPL_ELSE -->
272         <input type="button"  onclick="Check(this.form)" value="Save"/>
273     <!-- /TMPL_IF -->
274
275
276 <div id='hide_div'>
277     <!-- TMPL_LOOP NAME="authvals_row" -->
278
279      <!-- TMPL_UNLESS Name="display" -->
280         <input type="hidden" value="<!-- TMPL_VAR NAME="code" -->"  name="hide_cols"/>
281      <!-- /TMPL_UNLESS -->
282     <!-- /TMPL_LOOP -->
283
284  </div>
285
286
287 </form>
288
289 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
290 <fieldset class="rows">
291     <ol>
292     <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" />
293     <label class="inline" for="MIME">Into an application
294     </label><!-- TMPL_VAR NAME="CGIextChoice" -->
295     <!-- TMPL_VAR NAME="CGIsepChoice" --> &nbsp;&nbsp;&nbsp;
296     <input type="submit" value="Output"/>
297     <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
298     <input type="hidden" name="output" value="file" />
299     </li></ol>
300     </fieldset>
301 </form>
302
303         <!-- TMPL_ELSE  -->
304 No funds to display for this search criteria
305         <!-- /TMPL_IF   -->
306
307
308 </div>
309 </div>
310 </div>
311 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->