Пример #1
0
 static function displayCommons($totalAmount = 0)
 {
     $tester = false == empty($_COOKIE['tester']) && $_COOKIE['tester'] == 'tester' ? true : false;
     $tester = false == empty($_GET['tester']) && $_GET['tester'] == 'tester' ? true : $tester;
     self::addJsFooter('bootstrap/bootstrap-select.js');
     self::addJsFooter('jquery-ui/jquery.ui.autocomplete.js');
     self::addJsFooter('booking/select-autocomplete.js');
     self::addJsFooter('booking/init.js');
     view()->share(['CREDITO_GARBARINO_ID' => 0, 'gastos' => 0, 'datosVendedor' => false, 'osName' => "", 'intereses' => 0, 'bonificacion' => 0, 'cargosGestion' => 0, 'coefDescuento' => 0, 'descCargosGestion' => 0, 'testuser' => $tester, 'totalAmount' => $totalAmount, 'InstallmentsWOinterest' => self::getInstallmentsWOinterest(), 'InstallmentsWinterest' => self::getInstallmentsWinterest(), 'InstallmentsOtherBanks' => self::getInstallmentsOtherBanks(), 'InstallmentsUatp' => self::getInstallmentsUatp(), 'Nationalities' => self::getNationalities(), 'CitiesAutocomplete' => '/compra/CitiesAutocomplete', 'FormAction' => Request::url() . '?' . http_build_query(\Request::all()), 'States' => self::getStates(), 'Months' => self::getMonths()]);
     Controller::addCss('1200.css');
     Controller::addCss('booking.css');
     if (true === $tester) {
         self::addJsFooter('booking/tester.js');
     }
 }
Пример #2
0
 /**
  *
  **/
 function __construct()
 {
     //	$form = Request::all(); print_pre($form,0,0);
     if (false == self::$enabled) {
         return redirect(URL::to('/'), 302)->send();
     }
     parent::__construct();
     //  Add css and js
     if (false == Request::ajax()) {
         Controller::addCss('Insurance/stylesheet.css');
         Controller::addJsFooter('lib/jquery.validate.js');
         Controller::addJsFooter('Insurance/SearchBox.js');
     }
     //  get search zones from Gulliver
     $availableGeoZones = Gulliver::getInsurancesFilters();
     //  Common search form
     view()->share(['InsuranceSearch' => Cookie::get(self::$config['cookieName']), 'InsuranceZones' => false == empty($availableGeoZones['availableGeoZones']) ? $availableGeoZones['availableGeoZones'] : [], 'InsuranceConfig' => self::$config]);
     unset($availableGeoZones);
 }
Пример #3
0
 public function compose(View $view)
 {
     Controller::addCss('fixes.css');
     view()->share(['ROOT' => url(), 'STATICS' => Controller::$static, 'headers' => Controller::getHeaders(), 'jsHeader' => Controller::$jsHeader, 'cssTags' => Controller::$css, 'jsFooter' => Controller::$jsFooter, 'route' => Controller::$route, 'NavbarProducts' => Controller::getProducts('navbar'), 'NavbarExtra' => Controller::getNavbarExtra(), 'FooterLinks' => Controller::getFooterLinks(), 'CYBERMONDAY_TIME' => false, 'SHOW_TRAVEL_SALE_TAG' => false]);
 }