<?php
/***************************************************************************
 *                                                                          *
 * Copyright (c) 2005 ISPG Technologies (I) Pvt Ltd. All rights reserved.   *
 *                                                                          *
 * This  is  commercial  software,  only  users  who have purchased a valid *
 * license  and  accept  to the terms of the  License Agreement can install *
 * and use this program.                                                    *
 *                                                                          *
 ****************************************************************************
 * PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
 * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
 ****************************************************************************/
//
//$Id: TestdriveController.php, v 1.0 2019/05/17 
//
class NearestshowroomController extends Controller {
    public function indexAction() {
        $showroomsModel = new ShowroomsModel(); 
        $languageIDs    = $this->ObjView->languageIDs;
        $languageIDs['Content'] = $languageIDs['Current'];
        $listShowRooms  = $showroomsModel->listShowroomForOptions(array('status'=>'A','type'=>'Y','languageIDs'=>$languageIDs,'brandID' => $this->ObjCommon->brandID));  
        $showroomImg    = '';
        if(!empty($listShowRooms)) {
            $showroomImg = $listShowRooms[0]['showroomImg'];
        }
        $this->ObjView->assign('showroomImg', $showroomImg);
        $this->ObjView->assign('listShowRooms', $listShowRooms);
        $this->ObjView->display('Nearestshowroom.tpl');
    }
    
}