2 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css">
4 <!-- Estos scripts permiten manejar calendario de fechas. -->
5 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/calendar.js"></script>
6 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/calendar-en.js"></script>
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/calendar-setup.js"></script>
8 <!-- **************************************************** -->
10 <script language="JavaScript" type="text/javascript">
11 // Captura el evento onmousemove para cualquier navegador
12 if (document.layers) { // Netscape
13 document.captureEvents(Event.MOUSEMOVE);
14 document.onmousemove = captureMousePosition;
15 } else if (document.all) { // Internet Explorer
16 document.onmousemove = captureMousePosition;
17 } else if (document.getElementById) { // Netcsape 6
18 document.onmousemove = captureMousePosition;
26 function captureMousePosition(e) {
27 if (document.layers) {
30 mouseXMax = window.innerWidth + window.pageXOffset;
31 mouseYMax = window.innerHeight + window.pageYOffset;
32 } else if (document.all) {
33 mouseX = window.event.x + document.body.scrollLeft;
34 mouseY = window.event.y + document.body.scrollTop;
35 mouseXMax = document.body.clientWidth + document.body.scrollLeft;
36 mouseYMax = document.body.clientHeight + document.body.scrollTop;
37 } else if (document.getElementById) {
40 mouseXMax = window.innerWidth + window.pageXOffset;
41 mouseYMax = window.innerHeight + window.pageYOffset;
45 function holidayOperation(formObject, opType) {
46 var op = document.getElementsByName('operation');
51 // This function shows the "Show Holiday" panel //
52 function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) {
54 var panel = document.getElementById('showHoliday');
55 panel.style.display = 'inline';
56 document.getElementById('newHoliday').style.display = 'none';
57 panel.style.top = mouseYMax/2;
58 panel.style.left = (mouseXMax/2) - 250;
59 document.getElementById('showDayname').value = dayName;
60 document.getElementById('showBranchName').value = document.getElementById('branch').value;
61 document.getElementById('showDay').value = day;
62 document.getElementById('showMonth').value = month;
63 document.getElementById('showYear').value = year;
64 document.getElementById('showDescription').value = description;
65 document.getElementsByName('showWeekday')[0].value = weekDay;
66 document.getElementById('showTitle').value = title;
68 if (exceptionPosibility == 1) {
69 document.getElementById('exceptionPosibility').style.display = 'inline';
71 document.getElementById('exceptionPosibility').style.display = 'none';
75 // This function shows the "Add Holiday" panel //
76 function newHoliday (dayName, day, month, year, weekDay) {
77 var panel = document.getElementById('newHoliday');
78 panel.style.display = 'inline';
79 document.getElementById('showHoliday').style.display = 'none';
80 panel.style.top = mouseYMax/2;
81 panel.style.left = (mouseXMax/2) - 250;
82 document.getElementById('newDayname').value = dayName;
83 document.getElementById('newBranchName').value = document.getElementById('branch').value;
84 document.getElementById('newDay').value = day;
85 document.getElementById('newMonth').value = month;
86 document.getElementById('newYear').value = year;
87 document.getElementsByName('newWeekday')[0].value = weekDay;
90 function hidePanel(aPanelName) {
91 document.getElementById(aPanelName).style.display = 'none';
94 function changeBranch () {
95 var branch = document.getElementById('branch').options[document.getElementById('branch').selectedIndex].value;
96 location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch;
99 function additionalInformation (anExplanation) {
100 var panel = document.getElementById('information');
101 var paragraph = document.getElementById('explanation');
102 panel.style.display = 'inline'
103 panel.style.top = mouseY;
104 panel.style.left = mouseX;
105 var info = document.createTextNode(anExplanation);
106 if (paragraph.hasChildNodes()) {
107 paragraph.removeChild(paragraph.lastChild);
109 paragraph.appendChild(info);
113 newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
117 <style type="text/css">
119 background-color: #EDEDED;
121 border:1px solid #000000;
125 background-color: #EDEDED;
127 border:1px solid #000000;
131 background-color: red;
133 border:1px solid #000000;
137 background-color: yellow;
139 border:1px solid #000000;
144 background-color: #DCD2F1;
147 border:1px solid #000000;
151 background-color: #FFD700;
160 border:1px solid #000000;