Beispiel #1
0
            }
            // Fin del For que recorre la matriz de los anexos de cada radicado perteneciente al expediente
        }
        $rs->MoveNext();
    }
}
// Fin del While que Recorre los documentos de un expediente.
if ($usuaPermExpediente and $verradPermisos == "Full" or $dependencia == '999') {
}
$arrAnexoAsociado = $expediente->expedienteAnexoAsociado($verrad);
if (is_array($arrAnexoAsociado)) {
    include_once "{$ruta_raiz}/include/tx/Radicacion.php";
    $rad = new Radicacion($db);
    foreach ($arrAnexoAsociado as $clave => $datosAnexoAsociado) {
        if ($datosAnexoAsociado['radPadre'] != "" && $datosAnexoAsociado['radPadre'] != $verrad && $datosAnexoAsociado['anexo'] == $verrad) {
            $arrDatosRad = $rad->getDatosRad($datosAnexoAsociado['radPadre']);
            if ($arrDatosRad['ruta'] != "") {
                if (substr($datosAnexoAsociado['radPadre'], 0, 4) == '2007') {
                    $rut = "bodega2007/";
                } elseif (substr($datosAnexoAsociado['radPadre'], 0, 4) == '2008') {
                    $rut = "bodega2008/";
                } else {
                    $rut = "bodega/";
                }
                $rutaRadicado = "<a href='" . $rut . $arrDatosRad['ruta'] . "' >" . $datosAnexoAsociado['radPadre'] . "</a>";
            } else {
                $rutaRadicado = $datosAnexoAsociado['radPadre'];
            }
            $radicadoAnexo = $datosAnexoAsociado['radPadre'];
            $tipoRelacion = "ANEXO DE (PADRE)";
        } else {
Beispiel #2
0
            $tablaRads .= "<table  width=100% class='borde_tab' align='center' cellpadding='0' cellspacing='0'>\n\t\t\t\t\t\t<tr class='timparr'>\n\t\t\t\t\t\t\t<td colspan='6' class='titulos2'><center><font><b>Actualmente no tiene Radicados Archivados</b></font></center></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>";
        }
    }
    if ($verrad && $expediente) {
        $arrAnexoAsociado = $expediente->expedienteAnexoAsociado($verrad, $numExpediente);
        if (is_array($arrAnexoAsociado) && count($arrAnexoAsociado) > 0) {
            include_once "{$ruta_raiz}/include/tx/Radicacion.php";
            $rad = new Radicacion($db);
            $tblAnexAsoc = "<table width='100%' class='borde_tab' cellspacing='0' cellpadding='0' align='center' id='tblAnexoAsociado'>\n\t\t  \t\t\t\t\t<tr>\n\t\t    \t\t\t\t\t<td class='titulos5'>Y ESTA RELACIONADO CON EL(LOS) SIGUIENTE(S) DOCUMENTOS:</td>\n\t\t    \t\t\t\t\t<td class='titulos5' align='center'>";
            //if(($expediente->responsable==$_SESSION['usua_doc'] && $expediente->fase<2 and $expediente->depCodi==$_SESSION['dependencia'] ) || ($_SESSION["usua_admin_archivo"]>=1 and $expediente->fase>=2))
            //{
            $tblAnexAsoc .= "<span class='leidos2'><b>ARCHIVAR DOCUMENTOS EN EXPEDIENTE:</b></span><input type='submit' name='btnAanexoAsociado' value='>>' class='botones_2' onclick='return validaAA();' >";
            //}
            $tblAnexAsoc .= "</td>\n\t\t\t\t\t\t\t  </tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t<table border=0 width=100% class='borde_tab' align='center'>\n\t\t\t\t\t\t\t  <tr class='titulos5'>\n\t\t\t\t\t\t\t    <td class='titulos5'><input type='checkbox' name='checkTodosInc' id='checkTodosInc' value='checkbox' onClick='todosInc();'></td>\n\t\t\t\t\t\t\t    <td align='center'>RADICADO</td>\n\t\t\t\t\t\t\t    <td align='center'>FECHA RADICACION</td>\n\t\t\t\t\t\t\t    <td align='center'>TIPO DOCUMENTO</td>\n\t\t\t\t\t\t\t    <td align='center'>ASUNTO</td>\n\t\t\t\t\t\t\t    <td align='center'>TIPO DE RELACION</td>\n\t\t\t\t\t\t\t  </tr>";
            foreach ($arrAnexoAsociado as $clave => $datosAnexoAsociado) {
                $arrDatosRad = $rad->getDatosRad($datosAnexoAsociado['radicado']);
                if ($arrDatosRad['ruta'] != "") {
                    $rutaRadicado = "<a href='{$ruta_raizImg}/seguridadImagen.php?fec=" . base64_encode($arrDatosRad['ruta']) . "&ln=" . base64_encode("check") . "' >" . $datosAnexoAsociado['radicado'] . "</a>";
                } else {
                    $rutaRadicado = $datosAnexoAsociado['radicado'];
                }
                $radicadoAnexo = $datosAnexoAsociado['radicado'];
                $tipoRelacion = $datosAnexoAsociado['tipoAsoc'];
                $tblAnexAsoc .= "<tr class='listado5'>\n\t\t\t\t\t\t\t\t\t    \t<td><input type='checkbox' name='chkRadsInc[{$radicadoAnexo}]' id='chkRadsInc[{$radicadoAnexo}]' value='{$radicadoAnexo}'></td>\n\t\t\t\t\t\t\t\t\t    \t<td>{$rutaRadicado}</td>\n\t\t\t\t\t\t\t\t\t    \t<td><a href='{$ruta_raizImg}/verradicado.php?verrad={$radicadoAnexo}&" . session_name() . "=" . session_id() . "&krd={$krd}' target='VERRAD{$radicadoAnexo}'>" . $arrDatosRad['fechaRadicacion'] . "</a></td>\n\t\t\t\t\t\t\t\t\t    \t<td>" . $arrDatosRad['tipoDocumento'] . "</td>\n\t\t\t\t\t\t\t\t\t    \t<td>" . $arrDatosRad['asunto'] . "</td>\n\t\t\t\t\t\t\t\t\t    \t<td>" . $tipoRelacion . "</td>\n\t\t\t\t\t\t\t  \t \t\t</tr>";
            }
            $tblAnexAsoc .= "</table>";
        }
    }
}
?>