<?php require_once './view/html.php'; $menu = new menu(); $permiso = new Permiso(); $menu->setOrder(" ORDER BY orden"); if ($_GET['op'] == 'insert') { $menu->setVer($_POST['nombre']); $menu->insert(); } if ($_GET['op'] == 'delete') { $menu->delete($_GET['id']); } ?> <!DOCTYPE html> <html> <head> <?php head_html(); ?> <script type="text/javascript"> var nameTable='menu'; function cargarmenues(id) { window.frames.subwin.location.href = "./submenu.php?id="+id; } </script> </head> <body> <nav> <?php nav_html();