french translation
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / includes / holidays-top.inc
1 </title>\r
2 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">\r
3 \r
4 <!-- Estos scripts permiten manejar calendario de fechas. -->\r
5 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar.js"></script>\r
6 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-en.js"></script>\r
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-setup.js"></script>\r
8 <!-- **************************************************** -->\r
9 \r
10 <script language="JavaScript" type="text/javascript">\r
11         // Captura el evento onmousemove para cualquier navegador\r
12         if (document.layers) { // Netscape\r
13                 document.captureEvents(Event.MOUSEMOVE);\r
14             document.onmousemove = captureMousePosition;\r
15         } else if (document.all) { // Internet Explorer\r
16             document.onmousemove = captureMousePosition;\r
17         } else if (document.getElementById) { // Netcsape 6\r
18             document.onmousemove = captureMousePosition;\r
19         }\r
20 \r
21         var mouseXMax = 0;\r
22         var mouseYMax = 0;\r
23         var mouseX = 0;\r
24         var mouseY = 0;\r
25 \r
26         function captureMousePosition(e) {\r
27             if (document.layers) {\r
28                     mouseX = e.pageX;\r
29                         mouseY = e.pageY;\r
30                 mouseXMax = window.innerWidth + window.pageXOffset;\r
31                     mouseYMax = window.innerHeight + window.pageYOffset;\r
32             } else if (document.all) {\r
33                     mouseX = window.event.x + document.body.scrollLeft;\r
34                 mouseY = window.event.y + document.body.scrollTop;\r
35                 mouseXMax = document.body.clientWidth + document.body.scrollLeft;\r
36                 mouseYMax = document.body.clientHeight + document.body.scrollTop;\r
37             } else if (document.getElementById) {\r
38                 mouseX = e.pageX;\r
39                     mouseY = e.pageY;\r
40                 mouseXMax = window.innerWidth + window.pageXOffset;\r
41                 mouseYMax = window.innerHeight + window.pageYOffset;\r
42             }\r
43         }\r
44 \r
45         function holidayOperation(formObject, opType) {\r
46                 var op = document.getElementsByName('operation');\r
47                 op[0].value = opType;\r
48                 formObject.submit();\r
49         }\r
50 \r
51         // This function shows the "Show Holiday" panel //\r
52         function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) {\r
53                 \r
54                 var panel = document.getElementById('showHoliday');\r
55                 panel.style.display = 'inline';\r
56                 document.getElementById('newHoliday').style.display = 'none';\r
57                 panel.style.top = mouseYMax/2;\r
58                 panel.style.left = (mouseXMax/2) - 250;\r
59                 document.getElementById('showDayname').value = dayName;\r
60                 document.getElementById('showBranchName').value = document.getElementById('branch').value;\r
61                 document.getElementById('showDay').value = day;\r
62                 document.getElementById('showMonth').value = month;\r
63                 document.getElementById('showYear').value = year;\r
64                 document.getElementById('showDescription').value = description;\r
65                 document.getElementsByName('showWeekday')[0].value = weekDay;\r
66                 document.getElementById('showTitle').value = title;\r
67                 \r
68                 if (exceptionPosibility == 1) {\r
69                         document.getElementById('exceptionPosibility').style.display = 'inline';\r
70                 } else {\r
71                         document.getElementById('exceptionPosibility').style.display = 'none';\r
72                 }\r
73         }\r
74 \r
75         // This function shows the "Add Holiday" panel //\r
76         function newHoliday (dayName, day, month, year, weekDay) {\r
77                 var panel = document.getElementById('newHoliday');\r
78                 panel.style.display = 'inline';\r
79                 document.getElementById('showHoliday').style.display = 'none';\r
80                 panel.style.top = mouseYMax/2;\r
81                 panel.style.left = (mouseXMax/2)  - 250;\r
82                 document.getElementById('newDayname').value = dayName;\r
83                 document.getElementById('newBranchName').value = document.getElementById('branch').value;\r
84                 document.getElementById('newDay').value = day;\r
85                 document.getElementById('newMonth').value = month;\r
86                 document.getElementById('newYear').value = year;\r
87                 document.getElementsByName('newWeekday')[0].value = weekDay;\r
88         }\r
89 \r
90         function hidePanel(aPanelName) {\r
91                 document.getElementById(aPanelName).style.display = 'none';\r
92         }\r
93 \r
94         function changeBranch () {\r
95                 var branch = document.getElementById('branch').options[document.getElementById('branch').selectedIndex].value;\r
96                 location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch;\r
97         }\r
98 \r
99         function additionalInformation (anExplanation) {\r
100                 var panel = document.getElementById('information');\r
101                 var paragraph = document.getElementById('explanation');\r
102                 panel.style.display = 'inline'\r
103                 panel.style.top = mouseY;\r
104                 panel.style.left = mouseX;\r
105                 var info = document.createTextNode(anExplanation);\r
106                 if (paragraph.hasChildNodes()) {\r
107                         paragraph.removeChild(paragraph.lastChild);\r
108                 }\r
109                 paragraph.appendChild(info);\r
110         }\r
111 \r
112         function Help() {\r
113                 newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');\r
114         }\r
115 </script>\r
116 \r
117 <style type="text/css">\r
118 .normalday { \r
119         background-color: #EDEDED;\r
120         color: Black; \r
121         border:1px solid #000000;\r
122 }\r
123 \r
124 .exception {\r
125         background-color: #EDEDED;\r
126         color: Black;           \r
127         border:1px solid #000000;\r
128 }\r
129 \r
130 .holiday { \r
131         background-color: red;\r
132         color: Black; \r
133         border:1px solid #000000;\r
134 }\r
135 \r
136 .repeatableday { \r
137         background-color: yellow;\r
138         color: Black; \r
139         border:1px solid #000000;\r
140 }\r
141 \r
142 .information {\r
143         z-index:1;\r
144         background-color: #DCD2F1;\r
145         width:300px;\r
146         display:none;\r
147         border:1px solid #000000;\r
148         color: #000000;\r
149         font-size: 8pt;\r
150         font-weight: bold;\r
151     background-color: #FFD700;\r
152         cursor: pointer;\r
153         padding:2px;\r
154 }\r
155 \r
156 .panel {\r
157         z-index:1;\r
158         width:500px;\r
159         display:none;\r
160         border:1px solid #000000;\r
161         padding:0px;\r
162 }\r
163 \r
164 </style>\r
165 \r
166 \r