<?php //error_reporting(E_ALL ^ E_NOTICE); require_once 'class/tarea.php'; $datos = new Tarea(); $id_tarea = isset($_GET['id_tarea']) ? $_GET['id_tarea'] : null; $titulo = isset($_GET['titulo']) ? $_GET['titulo'] : null; $texto = isset($_GET['texto']) ? $_GET['texto'] : null; $op = isset($_GET['op']) ? $_GET['op'] : null; if (isset($op) and $op == "del") { $datos->delTarea($id_tarea); } if (isset($op) and $op == "Editar") { $datos->updateTarea(); } if (isset($titulo) && isset($texto)) { $datos->addTarea(); } ?> <html> <head> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> <title> Tarea </title> </head> <body>