$biz->updateData("search_terms", $_POST["search_terms"], $biz->rec["record_id"]);
    foreach ($_POST["day"] as $key => $value) {
        if ($value["closed"] == "on") {
            $build .= "CL|";
        } elseif ($value["by_appointment"] == "on") {
            $build .= "BA|";
        } else {
            $build .= $value["o_hour"] . ":" . $value["o_min"] . "-" . $value["c_hour"] . ":" . $value["c_min"] . "|";
        }
    }
    $business_hours = rtrim($build, "|");
    $biz->updateData("business_hours", $business_hours, $biz->rec["record_id"]);
    if (trim($_POST["new_sd_cat"]) != "") {
        $biz->addServiceDirectoryCat();
    }
    $biz->__construct();
    header("location: company_edit.php?id=" . $biz->id . "&m=2");
    exit;
}
?>

<?php 
getHeader("admin", "yes");
?>

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>


<h3>Add a New Company</h3>

<?php