function formMenuIntermedio($items, $sv, $titulo1, $msg1)
{
    ?>






A continuación se presenta el formulario para la
generación de páginas intermedias.


<!-- Formulario para el directorio -->

<br/><br/>

<form name="frm" method="POST" action="histo-proc.php">

<input type="submit" value="Generar página" />
<br/><br/>

<?php 
    echo "<input type='hidden' name='titulo' value='" . $titulo1 . "'/>\n";
    echo "<input type='hidden' name='sv' value='" . $sv . "'/>\n";
    echo "<input type='hidden' name='archivo' value='" . $sv . '.html' . "'/>\n";
    //Valores anuales
    echo "<table class='tabla'><tr><th>T&iacute;tulo: </th><th colspan='3'>";
    echo acentosHTML("<input type='text' size='60' name='tit1' value='" . $titulo1 . "'/></th></tr>\n");
    echo "<tr><td>Mensaje: </td><td colspan='3'>";
    echo acentosHTML("<textarea cols='50' rows='3' name='mensaje'>" . $msg1 . "</textarea></td></tr>\n");
    //for($y=$_POST['desde_ano'];$y<=$para_ano;$y++) {
    //  echo "<tr><td>Opci&oacute;n $y: </td><td><input type='text' size='30' name='opc[]' value='A&ntilde;o $y'/></td>";
    //  echo "<td>Enlace: </td><td><input type='text' size='30' name='lnk[]' value='$y/$url1'/></td></tr>\n";
    //}
    foreach ($items as $key => $val) {
        echo '<tr>';
        echo '<td>Opción</td>';
        echo '<td><input type="text" name="opc[]" value="' . $key . '"/></td>';
        echo '<td>Enlace</td>';
        echo '<td><input type="text" name="lnk[]" value="' . $val . '"/></td>';
        echo '</tr>';
    }
    echo "</table><br/><br/>\n";
    ?>

<input type="submit" value="Generar página" />
<br/><br/><?php 
    echo html_button($_SESSION['back']);
    ?>

</form>



<?php 
}
function formularioExcepcion($opciones, $titulo, $sv, $archivo, $textarea_readonly = false)
{
    if ($textarea_readonly) {
        $textarea_readonly = 'readonly="readonly"';
    } else {
        $textarea_readonly = '';
    }
    $url_main = isset($_GET['g']) ? "generar.php" : "main.php";
    $ret = "\n\n <!--  -->\n<form method='post' action='msg-proc.php' name='frm_{$sv}'>\n\n <input type='hidden' name='titulo' value='{$titulo}' />\n <input type='hidden' name='sv' value='{$sv}' />\n <input type='hidden' name='archivo' value='{$archivo}' />";
    if ($opciones) {
        $ret .= "Textos predefinidos: &nbsp; \n\t <select name='sel' onchange='frm_{$sv}.texto.value=frm_{$sv}.sel.value;'>\n\t  <option value=''>-- Elija un texto --</option>\n\t";
        foreach ($opciones as $k => $v) {
            $ret = $ret . acentosHTML("  <option value='{$v}'>{$k}</option>\n");
        }
        $ret = $ret . " </select><br/>";
    }
    $ret .= "<textarea " . $textarea_readonly . " name=\"texto\" cols=\"40\" rows=\"6\"></textarea><br/>\n <input type=\"submit\" value=\"Procesar\" />\n</form>\n<br/><br/>\n" . html_button($_SESSION['back']);
    return $ret;
}
function toLista($orga, $li_estilo, $ul_estilo)
{
    $htm = "<li class='{$li_estilo}'>";
    if (trim($orga['url']) != "") {
        $htm = "{$htm} <a href='" . $orga['url'] . "'>" . $orga['funcion'] . " " . $orga['titulo'] . "</a>";
    } else {
        $htm = "{$htm}" . $orga['funcion'] . " " . $orga['titulo'];
    }
    if (trim($orga['glosa']) != "") {
        $htm = "{$htm}: <i>" . $orga['glosa'] . "</i>";
    }
    $hijos = $orga['hijos'];
    if ($hijos != array()) {
        for ($i = 0; $i < count($hijos); $i++) {
            $htm = $htm . toLista($hijos[$i], $i < count($hijos) - 1 ? "" : "fin", "menu");
        }
    }
    $htm = $htm . "</li>\n";
    return acentosHTML("<ul class='{$ul_estilo}'>\n{$htm}\n</ul>\n");
}
Example #4
0
function menu($titulo, $arr)
{
    $titulo = acentosHTML($titulo);
    $ret = "\r\n\r\n\r\n <!--  {$titulo}  -->\r\n\r\n <p class='subMenu'>\r\n <b>{$titulo}</b>\n";
    foreach ($arr as $key => $value) {
        $key = acentosHTML($key);
        $ret = "{$ret}\n <a href='{$value}' title='Link a: {$key}'>{$key}</a>\n";
    }
    $ret = "{$ret}\n<u></u></p>\n\n";
    echo $ret;
}
<br/><br/>

