File "5eb4fd29c04a6efabb9c06ce825e817b1367b255_0.file.punti-vendita-popup.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/5eb4fd29c04a6efabb9c06ce825e817b1367b255_0.file.punti-vendita-popup.tmpl.php
File size: 4.15 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-02-22 00:19:35
  from "/srv/www/www.cadoro.it/src/templates/punti-vendita-popup.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d68507017402_46847103',
  'file_dependency' => 
  array (
    '5eb4fd29c04a6efabb9c06ce825e817b1367b255' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/punti-vendita-popup.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-base.tmpl' => 1,
  ),
),false)) {
function content_65d68507017402_46847103 ($_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/srv/www/www.cadoro.it/src/vendor/smarty/smarty/libs/plugins/function.html_options.php';
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, 'title', array (
  0 => 'block_97495739365d6850700b3d3_76117470',
  1 => false,
  3 => 0,
  2 => 0,
));
?>


<html>
  <body>
    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "body", array (
  0 => 'block_43512435065d6850700d974_18015694',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "jstail", array (
  0 => 'block_193291383465d68507015809_13759572',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

  </body>
</html>
<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-base.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'title'}  file:punti-vendita-popup.tmpl */
function block_97495739365d6850700b3d3_76117470($_smarty_tpl, $_blockParentStack) {
?>

  Punti Vendita - CADORO
<?php
}
/* {/block 'title'} */
/* {block 'body'}  file:punti-vendita-popup.tmpl */
function block_43512435065d6850700d974_18015694($_smarty_tpl, $_blockParentStack) {
?>

    <form method="get" action="" class="container" id="punti-vendita-form"div>
      <div class="row">
        <div class="col-sm-3 mt20">
          <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/punti-vendita/popup">
            <h4 class="mt0">
              SELEZIONA IL PUNTO VENDITA
            </h4>
            <div class="mt20">
              PROVINCIA
              <select name="prov" id="prov" class="form-control">
                <option value=""></option>
                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['provinces']->value,'selected'=>$_smarty_tpl->tpl_vars['params']->value['prov']),$_smarty_tpl);?>

              </select>
            </div>
            <div class="mt20">
              CITTÀ
              <select name="city" id="city" class="form-control">
                <option value=""></option>
                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['cities']->value,'selected'=>$_smarty_tpl->tpl_vars['params']->value['city']),$_smarty_tpl);?>

              </select>
            </div>
            <div class="mt20">
              PUNTO VENDITA
              <select name="store" id="store" class="form-control">
                <option value=""></option>
                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['stores']->value,'selected'=>$_smarty_tpl->tpl_vars['params']->value['store']),$_smarty_tpl);?>

              </select>
            </div>
          </form>
        </div>
      </div>
    </form>
    <?php
}
/* {/block 'body'} */
/* {block 'jstail'}  file:punti-vendita-popup.tmpl */
function block_193291383465d68507015809_13759572($_smarty_tpl, $_blockParentStack) {
?>

    <?php echo '<script'; ?>
>
      $(function () {
        var $target = $("#punti-vendita-form")
        $target.find('select').on('change', function (e) {
          if ($(this).attr('name') == 'prov') {
            $('#city').val('')
          }
          $(e.target).closest('form').submit()
        })
      })
    <?php echo '</script'; ?>
>
    <?php
}
/* {/block 'jstail'} */
}