<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <section id="container" > <!-- ********************************************************************************************************************************************************** TOP BAR CONTENT & NOTIFICATIONS *********************************************************************************************************************************************************** --> <!--header start--> <?php $fachada->headerLayout(); ?> <!--header end--> <!-- ********************************************************************************************************************************************************** MAIN SIDEBAR MENU *********************************************************************************************************************************************************** --> <!--sidebar start--> <?php $fachada->sideLayout(); ?> <!--sidebar end--> <!-- ********************************************************************************************************************************************************** MAIN CONTENT *********************************************************************************************************************************************************** -->
$fachada = new Fachada(); $fachada->verificarLogin(); if (!empty($_GET)) { $busca = $fachada->buscarTipoID($_GET['id'])->fetch(PDO::FETCH_OBJ); } else { header("Location: ../index/index.php"); } ?> <!DOCTYPE html> <html lang="pt-br"> <?= $fachada->header(); ?> <body> <section id="container" > <?php $fachada->headerLayout(); ?> <?php $fachada->sideLayout(); ?> <section id="main-content"> <section class="wrapper"> <div class="row mt"> <div class="col-lg-12"> <div class="form-panel"> <h2 class="mb" style="text-align: center"><i class="fa fa-user"></i> Cadastro Tipo de Ingrediente</h2> <form class="form-horizontal style-form" method="POST" action="" autocomplete="off"> <div class="form-group"> <label class="col-sm-2 col-sm-2 control-label">Tipo de Ingrediente</label> <div class="col-sm-10"> <input value="<?php echo $busca->descricao; ?>"type="text" name="nome" class="form-control" > </div> </div> <button type="submit" class="btn btn-theme"> Cadastrar </button>