<?php

if (isset($_SESSION['usuario'])){

$user=$_SESSION['usuario'];

}

else{

?>

<script>

location.href="index.php?errorusuario=3";

</script>

<?php 
}

include ("conexion.php");

?>


<link href="ucaestilos.css" rel="stylesheet" type="text/css" />


  <table width="800" border="0" align="center">

    <tr>

      <td><p class="style10">REPORTE DE INVENTARIO FARMACIA PARA RECTORIA</p>

      </td>

    </tr>

    <tr>

      <td><table width="100%" height="0" border="0" cellpadding="0" cellspacing="0">

          <tr>

            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

              <tr>

                <td width="62%" align="center" bgcolor="#CCCCCC"><form id="form1" name="form1" method="POST" action="main.php?a=4841">

                    <div align="left"><span class="style4">Corte del: </span>
                    <label for="fecha">

                <input name="fecha" type="text" class="calendar cuadrotexto" id="datetimepicker" value="<?php echo date("Y-m-d"); ?>"Y-m-d");" size="10" maxlength="10">

              </label>

                        </span> <span class="style4"> &nbsp;al: </span>

                      <label for="fecha2">

                <input name="fecha2" type="text" class="calendar cuadrotexto" id="datetimepicker2" value="<?php echo date("Y-m-d"); ?>" size="10" maxlength="10">
              </label>

                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style4">Clasificaci&oacute;n:</span>
                    <select name="clasificacion" id="clasificacion">
                        <option value="0" selected>VER TODAS</option>
                        <?php
                        $consulta="SELECT idClasificacion,clasificacion FROM clasificacion ORDER BY clasificacion";
                        $resultado=mysql_query($consulta,$conex) or die ("no se consulto clasificacion");
                        while ($clasi=mysql_fetch_row($resultado))
                        {
                            echo "<option value='$clasi[0]'>$clasi[1]</option>";
                        }
                        ?>
                    </select>
                    <input name="Submit22" type="submit" class="botonDefault" value="Consultar" />
</div>
                </form></td>
              </tr>

            </table></td>

          </tr>

          <tr>

            <td align="center" valign="top"><hr width="100%" size="1" noshade="noshade" color="#0D3356"></td>

          </tr>

      </table></td>

    </tr>

  </table>
<script>

$('#datetimepicker').datetimepicker({
	lang:'es',
	timepicker:false,
	format:'Y-m-d',
	formatDate:'Y-m-d',
});

$('#datetimepicker2').datetimepicker({
	lang:'es',
	timepicker:false,
	format:'Y-m-d',
	formatDate:'Y-m-d',
});

</script>