Exemplo n.º 1
0
                        </tr>
                    <?php 
}
?>
                    </tbody>
                    <tfoot>
                    <tr class="summary">
                        <td></td>
                        <td></td>
                        <td id="total_price"></td>
                        <td></td>
                    </tr>
                    </tfoot>
                </table>
                <p class="alert-danger"><?php 
echo Session::hasError() ? Session::getError() : '';
?>
</p>
            </div>

        </div>

    </div>
    <!-- /.container -->

    <div class="container">

        <hr>

        <!-- Footer -->
        <footer>
Exemplo n.º 2
0
use FW\View\View;
use FW\Helpers\Common;
use FW\Session\Session;
use FW\HTML\Form;
use FW\Security\Auth;
echo View::getLayoutData('header');
?>

    <!-- Page Content -->
    <div class="container">
        <?php 
if (Session::hasError()) {
    ?>
            <div class="alert alert-danger" role="alert"><?php 
    echo Session::getError();
    ?>
</div>
        <?php 
}
?>
        <div class="row">

            <div class="col-md-12">

                <?php 
echo Form::open(array('action' => Common::getBaseURL() . $action));
?>
                <?php 
echo Form::text(array('name' => 'discount', 'placeholder' => 'discount', 'value' => Session::oldInput()['discount']));
?>
Exemplo n.º 3
0
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>

<?php 
if (Session::hasMessage()) {
    ?>
    <div class="alert alert-success" role="alert"><?php 
    echo Session::getMessage();
    ?>
</div>
<?php 
}
if (Session::hasError()) {
    ?>
    <div class="alert alert-danger" role="alert">
        <?php 
    foreach (Session::getError() as $error) {
        ?>
            <p>
                <?php 
        echo $error;
        ?>
            </p>
        <?php 
    }
    ?>
    </div>
<?php 
}