]> git.llucax.com Git - mecon/intranet.git/commitdiff
primera version funcional del servicio de bandas
authorMatías Sklar <msklar@mecon.gov.ar>
Fri, 12 Sep 2003 12:44:17 +0000 (12:44 +0000)
committerMatías Sklar <msklar@mecon.gov.ar>
Fri, 12 Sep 2003 12:44:17 +0000 (12:44 +0000)
18 files changed:
sistema/www/css/servicios_bandas.css [new file with mode: 0644]
sistema/www/images/servicios_bandas_anterior.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_borde_tabla.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_imprimir1.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_imprimir2.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_info.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_lupa2.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_lupa3.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_mail.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_notas.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_rojo.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_v5.gif [new file with mode: 0644]
sistema/www/images/servicios_bandas_visto.gif [new file with mode: 0644]
sistema/www/servicios/bandas/banda_agente.php [new file with mode: 0644]
sistema/www/servicios/bandas/dependencia_rrhh.html [new file with mode: 0644]
sistema/www/servicios/bandas/form_mes.php [new file with mode: 0644]
sistema/www/servicios/bandas/mes_area.html [new file with mode: 0644]
sistema/www/servicios/bandas/mes_area_rrhh.html [new file with mode: 0644]

diff --git a/sistema/www/css/servicios_bandas.css b/sistema/www/css/servicios_bandas.css
new file mode 100644 (file)
index 0000000..d2c18a3
--- /dev/null
@@ -0,0 +1,51 @@
+.titulo_vinculos {\r
+       BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left\r
+}\r
+.titulo_uno {\r
+       BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.titulo_form {\r
+       COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; VERTICAL-ALIGN: middle\r
+}\r
+.dependencia {\r
+       BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.titulo_columna {\r
+       BACKGROUND-POSITION: left top; COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: top\r
+}\r
+.txt_fila {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: top\r
+}\r
+.txt_azul {\r
+       BACKGROUND-POSITION: left top; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: top\r
+}\r
+.aclarar {\r
+       BACKGROUND-POSITION: left bottom; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.imprimir {\r
+       BACKGROUND-POSITION-X: right; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: right; VERTICAL-ALIGN: middle\r
+}\r
+.titulo_dos {\r
+       BACKGROUND-POSITION-X: left; COLOR: #ff9900; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.titulo_tres {\r
+       BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle\r
+}\r
+.nivel1 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: top\r
+}\r
+.nivel2 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LEFT: 10px; LINE-HEIGHT: normal; TEXT-ALIGN: left; TEXT-INDENT: 5px; VERTICAL-ALIGN: top\r
+}\r
+.nivel3 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LEFT: 10px; LINE-HEIGHT: normal; TEXT-ALIGN: left; TEXT-INDENT: 10px; VERTICAL-ALIGN: top\r
+}\r
+.nivel4 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LEFT: 10px; LINE-HEIGHT: normal; TEXT-ALIGN: left; TEXT-INDENT: 15px; VERTICAL-ALIGN: top\r
+}\r
+.nivel5 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LEFT: 10px; LINE-HEIGHT: normal; TEXT-ALIGN: left; TEXT-INDENT: 20px; VERTICAL-ALIGN: top\r
+}\r
+.nivel6 {\r
+       BACKGROUND-POSITION: left top; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LEFT: 10px; LINE-HEIGHT: normal; TEXT-ALIGN: left; TEXT-INDENT: 25px; VERTICAL-ALIGN: top\r
+}\r
diff --git a/sistema/www/images/servicios_bandas_anterior.gif b/sistema/www/images/servicios_bandas_anterior.gif
new file mode 100644 (file)
index 0000000..04989c8
Binary files /dev/null and b/sistema/www/images/servicios_bandas_anterior.gif differ
diff --git a/sistema/www/images/servicios_bandas_borde_tabla.gif b/sistema/www/images/servicios_bandas_borde_tabla.gif
new file mode 100644 (file)
index 0000000..934f62c
Binary files /dev/null and b/sistema/www/images/servicios_bandas_borde_tabla.gif differ
diff --git a/sistema/www/images/servicios_bandas_imprimir1.gif b/sistema/www/images/servicios_bandas_imprimir1.gif
new file mode 100644 (file)
index 0000000..700be7f
Binary files /dev/null and b/sistema/www/images/servicios_bandas_imprimir1.gif differ
diff --git a/sistema/www/images/servicios_bandas_imprimir2.gif b/sistema/www/images/servicios_bandas_imprimir2.gif
new file mode 100644 (file)
index 0000000..e6f37ea
Binary files /dev/null and b/sistema/www/images/servicios_bandas_imprimir2.gif differ
diff --git a/sistema/www/images/servicios_bandas_info.gif b/sistema/www/images/servicios_bandas_info.gif
new file mode 100644 (file)
index 0000000..2e05a07
Binary files /dev/null and b/sistema/www/images/servicios_bandas_info.gif differ
diff --git a/sistema/www/images/servicios_bandas_lupa2.gif b/sistema/www/images/servicios_bandas_lupa2.gif
new file mode 100644 (file)
index 0000000..6daf267
Binary files /dev/null and b/sistema/www/images/servicios_bandas_lupa2.gif differ
diff --git a/sistema/www/images/servicios_bandas_lupa3.gif b/sistema/www/images/servicios_bandas_lupa3.gif
new file mode 100644 (file)
index 0000000..c651b82
Binary files /dev/null and b/sistema/www/images/servicios_bandas_lupa3.gif differ
diff --git a/sistema/www/images/servicios_bandas_mail.gif b/sistema/www/images/servicios_bandas_mail.gif
new file mode 100644 (file)
index 0000000..a23aba7
Binary files /dev/null and b/sistema/www/images/servicios_bandas_mail.gif differ
diff --git a/sistema/www/images/servicios_bandas_notas.gif b/sistema/www/images/servicios_bandas_notas.gif
new file mode 100644 (file)
index 0000000..2fa34dc
Binary files /dev/null and b/sistema/www/images/servicios_bandas_notas.gif differ
diff --git a/sistema/www/images/servicios_bandas_rojo.gif b/sistema/www/images/servicios_bandas_rojo.gif
new file mode 100644 (file)
index 0000000..7b68d8c
Binary files /dev/null and b/sistema/www/images/servicios_bandas_rojo.gif differ
diff --git a/sistema/www/images/servicios_bandas_v5.gif b/sistema/www/images/servicios_bandas_v5.gif
new file mode 100644 (file)
index 0000000..343655e
Binary files /dev/null and b/sistema/www/images/servicios_bandas_v5.gif differ
diff --git a/sistema/www/images/servicios_bandas_visto.gif b/sistema/www/images/servicios_bandas_visto.gif
new file mode 100644 (file)
index 0000000..72aa634
Binary files /dev/null and b/sistema/www/images/servicios_bandas_visto.gif differ
diff --git a/sistema/www/servicios/bandas/banda_agente.php b/sistema/www/servicios/bandas/banda_agente.php
new file mode 100644 (file)
index 0000000..2ebf4a9
--- /dev/null
@@ -0,0 +1,451 @@
+<?
+require_once '../../../local_lib/HTML_DietMarco.php';
+require_once 'MECON/HTML/Image.php';
+require_once 'MECON/HTML/Tabla.php';
+require_once 'MECON/Dependencia.php';
+require_once 'MECON/NovedadesDia.php';
+require_once '../../../local_lib/Servicios/Bandas/Agente.php';
+require_once 'HTML/Table.php';
+
+//$nrodoc = $_SESSION['documento'];
+
+/* Instancio DietMarco que sirve para mostrar la pagina dentro del marco de Intranet*/
+$m = new HTML_DietMarco('servicios');
+$m->addTitle('Bandas Horarias');
+$m->addStyleSheet('/MECON/css/general_estilos.css');
+$m->addStyleSheet('../../css/servicios_bandas.css');
+
+/* Instancio un objeto Table para el cuerpo de la pagina*/
+$tabla_cuerpo = new HTML_Table(array('width'=>'760','border'=>'0','cellspacing'=>'0','cellpadding'=>'0'));
+
+/* Encabezado propio de la pagina */
+$row_cuerpo = array();
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'24','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'135','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'20','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'160','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'20','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'190','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'20','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'166','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                                '',
+                                               array('width'=>'24','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$tabla_cuerpo->addRow($row_cuerpo, array('height'=>'1'));
+
+$imagen = new MECON_HTML_Image('../../images/servicios_bandas_imprimir1.gif',
+                                                '',
+                                               array('width'=>'24','height'=>'24','alt'=>'imprimir'));
+$row_cuerpo = array('Bandas Horarias',
+                                       '',
+                                       '',
+                                       '',
+                                       '',
+                                       '',
+                                       '',
+                                       'P&aacute;gina de Impresi&oacute;n ',
+                                       $imagen->toHtml());
+$tabla_cuerpo->addRow($row_cuerpo,array('height'=>'24'));
+$tabla_cuerpo->updateCellAttributes($tabla_cuerpo->getRowCount() - 1,
+                                                                       0,
+                                                                       array('colspan'=>'7','class'=>'titulo_tres'));
+$tabla_cuerpo->updateCellAttributes($tabla_cuerpo->getRowCount() - 1,
+                                                                       7,
+                                                                       array('class'=>'imprimir'));
+$row_cuerpo = array();
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                               '',
+                                               array('width'=>'760','height'=>'1','alt'=>'blanco'));
+array_push($row_cuerpo,$imagen);
+$tabla_cuerpo->addRow($row_cuerpo,array('colspan'=>'9', 
+                                                                               'bgcolor'=>'#FF9900',
+                                                                               'height'=>'1'));
+$tabla_cuerpo->addRow($row_cuerpo,array('colspan'=>'9', 
+                                                                               'height'=>'10',
+                                                                               'width'=>'1'));
+
+/* Fin del encabezado propio de la pagina*/
+/* 
+Aca empieza las tablas con la informacion personal del agente y
+con las referencias de cada color de las celdas
+*/
+setlocale (LC_ALL, 'es_AR');
+$nrodoc = $_SESSION['login'];
+$fecha = $_POST['fecha'];
+
+$fecha_spliteada = split('-',$fecha);
+$mes = strftime("%B", mktime(0,0,0,$fecha_spliteada[1],1,$fecha_spliteada[0]));
+$agente =& new Servicios_Bandas_Agente($nrodoc,new date($fecha));
+
+if(!$agente->buscarAgente($nrodoc))
+{
+       echo "El agente no está en las bases de RRHH";
+       die;
+}
+/* Armo la tabla de la información personal */
+
+$tabla_info_personal_adentro = new HTML_Table(array('width'=>'360',
+                                                                                       'border'=>'0',
+                                                                                       'valign'=>'top',
+                                                                                       'cellspacing'=>'2',
+                                                                                       'cellpadding'=>'0'));
+$row = array('Datos personales');
+$imagen = new MECON_HTML_Image('../../images/servicios_bandas_borde_tabla.gif','');
+
+$tabla_info_personal_adentro->addRow($row, array('colspan'=>'2', 'class'=>'titulo_form', 'align'=>'left'));
+
+$row = array('Agente',$agente->getNombre());
+$tabla_info_personal_adentro->addRow($row);
+
+$row = array('N° de documento',$agente->agente);
+$tabla_info_personal_adentro->addRow($row);
+
+$dep =& new MECON_Dependencia($agente->getDependencia());
+$row = array('Dependencia',$dep->getNombre());
+$tabla_info_personal_adentro->addRow($row);
+
+$row = array('Código',$agente->getDependencia());
+$tabla_info_personal_adentro->addRow($row);
+
+$hora_desde =& new MECON_Tiempo_Hora($agente->datos['hora_desde']);
+$hora_hasta =& new MECON_Tiempo_Hora($agente->datos['hora_hasta']);
+$row = array('Horario oficial',$hora_desde->get().' - '.$hora_hasta->get());
+$tabla_info_personal_adentro->addRow($row);
+
+$tipo_ag = $agente->getTipo();
+if(preg_match('/^BEC/',$tipo_ag))
+{
+       $tipo_ag = 'PASANTE';
+}elseif(preg_match('/^CON/',$tipo_ag))
+{
+       $tipo_ag = 'CONTRATADO';
+}elseif(preg_match('/^ADS/',$tipo_ag))
+{
+       $tipo_ag = 'ADSCRIPTO';
+}elseif(preg_match('/^TRA/',$tipo_ag))
+{
+       $tipo_ag = 'PLANTA TRANSITORIA';
+}else
+{
+       $tipo_ag = 'PLANTA PERMANENTE';
+}
+
+$row = array('Categoría',$tipo_ag);
+$tabla_info_personal_adentro->addRow($row);
+
+for($fila=1; $fila <= 6; $fila++)
+{
+       $tabla_info_personal_adentro->updateCellAttributes($fila,0,array('class'=>'titulo_columna', 
+                                                                                                                                       'width'=>'120',
+                                                                                                                                       'background'=>$imagen->getSrc()));
+}
+
+$tabla_info_personal_adentro->updateColAttributes(1,array('class'=>'txt_fila', 
+                                                                                                       'bgcolor'=>'#FFFFFF',
+                                                                                                       'width'=>'180'));
+
+$tabla_info_personal = new HTML_Table(array('width'=>'360',
+                                                                                       'border'=>'0',
+                                                                                       'cellspacing'=>'0',
+                                                                                       'cellpadding'=>'0',
+                                                                                       'bgcolor'=>'#003366'));
+$tabla_info_personal->addRow(array($tabla_info_personal_adentro));
+
+/* Armo la tabla de referencias */
+$tabla_referencias_adentro = new HTML_Table(array('width'=>'360',
+                                                                                       'border'=>'0',
+                                                                                       'valign'=>'top',
+                                                                                       'cellspacing'=>'2',
+                                                                                       'cellpadding'=>'0'));
+$row = array('Referencias');
+$tabla_referencias_adentro->addRow($row, array('colspan'=>'2', 'class'=>'titulo_form', 'align'=>'left'));
+
+$row = array('&nbsp;','Promedio diario');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#FFFFFF'));
+$row = array('&nbsp;','Sábados/Domingos/Feriados');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'lightblue'));
+$row = array('&nbsp;','Lic. extraordinaria');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#009999'));
+$row = array('&nbsp;','Otras inasistencias');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#CC66CC'));
+$row = array('&nbsp;','Inasistencias');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#FF9900'));
+$row = array('&nbsp;','Lic. enfermedad');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#00CC33'));
+$row = array('&nbsp;','Lic. anual ordinaria');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#3366FF'));
+$row = array('&nbsp;','Ausentes sin informar');
+$tabla_referencias_adentro->addRow($row,array('bgcolor'=>'#FF0000'));
+
+$tabla_referencias_adentro->updateColAttributes(0,array('width'=>'20',
+                                                                                                               'class'=>'titulo_columna'));
+
+
+$tabla_referencias_adentro->updateColAttributes(1,array('bgcolor'=>'#FFFFFF',
+                                                                                                               'width'=>'340',
+                                                                                                               'class'=>'txt_fila'));
+
+$tabla_referencias = new HTML_Table(array('width'=>'360',
+                                                                                       'border'=>'0',
+                                                                                       'cellspacing'=>'0',
+                                                                                       'cellpadding'=>'0',
+                                                                                       'bgcolor'=>'#003366'));
+$tabla_referencias->addRow(array($tabla_referencias_adentro));
+
+
+/* Agrego las tablas de referencia al cuerpo */
+$t = new HTML_Table(array('width'=>'760',
+                                                       'border'=>'0',
+                                                       'cellspacing'=>'0',
+                                                       'cellpadding'=>'0'));
+$row = array();
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                               '',
+                                               array('width'=>'360','height'=>'1','alt'=>'blanco'));
+array_push($row,$imagen);
+array_push($row,'');
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                               '',
+                                               array('width'=>'40','height'=>'1','alt'=>'blanco'));
+array_push($row,$imagen);
+$imagen = new MECON_HTML_Image('/MECON/images/blanco.gif',
+                                               '',
+                                               array('width'=>'360','height'=>'1','alt'=>'blanco'));
+array_push($row,$imagen);
+
+$t->addRow($row);
+$t->updateCellAttributes(0,0,array('colspan'=>'2'));
+
+$row = array($tabla_info_personal,'','&nbsp;',$tabla_referencias);
+$t->addRow($row,array('valign'=>'top'));
+$t->updateCellAttributes(1,0,array('colspan'=>'2'));
+
+/* Esta fila contiene las referencias */
+$row_cuerpo = array($t);
+$tabla_cuerpo->addRow($row_cuerpo,array('colspan'=>'9', 'class'=>'imprimir'));
+
+$m->addBodyContent($tabla_cuerpo);
+
+$m->addBodyContent('<BR>');
+
+/* Armo la tabla de información */
+$tabla_info_adentro = new HTML_Table(array('width'=>'760',
+                                                                                       'border'=>'0',
+                                                                                       'valign'=>'top',
+                                                                                       'cellspacing'=>'2',
+                                                                                       'cellpadding'=>'0'));
+$row = array('Mes: '.$mes.' - Año: '.$fecha_spliteada[0]);
+$tabla_info_adentro->addRow($row, array('colspan'=>'10', 'class'=>'titulo_form', 'align'=>'left'));
+
+
+$horas=$agente->getHoras();
+for($i=1;$i<4;$i++)
+{
+       $aux=($i-1)*10;
+       $row=array(1+$aux,2+$aux,3+$aux,4+$aux,5+$aux,6+$aux,7+$aux,8+$aux,9+$aux,10+$aux);
+
+       $tabla_info_adentro->addRow($row,array('width'=>'76',
+                                                                                       'background'=>'../../images/servicios_bandas_borde_tabla.gif',
+                                                                                       'class'=>'titulo_columna'));
+       
+       $row=array();
+       $celda_ASN=array();
+       $celda_NOV=array();
+       $celda_FER=array();
+       for($j=1;$j<11;$j++)
+       {
+               if(isset($horas[$j+$aux]['tiempo']))
+               {
+                       array_push($row,$horas[$j+$aux]['tiempo']);
+                       if($horas[$j+$aux]['tiempo']=='0:00')
+                       {
+                               ($horas[$j+$aux]['ASN']==1)?array_push($celda_ASN,$j-1):0;
+                               ($horas[$j+$aux]['ASN']==0 && $horas[$j+$aux]['tipo']=='laborable')?array_push($celda_NOV,array($j-1,$horas[$j+$aux]['fecha'])):0;
+                       }
+                       ($horas[$j+$aux]['ASN']==0 && $horas[$j+$aux]['tipo']=='no laborable')?array_push($celda_FER,$j-1):0;
+               }else
+               {
+                       array_push($row,'&nbsp');
+               }
+       }
+       
+       $tabla_info_adentro->addRow($row,array('bgcolor'=>'#FFFFFF', 'class'=>'txt_fila'));
+       $tabla_info_adentro->addRow(array('&nbsp;'),array('colspan'=>'10',
+                                                                                                               'bgcolor'=>'#FFFFFF',
+                                                                                                               'class'=>'txt_fila'));
+       foreach ($celda_ASN as $c)
+       {
+               $tabla_info_adentro->updateCellAttributes(($i-1)*3+2,$c,array('bgcolor'=>'red'));
+       }
+
+       foreach ($celda_NOV as $c)
+       {
+               $novedad =& new MECON_NovedadesDia($nrodoc,new date($c[1]));
+               if(preg_match('/^13/',$novedad->novedades[0]->codigo))
+               {
+                       $color='#009999';
+               }elseif(preg_match('/^15||^2606\/83$||^Adp$||^Com$||^Coms$||^FES\/REL$||^Fran$||^Grem$/',$novedad->novedades[0]->codigo))
+               {
+                       $color='#CC66CC';
+               }elseif(preg_match('/^14||^Asa$||^Pap$||^Sus$/',$novedad->novedades[0]->codigo))
+               {
+                       $color='#FF9900';
+               }elseif(preg_match('/^10||^Pat$/',$novedad->novedades[0]->codigo))
+               {
+                       $color='#00CC33';
+               }elseif(preg_match('/^9/',$novedad->novedades[0]->codigo))
+               {
+                       $color='#3366FF';
+               }
+
+               $tabla_info_adentro->updateCellAttributes(($i-1)*3+2,$c[0],array('bgcolor'=>$color));
+       }
+       
+       foreach ($celda_FER as $c)
+       {
+               $tabla_info_adentro->updateCellAttributes(($i-1)*3+2,$c,array('bgcolor'=>'lightblue'));
+       }
+
+}
+
+if(isset($horas[31]['tiempo']))
+{
+       $row = array(31,'Días Trabajados','','','Días Laborables Trabajados','','','Promedio','','');
+       
+       $tabla_info_adentro->addRow($row,array('class'=>'titulo_columna',
+                                                                                       'background'=>'../../images/servicios_bandas_borde_tabla.gif'));
+       
+       
+       $row = array($horas[31]['tiempo'],
+                               $agente->getDiasTrabajados(),'','',
+                               $agente->getDiasLaborablesTrabajados(),'','',
+                               $agente->getPromedioMensual(),'','');
+       $tabla_info_adentro->addRow($row,array('class'=>'txt_fila',
+                                                                                       'bgcolor'=>'#FFFFFF'));
+       if($horas[31]['tiempo']=='0:00')
+       {
+               ($horas[31]['ASN']==1)?$tabla_info_adentro->updateCellAttributes(11,0,array('bgcolor'=>'red')):0;
+               if($horas[31]['ASN']==0 && $horas[31]['tipo']=='laborable')
+               {
+                       preg_replace('/(..)$/','31',$fecha);
+                       $novedad =& new MECON_NovedadesDia($nrodoc,new date($fecha));
+                       if(preg_match('/^13/',$novedad->novedades[0]->codigo))
+                       {
+                               $color='#009999';
+                       }elseif(preg_match('/^15||^2606\/83$||^Adp$||^Com$||^Coms$||^FES\/REL$||^Fran$||^Grem$/',$novedad->novedades[0]->codigo))
+                       {
+                               $color='#CC66CC';
+                       }elseif(preg_match('/^14||^Asa$||^Pap$||^Sus$/',$novedad->novedades[0]->codigo))
+                       {
+                               $color='#FF9900';
+                       }elseif(preg_match('/^10||^Pat$/',$novedad->novedades[0]->codigo))
+                       {
+                               $color='#00CC33';
+                       }elseif(preg_match('/^9/',$novedad->novedades[0]->codigo))
+                       {
+                               $color='#3366FF';
+                       }
+                       $tabla_info_adentro->updateCellAttributes(11,0,array('bgcolor'=>$color));
+               }
+       }
+       ($horas[31]['ASN']==0 && $horas[31]['tipo']=='no laborable')?$tabla_info_adentro->updateCellAttributes(11,0,array('bgcolor'=>'#666666')):0;
+       
+       $tabla_info_adentro->updateCellAttributes(10,1,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(10,4,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(10,7,array('colspan'=>'3'));
+
+       $tabla_info_adentro->updateCellAttributes(11,1,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(11,4,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(11,7,array('colspan'=>'3'));
+
+}else
+{
+       $row = array('Días Trabajados','','','','Días Laborables Trabajados','','','Promedio','','');
+       $tabla_info_adentro->addRow($row,array('class'=>'titulo_columna',
+                                                                                       'background'=>'../../images/servicios_bandas_borde_tabla.gif'));
+       $tabla_info_adentro->updateCellAttributes(10,0,array('colspan'=>'4'));
+       $tabla_info_adentro->updateCellAttributes(10,4,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(10,7,array('colspan'=>'3'));
+       
+       $row = array($agente->getDiasTrabajados(),'','','',
+                               $agente->getDiasLaborablesTrabajados(),'','',
+                               $agente->getPromedioMensual(),'','');
+
+       $tabla_info_adentro->addRow($row,array('class'=>'txt_fila',
+                                                                                       'bgcolor'=>'#FFFFFF'));
+       $tabla_info_adentro->updateCellAttributes(11,0,array('colspan'=>'4'));
+       $tabla_info_adentro->updateCellAttributes(11,4,array('colspan'=>'3'));
+       $tabla_info_adentro->updateCellAttributes(11,7,array('colspan'=>'3'));
+
+}
+
+
+$tabla_info = new HTML_Table(array('width'=>'760',
+                                                                       'border'=>'0',
+                                                                       'cellspacing'=>'0',
+                                                                       'cellpadding'=>'0',
+                                                                       'bgcolor'=>'#003366'));
+
+$tabla_info->addRow(array($tabla_info_adentro));
+$m->addBodyContent($tabla_info);
+
+$m->addBodyContent('<BR>');
+
+/* Comienzo a mostrar los links con las notas, accesos y salidas autorizadas*/
+$tabla_notas = new HTML_Table(array('width'=>'760',
+                                                                       'border'=>'0',
+                                                                       'cellspacing'=>'0',
+                                                                       'cellpadding'=>'0',
+                                                                       'bgcolor'=>'#003366'));
+
+$imagen_notas = new MECON_HTML_Image('../../images/servicios_bandas_notas.gif',
+                                                        '',
+                                                       array('width'=>'24','height'=>'24'));
+
+$imagen_anterior = new MECON_HTML_Image('../../images/servicios_bandas_anterior.gif',
+                                                               '',
+                                                               array('width'=>'16','height'=>'10'));
+                                                               
+$imagen_visto = new MECON_HTML_Image('../../images/servicios_bandas_visto.gif',
+                                                               '',
+                                                               array('width'=>'16','height'=>'10'));
+
+$row = array($imagen_notas,'Nota: Fecha de último cruce con las novedades',$imagen_anterior->toHtml().' volver',$imagen_visto->toHtml().' accesos',$imagen_visto->toHtml().' salidas autorizadas');
+                       
+$tabla_notas->addRow($row,array('class'=>'imprimir',
+                                                                               'bgcolor'=>'#FFFFFF'));
+
+$tabla_notas->updateCellAttributes(0,0,array('width'=>'24','height'=>'24','class'=>'aclarar'));
+$tabla_notas->updateCellAttributes(0,1,array('width'=>'370','height'=>'30','class'=>'aclarar'));
+$tabla_notas->updateCellAttributes(0,2,array('width'=>'130','class'=>'imprimir'));
+$tabla_notas->updateCellAttributes(0,3,array('width'=>'130','class'=>'imprimir'));
+$tabla_notas->updateCellAttributes(0,4,array('width'=>'130','class'=>'imprimir'));
+$m->addBodyContent($tabla_notas);
+$m->display();
+?>
+
diff --git a/sistema/www/servicios/bandas/dependencia_rrhh.html b/sistema/www/servicios/bandas/dependencia_rrhh.html
new file mode 100644 (file)
index 0000000..3d34895
--- /dev/null
@@ -0,0 +1,173 @@
+<HTML>\r
+  <HEAD>\r
+    <TITLE>INTRANET</TITLE>\r
+    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+    <LINK rel="stylesheet" href="../estilos/bandas.css">\r
+    <SCRIPT language="JavaScript">\r
+    <!--\r
+    function MM_reloadPage(init) {  //reloads the window if Nav4 resized\r
+    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {\r
+    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}\r
+    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();\r
+    }\r
+    MM_reloadPage(true);\r
+    // -->\r
+    </SCRIPT>\r
+  </HEAD>\r
+  <BODY bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">\r
+    <TABLE width="760" border="0" cellspacing="0" cellpadding="0">\r
+      <TR> \r
+       <TD><IMG src="../images/blanco.gif" width="24" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="135" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="20" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="160" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="20" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="190" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="20" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="166" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="24" height="1"></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD height="24" colspan="9"><SPAN class="imprimir"></SPAN><SPAN class="imprimir"></SPAN><SPAN class="imprimir"></SPAN><SPAN class="titulo_tres">Resumen \r
+       por dependencia</SPAN></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD bgcolor="#FF9900" colspan="9"><IMG src="../images/blanco.gif" width="760" height="1"></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="7" height="30"><FONT class="dependencia">UNIDAD SECRETARIA DE \r
+       LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA Y ALIMENTOS</FONT></TD>\r
+       <TD height="30" class="imprimir">P&aacute;gina de Impresi&oacute;n</TD>\r
+       <TD height="30"><SPAN class="imprimir"><SPAN class="imprimir"><SPAN class="imprimir"><IMG src="../images/imprimir2.gif" width="24" height="24"></SPAN></SPAN></SPAN></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="2" height="30"> \r
+         <TABLE width="80" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="80" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD width="32" background="../images/borde_tabla.gif" class="titulo_columna">Mes:</TD>\r
+                   <TD width="42" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul"> \r
+                   Enero</SPAN></TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+       <TD height="30">&nbsp;</TD>\r
+       <TD height="30"> \r
+         <TABLE width="80" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="80" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD width="33" background="../images/borde_tabla.gif" class="titulo_columna">A&ntilde;o:</TD>\r
+                   <TD width="41" class="txt_azul" bgcolor="#FFFFFF">2003</TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+       <TD height="30">&nbsp;</TD>\r
+       <TD height="30"> \r
+         <TABLE width="190" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="190" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD width="118" background="../images/borde_tabla.gif" class="titulo_columna">Promedio \r
+                   horario: </TD>\r
+                   <TD width="66" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul"> \r
+                   06:53</SPAN></TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+       <TD height="30">&nbsp;</TD>\r
+       <TD colspan="2" height="30"> \r
+         <TABLE width="190" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="190" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD width="137" background="../images/borde_tabla.gif" class="titulo_columna">Cantidad \r
+                   de agentes:</TD>\r
+                   <TD width="47" class="txt_azul" bgcolor="#FFFFFF"> 33 </TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="2" height="30"><SPAN class="txt_azul"><IMG src="../images/v5.gif" width="15" height="10">Personal \r
+       a cargo</SPAN></TD>\r
+       <TD height="30">&nbsp;</TD>\r
+       <TD colspan="6" height="30"><SPAN class="txt_azul"><IMG src="../images/v5.gif" width="15" height="10">Categoría \r
+       de Agentes: Todos los disponibles</SPAN> </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="9"> \r
+         <TABLE width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="760" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD colspan="6" class="titulo_form">AGENTES</TD>\r
+                 </TR>\r
+                 <TR> \r
+                   <TD width="250" background="../images/borde_tabla.gif" class="titulo_columna">Apellido \r
+                   y Nombre</TD>\r
+                   <TD width="100" background="../images/borde_tabla.gif" class="titulo_columna">Categoría \r
+                   </TD>\r
+                   <TD width="150" background="../images/borde_tabla.gif" class="titulo_columna">Horario \r
+                   Oficial</TD>\r
+                   <TD width="120" background="../images/borde_tabla.gif" class="titulo_columna">% \r
+                   Días Trab. </TD>\r
+                   <TD width="120" background="../images/borde_tabla.gif" class="titulo_columna">Prom. \r
+                   Horario</TD>\r
+                   <TD width="20" background="../images/borde_tabla.gif">&nbsp;</TD>\r
+                 </TR>\r
+                 <TR> \r
+                   <TD width="250" bgcolor="#FFFFFF"><A href="http://intranet2.mecon.ar/bandas/result_name.epl?nrodoc=18753398&amp;anio_b=2003&amp;mes_b=1&amp;tipo_agente=todos&amp;descripcion=UNIDAD%20SECRETARIA%20DE%20LA%20SECRETARIA%20DE%20AGRICULTURA,%20GANADERIA,%20PESCA%20Y%20ALIMENTOS&amp;dep=A700000003&amp;page=dependencia.epl" class="txt_fila">ABENTE \r
+                   MONTEQUIN MARIA</A></TD>\r
+                   <TD width="100" class="txt_fila" bgcolor="#FFFFFF">C4</TD>\r
+                   <TD width="150" class="txt_fila" bgcolor="#FFFFFF">09:00 - 19:00</TD>\r
+                   <TD width="120" class="txt_fila" bgcolor="#FFFFFF">90.9 % </TD>\r
+                   <TD width="120" class="txt_fila" bgcolor="#FFFFFF">08:05:55 </TD>\r
+                   <TD width="20" bgcolor="#FFFFFF"><IMG src="../images/rojo.gif" width="20" height="20"></TD>\r
+                 </TR>\r
+                 <TR> \r
+                   <TD width="250" bgcolor="#FFFFFF"><A href="http://intranet2.mecon.ar/bandas/result_name.epl?nrodoc=18753398&amp;anio_b=2003&amp;mes_b=1&amp;tipo_agente=todos&amp;descripcion=UNIDAD%20SECRETARIA%20DE%20LA%20SECRETARIA%20DE%20AGRICULTURA,%20GANADERIA,%20PESCA%20Y%20ALIMENTOS&amp;dep=A700000003&amp;page=dependencia.epl" class="txt_fila">ABENTE \r
+                   MONTEQUIN MARIA</A></TD>\r
+                   <TD width="100" class="txt_fila" bgcolor="#FFFFFF">C4</TD>\r
+                   <TD width="150" class="txt_fila" bgcolor="#FFFFFF">09:00 - 19:00</TD>\r
+                   <TD width="120" class="txt_fila" bgcolor="#FFFFFF">90.9 % </TD>\r
+                   <TD width="120" class="txt_fila" bgcolor="#FFFFFF">08:05:55 </TD>\r
+                   <TD width="20" bgcolor="#FFFFFF"><IMG src="../images/rojo.gif" width="20" height="20"></TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD height="60" class="aclarar"><IMG src="../images/info.gif" width="24" height="24"> \r
+       </TD>\r
+       <TD colspan="8" height="60" class="aclarar">Información generada por el Área \r
+         de Control de Accesos. <BR>\r
+       Información controlada con el parte de novedades.</TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="9" class="imprimir"><IMG src="../images/anterior.gif" width="16" height="10">volver</TD>\r
+      </TR>\r
+    </TABLE>\r
+  </BODY>\r
+</HTML>\r
diff --git a/sistema/www/servicios/bandas/form_mes.php b/sistema/www/servicios/bandas/form_mes.php
new file mode 100644 (file)
index 0000000..21c8f36
--- /dev/null
@@ -0,0 +1,122 @@
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
+-------------------------------------------------------------------------------
+                             Ministerio de Economía
+                                    agenda
+-------------------------------------------------------------------------------
+This file is part of agenda.
+
+agenda is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
+
+agenda is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA  02111-1307  USA
+-------------------------------------------------------------------------------
+Creado: lun ago 11 14:10:35 ART 2003
+Autor:  Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id: agenda1.php 64 2003-08-21 18:48:28Z mmarre $
+-----------------------------------------------------------------------------*/
+
+//REQUIRE ONCE {{{
+require_once 'HTML/Table.php';
+require_once 'MECON/HTML/Tabla.php';
+require_once '../../../local_lib/HTML_DietMarco.php';
+require_once '../../../local_lib/Servicios/Bandas/Buscador.php';
+require_once 'MECON/HTML/QuickForm.php';
+require_once 'MECON/HTML/Image.php';
+require_once 'DB.php';
+//}}}
+
+//CREO LA CONEXION A LA BASE DE DATOS {{{
+$DB = DB::connect("mysql://intranet:intranet@bal747f/bandas",true);
+if (DB::isError($DB)) {
+    die ($DB->getMessage());
+}
+//}}}
+
+//CREO LOS OBJETOS NECESARIOS {{{
+$TABLAFORM = new MECON_HTML_Tabla ('width="500"', 'servicio');
+$MARCO     = new HTML_DietMarco('servicios');
+$FORM      = new MECON_HTML_QuickForm('bandas', 'post', 'banda_agente', '', array ('onSubmit' => "return validar(this)", 'action' => ''));
+$FORM->renderer->setTable($TABLAFORM);
+$TABLA     = new HTML_Table('width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"');
+
+//}}}
+//OBTENGO LOS DATOS DE LAS BASES {{{
+setlocale (LC_ALL, 'es_AR');
+$RESULT_MESES = Servicios_Bandas_Buscador::getMeses($DB);
+$MESES = array();
+foreach ($RESULT_MESES as $m)
+{
+       $mes = strftime("%B", mktime(0,0,0,$m[0],1,$m[1]));
+       $MESES[$m[1].'-'.$m[0]] = $m[1].'-'.$mes;
+}
+
+//}}}
+//AGREGO LOS ELEMENTOS AL FORM {{{
+$header        =& $FORM->addElement('header', 'comun'      , 'Ingreso de fecha');
+$edificio      =& $FORM->addElement('select', 'fecha'   , 'Meses Disponibles'   , $MESES, array('size' => '1'));
+//Agrego el botón del formulario
+$grupo   = array();
+$grupo[] =& HTML_QuickForm::createElement('submit', 'aceptar' , 'Buscar');
+$botones  =& $FORM->addGroup($grupo, 'botones');
+
+//}}}
+
+//ACOMODO EL FORM {{{
+$MARCO->addStyleSheet('../../css/servicios_bandas.css'); //EL PROBLEMA QUE ESTO LO NECESITO PARA QUE FUNCIONE EL RENDERER NUEVO
+//}}}
+
+
+//ARMO LA TABLA {{{
+$TABLA->addRow(array($FORM));
+
+//}}}
+//AGREGO EL JAVASCRIPT DE VALIDACION {{{
+//Este js esta copiado del epl original, ya que con los campos del formulario
+//llamados de la misma manera las reglas de validacion ya se cumplen.
+$JS = <<<EOT
+function validar(theForm)
+{
+if(theForm.interno.value=="" && theForm.nombre.value=="" && theForm.codep.value=="" && theForm.piso.value=="" && theForm.oficina.value==""
+&& (theForm.dependencia.value=="" || theForm.dependencia.value=='--Ingrese una palabra clave--')
+&& theForm.edificio.options[theForm.edificio.selectedIndex].value=="-")
+{
+    alert('Indique una opción de búsqueda');theForm.interno.focus();return(false);
+}
+
+if(theForm.interno.value=="" && theForm.nombre.value=="" && theForm.codep.value=="" && theForm.piso.value=="" && theForm.oficina.value==""
+&& (theForm.dependencia.value=="" || theForm.dependencia.value=='--Ingrese una palabra clave--')
+&& theForm.edificio.options[theForm.edificio.selectedIndex].value!="-")
+{
+    alert('Indique un párametro adicional para la búsqueda');theForm.edificio.focus();return(false);
+}
+
+if(theForm.interno.value=="" && theForm.nombre.value=="" && theForm.codep.value=="" && theForm.piso.value!="" && theForm.oficina.value==""
+&& (theForm.dependencia.value=="" || theForm.dependencia.value=='--Ingrese una palabra clave--') 
+&& theForm.edificio.options[theForm.edificio.selectedIndex].value=="-")
+{
+    alert('Indique el edificio');theForm.edificio.focus();return(false);
+}
+
+if (theForm.dependencia.value=="" || theForm.dependencia.value=='--Ingrese una palabra clave--')
+   {theForm.dependencia.value='-';}
+
+return(true);
+}
+EOT;
+//$MARCO->addScriptDeclaration($JS);
+//}}}
+//MUESTRO LA INFO {{{
+$MARCO->addTitle('Bandas Horarias');
+$MARCO->addBodyContent($TABLA);
+$MARCO->display();
+//}}}
+?>
diff --git a/sistema/www/servicios/bandas/mes_area.html b/sistema/www/servicios/bandas/mes_area.html
new file mode 100644 (file)
index 0000000..ceae77b
--- /dev/null
@@ -0,0 +1,211 @@
+<HTML>
+  <HEAD>
+    <TITLE>INTRANET</TITLE>
+    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+    <LINK rel="stylesheet" href="../estilos/bandas.css">
+    <SCRIPT language="JavaScript">
+    <!--
+    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
+    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
+    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
+    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
+    }
+    MM_reloadPage(true);
+    // -->
+    </SCRIPT>
+  </HEAD>
+  <BODY bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0" onLoad="">
+    <TABLE width="760" border="0" cellspacing="0" cellpadding="0">
+      <TR> 
+       <TD><IMG src="../images/blanco.gif" width="25" height="1"></TD>
+       <TD><IMG src="../images/blanco.gif" width="415" height="1"></TD>
+       <TD><IMG src="../images/blanco.gif" width="136" height="1"></TD>
+       <TD><IMG src="../images/blanco.gif" width="24" height="1"></TD>
+       <TD><IMG src="../images/blanco.gif" width="136" height="1"></TD>
+       <TD><IMG src="../images/blanco.gif" width="24" height="1"></TD>
+      </TR>
+      <TR> 
+       <TD colspan="2" class="titulo_tres">Resumen mensual por dependencia</TD>
+       <TD class="imprimir">Consultas</TD>
+       <TD class="titulo_tres"><SPAN class="imprimir"><IMG src="../images/mail.gif" width="24" height="24"></SPAN></TD>
+       <TD align="right"><SPAN class="imprimir"><SPAN class="imprimir">Buscar<SPAN class="imprimir"> 
+       </SPAN></SPAN></SPAN></TD>
+       <TD align="right"><SPAN class="imprimir"><SPAN class="imprimir"><SPAN class="imprimir"><IMG src="../images/lupa2.gif" width="24" height="24"></SPAN></SPAN></SPAN></TD>
+      </TR>
+      <TR align="center" bgcolor="#FF9900"> 
+       <TD colspan="6"><IMG src="../images/blanco.gif" width="760" height="1"></TD>
+      </TR>
+      <TR align="center"> 
+       <TD colspan="6"><IMG src="../images/blanco.gif" width="1" height="20"> </TD>
+      </TR>
+      <TR align="center"> 
+       <TD colspan="6"> 
+         <FORM name="form1" method="get" action="../zip/bandas_mes_area/./mes_area_rojos.epl">
+           <TABLE width="580" border="0" cellspacing="0" cellpadding="0">
+             <TR> 
+               <TD><IMG src="../images/blanco.gif" width="350" height="1"></TD>
+               <TD><IMG src="../images/blanco.gif" width="40" height="1"></TD>
+               <TD><IMG src="../images/blanco.gif" width="190" height="1"></TD>
+             </TR>
+             <TR> 
+               <TD align="right" valign="top"> 
+                 <TABLE width="350" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">
+                   <TR> 
+                     <TD> 
+                       <TABLE width="350" border="0" cellspacing="2" cellpadding="0">
+                         <TR> 
+                           <TD width="120" height="20" class="titulo_columna" background="../images/borde_tabla.gif">Tipo 
+                           de agente</TD>
+                           <TD width="230" bgcolor="#FFFFFF" " height="20"> <SPAN class="txt_fila"> 
+                             <SELECT name="select2">
+                               <OPTION value="planta">Planta Permanente</OPTION>
+                               <OPTION value="becarios">Pasantes</OPTION>
+                               <OPTION value="todos" selected>Todos los agentes disponibles</OPTION>
+                             </SELECT>
+                           </SPAN></TD>
+                         </TR>
+                         <TR> 
+                           <TD width="120" height="20" background="../images/borde_tabla.gif" class="titulo_columna">Mes</TD>
+                           <TD width="230" class="txt_fila" bgcolor="#FFFFFF" height="20"> 
+                             <SELECT name="select3">
+                               <OPTION value="1" selected> ENERO </OPTION>
+                               <OPTION value="2"> FEBRERO </OPTION>
+                               <OPTION value="3"> MARZO </OPTION>
+                               <OPTION value="4"> ABRIL </OPTION>
+                               <OPTION value="5"> MAYO </OPTION>
+                               <OPTION value="6"> JUNIO </OPTION>
+                               <OPTION value="7"> JULIO </OPTION>
+                               <OPTION value="8"> AGOSTO </OPTION>
+                               <OPTION value="9"> SETIEMBRE </OPTION>
+                               <OPTION value="10"> OCTUBRE </OPTION>
+                               <OPTION value="11"> NOVIEMBRE </OPTION>
+                               <OPTION value="12"> DICIEMBRE </OPTION>
+                             </SELECT>
+                           </TD>
+                         </TR>
+                         <TR> 
+                           <TD width="120" height="20" background="../images/borde_tabla.gif" class="titulo_columna">A&ntilde;o</TD>
+                           <TD width="230" class="txt_fila" bgcolor="#FFFFFF" height="20"> 
+                             <SELECT name="select4">
+                               <OPTION value="2003" selected>2003</OPTION>
+                               <OPTION value="2002">2002</OPTION>
+                             </SELECT>
+                           </TD>
+                         </TR>
+                         <TR> 
+                           <TD align="right" height="20" class="titulo_columna" background="../images/borde_tabla.gif" width="120">Ver 
+                           rojos </TD>
+                           <TD class="txt_fila" bgcolor="#FFFFFF" height="20" width="230"> 
+                             <INPUT name="rojos2" type="checkbox">
+                           </TD>
+                         </TR>
+                         <TR> 
+                           <TD colspan="2" bgcolor="#FFFFFF" height="20" align="right"> 
+                             <INPUT type="submit" name="Submit22" value="ver...">
+                           </TD>
+                         </TR>
+                       </TABLE>
+                     </TD>
+                   </TR>
+                 </TABLE>
+               </TD>
+               <TD>&nbsp;</TD>
+               <TD valign="top" align="left"> 
+                 <TABLE width="190" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">
+                   <TR> 
+                     <TD> 
+                       <TABLE width="190" border="0" cellspacing="2" cellpadding="0">
+                         <TR> 
+                           <TD width="139" background="../images/borde_tabla.gif" class="titulo_columna">Promedio 
+                           horario: </TD>
+                           <TD width="45" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul"> 
+                           06:53</SPAN></TD>
+                         </TR>
+                         <TR> 
+                           <TD width="139" background="../images/borde_tabla.gif" class="titulo_columna">Cantidad 
+                           de agentes:</TD>
+                           <TD width="45" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul">34</SPAN></TD>
+                         </TR>
+                       </TABLE>
+                     </TD>
+                   </TR>
+                 </TABLE>
+               </TD>
+             </TR>
+           </TABLE>
+           <BR>
+           <TABLE width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">
+             <TR> 
+               <TD> 
+                 <TABLE width="760" border="0" cellspacing="2" cellpadding="0">
+                   <TR> 
+                     <TD width="69" height="20" class="titulo_columna" bgcolor="#FFFFFF" background="../images/borde_tabla.gif">C&oacute;digo</TD>
+                     <TD colspan="2" " height="20" background="../images/borde_tabla.gif"> 
+                     <SPAN class="titulo_columna">Descripci&oacute;n </SPAN></TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel1">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS <IMG src="../images/lupa3.gif" width="20" height="11">ver</TD>
+                     <TD width="28" bgcolor="#FFFFFF" " height="20"><IMG src="../images/rojo.gif" width="20" height="20"></TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel2">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS</TD>
+                     <TD width="28" bgcolor="#FFFFFF" " height="20">&nbsp;</TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel3">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS</TD>
+                     <TD width="28" bgcolor="#FFFFFF" " height="20">&nbsp;</TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel4">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS</TD>
+                     <TD width="28" bgcolor="#FFFFFF" " height="20">&nbsp;</TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel5">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS</TD>
+                     <TD width="28" bgcolor="#FFFFFF" " height="20">&nbsp;</TD>
+                   </TR>
+                   <TR> 
+                     <TD width="69" height="20" bgcolor="#FFFFFF" class="txt_fila">A70000003</TD>
+                     <TD width="655" " height="20" bgcolor="#FFFFFF" class="nivel6">UNIDAD 
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA 
+                     Y ALIMENTOS</TD>
+                     <TD width="28" bgcolor="#FFFFFF" height="20">&nbsp;</TD>
+                   </TR>
+                 </TABLE>
+               </TD>
+             </TR>
+           </TABLE>
+         </FORM>
+       </TD>
+      </TR>
+      <TR align="center"> 
+       <TD colspan="6"><IMG src="../images/blanco.gif" width="1" height="20"> </TD>
+      </TR>
+      <TR align="center"> 
+       <TD class="aclarar" height="60"><IMG src="../images/info.gif" width="24" height="24"> 
+       </TD>
+       <TD class="aclarar" height="60">Información generada por el Área de Control 
+         de Accesos. <BR>
+       Información controlada con el parte de novedades.</TD>
+       <TD class="aclarar" height="60">&nbsp;</TD>
+       <TD class="aclarar" height="60">&nbsp;</TD>
+       <TD class="aclarar" height="60">&nbsp;</TD>
+       <TD class="aclarar" height="60">&nbsp;</TD>
+      </TR>
+    </TABLE>
+  </BODY>
+</HTML>
diff --git a/sistema/www/servicios/bandas/mes_area_rrhh.html b/sistema/www/servicios/bandas/mes_area_rrhh.html
new file mode 100644 (file)
index 0000000..013e3c2
--- /dev/null
@@ -0,0 +1,173 @@
+<HTML>\r
+  <HEAD>\r
+    <TITLE>INTRANET</TITLE>\r
+    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+    <LINK rel="stylesheet" href="../estilos/bandas.css">\r
+    <SCRIPT language="JavaScript">\r
+    <!--\r
+    function MM_reloadPage(init) {  //reloads the window if Nav4 resized\r
+    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {\r
+    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}\r
+    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();\r
+    }\r
+    MM_reloadPage(true);\r
+    // -->\r
+    </SCRIPT>\r
+  </HEAD>\r
+  <BODY bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">\r
+    <TABLE width="760" border="0" cellspacing="0" cellpadding="0">\r
+      <TR> \r
+       <TD><IMG src="../images/blanco.gif" width="25" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="575" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="136" height="1"></TD>\r
+       <TD><IMG src="../images/blanco.gif" width="24" height="1"></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="2" class="titulo_tres">Resumen mensual por dependencia</TD>\r
+       <TD align="right"><SPAN class="imprimir"><SPAN class="imprimir">Buscar<SPAN class="imprimir"> \r
+       </SPAN></SPAN></SPAN></TD>\r
+       <TD align="right"><SPAN class="imprimir"><SPAN class="imprimir"><SPAN class="imprimir"><IMG src="../images/lupa2.gif" width="24" height="24"></SPAN></SPAN></SPAN></TD>\r
+      </TR>\r
+      <TR bgcolor="#FF9900"> \r
+       <TD colspan="4" align="center"><IMG src="../images/blanco.gif" width="760" height="1"></TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4" align="center"><IMG src="../images/blanco.gif" width="1" height="20"> \r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4" align="center"> \r
+         <FORM name="form1" method="get" action="./mes_area_rrhh.epl">\r
+           <TABLE width="580" border="0" cellspacing="0" cellpadding="0">\r
+             <TR> \r
+               <TD><IMG src="../images/blanco.gif" width="350" height="1"></TD>\r
+               <TD><IMG src="../images/blanco.gif" width="40" height="1"></TD>\r
+               <TD><IMG src="../images/blanco.gif" width="190" height="1"></TD>\r
+             </TR>\r
+             <TR> \r
+               <TD align="right" valign="top"> \r
+                 <TABLE width="350" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+                   <TR> \r
+                     <TD> \r
+                       <TABLE width="350" border="0" cellspacing="2" cellpadding="0">\r
+                         <TR> \r
+                           <TD width="120" height="20" class="titulo_columna" background="../images/borde_tabla.gif">Tipo \r
+                           de agente</TD>\r
+                           <TD width="230" bgcolor="#FFFFFF" " height="20"> <SPAN class="txt_fila"> \r
+                             <SELECT name="select">\r
+                               <OPTION value="planta">Planta Permanente</OPTION>\r
+                               <OPTION value="becarios">Pasantes</OPTION>\r
+                               <OPTION value="todos" selected>Todos los agentes disponibles</OPTION>\r
+                             </SELECT>\r
+                           (*)</SPAN></TD>\r
+                         </TR>\r
+                         <TR> \r
+                           <TD width="120" height="20" background="../images/borde_tabla.gif" class="titulo_columna">Mes</TD>\r
+                           <TD width="230" class="txt_fila" bgcolor="#FFFFFF" height="20"> \r
+                             <SELECT name="select">\r
+                               <OPTION value="1" selected> ENERO </OPTION>\r
+                               <OPTION value="2"> FEBRERO </OPTION>\r
+                               <OPTION value="3"> MARZO </OPTION>\r
+                               <OPTION value="4"> ABRIL </OPTION>\r
+                               <OPTION value="5"> MAYO </OPTION>\r
+                               <OPTION value="6"> JUNIO </OPTION>\r
+                               <OPTION value="7"> JULIO </OPTION>\r
+                               <OPTION value="8"> AGOSTO </OPTION>\r
+                               <OPTION value="9"> SETIEMBRE </OPTION>\r
+                               <OPTION value="10"> OCTUBRE </OPTION>\r
+                               <OPTION value="11"> NOVIEMBRE </OPTION>\r
+                               <OPTION value="12"> DICIEMBRE </OPTION>\r
+                             </SELECT>\r
+                           </TD>\r
+                         </TR>\r
+                         <TR> \r
+                           <TD width="120" height="20" background="../images/borde_tabla.gif" class="titulo_columna">A&ntilde;o</TD>\r
+                           <TD width="230" class="txt_fila" bgcolor="#FFFFFF" height="20"> \r
+                             <SELECT name="select">\r
+                               <OPTION value="2003" selected>2003</OPTION>\r
+                               <OPTION value="2002">2002</OPTION>\r
+                             </SELECT>\r
+                           </TD>\r
+                         </TR>\r
+                         <TR> \r
+                           <TD colspan="2" bgcolor="#FFFFFF" height="20" align="right"> \r
+                             <INPUT type="submit" name="Submit222" value="ver...">\r
+                           </TD>\r
+                         </TR>\r
+                       </TABLE>\r
+                     </TD>\r
+                   </TR>\r
+                 </TABLE>\r
+               </TD>\r
+               <TD>&nbsp;</TD>\r
+               <TD valign="top" align="left"> \r
+                 <TABLE width="190" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+                   <TR> \r
+                     <TD> \r
+                       <TABLE width="190" border="0" cellspacing="2" cellpadding="0">\r
+                         <TR> \r
+                           <TD width="139" background="../images/borde_tabla.gif" class="titulo_columna">Promedio \r
+                           horario: </TD>\r
+                           <TD width="45" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul"> \r
+                           06:53</SPAN></TD>\r
+                         </TR>\r
+                         <TR> \r
+                           <TD width="139" background="../images/borde_tabla.gif" class="titulo_columna">Cantidad \r
+                           de agentes:</TD>\r
+                           <TD width="45" class="txt_fila" bgcolor="#FFFFFF"><SPAN class="txt_azul">34</SPAN></TD>\r
+                         </TR>\r
+                       </TABLE>\r
+                     </TD>\r
+                   </TR>\r
+                 </TABLE>\r
+               </TD>\r
+             </TR>\r
+           </TABLE>\r
+         </FORM>\r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4" align="center"><IMG src="../images/blanco.gif" width="1" height="20"> \r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4"><SPAN class="txt_fila"> (*) Por el momento no se incluyen \r
+       contratados</SPAN> </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4" align="center"><IMG src="../images/blanco.gif" width="1" height="20"> \r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD colspan="4" align="center"> \r
+         <TABLE width="700" border="0" cellspacing="0" cellpadding="0" bgcolor="#003366">\r
+           <TR> \r
+             <TD> \r
+               <TABLE width="700" border="0" cellspacing="2" cellpadding="0">\r
+                 <TR> \r
+                   <TD width="69" height="20" class="titulo_columna" bgcolor="#FFFFFF" background="../images/borde_tabla.gif">C&oacute;digo</TD>\r
+                   <TD colspan="2" " height="20" background="../images/borde_tabla.gif"> \r
+                   <SPAN class="titulo_columna">Descripci&oacute;n </SPAN></TD>\r
+                 </TR>\r
+                 <TR> \r
+                   <TD width="69" height="20" class="txt_fila" bgcolor="#FFFFFF">A70000003</TD>\r
+                   <TD width="595" " height="20" bgcolor="#FFFFFF"><FONT class="txt_azul">UNIDAD \r
+                       SECRETARIA DE LA SECRETARIA DE AGRICULTURA, GANADERIA, PESCA \r
+                   Y ALIMENTOS</FONT></TD>\r
+                   <TD width="28" bgcolor="#FFFFFF" " height="20"><IMG src="../images/rojo.gif" width="20" height="20"></TD>\r
+                 </TR>\r
+               </TABLE>\r
+             </TD>\r
+           </TR>\r
+         </TABLE>\r
+       </TD>\r
+      </TR>\r
+      <TR> \r
+       <TD class="aclarar" height="60" align="center"><IMG src="../images/info.gif" width="24" height="24"></TD>\r
+       <TD colspan="3" class="aclarar" height="60" align="center">Información generada \r
+         por el Área de Control de Accesos. <BR>\r
+       Información controlada con el parte de novedades. </TD>\r
+      </TR>\r
+    </TABLE>\r
+  </BODY>\r
+</HTML>\r