summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-01-22 13:34:14 +0000
committerramon <ramongomez@us.es>2016-01-22 13:34:14 +0000
commit28d7909abd57d1bd42372be2bfc1339b747848d9 (patch)
tree56c76210aea9be7cf82ccc58f0815606688900cf /admin
parent2ff31f9671670db9ff84a56967ef71bd1a9463f8 (diff)
#732: Ampliar calendario de programación de acciones hasta 2025.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4782 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/idiomas/php/esp/clases/Almanaque_esp.php36
-rw-r--r--admin/WebConsole/varios/programaciones.php4
2 files changed, 24 insertions, 16 deletions
diff --git a/admin/WebConsole/idiomas/php/esp/clases/Almanaque_esp.php b/admin/WebConsole/idiomas/php/esp/clases/Almanaque_esp.php
index 579addde..107d9ff1 100644
--- a/admin/WebConsole/idiomas/php/esp/clases/Almanaque_esp.php
+++ b/admin/WebConsole/idiomas/php/esp/clases/Almanaque_esp.php
@@ -1,4 +1,4 @@
- <?
+<?php
/*============================================================================
Esta clase genera tablas HTML para selección de fechas (Versión inglesa)
@@ -72,14 +72,22 @@ class Almanaque{
$this->semanas[5]=array ("5ª",0x10);
$this->semanas[6]=array ("Última",0x20);
- $this->numero_annos[1]=array ("2010",0x01); // tamaño 1 bytes
- $this->numero_annos[2]=array ("2011",0x02);
- $this->numero_annos[3]=array ("2012",0x04);
- $this->numero_annos[4]=array ("2013",0x08);
- $this->numero_annos[5]=array ("2014",0x10);
- $this->numero_annos[6]=array ("2015",0x20);
- $this->numero_annos[7]=array ("2016",0x40);
- $this->numero_annos[8]=array ("2017",0x80);
+ $this->numero_annos[2010]=0x0001; // tamaño 2 bytes
+ $this->numero_annos[2011]=0x0002;
+ $this->numero_annos[2012]=0x0004;
+ $this->numero_annos[2013]=0x0008;
+ $this->numero_annos[2014]=0x0010;
+ $this->numero_annos[2015]=0x0020;
+ $this->numero_annos[2016]=0x0040;
+ $this->numero_annos[2017]=0x0080;
+ $this->numero_annos[2018]=0x0100;
+ $this->numero_annos[2019]=0x0200;
+ $this->numero_annos[2020]=0x0400;
+ $this->numero_annos[2021]=0x0800;
+ $this->numero_annos[2022]=0x1000;
+ $this->numero_annos[2023]=0x2000;
+ $this->numero_annos[2024]=0x4000;
+ $this->numero_annos[2025]=0x8000;
$this->numero_dias[1]=0x00000001; // tamaño 4 bytes
$this->numero_dias[2]=0x00000002;
@@ -179,11 +187,11 @@ class Almanaque{
$HTML_calendario='<TABLE id="tabla_annos" class="'.$this->clase.'">'.chr(13);
$HTML_calendario.='<TR>'.chr(13);
$HTML_calendario.='<TH style="cursor:pointer" onclick="TH_'.$this->onclick.'">Años</TH></TR>'.chr(13); // Literal años
- for ($i=1;$i<7;$i++){
- $HTML_calendario.='<TR><TD align="center" id="'.$this->numero_annos[$i][0].'"
- value="'.$this->numero_annos[$i][1].'" style="cursor:pointer"
+ for ($i=$ano_desde; $i<=ano_hasta; $i++){
+ $HTML_calendario.='<TR><TD align="center" id="'.$i.'"
+ value="'.$this->numero_annos[$i].'" style="cursor:pointer"
onmouseover="'.$this->onmouseover.'" onmouseout="'.$this->onmouseout.'"
- onclick="'.$this->onclick.'">'.$this->numero_annos[$i][0].'</TD></TR>'.chr(13);
+ onclick="'.$this->onclick.'">'.$i.'</TD></TR>'.chr(13);
}
$HTML_calendario.='</TABLE>'.chr(13);
return($HTML_calendario);
@@ -388,4 +396,4 @@ ________________________________________________________________________________
$HTML_calendario.='</TR></TABLE>'.chr(13);
return($HTML_calendario);
}
-} // Fin de la clase Almanaque \ No newline at end of file
+} // Fin de la clase Almanaque
diff --git a/admin/WebConsole/varios/programaciones.php b/admin/WebConsole/varios/programaciones.php
index 665ee222..e3782821 100644
--- a/admin/WebConsole/varios/programaciones.php
+++ b/admin/WebConsole/varios/programaciones.php
@@ -1,4 +1,4 @@
-<?
+<?php
// *************************************************************************************************************************************************
// Aplicación WEB: ogAdmWebCon
// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
@@ -119,7 +119,7 @@ $mialmanaque= new Almanaque("tabla_meses");
<TR>
<TD valign=top>
<? $annodesde=date("Y");
- echo $mialmanaque->Annos(($annodesde-4),($annodesde+4)); // Años?>
+ echo $mialmanaque->Annos(($annodesde-3),($annodesde+3)); // Años?>
</TD>
<TD width=10>&nbsp;</TD>
<TD valign=top>