include_once getcwd() . "/classes/BLCar.php"; include_once getcwd() . "/classes/BLCarBrand.php"; include_once getcwd() . "/classes/BLSite.php"; $blCar = new BLCar(); $blCarBrand = new BLCarBrand(); $blSite = new BLSite(); if (isset($_GET["site"])) { $sitep = $_GET["site"]; } else { header("Location: " . SUBFOLDER . "/page/notfound"); } $site = $blSite->getSiteByName($sitep); $html = ""; if ($site != null) { $cars = $blCar->getCarsBySite($site->getId()); $carsdesign = $blCar->getCarsDesignBySite($site->getId()); $html .= "<table>"; $html .= "<tr>"; $html .= "<th style=\"width:120px\">Type</th>"; $html .= "<th>State</th>"; $html .= "<th>Preview</th>"; $html .= "<th style=\"width:50px\">Valid</th>"; $html .= "<th colspan=\"2\">Move Up/Down</th>"; $html .= "<th>Edit</th>"; $html .= "<th>Delete</th>"; $html .= "</tr>"; if ($carsdesign != null) { foreach ($carsdesign as $car) { $statecolumn = ""; switch ($car->getState()) { case "Design":