1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › [% branchname %] Calendar</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script language="JavaScript" type="text/javascript">
9 var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
11 /* Creates all the structures to deal with all diferents kinds of holidays */
12 var week_days = new Array();
13 var holidays = new Array();
14 var holidates = new Array();
15 var exception_holidays = new Array();
16 var day_month_holidays = new Array();
17 var hola= "[% code %]";
18 [% FOREACH WEEK_DAYS_LOO IN WEEK_DAYS_LOOP %]
19 week_days["[% WEEK_DAYS_LOO.KEY %]"] = {title:"[% WEEK_DAYS_LOO.TITLE %]", description:"[% WEEK_DAYS_LOO.DESCRIPTION %]"};
21 [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
22 holidates.push("[% HOLIDAYS_LOO.KEY %]");
23 holidays["[% HOLIDAYS_LOO.KEY %]"] = {title:"[% HOLIDAYS_LOO.TITLE %]", description:"[% HOLIDAYS_LOO.DESCRIPTION %]"};
26 [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
27 exception_holidays["[% EXCEPTION_HOLIDAYS_LOO.KEY %]"] = {title:"[% EXCEPTION_HOLIDAYS_LOO.TITLE %]", description:"[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION %]"};
29 [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
30 day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION %]"};
33 function holidayOperation(formObject, opType) {
34 var op = document.getElementsByName('operation');
39 // This function shows the "Show Holiday" panel //
40 function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description, holidayType) {
41 $("#newHoliday").slideUp("fast");
42 $("#showHoliday").slideDown("fast");
43 $('#showDaynameOutput').html(dayName);
44 $('#showDayname').val(dayName);
45 $('#showBranchNameOutput').html($("#branch :selected").text());
46 $('#showBranchName').val($("#branch").val());
47 $('#showDayOutput').html(day);
48 $('#showDay').val(day);
49 $('#showMonthOutput').html(month);
50 $('#showMonth').val(month);
51 $('#showYearOutput').html(year);
52 $('#showYear').val(year);
53 $('#showDescription').val(description);
54 $('#showWeekday:first').val(weekDay);
55 $('#showTitle').val(title);
56 $('#showHolidayType').val(holidayType);
58 if (holidayType == 'exception') {
59 $("#showOperationDelLabel").html(_('Delete this exception.'));
60 $("#holtype").attr("class","key exception").html(_("Holiday exception"));
61 } else if(holidayType == 'weekday') {
62 $("#showOperationDelLabel").html(_('Delete this holiday.'));
63 $("#holtype").attr("class","key repeatableweekly").html(_("Holiday repeating weekly"));
64 } else if(holidayType == 'daymonth') {
65 $("#showOperationDelLabel").html(_('Delete this holiday.'));
66 $("#holtype").attr("class","key repeatableyearly").html(_("Holiday repeating yearly"));
68 $("#showOperationDelLabel").html(_('Delete this holiday.'));
69 $("#holtype").attr("class","key holiday").html(_("Unique holiday"));
72 if (exceptionPosibility == 1) {
73 $("#exceptionPosibility").parent().show();
75 $("#exceptionPosibility").parent().hide();
79 // This function shows the "Add Holiday" panel //
80 function newHoliday (dayName, day, month, year, weekDay) {
81 $("#showHoliday").slideUp("fast");
82 $("#newHoliday").slideDown("fast");
83 $("#newDaynameOutput").html(dayName);
84 $("#newDayname").val(dayName);
85 $("#newBranchNameOutput").html($('#branch :selected').text());
86 $("#newBranchName").val($('#branch').val());
87 $("#newDayOutput").html(day);
88 $("#newDay").val(day);
89 $("#newMonthOutput").html(month);
90 $("#newMonth").val(month);
91 $("#newYearOutput").html(year);
92 $("#newYear").val(year);
93 $("#newWeekday:first").val(weekDay);
96 function hidePanel(aPanelName) {
97 $("#"+aPanelName).slideUp("fast");
100 function changeBranch () {
101 var branch = $("#branch option:selected").val();
102 location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch + '&calendardate=' + "[% calendardate %]";
106 newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
109 /* This function gives css clases to each kind of day */
110 function dateStatusHandler(date) {
111 date = new Date(date);
112 var day = date.getDate();
113 var month = date.getMonth() + 1;
114 var year = date.getFullYear();
115 var weekDay = date.getDay();
116 var dayMonth = month + '/' + day;
117 var dateString = year + '/' + month + '/' + day;
118 if (exception_holidays[dateString] != null) {
119 return [true, "exception", "Exception: "+exception_holidays[dateString].title];
120 } else if ( week_days[weekDay] != null ){
121 return [true, "repeatableweekly", "Weekly holdiay: "+week_days[weekDay].title];
122 } else if ( day_month_holidays[dayMonth] != null ) {
123 return [true, "repeatableyearly", "Yearly holdiay: "+day_month_holidays[dayMonth].title];
124 } else if (holidays[dateString] != null) {
125 return [true, "holiday", "Single holiday: "+holidays[dateString].title];
127 return [true, "normalday", "Normal day"];
131 /* This function is in charge of showing the correct panel considering the kind of holiday */
132 function dateChanged(calendar) {
133 calendar = new Date(calendar);
134 var day = calendar.getDate();
135 var month = calendar.getMonth() + 1;
136 var year = calendar.getFullYear();
137 var weekDay = calendar.getDay();
138 var dayName = weekdays[weekDay];
139 var dayMonth = month + '/' + day;
140 var dateString = year + '/' + month + '/' + day;
141 if (holidays[dateString] != null) {
142 showHoliday(0, dayName, day, month, year, weekDay, holidays[dateString].title, holidays[dateString].description, 'ymd');
143 } else if (exception_holidays[dateString] != null) {
144 showHoliday(0, dayName, day, month, year, weekDay, exception_holidays[dateString].title, exception_holidays[dateString].description, 'exception');
145 } else if (week_days[weekDay] != null) {
146 showHoliday(1, dayName, day, month, year, weekDay, week_days[weekDay].title, week_days[weekDay].description, 'weekday');
147 } else if (day_month_holidays[dayMonth] != null) {
148 showHoliday(1, dayName, day, month, year, weekDay, day_month_holidays[dayMonth].title, day_month_holidays[dayMonth].description, 'daymonth');
150 newHoliday(dayName, day, month, year, weekDay);
154 $(document).ready(function() {
156 [% IF ( dateformat_metric ) %] $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html
162 var datepattern = new RegExp("[0-9]\/[0-9]");
163 if( datepattern.test(s)){ // sorting a date without a year: "01/12"
164 var dateparts = s.split("/").reverse().join("-"); // build an ISO date to be sorted as text
165 s = "2000-" + dateparts; // use 2000 as the default year
173 $("#branch").change(function(){
176 $("#holidayexceptions").tablesorter({[% IF ( dateformat_metric ) %]
177 dateFormat: 'uk',[% END %]
178 sortList: [[0,0]], widgets: ['zebra']
180 $("#holidayweeklyrepeatable").tablesorter({[% IF ( dateformat_metric ) %]
181 dateFormat: 'uk',[% END %]
182 sortList: [[0,0]], widgets: ['zebra']
184 $("#holidaysyearlyrepeatable").tablesorter({[% IF ( dateformat_metric ) %]
187 sorter : 'shortDates'
190 sortList: [[0,0]], widgets: ['zebra']
192 $("#holidaysunique").tablesorter({[% IF ( dateformat_metric ) %]
193 dateFormat: 'uk',[% END %]
194 sortList: [[0,0]], widgets: ['zebra']
196 $("a.helptext").click(function(){
197 $(this).parent().find(".hint").toggle(); return false;
199 $("#dateofrange").datepicker();
200 $("#datecancelrange").datepicker();
201 $("#dateofrange").each(function () { this.value = "" });
202 $("#datecancelrange").each(function () { this.value = "" });
203 $("#jcalendar-container").datepicker({
204 beforeShowDay: function(thedate) {
205 var day = thedate.getDate();
206 var month = thedate.getMonth() + 1;
207 var year = thedate.getFullYear();
208 var dateString = year + '/' + month + '/' + day;
209 return dateStatusHandler(dateString);
211 onSelect: function(dateText, inst) {
212 dateChanged($(this).datepicker("getDate"));
214 defaultDate: new Date("[% keydate %]")
219 <style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; }
220 .ui-datepicker { font-size : 150%; }
221 .ui-datepicker th, .ui-datepicker .ui-datepicker-title select { font-size : 80%; }
222 .ui-datepicker td a { padding : .5em; }
223 .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { font-size : 80%; }
224 .key { padding : 3px; white-space:nowrap; line-height:230%; }
225 .normalday { background-color : #EDEDED; color : Black; border : 1px solid #BCBCBC; }
226 .exception { background-color : #b3d4ff; color : Black; border : 1px solid #BCBCBC; }
227 .holiday { background-color : #ffaeae; color : Black; border : 1px solid #BCBCBC; }
228 .repeatableweekly { background-color : #FFFF99; color : Black; border : 1px solid #BCBCBC; }
229 .repeatableyearly { background-color : #FFCC66; color : Black; border : 1px solid #BCBCBC; }
230 td.exception a.ui-state-default, .exception { background: #b3d4ff none; color : Black; border : 1px solid #BCBCBC; }
231 td.holiday a.ui-state-default, .holiday { background: #ffaeae none; color : Black; border : 1px solid #BCBCBC; }
232 td.repeatableweekly a.ui-state-default, .repeatableweekly { background: #D8EFB3 none; color : Black; border : 1px solid #BCBCBC; }
233 td.repeatableyearly a.ui-state-default, .repeatableyearly { background: #FFFF99 none; color : Black; border : 1px solid #BCBCBC; }
234 .information { z-index : 1; background-color : #DCD2F1; width : 300px; display : none; border : 1px solid #000000; color : #000000; font-size : 8pt; font-weight : bold; background-color : #FFD700; cursor : pointer; padding : 2px; }
235 .panel { z-index : 1; display : none; border : 3px solid #CCC; padding : 3px; margin-top: .3em; background-color: #FEFEFE; } fieldset.brief { border : 0; margin-top: 0; }
236 #showHoliday { margin : .5em 0; } h1 select { width: 20em; } div.yui-b fieldset.brief ol { font-size:100%; } div.yui-b fieldset.brief li, div.yui-b fieldset.brief li.radio { padding:0.2em 0; } .help { margin:.3em 0;border:1px solid #EEE;padding:.3em .7em; font-size : 90%; } #holidayweeklyrepeatable, #holidaysyearlyrepeatable, #holidaysunique, #holidayexceptions { font-size : 90%; margin-bottom : 1em;} .calendar td, .calendar th, .calendar .button, .calendar tbody .day { padding : .7em; font-size: 110%; } .calendar { width: auto; border : 0; }
239 <body id="tools_holidays" class="tools">
240 [% INCLUDE 'header.inc' %]
241 [% INCLUDE 'cat-search.inc' %]
243 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% branchname %] Calendar</div>
245 <div id="doc3" class="yui-t1">
250 <h2>[% branchname %] Calendar</h2>
252 <div class="yui-u first">
253 <label for="branch">Define the holidays for:</label>
254 <select id="branch" name="branch">
255 [% FOREACH branchloo IN branchloop %]
256 [% IF ( branchloo.selected ) %]
257 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
259 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
264 <!-- ******************************** FLAT PANELS ******************************************* -->
265 <!-- ***** Makes all the flat panel to deal with holidays ***** -->
266 <!-- **************************************************************************************** -->
268 <!-- ********************** Panel for showing already loaded holidays *********************** -->
269 <div class="panel" id="showHoliday">
270 <form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post">
271 <input type="hidden" id="showHolidayType" name="showHolidayType" value="" />
272 <fieldset class="brief">
273 <h3>Edit this holiday</h3>
274 <span id="holtype"></span>
277 <strong>Library:</strong> <span id="showBranchNameOutput"></span>
278 <input type="hidden" id="showBranchName" name="showBranchName" />
281 <strong>From Date:</strong>
282 <span id="showDaynameOutput"></span>,
284 [% IF ( dateformat_us ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %]
286 <input type="hidden" id="showDayname" name="showDayname" />
287 <input type="hidden" id="showWeekday" name="showWeekday" />
288 <input type="hidden" id="showDay" name="showDay" />
289 <input type="hidden" id="showMonth" name="showMonth" />
290 <input type="hidden" id="showYear" name="showYear" />
292 <li class="dateinsert">
294 <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/>
296 <li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
297 <!-- showTitle is necessary for exception radio button to work properly -->
298 <label for="showDescription">Description:</label>
299 <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>
301 <li class="radio"><div id="exceptionPosibility" style="position:static">
302 <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
303 <a href="#" class="helptext">[?]</a>
304 <div class="hint">You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.</div>
306 <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
307 <label for="newOperationFieldException">Generate exceptions on a range of dates.</label>
308 <a href="#" class="helptext">[?]</a>
309 <div class="hint">You can make an exception on a range of dates repeated yearly.</div>
311 <li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label>
312 <a href="#" class="helptext">[?]</a>
313 <div class="hint">This will delete this holiday rule. If it is a repeatable holiday, this option checks for possible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.</div></li>
314 <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /> <label for="showOperationDelRange" id="showOperationDelLabelRange">Delete the single holidays on a range</label>.
315 <a href="#" class="helptext">[?]</a>
316 <div class="hint">This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.</div>
318 <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /> <label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">Delete the repeated holidays on a range</label>.
319 <a href="#" class="helptext">[?]</a>
320 <div class="hint">This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not the exceptions.</div>
322 <li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /> <label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">Delete the exceptions on a range</label>.
323 <a href="#" class="helptext">[?]</a>
324 <div class="hint">This will delete the exceptions inside a given range. Be careful about your scope range if it is oversized you could slow down Koha.</div>
326 <li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label>
327 <a href="#" class="helptext">[?]</a>
328 <div class="hint">This will save changes to the holiday's title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.</div></li>
330 <fieldset class="action">
331 <input type="submit" name="submit" value="Save" />
332 <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('showHoliday');">Cancel</a>
338 <!-- ***************************** Panel to deal with new holidays ********************** -->
339 <div class="panel" id="newHoliday">
340 <form action="/cgi-bin/koha/tools/newHolidays.pl" method="post">
341 <input type="hidden" name="branchCodes" id="branchCodes" value="[% branchcodes %]" />
342 <fieldset class="brief">
343 <h3>Add new holiday</h3>
346 <strong>Library:</strong>
347 <span id="newBranchNameOutput"></span>
348 <input type="hidden" id="newBranchName" name="newBranchName" />
351 <strong>From date:</strong>
352 <span id="newDaynameOutput"></span>,
354 [% IF ( dateformat_us ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %]
356 <input type="hidden" id="newDayname" name="showDayname" />
357 <input type="hidden" id="newWeekday" name="newWeekday" />
358 <input type="hidden" id="newDay" name="newDay" />
359 <input type="hidden" id="newMonth" name="newMonth" />
360 <input type="hidden" id="newYear" name="newYear" />
362 <li class="dateinsert">
364 <input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" />
366 <li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li>
367 <li><label for="newDescription">Description:</label>
368 <textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
370 <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
371 <label for="newOperationOnce">Holiday only on this day</label>.
372 <a href="#" class="helptext">[?]</a>
373 <div class="hint">Make a single holiday. For example, selecting August 1st, 2012 will make it a holiday, but will not affect August 1st in other years.</div>
375 <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
376 <label for="newOperationDay">Holiday repeated every same day of the week</label>.
377 <a href="#" class="helptext">[?]</a>
378 <div class="hint">Make this weekday a holiday, every week. For example, if your library is closed on Saturdays, use this option to make every Saturday a holiday.</div>
380 <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
381 <label for="newOperationYear">Holiday repeated yearly on the same date</label>.
382 <a href="#" class="helptext">[?]</a>
383 <div class="hint">This will take this day and month as a reference to make it a holiday. Through this option, you can repeat this rule for every year. For example, selecting August 1st will make August 1st a holiday every year.</div>
385 <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
386 <label for="newOperationField">Holidays on a range</label>.
387 <a href="#" class="helptext">[?]</a>
388 <div class="hint">Make a single holiday on a range. For example, selecting August 1st, 2012 and August 10st, 2012 will make all days between 1st and 10st holiday, but will not affect August 1-10 in other years.</div>
390 <li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
391 <label for="newOperationFieldyear">Holidays repeated yearly on a range</label>.
392 <a href="#" class="helptext">[?]</a>
393 <div class="hint">Make a single holiday on a range repeated yearly. For example, selecting August 1st, 2012 and August 10st, 2012 will make all days between 1st and 10st holiday, and will affect August 1-10 in other years.</div>
396 <input type="checkbox" name="allBranches" id="allBranches" />
397 <label for="allBranches">Copy to all libraries</label>.
398 <a href="#" class="helptext">[?]</a>
399 <div class="hint">If checked, this holiday will be copied to all libraries. If the holiday already exists for a library, no change is made.</div>
401 <fieldset class="action">
402 <input type="submit" name="submit" value="Save" />
403 <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('newHoliday');">Cancel</a>
409 <!-- *************************************************************************************** -->
410 <!-- ****** END OF FLAT PANELS ****** -->
411 <!-- *************************************************************************************** -->
413 <!-- ************************************************************************************** -->
414 <!-- ****** MAIN SCREEN CODE ****** -->
415 <!-- ************************************************************************************** -->
416 <h3>Calendar information</h3>
417 <div id="jcalendar-container"></div>
419 <div style="margin-top: 2em;">
420 <form action="copy-holidays.pl" method="post">
421 <input type="hidden" name="from_branchcode" value="[% branch %]" />
422 <label for="branchcode">Copy holidays to:</label>
423 <select id="branchcode" name="branchcode">
424 <option value=""></option>
425 [% FOREACH branchloo IN branchloop %]
426 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
429 <input type="submit" value="Copy" />
438 <li>Search in the calendar the day you want to set as holiday.</li>
439 <li>Click the date to add or edit a holiday.</li>
440 <li>Enter a title and description for the holdiay.</li>
441 <li>Specify how the holiday should repeat.</li>
442 <li>Click Save to finish.</li>
446 <span class="key normalday">Working day</span>
447 <span class="key holiday">Unique holiday</span>
448 <span class="key repeatableweekly">Holiday repeating weekly</span>
449 <span class="key repeatableyearly">Holiday repeating yearly</span>
450 <span class="key exception">Holiday exception</span>
453 <div id="holiday-list">
454 <!-- Exceptions First -->
455 <!-- this will probably always have the least amount of data -->
456 [% IF ( EXCEPTION_HOLIDAYS_LOOP ) %]
458 <table id="holidayexceptions">
460 <th class="exception">Date</th>
461 <th class="exception">Title</th>
462 <th class="exception">Description</th>
466 [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
468 <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</a></td>
469 <td>[% EXCEPTION_HOLIDAYS_LOO.TITLE %]</td>
470 <td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION %]</td>
477 [% IF ( WEEK_DAYS_LOOP ) %]
478 <h3>Weekly - Repeatable Holidays</h3>
479 <table id="holidayweeklyrepeatable">
482 <th class="repeatableweekly">Day of week</th>
483 <th class="repeatableweekly">Title</th>
484 <th class="repeatableweekly">Description</th>
488 [% FOREACH WEEK_DAYS_LOO IN WEEK_DAYS_LOOP %]
491 <script type="text/javascript">
492 document.write(weekdays[ [% WEEK_DAYS_LOO.KEY %]]);
495 <td>[% WEEK_DAYS_LOO.TITLE %]</td>
496 <td>[% WEEK_DAYS_LOO.DESCRIPTION %]</td>
503 [% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %]
504 <h3>Yearly - Repeatable Holidays</h3>
505 <table id="holidaysyearlyrepeatable">
508 [% IF ( dateformat_metric ) %]
509 <th class="repeatableyearly">Day/Month</th>
511 <th class="repeatableyearly">Month/Day</th>
513 <th class="repeatableyearly">Title</th>
514 <th class="repeatableyearly">Description</th>
518 [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
520 <td>[% DAY_MONTH_HOLIDAYS_LOO.DATE %]</td>
521 <td>[% DAY_MONTH_HOLIDAYS_LOO.TITLE %]</td>
522 <td>[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION %]</td>
529 [% IF ( HOLIDAYS_LOOP ) %]
530 <h3>Unique Holidays</h3>
531 <table id="holidaysunique">
534 <th class="holiday">Date</th>
535 <th class="holiday">Title</th>
536 <th class="holiday">Description</th>
540 [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
542 <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% HOLIDAYS_LOO.DATE %]">[% HOLIDAYS_LOO.DATE %]</a></td>
543 <td>[% HOLIDAYS_LOO.TITLE %]</td>
544 <td>[% HOLIDAYS_LOO.DESCRIPTION %]</td>
556 <div class="yui-b noprint">
557 [% INCLUDE 'tools-menu.inc' %]
560 [% INCLUDE 'intranet-bottom.inc' %]