<?php
if (isset($_SESSION['usuario'])) {
  $user = $_SESSION['usuario'];
} else {
?>
  <script>
    location.href = "index.php?errorusuario=3";
  </script>
<?php
}

date_default_timezone_set("America/Mexico_City");
?>

<script src="plugins/jquery/jquery.min.js"></script>
<link href="plugins/select2/css/select2.min.css" rel="stylesheet" />
<script src="plugins/select2/js/select2.full.min.js"></script>



<table width="1000" border="0" align="center">
  <tr>
    <td>
      <p class="style10">TRATAMIENTOS POR ALUMNO</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 bgcolor="#BFEBFF">
                  <form id="form2" name="form1" method="POST" action="main.php?a=4761">

                    <span class="style4">Alumno:</span> 
                    <select class="cuadrotexto" name="alumno" style="width:250px;">
                      <?php
                      $cons2="SELECT CvePersonal,ApePersonal,NomPersonal,semestre,grupo,status FROM personal WHERE status = 'Activo' and NomPersonal!='' ORDER BY NomPersonal,ApePersonal  ASC";
                      $res2=mysql_query($cons2,$conex) or die ("No se realizo con exito la consulta de Alumnos");
                      while ($alu=mysql_fetch_row($res2)){
                        echo "<option value='$alu[2] $alu[1]'>$alu[2] $alu[1]</option>";
                      }
                      ?>
                    </select>

                    <span class="style4"> tratamientos del: </span>
                    <input name="fecha" class="" type="date" value="<?php echo date("Y-m-d"); ?>" style="width:110px;">

                    <span class="style4"> &nbsp;al: </span>
                    <input name="fecha2" class="" type="date" value="<?php echo date("Y-m-d"); ?>" style="width:110px;">
                    &nbsp;
                    <input name="Submit22" type="submit" class="boton2" value="Consultar" />
                  </form>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td align="center" valign="top">
            <hr width="100%" size="1" noshade="noshade" color="#003366">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<script>
  $(document).ready(function() {
    $('.js-example-basic-multiple').select2();
  });
</script>