Rev 6791 | Rev 6819 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php$notify = '';$messages = $this->flashMessenger()->getInfoMessages();foreach ($messages as $message) {$notify .= "$.fn.showInfo('$message')";}$messages = $this->flashMessenger()->getSuccessMessages();foreach ($messages as $message) {$notify .= "$.fn.showSuccess('$message')";}$messages = $this->flashMessenger()->getWarningMessages();foreach ($messages as $message) {$notify .= " $.fn.showWarning('$message')";}$messages = $this->flashMessenger()->getErrorMessages();foreach ($messages as $message) {$notify .= " $.fn.showError('$message')";}if ($notify) {$this->inlineScript()->captureStart();echo " jQuery( document ).ready(function( $ ) { $notify }); ";$this->inlineScript()->captureEnd();}$js = <<<JSlet autoComplete;function handleScriptLoad(updateQuery, autoCompleteRef, setAddresObject, setError) {autoComplete = new window.google.maps.places.Autocomplete(autoCompleteRef.current,{ types: ["(cities)"]});autoComplete.setFields(["address_components", "formatted_address", "geometry"]);autoComplete.addListener("place_changed", () =>handlePlaceSelect(updateQuery, setAddresObject, setError));}async function handlePlaceSelect(updateQuery, setAddresObject, setError) {const addressObject = autoComplete.getPlace();// console.log(addressObject.geometry.location.lat());// console.log(addressObject.geometry.location.lng());const query = addressObject.formatted_address;if(query){setError("");updateQuery(query);setAddresObject({...addressObject,address_components:[...addressObject.address_components,{latitude: addressObject.geometry.location.lat(),longitude: addressObject.geometry.location.lng(),types:["geometry"]}]});}else{setError("$error_msg");}}JS;$this->inlineScript()->appendScript($js);?><!DOCTYPE html><html><head><?phpecho $this->headTitle();?><link rel="icon" href="<?php echo $this->networkFavicoHelper(); ?>"><?phpecho $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')->appendHttpEquiv('expires', '0')->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')->appendHttpEquiv('pragma', 'no-cache')->appendHttpEquiv('Cache-Control', 'no-store')->appendHttpEquiv('Cache-Control', 'max-age=0')->appendHttpEquiv('Cache-Control', 'no-cache')->appendHttpEquiv('charset', 'UTF-8')->appendName('viewport', 'width=device-width, initial-scale=1.0');?><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/animate.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/bootstrap.min.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome-font-awesome.min.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/fontawesome-free/css/all.min.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/font-awesome.min.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick-theme.css') ?>"><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/main.css') ?>" /><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/style-cesa.css') ?>" /><link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/nprogress/nprogress.css') ?>"><?phpecho $this->headStyle();echo $this->networkStylesAndColorsHelper();echo $this->headLink();echo $this->headScript();?></head><body><?php echo $this->content ?><footer class="footy-sec container"><img class="fl-rgt" src="<?php echo $this->basePath('/images/LL-08.png') ?>" alt=""><?php echo $this->footerHelper() ?><div class="d-flex align-items-center"><img src="<?php echo $this->basePath('images/copy-icon2.png') ?>" alt=""><p>CESA MS Copyright <?php echo date('Y') ?></p></div></footer><!-- jQuery --><script type="text/javascript" src="<?php echo $this->basePath('vendors/jquery/jquery.min.js') ?>"></script><!-- Bootstrap 4 --><script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap/js/bootstrap.bundle.min.js') ?>"></script><!-- Aplicacion --><script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap-notify/bootstrap-notify.min.js') ?>"></script><script type="text/javascript" src="<?php echo $this->basePath('js/app.js') ?>"></script><?phpecho $this->inlineScript();?></body></html>