// page vars
$page_title = "";
$id = $_REQUEST['id'];
// id required
if ($id == "") {
    header("Location:mainpage.php");
    exit;
}
// if form was submitted
if ($_POST['commit'] == "Cancel") {
    header("Location:testimonial_list.php");
    exit;
}
if ($_POST['commit'] == "Delete Testimonial") {
    $objTestimonial = new Testimonial();
    $objTestimonial->Delete($id);
    header("Location:testimonial_list.php");
    exit;
}
$objTestimonial = new Testimonial($id);
include "includes/pagetemplate.php";
function PageContent()
{
    global $objTestimonial;
    global $id;
    ?>

            <div class="layout laymidwidth">

                <?php 
    $aLabels = array();