<form name="frm" method="POST" action="histo-proc.php">

<input type="submit" value="Generar hist&oacute;rico" />
<br/><br/>

<?php 
echo "<input type='hidden' name='titulo' value='" . $_POST['titulo1'] . "'/>\n";
echo "<input type='hidden' name='archivo' value='" . $_POST['archivo1'] . "'/>\n";
echo "<input type='hidden' name='sv' value='" . $_POST['sv'] . "'/>\n";
//Valores anuales
echo "<table class='tabla'><tr><th>T&iacute;tulo: </th><th colspan='3'>";
echo acentosHTML("<input type='text' size='60' name='tit1' value='" . $_POST['tit1'] . "'/></th></tr>\n");
echo "<tr><td>Mensaje: </td><td colspan='3'>";
echo acentosHTML("<textarea cols='50' rows='3' name='mensaje'>" . $_POST['msg1'] . "</textarea></td></tr>\n");
for ($y = $_POST['desde_ano']; $y <= $para_ano; $y++) {
    echo "<tr><td>Opci&oacute;n {$y}: </td><td><input type='text' size='30' name='opc[]' value='A&ntilde;o {$y}'/></td>";
    echo "<td>Enlace: </td><td><input type='text' size='30' name='lnk[]' value='{$y}/{$url1}'/></td></tr>\n";
}
echo "</table><br/><br/>\n";
?>

<input type="submit" value="Generar hist&oacute;rico" />
<br/><br/><?php 
echo html_button($_SESSION['back']);
?>

</form>

    $organik['url'] = "";
}
if (isset($_GET['n']) && isset($_GET['q'])) {
    if ($_GET['q'] == 'new') {
        $organik = addChild($organik, $_GET['n']);
    }
    if ($_GET['q'] == 'del') {
        $organik = deleteNode($organik, $_GET['n']);
    }
}
if (isset($_POST['funcion'])) {
    $info = array('funcion' => acentosHTML($_POST['otra']), 'titulo' => acentosHTML($_POST['titulo']), 'glosa' => acentosHTML($_POST['glosa']), 'url' => acentosHTML($_POST['url']));
    $organik = updateInfo($organik, $_POST['id'], $info);
}
if (isset($_POST['cargo'])) {
    $_SESSION['comm'] = acentosHTML($_POST['cargo']);
}
$_SESSION['data'] = $organik;
org_header("Editor de Estructuras Org&aacute;nicas");
?>

<form action="organica-d.php" method="post">
<input type="button" value="Generar"
onclick="location.href='organica-d.php';" />
</form>


<?php 
echo toListaEditor($organik, "", "primer_nodo");
?>
<input type="submit" value="Generar hist&oacute;rico" />

<br/><br/>

