Principal.php 2.78 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
<?php include('../Titulo/Titulo.php');

if (!isset($_SESSION["nivel"])) {
    ?>
    <script language="javascript">
        window.location='../signIn.php';
    </script>
    <?php
} else {

    $nivel = $_SESSION["nivel"];
    if ($_SESSION["Administracion"] != 1) {
        ?>
        <script language="javascript">
            window.location='../Principal/index.php?Permiso=1';
        </script>
        <?php
    } else {
        ?>
        <html>
            <head><TITLE>Dias Desabastecidos</TITLE>
            <?php head(); ?>
            </head>
        <?php Menu(); ?>
            <link rel="stylesheet" type="text/css" href="../default.css" media="screen" />
            <script language="javascript"  src="../ReportesArchives/calendar.js"> </script>
            <script language="javascript" src="IncludeFiles/DiasDes.js"></script>
            <!-- AUTOCOMPLETAR -->
            <script type="text/javascript" src="scripts/prototype.js"></script>
            <script type="text/javascript" src="scripts/autocomplete.js"></script>
            <link rel="stylesheet" type="text/css" href="styles/autocomplete.css" />
            <!--  -->
            <center>
                <table width="37%">
                    <tr class="MYTABLE"><td align="center" colspan="2"><strong>Medicamento Agotado</strong></td></tr>
                    <tr class="FONDO"><td align="center" colspan="2">
                            <input type="text" id="q" name="q" value="" size="50"><input type="hidden" id="IdMedicina">

                        </td></tr>
                    <tr><td class="FONDO" colspan="2">&nbsp;</td></tr>
                    <tr class="MYTABLE"><td align="center" colspan="2"><strong>Periodo Desabastecido</strong></td></tr>
                    <tr><td class="FONDO"><strong>Periodo Inicia:</strong></td><td class="FONDO"><input type="text" id="FechaInicio" readonly="true" onClick="scwShow (this, event);" ></td></tr>
                    <tr><td class="FONDO"><strong>Periodo Finaliza:</strong></td><td class="FONDO"><input type="text" id="FechaFin" readonly="true" onClick="scwShow (this, event);"> <input type="hidden" id="Actual" value="1" onclick="LimpiaFin(this.id);"></td></tr>

                    <tr><td colspan="2" class="FONDO">&nbsp;</td></tr>

                    <tr class="MYTABLE"><td colspan="2" align="right"><input type="button" id="Establecer" value="Establecer Periodo" onclick="Valida();"></td></tr>


                    <tr><td colspan="2" align="center"><div id="Desabastecido"></div></td></tr>


                </table>




            </center>
            <script>
                new Autocomplete('q', function() { 
        			
                    return 'respuesta.php?q=' + this.value; 
                });
            </script>
        </html>
        <?php
    }//niveles
}//Si no hay session
?>