public static function display() { $data = AFormatter::objectiveSettings(Applum::find(1)); View::make('site/head/head'); View::make("site/body/header/header"); IntroController::intro($data); FeatureController::feature($data); AppController::app($data); SubscribeController::subscribe($data); GalleryController::gallery($data); TestimonialController::testimonial($data); PricingController::pricing($data); ContactController::contact($data); FooterController::footer($data); }
* Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Employees to edit employees */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $editResult = null; $sellerCon = new SellerController(); $personCon = new PersonController(); $offerCon = new OfferController(); $featureCon = new FeatureController(); $foCon = new Feature_OfferController(); $mediaCon = new MediaController(); $carCon = new CarController(); $offerId = null; $sellerId = null; $personId = null; $selectedFeatureIds = array(); $media = array(); $carId = null; $sellerName = null; $carRego = null; $preferredPrice = null; $description = null; $status = null; $offerDate = null;
* User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Employees to edit employees */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $editResult = null; $sellerCon = new SellerController(); $custCon = new CustomerController(); $personCon = new PersonController(); $offerCon = new OfferController(); $featureCon = new FeatureController(); $foCon = new Feature_OfferController(); $mediaCon = new MediaController(); $carCon = new CarController(); $makeCon = new MakeController(); $modelCon = new ModelController(); $saleCon = new SaleController(); $empCon = new EmployeeController(); $saleId = null; $offerId = null; $buyerId = null; $empId = null; $carId = null; $sellerName = null; $preferredPrice = null; $makeName = null;
/** * Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Cars to delete features */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $deleteResult = null; $featureId = null; $featureName = null; $featureCon = new FeatureController(); if (isset($_GET['id'])) { $featureId = $_GET['id']; $feature = $featureCon->getFeature($featureId); if ($feature->errorInfo()[2] == null) { $row = $feature->fetch(); $rowCount = count($row); if ($rowCount = 1) { $featureName = $row['feature_name']; } } } if (isset($_POST['hdnAction'])) { if ($_POST['hdnAction'] == 'delete') { $result = $featureCon->deleteFeature($_POST['hdnFeatureId']); $featureName = $_POST['txtFeatureName'];
<?php /** * Created by PhpStorm. * User: roessler * Date: 9/18/15 * Time: 12:12 PM */ /** * Home Page for Cyril's Classic Cars */ require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'; $makeCon = new MakeController(); $modelCon = new ModelController(); $carCon = new CarController(); $featureCon = new FeatureController(); $mediaCon = new MediaController(); function dollar_format($value) { $value = floatval($value); return '$' . number_format($value, 2); } function checkSelected($val1, $val2) { if ($val1 == $val2) { echo 'selected'; } } function checkFeatures($val, $features) { if (in_array($val, $features)) {
/** * Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Cars to edit features */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $editResult = null; $featureId = null; $featureName = null; $featureCon = new FeatureController(); if (isset($_GET['id'])) { $featureId = $_GET['id']; $feature = $featureCon->getFeature($featureId); if ($feature->errorInfo()[2] == null) { $row = $feature->fetch(); $rowCount = count($row); if ($rowCount = 1) { $featureName = $row['feature_name']; } } } if (isset($_POST['hdnAction'])) { if ($_POST['hdnAction'] == 'update') { $result = $featureCon->updateFeature($_POST['hdnFeatureId'], $_POST['txtFeatureName']); $featureName = $_POST['txtFeatureName'];
<?php /** * Created by PhpStorm. * User: roessler * Date: 9/18/15 * Time: 12:12 PM */ /** * Home Page for Cyril's Classic Cars */ require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'; $makeCon = new MakeController(); $modelCon = new ModelController(); $carCon = new CarController(); $featureCon = new FeatureController(); $foCon = new Feature_OfferController(); $offerCon = new OfferController(); $mediaCon = new MediaController(); $carOffer = null; $carMake = null; $carCar = null; $carModel = null; $carMedia = null; function dollar_format($value) { $value = floatval($value); return '$' . number_format($value, 2); } if (isset($_GET['id'])) { $offerId = $_GET['id'];
<?php /** * Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Cars to add and view features */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $addResult = null; $featureCon = new FeatureController(); if (isset($_POST['hdnAction'])) { if ($_POST['hdnAction'] == 'insert') { $result = $featureCon->insertFeature($_POST['txtFeatureName']); if ($result['stmt']->errorInfo()[2] == null) { $addResult = true; } else { $addResult = $result['stmt']->errorInfo()[2]; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8">
* Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Employees to delete sellers */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $deleteResult = null; $sellerCon = new SellerController(); $personCon = new PersonController(); $offerCon = new OfferController(); $featureCon = new FeatureController(); $foCon = new Feature_OfferController(); $mediaCon = new MediaController(); $carCon = new CarController(); $offerId = null; $sellerId = null; $personId = null; $featureIds = array(); $featureNames = array(); $features = array(); $media = array(); $carId = null; $sellerName = null; $carRego = null; $preferredPrice = null; $description = null;
<?php /** * Created by PhpStorm. * User: roessler * Date: 16/09/15 * Time: 1:22 PM */ /** * Backend page for administrators and Staff of Cyril's Classic Cars to add and view features */ require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'config/config.php'; if (isset($_SESSION['authenticated'])) { if ($_SESSION['authenticated'] == true) { $featureCon = new FeatureController(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title>Cyril's Classic Cars | Administration - Features</title> <!-- Bootstrap core CSS --> <link href="../../../lib/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet">