<? require_once './view/html.php'; $tipo_doc = new TipoDoc(); if ($_GET['op']=='insert') { $tipo_doc->setNom($_POST['nom']); $tipo_doc->setAbr($_POST['abr']); $tipo_doc->insert(); } if ($_GET['op']=='delete') { $tipo_doc->delete($_GET['id']); } ?> <!DOCTYPE html> <html> <head> <?php head_html(); ?> <script type="text/javascript"> var nameTable='tipo_doc'; </script> </head> <body> <nav> <?php nav_html(); ?> </nav>