source: admin/WebConsole/varios/horario_ventana.php

lgromero-new-oglive
Last change on this file was 3806a31, checked in by ramon <ramongomez@…>, 7 years ago

#834: Limpiar código JavaScript?: terminar instrucciones con ";" y evitar asignaciones duplicadas.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5630 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<?php
2include_once("../includes/ctrlacc.php");
3include_once("../idiomas/php/".$idioma."/clases/Almanaque_".$idioma.".php");
4$hora="";
5if (isset($_GET["hora"])) $hora=$_GET["hora"];
6if($hora=="") $hora="8:00";
7?>
8<HTML>
9<TITLE>Administración web de aulas</TITLE>
10<HEAD>
11        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
12        <LINK rel="stylesheet" type="text/css" href="../estilos.css">
13<SCRIPT language="JavaScript">
14
15var rojo="#cc3366";
16var negro="#ffffff";
17var verde="lightseagreen";
18var gris="#bbbcb9";
19var blanco="#eeeeee";
20var azul= "#0000cc";
21var fondooriginal="#EEEECC";
22var colororiginal="#003300";
23
24var currentHora=null;
25
26//-------------------------------------------------------------------
27function ItemSeleccionado(o){
28        return(o.style.backgroundColor==azul)
29}
30//-------------------------------------------------------------------
31function Resalta(o){
32        o.style.color=blanco;
33        o.style.backgroundColor=azul
34}
35//-------------------------------------------------------------------
36function Desmarca(o){
37        o.style.color=colororiginal;
38        o.style.backgroundColor=fondooriginal
39
40}
41//-------------------------------------------------------------------
42function sobre(o){
43        if (currentHora!=null)
44                Desmarca(currentHora);
45        Resalta(o);
46        currentHora=o;
47}
48//-------------------------------------------------------------------
49function fuera(o){
50                Desmarca(o);
51}
52//-------------------------------------------------------------------
53function clic(o){
54        window.opener.anade_hora(o.id);
55        self.close()
56}
57//_________________________________________________________
58function cerrar_ventana(){
59        self.close()
60}
61//_________________________________________________________
62function borrar_fecha(){
63        window.opener.anade_hora("");
64        self.close()
65}
66//_________________________________________________________
67</SCRIPT>
68</HEAD>
69<BODY>
70        <?php
71$mialmanaque=new Almanaque("tabla_meses");
72echo '<DIV style="position:absolute;top:5px;left:10px">';
73echo '<img style="cursor:hand" SRC="../images/iconos/salir_on.gif" onclick="cerrar_ventana()">';
74echo '</DIV>';
75
76echo '<DIV style="position:absolute;top:25px;left:5px">';
77echo '<FORM action="calendario_ventana.php" name="fdatos" method="post">';
78echo '<table align=center border=0>';
79echo '<tr>';
80echo '<td colspan=2 valign=top width=100>'.$mialmanaque->Horas_Completas().'</td>';
81echo '</tr>';
82echo '</table>';
83echo '</FORM>';
84echo '</DIV>';
85
86echo '<SCRIPT language="JavaScript">';
87echo '  var o=document.getElementById("'.$hora.'");';
88echo '   if(o!=null) sobre(o);';
89echo '</SCRIPT>';
90?>
91
92</body>
93</html>
94
95
Note: See TracBrowser for help on using the repository browser.