]> git.llucax.com Git - mecon/intranet.git/blobdiff - sistema/www/servicios/bandas/banda_agente.php
-Cambie de nombre al icono de visto.
[mecon/intranet.git] / sistema / www / servicios / bandas / banda_agente.php
index 0d0f3182a1b47167d34b55ee776f61b2ba8b6619..ed15ab8493f07cd12c8955f5b461ccfa031b983c 100644 (file)
@@ -2,7 +2,6 @@
 require_once '../../../local_lib/HTML_DietMarco.php';
 require_once 'MECON/HTML/Image.php';
 require_once 'MECON/HTML/Link.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';
@@ -35,7 +34,7 @@ $m->addStyleSheet('../../css/servicios_bandas.css');
 $tabla_cuerpo = new HTML_Table(array('width'=>'760','border'=>'0','cellspacing'=>'0','cellpadding'=>'0'));
 
 /* Encabezado propio de la pagina */
-$imagen = new MECON_HTML_Image('../../images/servicios_bandas_imprimir1.gif',
+$imagen = new MECON_HTML_Image('../../images/servicios_imprimir1.gif',
                                                 '',
                                                array('width'=>'24','height'=>'24','alt'=>'imprimir'));
 $row_cuerpo = array('Datos Personales',
@@ -262,8 +261,16 @@ for($i=1;$i<4;$i++)
                        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;
+                               if($horas[$j+$aux]['ASN']==1 || $horas[$j+$aux]['inconsistencia']==1)
+                               {
+                                       array_push($celda_ASN,$j-1);
+                                       
+                               }
+                               if($horas[$j+$aux]['ASN']==0 && $horas[$j+$aux]['tipo']=='laborable')
+                               {
+                                       array_push($celda_NOV,array($j-1,$horas[$j+$aux]['fecha']));
+                                       $row[$j-1]="<a href=\"\" onClick=\"window.open('./nov_dia.php?nrodoc=".$nrodoc."&fecha=".$horas[$j+$aux]['fecha']."','novedad','width=250,height=100');return(false);\">".$row[$j-1]."</a>";
+                               }
                        }
                        ($horas[$j+$aux]['ASN']==0 && $horas[$j+$aux]['tipo']=='no laborable')?array_push($celda_FER,$j-1):0;
                }else
@@ -271,7 +278,6 @@ for($i=1;$i<4;$i++)
                        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',
@@ -317,14 +323,21 @@ if(isset($horas[31]['tiempo']))
        
        $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(),'','');
+
+       if($horas[31]['tiempo']=='0:00' && $horas[31]['ASN']==0 && $horas[31]['tipo']=='laborable')
+       {
+               $row[0]="<a href=\"\" onClick=\"window.open('./nov_dia.php?nrodoc=".
+                                       $nrodoc."&fecha=".$horas[31]['fecha'].
+                                       "','novedad','width=\"250\" height=\"100\"');return(false);\">
+                                       ".$horas[31]['tiempo']."</a>";
+       }
        $tabla_info_adentro->addRow($row,array('class'=>'txt_fila',
                                                                                        'bgcolor'=>'#FFFFFF'));
+
        if($horas[31]['tiempo']=='0:00')
        {
                if($horas[31]['ASN']==1)
@@ -407,7 +420,7 @@ $tabla_notas = new HTML_Table(array('width'=>'760',
                                                                        'cellpadding'=>'0',
                                                                        'bgcolor'=>'#003366'));
 
-$imagen_notas = new MECON_HTML_Image('../../images/servicios_bandas_notas.gif',
+$imagen_notas = new MECON_HTML_Image('../../images/servicios_notas.gif',
                                                         '',
                                                        array('width'=>'24','height'=>'24','valign'=>'top'));
 
@@ -415,7 +428,7 @@ $imagen_anterior = new MECON_HTML_Image('../../images/servicios_bandas_anterior.
                                                                '',
                                                                array('width'=>'16','height'=>'10','valign'=>'top'));
                                                                
-$imagen_visto = new MECON_HTML_Image('../../images/servicios_bandas_visto.gif',
+$imagen_visto = new MECON_HTML_Image('../../images/servicios_visto.gif',
                                                                '',
                                                                array('width'=>'16','height'=>'10','valign'=>'top'));
 $link_volver = new MECON_HTML_LINK('./','volver');
@@ -430,13 +443,8 @@ $tabla_notas->updateCellAttributes(0,1,array('width'=>'370','height'=>'30','clas
 $tabla_notas->updateCellAttributes(0,2,array('width'=>'130','class'=>'imprimir_bandas'));
 $tabla_notas->updateCellAttributes(0,3,array('width'=>'130','class'=>'imprimir_bandas'));
 $tabla_notas->updateCellAttributes(0,4,array('width'=>'130','class'=>'imprimir_bandas'));
+
 $m->addBodyContent($tabla_notas);
-/*
-echo $tabla_cuerpo->toHtml();
-echo "<BR>";
-echo $tabla_info->toHtml();
-echo $tabla_notas->toHtml();
-*/
 $m->display();
 ?>