summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php')
-rw-r--r--admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php28
1 files changed, 18 insertions, 10 deletions
diff --git a/admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php b/admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php
index 7f486f22..aaad5436 100644
--- a/admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.php
+++ b/admin/WebConsole/idiomas/php/eng/clases/Almanaque_eng.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 ("Last",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;
@@ -211,7 +219,7 @@ class Almanaque{
$HTML_calendario='<TABLE id="tabla_annos" class="'.$this->clase.'">'.chr(13);
$HTML_calendario.='<TR>'.chr(13);
$HTML_calendario.='<TH style="cursor:hand" onclick="TH_'.$this->onclick.'">Years</TH></TR>'.chr(13); // Literal años
- for ($i=1;$i<9;$i++){
+ for ($i=$ano_desde; $i<=ano_hasta; ){
$HTML_calendario.='<TR><TD id="'.$this->numero_annos[$i][0].'" value="'.$this->numero_annos[$i][1].'" style="cursor:hand" onmouseover="'.$this->onmouseover.'" onmouseout="'.$this->onmouseout.'" onclick="'.$this->onclick.'">'.$this->numero_annos[$i][0].'</TD></TR>'.chr(13);
}
$HTML_calendario.='</TABLE>'.chr(13);