switch ($_GET['tipo']) { case 1: $cat_nome = 'Ambiente'; break; case 2: $cat_nome = 'Evento'; break; case 3: $cat_nome = 'Ingresso'; break; } $lowcat = strtolower($cat_nome); include_once 'include/categoria.php'; $categoria = new TipoCategoria($db, $lowcat); $categoria->cd_tipo = $_GET['id']; $categoria->readOne(); $url = 'categorias.php?ordem=1&tipo=' . $_GET['tipo']; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> <title>Área Restrita - Visualizar <?php $cat_nome; ?> </title> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/templatemo_main.css">