<?php 
echo "<input type='hidden' name='titulo' value='" . $titu . "'/>\n";
echo "<input type='hidden' name='archivo' value='" . $arch . "'/>\n";
echo "<input type='hidden' name='mensaje' value='" . $msg . "'/>\n";
//Valores anuales
foreach ($lista as $a => $b) {
    echo "<table class='tabla'><tr><th>T&iacute;tulo: </th><th colspan='3'>";
    echo acentosHTML("<input type='text' size='60' name='menu[]' value='{$a}'/></th></tr>\n");
    $k = 1;
    foreach ($b as $c => $d) {
        echo acentosHTML("<tr><td>Opci&oacute;n {$k}: </td><td><input type='text' size='30' name='opc" . $k . "[]' value='{$c}'/></td>");
        echo acentosHTML("<td>Enlace: </td><td><input type='text' size='30' name='lnk" . $k . "[]' value='{$d}'/></td></tr>\n");
        $k++;
        if ($k == 4) {
            break;
        }
    }
    for (; $k <= 4; $k++) {
        echo "<tr><td>Opci&oacute;n {$k}: </td><td><input type='text' size='30' name='opc" . $k . "[]' value=''/></td>";
        echo "<td>Enlace: </td><td><input type='text' size='30' name='lnk" . $k . "[]' value=''/></td></tr>\n";
    }
    echo "</table><br/><br/>\n";
}
?>

<input type="submit" value="Generar hist&oacute;rico" /><br/><br/>
<?php 
     position: 'before',
     attached: 'table',
     labelText: 'Buscar en esta p&aacute;gina: ',
     delay: 50                                       
   });                     
 });
</script>
<?php 
echo acentosHTML(ArrayToTable(ArrayProject($csv, array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)), 15, array(11), array('Si'), array('No')));
echo '<br />';
if (getNumPags($_SESSION['data']['contrata']) > 1) {
    echo "<center>\n";
    echo $pag == 1 ? "1" : "<a href='per_contrata.html'>1</a>";
    for ($i = 2; $i <= getNumPags($_SESSION['data']['contrata']); $i++) {
        echo $i == $pag ? " - {$i}" : " - <a href='per_contrata-{$i}.html'>{$i}</a>";
    }
    echo "</center><br/>\n";
}
?>

<div id="footnotes">
<?php 
echo acentosHTML(nl2br($_SESSION['footnotes']['contrata']));
?>
</div>

<br />

<?php 
echo html_volver("../contrata_historico.html");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " personal_contrata " . date('Y-m-d'));
<?php

require_once "common-histo.php";
html_header("Directorio Hist&oacute;rico de Otras Transferencias");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de las transferencias que\nno están en el sitio Registros ley N&deg; 19.862.\n<br/><br/>");
formHistorico("transferencias_historico.html", "Directorio Anual de Otras Transferencias", "Este directorio organiza las transferencias fuera de Registros ley N&deg; 19.862, por año.", array("Otras transferencias" => "transferencias.html"), "transferencias_historico_mensual.html", "Directorio Mensual de Otras Transferencias", "Este directorio organiza las transferencias fuera de Registros ley N&deg; 19.862, por mes.", array("Otras transferencias" => "transferencias.html"), "transferencias_historico");
?>

<?php 
html_footer();
<?php

require_once "common-histo.php";
html_header("Directorio Hist&oacute;rico de Programas Sociales y Beneficiarios");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de las nóminas de beneficiarios\nde programas sociales generadas por el conversor\nindicado.\n<br/><br/>");
formHistorico("subsidio_historico.html", "Directorio Anual de Programas de Subsidios y Otros Beneficios", "Este directorio organiza los programas de subsidios y otros beneficios por año.", array("Programas de subsidios y otros beneficios" => "subsidio_programas.html"), "subsidio_historico_mensual.html", "Directorio Mensual de Programas de Subsidios y Otros Beneficios", "Este directorio organiza los programas de subsidios y otros beneficios por mes.", array("Programas de subsidios y otros beneficios" => "subsidio_programas.html"), "subsidio_historico", 2009);
?>

