<?php require('classes/main.php'); ?>
<?php require('classes/adminCheck.php'); ?>
<?php require('classes/administration.php'); ?>
<!DOCTYPE html>
<html>
<?php require('common/head.php'); ?>

<body>
    <?php require('common/header.php'); ?>
    <h1>Administración - Pagina principal</h1>
    <?php
        echo $main->formOpen('?saveSite');
        $site = $main->site(); ?>
    <div class="input box-radius login-form">
        <div class="form-grp">
            <div class="form-input">
                <span>Editar información de pagina principal</span>
            </div>
        </div>
        <div class="form-grp">
            <div class="form-input">
                <textarea name="body" class="richtext"><?php echo $site['body']; ?></textarea>
            </div>
        </div>
        <div class="form-grp">
            <div class="form-input">
                <textarea name="stepprofile" class="richtext"><?php echo $site['stepprofile']; ?></textarea>
            </div>
        </div>
        <div class="form-grp">
            <div class="form-input text-center">
                <input type="submit" class="btn btn-success" value="Guardar">
            </div>
        </div>
    </div>
    <?php echo $main->formClose(); ?>
    <?php require('common/footer.php'); ?>
</body>

</html>