コード例 #1
0
<?php
require_once '../../../autoload.php';
$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>
コード例 #2
0
ファイル: index.php プロジェクト: 4Made-Mobile/MarmitasX
<?php
require_once '../../../autoload.php';
$fachada = new Fachada();
if (!empty($_POST)) {
    if ($_POST['login'] == "carlos.menezes" && $_POST['senha'] == '12345@qwe') {
        session_start();
        $_SESSION['login'] = 1;
        header("Location: ../../../view/admin/");
    }
}
?>
<!DOCTYPE html>
<html lang="pt-br">
    <?php $fachada->header(); ?>
    <body>
        <section id="container" >
            <?php $fachada->headerLayout(); ?>
            <section id="main-content">
                <section class="wrapper">
                </section>
            </section>
        </section>
        <?= $fachada->rodape(); ?>
    </body>
</html>