<?php 
html_footer();
<?php

require_once "common-url.php";
html_header("URL: Estructura Org&aacute;nica");
echo acentosHTML("\nIngrese la URL de la página que contiene la\nestructura orgánica de su organismo.<br/>\nPuede usar esta funcionalidad si no desea\nutilizar el editor de estructuras orgánicas o\nbien si desea agregar información adicional.\n");
?>

<br/><br/>


<?php 
echo formularioURL("URL: Estructura Orgánica", "La URL de la estructura orgánica ha sido actualizada.", "url_organica", "(Ej. http://www.sitio.gob.cl/organica.html )");
?>



<?php 
html_footer();
<div id="incentivos">
<strong>Escala de incentivos y metas</strong>
<br/>

<script type="text/javascript">
 $(document).ready(function () {
   $('#incentivos tbody tr').quicksearch({
     stripeRowClass: ['odd', 'even'],
     position: 'before',
     attached: '#incentivos table',
     labelText: 'Buscar en esta p&aacute;gina: ',
     delay: 50
   });
 });
</script>




<?php 
$csv = arrayPagina($_SESSION['data']['incentivos'], 0);
$cols = count($csv[0]);
echo acentosHTML(ArrayToTable($csv, $cols, -1));
?>
</div>


<?php 
echo html_volver("javascript:history.back()");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " remuneraciones " . date('Y-m-d'));
<?php

require_once "common-histo.php";
html_header("Directorio Hist&oacute;rico de Auditor&iacute;as al Ejercicio Presupuestario");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de las páginas de auditoría\ngeneradas por el conversor indicado.\n<br/><br/>");
formHistorico("auditorias_historico.html", "Directorio Anual de Auditorías al Ejercicio Presupuestario", "Este directorio organiza las auditorías al Organismo por año.", array("Informes de auditoría" => "auditorias.html"), "auditorias_historico_mensual.html", "Directorio Mensual de Auditorías al Ejercicio Presupuestario", "Este directorio organiza las auditorías al Organismo por mes.", array("Informes de auditoría" => "auditorias.html"), "auditorias_historico", 2009);
?>

<?php 
html_footer();
Example #14
0
<?php

require_once "common.php";
$_SESSION['nombre'] = acentosHTML($_POST['nombre']);
$_SESSION['sigla'] = acentosHTML($_POST['sigla']);
$_SESSION['rut'] = acentosHTML($_POST['rut']);
$_SESSION['direccion'] = acentosHTML($_POST['direccion']);
$_SESSION['fono'] = acentosHTML($_POST['fono']);
$_SESSION['url'] = acentosHTML($_POST['url']);
$_SESSION['email'] = acentosHTML($_POST['email']);
$_SESSION['cweb'] = acentosHTML($_POST['cweb']);
$_SESSION['logo'] = acentosHTML($_POST['logo']);
html_header("Datos del Organismo (actualizados)");
?>

Los datos de su organismo
han sido actualizados.


<br/><br/>
<?php 
echo html_button($_SESSION['back']);
?>


<?php 
echo html_footer();
Example #15
0
<?php

require_once "common.php";
if ($depurar != 1) {
    header('Content-Disposition: attachment; filename="' . $_POST['archivo'] . '"');
}
html_header(acentosHTML($_POST['titulo']));
$_SESSION[$_POST['sv']] = "SI";
echo acentosHTML($_POST['mensaje']);
echo "<br/><br/>";
$titulo = $_POST['tit1'];
$opc = $_POST['opc'];
$lnk = $_POST['lnk'];
echo "<div style='overflow: hidden;'><p class='subMenu'>\n";
echo acentosHTML("<b>" . $titulo . "</b>");
for ($i = 0; $i < count($opc); $i++) {
    echo acentosHTML("<a href='" . $lnk[$i] . "'>" . $opc[$i] . "</a>");
}
echo "<u></u></p></div><br />\n";
echo html_volver("index.html");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " " . $_POST['sv'] . " " . date('Y-m-d'));
Example #16
0
<?php

