fixing misplaced apostrophe
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / includes / holidays-top.inc
1 </title>
2 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css">
3
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 <!-- **************************************************** -->
9
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;
19         }
20
21         var mouseXMax = 0;
22         var mouseYMax = 0;
23         var mouseX = 0;
24         var mouseY = 0;
25
26         function captureMousePosition(e) {
27             if (document.layers) {
28                     mouseX = e.pageX;
29                         mouseY = e.pageY;
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) {
38                 mouseX = e.pageX;
39                     mouseY = e.pageY;
40                 mouseXMax = window.innerWidth + window.pageXOffset;
41                 mouseYMax = window.innerHeight + window.pageYOffset;
42             }
43         }
44
45         function holidayOperation(formObject, opType) {
46                 var op = document.getElementsByName('operation');
47                 op[0].value = opType;
48                 formObject.submit();
49         }
50
51         // This function shows the "Show Holiday" panel //
52         function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) {
53                 
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;
67                 
68                 if (exceptionPosibility == 1) {
69                         document.getElementById('exceptionPosibility').style.display = 'inline';
70                 } else {
71                         document.getElementById('exceptionPosibility').style.display = 'none';
72                 }
73         }
74
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;
88         }
89
90         function hidePanel(aPanelName) {
91                 document.getElementById(aPanelName).style.display = 'none';
92         }
93
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;
97         }
98
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);
108                 }
109                 paragraph.appendChild(info);
110         }
111
112         function Help() {
113                 newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
114         }
115 </script>
116
117 <style type="text/css">
118 .normalday { 
119         background-color: #EDEDED;
120         color: Black; 
121         border:1px solid #000000;
122 }
123
124 .exception {
125         background-color: #EDEDED;
126         color: Black;           
127         border:1px solid #000000;
128 }
129
130 .holiday { 
131         background-color: red;
132         color: Black; 
133         border:1px solid #000000;
134 }
135
136 .repeatableday { 
137         background-color: yellow;
138         color: Black; 
139         border:1px solid #000000;
140 }
141
142 .information {
143         z-index:1;
144         background-color: #DCD2F1;
145         width:300px;
146         display:none;
147         border:1px solid #000000;
148         color: #000000;
149         font-size: 8pt;
150         font-weight: bold;
151     background-color: #FFD700;
152         cursor: pointer;
153         padding:2px;
154 }
155
156 .panel {
157         z-index:1;
158         width:500px;
159         display:none;
160         border:1px solid #000000;
161         padding:0px;
162 }
163
164 </style>
165
166