Example #1
0
    header("Location: /quotes/?ItemDeleted=y");
    exit;
}
include "../tmpl/header.php";
$quotes = new Quotes();
// Load DB data into object
$quotes->setQuotesid($_GET['id']);
$quotes->loadQuotes();
$all = $quotes->getAll();
if (isset($all)) {
    ?>

<div class="panel panel-info">
	<div class="panel-heading">
		<strong>Viewing <?php 
    echo $quotes->getQuotesid();
    ?>
</strong>
	</div>
	<div class="panel-body">
		<?php 
    foreach ($all as $key => $value) {
        if (isset($value) && $value != '') {
            ?>
		    <dl class="dl-horizontal">
			<dt><?php 
            echo $key;
            ?>
</dt>
			<dd><?php 
            echo $value;