require_once "common.php";
$titulo = $_POST['titulo'];
$archivo = $_POST['archivo'];
$texto = $_POST['texto'];
$sv = $_POST['sv'];
//Para descargar
if ($depurar != 1) {
    header("Content-Disposition: attachment; filename=\"{$archivo}\"");
}
$_SESSION[$sv] = "SI";
html_header(acentosHTML($titulo));
//echo "<h3><b>&Uacute;ltima actualizaci&oacute;n:</b>".date("d/m/Y")."</h3><br/>";
echo acentosHTML(str_replace("\n", "<br/>", $texto)) . "<br/><br/>";
echo html_volver("javascript:history.go(-1)");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " " . $sv . " " . date('Y-m-d'));
<?php

require_once "common-histo.php";
$_SESSION['back'] = "personal_historico.php";
html_header("Directorio Hist&oacute;rico de Dotación de Personal");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de dotación de personal\nde su Organismo.\n<br/><br/>");
echo "<h2>Dotaci&oacute;n de Planta</h2>";
formHistorico("planta_historico.html", "Directorio Anual de Dotación de Planta", "Este directorio organiza la dotación de personal de planta por año.", array("Dotación de personal de planta" => "per_planta.html"), "", "", "", array(), "planta_historico", 2006, 0);
echo "<h2>Dotaci&oacute;n a Contrata</h2>";
formHistorico("contrata_historico.html", "Directorio Anual de Dotación a Contrata", "Este directorio organiza la dotación de personal a contrata por año.", array("Dotación de personal a contrata" => "per_contrata.html"), "", "", "", array(), "contrata_historico", 2006, 0);
echo "<h2>Dotaci&oacute;n a Honorarios</h2>";
formHistorico("honorarios_historico.html", "Directorio Anual de Dotación a Honorarios", "Este directorio organiza la dotación de personal a honorarios por año.", array("Dotación de personal a honorarios" => "per_honorarios.html"), "", "", "", array(), "honorarios_historico", 2006, 0);
echo "<h2>Otras Contrataciones sujetas al C&oacute;digo del Trabajo</h2>";
formHistorico("codtrabajo_historico.html", "Directorio Anual de Otras Contrataciones sujetas al Código del Trabajo", "Este directorio organiza las demás contrataciones sujetas al Código del Trabajo, por año.", array("Otras contrataciones sujetas al Código del Trabajo" => "per_otros.html"), "", "", "", array(), "codtrabajo_historico", 2009, 0);
echo html_button("main.php");
html_footer();
<?php

require_once "common.php";
$_SESSION['encargado'] = acentosHTML($_POST['encargado']);
$_SESSION['contacto_transparencia'] = acentosHTML($_POST['contacto']);
html_header("Contacto encargado de Transparencia (actualizados)");
?>

Los datos del contacto
han sido actualizados.


<br/><br/>
<?php 
echo html_button($_SESSION['back']);
?>


<?php 
echo html_footer();
<?php

require_once "common-menuint.php";
html_header("Directorio Hist&oacute;rico de Actos con Efectos sobre Terceros");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de los actos con efectos sobre terceros.\n<br/><br/>");
//$enlace_actual='terceros.html';
//if(isset($_SESSION['subsecciones']['terceros']))
//    $enlace_actual=key(array_slice($_SESSION['subsecciones']['terceros'],0,1)).'.html';
formMenuIntermedio(array("Antes del 1 de septiembre de 2010" => "terceros.html", 'Después del 1 de septiembre de 2010' => 'terceros_index.html'), "terceros_historico", "Directorio de Actos con Efectos sobre Terceros", "Este directorio organiza los actos con efectos sobre terceros.");
?>

<?php 
html_footer();
     position: 'before',
     attached: 'table',
     labelText: 'Buscar en esta p&aacute;gina: ',
     delay: 50                                       
   });                     
 });
