Ejemplo n.º 1
0
// 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:career_list.php");
    exit;
}
if ($_POST['commit'] == "Delete Career") {
    $objCareer = new Career();
    $objCareer->Delete($id);
    header("Location:career_list.php");
    exit;
}
$objCareer = new Career($id);
include "includes/pagetemplate.php";
function PageContent()
{
    global $objCareer;
    global $id;
    ?>

            <div class="layout laymidwidth">

                <?php 
    $aLabels = array();