</section>
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-lg-12">
              <!-- Horizontal Form -->
              <div class="box box-success">
                <div class="box-header with-border">
                  <h3 class="box-title">Cadastro de categorias</h3>
                </div><!-- /.box-header -->
                <!-- form start -->
                <?php 
$id = $_POST["id"];
if (isset($_POST["editar"])) {
    $edit = new Categorias();
    $comp = $edit->EditarCategorias($id);
    if ($edit != null) {
        ?>
                <form class="form-horizontal" id="form" method="post" action="CrudCategoria.php">
                  <div class="box-body">
                      <div class="form-group">
                        <label for="dia" class="col-sm-2 control-label">Categoria:</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" name="categoria" value="<?php 
        echo $comp->categoria;
        ?>
" placeholder="Digite o categoria aqui" autofocus required>
                        </div>
                      </div>
                  </div><!-- /.box-body -->
                  <div class="box-footer">
          <h1>Categorias</h1>
        </section>
        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-lg-12">
              <!-- Horizontal Form -->
              <div class="box box-info">
                <div class="box-header with-border">
                  <h3 class="box-title">Confirmar exclusão da categoria</h3>
                </div><!-- /.box-header -->
                <?php 
$id = $_POST["id"];
if (isset($_POST["excluir"])) {
    $exib = new Categorias();
    $comp = $exib->EditarCategorias($id);
    if ($exib != null) {
        ?>
                  <div class="box-body">
                     <div class="form-group">
                        <dl class="dl-horizontal">
                           <dt>Categoria:</dt>
                           <dd><?php 
        echo $comp->categoria;
        ?>
</dd>
                        </dl>
                     </div>
                    <form action="CrudCategoria.php" method="post">
                      <input type="hidden" name="id" value="<?php 
        echo $comp->id;