</script>
<?php 
echo acentosHTML(ArrayToTable(ArrayProject($csv, array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)), 15, array(11), array('Si'), array('No')));
echo '<br />';
if (getNumPags($_SESSION['data']['planta']) > 1) {
    echo "<center>\n";
    echo $pag == 1 ? "1" : "<a href='per_planta.html'>1</a>";
    for ($i = 2; $i <= getNumPags($_SESSION['data']['planta']); $i++) {
        echo $i == $pag ? " - {$i}" : " - <a href='per_planta-{$i}.html'>{$i}</a>";
    }
    echo "</center><br />\n";
}
?>

<div id="footnotes">
<?php 
echo acentosHTML(nl2br($_SESSION['footnotes']['planta']));
?>
</div>

<br />

<?php 
echo html_volver("../planta_historico.html");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " personal_planta " . date('Y-m-d'));
<script type="text/javascript">
 $(document).ready(function () {
   $('tbody tr').quicksearch({
     stripeRowClass: ['odd', 'even'],
     position: 'before',
     attached: 'table',
     labelText: 'Buscar en esta p&aacute;gina: ',
     delay: 50
   });
 });
</script>



<?php 
$csv = arrayPagina($_SESSION['data']['horasextraordinarias'][$nombre_archivo], 0);
echo acentosHTML(ArrayToTable($csv, 7, -1));
?>



<br/>
<br/>





<?php 
echo html_volver("javascript:history.back()");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " remuneraciones " . date('Y-m-d'));
  $(document).ready(function () {                         
    $('tbody tr').quicksearch({
      stripeRowClass: ['odd', 'even'],
      position: 'before',
      attached: 'table',
      labelText: 'Buscar en esta p&aacute;gina: ',
      delay: 50                                       
    });                     
  });
</script>


<br/>
<br/>


<table class="tabla">
<?php 
echo acentosHTML($tablas);
?>
</table>



<br/>
<br/>



