public function buscarDocente($op, $dato)
 {
     try {
         $dataAccess = new DataAccesComponents();
         $datos = $dataAccess->buscarDocentes($op, $dato);
         if ($datos != NULL) {
             foreach ($datos as $col) {
                 $tupla[] = new Docente($col[0], $col[1], $col[2], $col[3], $col[4], $col[5], $col[6], $col[7], $col[8], $col[9], $col[10]);
             }
         }
         return $tupla;
     } catch (Exception $exc) {
         echo $exc->getTraceAsString();
     }
 }
                    <div class="clr"></div>
                </div>
            </div>
            <div class="footer">
                <div class="footer_resize">
                    <p class="lf">&copy; Copyright Jumper Technology. <a href="http://www.bluewebtemplates.com/">Designed by Blue</a></p>      
                </div>
            </div>
        </div>
        <?php 
session_start();
if (isset($_POST['ingreso'])) {
    $usuario = $_POST['usuario'];
    $password = $_POST['password'];
    //Crea un objeto
    $dataccess = new DataAccesComponents();
    $rows = $dataccess->buscarUsuario($usuario, $password);
    if ($rows["clave"] == $password) {
        echo " <script type=\"text/javascript\">alert(\"Ingreso Satisfactorio\")</script>";
        //$_SESSION["s_username"] = $rows['login'];
        session_register("registrada");
        switch ($rows["accion"]) {
            case 1:
                header("Location:index.php?task=Secretaria");
                break;
            case 2:
                header("Location:index.php?task=Usuario");
                break;
            case 3:
                header("Location:index.php?task=Administrador");
                break;