<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php"; include_once CLASSFOLDER . "/dbconnection.php"; include_once CLASSFOLDER . "/common.php"; include_once CLASSFOLDER . "/searchservice.php"; include_once CLASSFOLDER . "/searchobject.php"; $searchservice = new searchservices($dbconnection->dbconnector); $searchObj = new searchobject(); $req = file_get_contents("php://input"); $request = json_decode($req); if (!empty($request)) { $request = getPOstPatrameters($request, $searchObj); $response = $searchservice->getServicesBySearchOption($request); echo json_encode($response); } else { echo json_encode(array("Exception" => "Empty filter options")); } /*----------------------------------------------*/ function getPOstPatrameters($request, $searchobj) { $searchobj->ritualId = !empty($request->r) ? $request->r : null; $searchobj->eventTo = !empty($request->et) ? $request->et : null; $searchobj->eventFrom = !empty($request->ef) ? $request->ef : null; $searchobj->eventId = !empty($request->e) ? $request->e : null; $searchobj->serviceId = !empty($request->s) ? $request->s : null; $searchobj->locationId = !empty($request->l) ? $request->l : null; $searchobj->orderBy = !empty($request->oby) ? $request->oby : null; $searchobj->max = !empty($request->ma) ? $request->ma : null; $searchobj->start = isset($request->st) ? $request->st : null; $searchobj->customerId = !empty($request->c) ? $request->c : null;
<?php if (session_status() != PHP_SESSION_ACTIVE) { session_start(); } if (empty($customerService)) { include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php"; include_once SERVERFOLDER . "/customer/services.php"; $customerService = new customerservice($dbconnection->dbconnector); $customerService->GetAllQueryStrings(); $serviceName = $customerService->getCatalogValueById($customerService->searchObj->serviceid); $Citys = $customerService->GetAllCatalogValuesByMasterNames('City'); } include_once CLASSFOLDER . "/searchservice.php"; $searchservice = new searchservices($dbconnection->dbconnector); $vendorServices = $searchservice->getServicesBySearchOption($customerService->searchObj); $vendorServices = $vendorServices["Items"]; ?> <div class="features_items" ><!--features_items--> <div id="features-items"> <?php if (!empty($vendorServices)) { $canshowbooking = false; if ((!empty($customerService->searchObj->eventFrom) || !empty($customerService->searchObj->eventTo)) && !empty($customerService->searchObj->locationId)) { $canshowbooking = true; } foreach ($vendorServices as $service) { ?> <div class="col-sm-4"> <div class="product-image-wrapper"> <div class="single-products">