<?php 
html_footer();
Example #23
0
            echo "<a href='" . trim($url1[$k]) . "'>" . acentosHTML($opcion1[$k]) . "</a>";
        }
        if (trim($opcion2[$k]) != "" && trim($url2[$k]) != "") {
            echo "<a href='" . trim($url2[$k]) . "'>" . acentosHTML($opcion2[$k]) . "</a>";
        }
        if (trim($opcion3[$k]) != "" && trim($url3[$k]) != "") {
            echo "<a href='" . trim($url3[$k]) . "'>" . acentosHTML($opcion3[$k]) . "</a>";
        }
        if (trim($opcion4[$k]) != "" && trim($url4[$k]) != "") {
            echo "<a href='" . trim($url4[$k]) . "'>" . acentosHTML($opcion4[$k]) . "</a>";
        }
        if (trim($opcion5[$k]) != "" && trim($url5[$k]) != "") {
            echo "<a href='" . trim($url5[$k]) . "'>" . acentosHTML($opcion5[$k]) . "</a>";
        }
        if (trim($opcion6[$k]) != "" && trim($url6[$k]) != "") {
            echo "<a href='" . trim($url6[$k]) . "'>" . acentosHTML($opcion6[$k]) . "</a>";
        }
        echo "<u></u><br/>\n";
    }
    echo "</p>\n";
}
/*
for($k=0;$k<count($titulo);$k++) {
 if (trim($titulo[$k])=="") continue;

 $opc=array();
 if ($opcion1[$k]!="") $opc[ $opcion1[$k] ]= $url1[$k];
 if ($opcion2[$k]!="") $opc[ $opcion2[$k] ]= $url2[$k];
 if ($opcion3[$k]!="") $opc[ $opcion3[$k] ]= $url3[$k];
 if ($opcion4[$k]!="") $opc[ $opcion4[$k] ]= $url4[$k];
Example #24
0
<?php

require_once "common.php";
if (trim($_POST['url']) == "") {
    unset($_SESSION[$_POST['sv']]);
} else {
    $_SESSION[$_POST['sv']] = $_POST['url'];
}
html_header($_POST['titulo']);
echo acentosHTML($_POST['mensaje']);
echo "<br/><br/>" . html_button($_SESSION['back']);
html_footer();
<?php

require_once "common-menuint.php";
html_header("Directorio de declaraciones de patrimonio e intereses");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio de declaraciones de patrimonio e intereses.\n<br/><br/>");
formMenuIntermedio(array("Autoridades vigentes" => "patrimonioeintereses.html"), "patrimonioeintereses_menu", "Directorio de declaraciones de patrimonio e intereses", "Este directorio organiza las declaraciones de patrimonio e intereses.");
?>

<?php 
html_footer();
<?php 
/*
echo acentosHTML(
 ArrayToTable( ArrayProject($csv,array(1,2,3,4,5,6,7,8,9,10,11)),
   11,-1
 )
);
*/
if ($showfiltrocol) {
    echo acentosHTML(ArrayToTable($csv, $cols, explode(',', $links)));
} else {
    for ($i = 0; $i < $cols; $i++) {
        if ($i != $filtro) {
            $proj[] = $i;
        }
    }
    $csv = ArrayProject($csv, $proj);
    echo acentosHTML(ArrayToTable($csv, $cols - 1, explode(',', $links)));
}
echo '<br />';
if (getNumPags($_SESSION['data'][$sv][$cat]) > 1) {
    echo "<center>\n";
    echo $pag == 1 ? "1" : "<a href='{$cat}.html'>1</a>";
    for ($i = 2; $i <= getNumPags($_SESSION['data'][$sv][$cat]); $i++) {
        echo $i == $pag ? " - {$i}" : " - <a href='{$cat}-{$i}.html'>{$i}</a>";
    }
    echo "</center><br />\n";
}
echo html_volver("javascript:history.back()");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " " . $cat . " " . date('Y-m-d'));
Example #27
0
        echo $i == $pag + 1 ? " - {$i}" : " - <a href='{$nombre}-{$i}.html'>{$i}</a>";
    }
    echo "</center><br/>\n";
}
//Escribiendo la tabla
$alink = -1;
if (trim($links) != "") {
    $alink = explode(",", $links);
}
$astr_noenlace = -1;
if (trim($str_noenlace) != "") {
    $astr_noenlace = explode(",", $str_noenlace);
}
$astr_enlace = -1;
if (trim($str_enlace) != "") {
    $astr_enlace = explode(",", $str_enlace);
}
echo acentosHTML(ArrayToTable($csv, $cols, $alink, $astr_enlace, $astr_noenlace));
echo acentosHTML("<div id='footnotes'>" . nl2br($footnotes) . "</div>");
//Indice del fondo
echo "<br/>\n";
if (getNumPags($data) > 1) {
    echo "<center>\n";
    echo $pag == 0 ? "1" : "<a href='{$nombre}.html'>1</a>";
    for ($i = 2; $i <= getNumPags($data); $i++) {
        echo $i == $pag + 1 ? " - {$i}" : " - <a href='{$nombre}-{$i}.html'>{$i}</a>";
    }
    echo "</center><br/>\n";
}
echo html_volver($backto);
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " " . $sv . " " . date('Y-m-d'));
* 
*/
$depurar = 0;
//Para descargar
if ($depurar != 1) {
    $arch = $sv . '_index.html';
    header("Content-Disposition: attachment; filename=\"{$arch}\"");
}
?>

<?php 
echo html_header($titulo);
?>

<?php 
echo acentosHTML($msg2);
?>


<br/>
<br/>


<script type="text/javascript">
 $(document).ready(function () {
   $('ul.listaIndex li').quicksearch({
     //stripeRowClass: ['odd', 'even'],
     position: 'before',
     attached: 'ul.listaIndex',
     labelText: 'Buscar en esta p&aacute;gina: ',
     delay: 50
function formHistorico($archivo1, $titulo1, $msg1, $opc1, $archivo2, $titulo2, $msg2, $opc2, $sv, $defano = 2006, $boton = 1)
{
    global $para_mes, $para_ano;
    $tit1 = "";
    $url1 = "";
    foreach ($opc1 as $k => $v) {
        $tit1 = "{$tit1},{$k}";
        $url1 = "{$url1},{$v}";
    }
    $tit1 = substr($tit1, 1);
    $url1 = substr($url1, 1);
    $tit2 = "";
    $url2 = "";
    foreach ($opc2 as $k => $v) {
        $tit2 = "{$tit2},{$k}";
        $url2 = "{$url2},{$v}";
    }
    $tit2 = substr($tit2, 1);
    $url2 = substr($url2, 1);
    ?>


<form method="POST" action="histo-form1.php" name="frm<?php 
    echo $sv;
    ?>
">

<input type="hidden" name="archivo1" value="<?php 
    echo acentosHTML($archivo1);
    ?>
"/>
<input type="hidden" name="titulo1"  value="<?php 
    echo acentosHTML($titulo1);
    ?>
"/>
<input type="hidden" name="msg1"     value="<?php 
    echo acentosHTML($msg1);
    ?>
"/>
<input type="hidden" name="url1"     value="<?php 
    echo acentosHTML($url1);
    ?>
"/>
<input type="hidden" name="tit1"     value="<?php 
    echo acentosHTML($tit1);
    ?>
"/>
<input type="hidden" name="sv"       value="<?php 
    echo $sv;
    ?>
"/>


<table class="tabla">

<tr>
 <td><b>Desde qu&eacute; a&ntilde;o se inicia el directorio:</b><br/>
   El directorio hist&oacute;rico comenzar&aacute; en dicho año e
   incluir&aacute; entradas hasta el <?php 
    echo $para_ano;
    ?>
.
<?php 
    if ($defano == 2006) {
        echo "<br/>La publicaci&oacute;n de esta informaci&oacute;n se realiza a partir del a&ntilde;o 2006 conforme al Instructivo Presidencial N&deg; 008 (04/12/2006) sobre Transparencia Activa.";
    }
    ?>
 </td>
 <td valign="top">
   <select name="desde_ano">
<?php 
    for ($i = 2006; $i <= $para_ano; $i++) {
        echo "     <option value='{$i}' " . ($i == $defano ? "selected" : "") . ">A&ntilde;o {$i}</option>\n";
    }
    ?>
   </select>
 </td>
</tr>

<tr>
<?php 
    if (isset($_SESSION[$sv])) {
        echo " <th align='left'> &nbsp; &nbsp; (Este directorio hist&oacute;rico ya ha sido generado)</th>";
    } else {
        echo " <td> </td>";
    }
    ?>
 <td><input type="submit" value="Siguiente paso" />
 </td>
</tr>

</table><br/>

</form>

<?php 
    if ($boton == 1) {
        echo html_button($_SESSION['back']);
    }
}
<?php

require_once "common.php";
if ($depurar != 1) {
    header("Content-Disposition: attachment; filename=organica.html");
}
$_SESSION['organica'] = 'SI';
html_header("Estructura org&aacute;nica");
$dims = "";
if (trim($_POST['ancho']) != "") {
    $dims = " width='" . trim($_POST['ancho']) . "' ";
}
if (trim($_POST['alto']) != "") {
    $dims = "{$dims} height='" . trim($_POST['alto']) . "' ";
}
if (ereg(".swf", $_POST['texto'])) {
    echo "<embed src='" . $_POST['texto'] . "' {$dims}></embed><br/><br/>";
} else {
    echo "<img src='" . $_POST['texto'] . "' {$dims}/><br/><br/>";
}
echo acentosHTML($_POST['desc']) . "<br/><br/>";
echo html_volver("index.html");
html_footer("codigo" . trim(alfanum($_SESSION['sigla'])) . " organica " . date('Y-m-d'));