function content_56520ad532fd90_45041140($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\data\\localweb\\projects\\Prestashop\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['new_products']->value) && $_smarty_tpl->tpl_vars['new_products']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['new_products']->value, 'class' => 'blocknewproducts tab-pane', 'id' => 'blocknewproducts', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
            ?>

<?php 
        } else {
            ?>
<ul id="blocknewproducts" class="blocknewproducts tab-pane<?php 
            if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
                ?>
 active<?php 
            }
            ?>
">
	<li class="alert alert-info"><?php 
            echo smartyTranslate(array('s' => 'No new products at this time.', 'mod' => 'blocknewproducts'), $_smarty_tpl);
            ?>
</li>
</ul>
<?php 
        }
    }
    function content_56e17f0a963108_81977006($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
        }
        if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
            echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
            ?>

<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
            ?>

<?php 
        } else {
            ?>
<ul id='homefeatured' class="homefeatured tab-pane">
	<li class="alert alert-info"><?php 
            echo smartyTranslate(array('s' => 'No featured products', 'mod' => 'homefeatured'), $_smarty_tpl);
            ?>
</li>
</ul>
<?php 
        }
    }
    function content_535564a4c0e6a1_89434722($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['new_products']->value) && $_smarty_tpl->tpl_vars['new_products']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('products' => $_smarty_tpl->tpl_vars['new_products']->value, 'class' => 'blocknewproducts tab-pane', 'id' => 'blocknewproducts', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
            ?>

<?php 
        } else {
            ?>
<ul id="blocknewproducts" class="blocknewproducts tab-pane<?php 
            if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
                ?>
 active<?php 
            }
            ?>
">
	<li class="alert alert-info"><?php 
            echo smartyTranslate(array('s' => 'No new products at this time.', 'mod' => 'blocknewproducts'), $_smarty_tpl);
            ?>
</li>
</ul>
<?php 
        }
    }
    function content_569cf3c4a6d6f2_12125080($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.counter.php';
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>counter计数器演示</h1>
<?php 
        echo smarty_function_counter(array('start' => 0, 'skip' => '2'), $_smarty_tpl);
        ?>
国内新闻<br>
<?php 
        echo smarty_function_counter(array(), $_smarty_tpl);
        ?>
国际新闻<br>
<?php 
        echo smarty_function_counter(array('print' => false), $_smarty_tpl);
        ?>
娱乐新闻<br>
<?php 
        echo smarty_function_counter(array(), $_smarty_tpl);
        ?>
体育新闻<br>
</body>
</html><?php 
    }
    function content_56e73a8e2e8aa8_81135887($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['best_sellers']->value) && $_smarty_tpl->tpl_vars['best_sellers']->value) {
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('products' => $_smarty_tpl->tpl_vars['best_sellers']->value, 'class' => 'blockbestsellers tab-pane', 'id' => 'blockbestsellers', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
            ?>

<?php 
        } else {
            ?>
<ul id="blockbestsellers" class="blockbestsellers tab-pane<?php 
            if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
                ?>
 active<?php 
            }
            ?>
">
	<li class="alert alert-info"><?php 
            echo smartyTranslate(array('s' => 'No best sellers at this time.', 'mod' => 'blockbestsellers'), $_smarty_tpl);
            ?>
</li>
</ul>
<?php 
        }
    }
    function content_55ab4d05ac6d93_19506326($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'F:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\modules\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
            ?>

<?php 
        } else {
            ?>
<ul id="homefeatured" class="homefeatured tab-pane<?php 
            if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
                ?>
 active<?php 
            }
            ?>
">
	<li class="alert alert-info"><?php 
            echo smartyTranslate(array('s' => 'No featured products at this time.', 'mod' => 'homefeatured'), $_smarty_tpl);
            ?>
</li>
</ul>
<?php 
        }
    }
    function content_530ffd720b2c36_60285950($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('products' => $_smarty_tpl->tpl_vars['best_sellers']->value, 'class' => 'blockbestsellers tab-pane', 'id' => 'blockbestsellers', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
    }
    function content_530ff8ee843e41_36517892($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
    }
    function content_56e73a8c17e819_45079050($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php 
        echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_564ed806a6de77_72892687($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'E:\\Project\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php 
        echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_530ff8ee85a436_08280408($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php 
        echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_55ab4d059bc9b2_91936733($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'F:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\modules\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php 
        echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_530ff8ec07e9e2_39568928($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php 
        echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_5652176635df85_83540862($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\data\\localweb\\projects\\Prestashop\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts"><?php 
        echo smartyTranslate(array('s' => 'New arrivals', 'mod' => 'blocknewproducts'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_56e73cc3efaad1_92375921($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php 
        echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_55ab4d0581a911_70025556($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'F:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\modules\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php 
        echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
    function content_530ff8ed42a901_77354637($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
        ?>

<li<?php 
        if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
            ?>
 class="active"<?php 
        }
        ?>
><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts"><?php 
        echo smartyTranslate(array('s' => 'New arrivals', 'mod' => 'blocknewproducts'), $_smarty_tpl);
        ?>
</a></li><?php 
    }
コード例 #18
0
    ob_start();
    echo smarty_function_sugar_translate(array('label' => 'LBL_DESCRIPTION', 'module' => 'Users'), $this);
    $this->_smarty_vars['capture']['label'] = ob_get_contents();
    $this->assign('label', ob_get_contents());
    ob_end_clean();
    echo is_array($_tmp = $this->_tpl_vars['label']) ? $this->_run_mod_handler('strip_semicolon', true, $_tmp) : smarty_modifier_strip_semicolon($_tmp);
    ?>
:
<?php 
}
?>
</td>
<td width='37.5%' colspan='3' >
<?php 
if (!$this->_tpl_vars['fields']['description']['hidden']) {
    echo smarty_function_counter(array('name' => 'panelFieldCount'), $this);
    ?>


<span class="sugar_field" id="<?php 
    echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['fields']['description']['name']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('url2html', true, $_tmp) : url2html($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
    ?>
"><?php 
    echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['fields']['description']['value']) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlentitydecode') : smarty_modifier_escape($_tmp, 'htmlentitydecode')) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('url2html', true, $_tmp) : url2html($_tmp)) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
    ?>
</span>
<?php 
}
?>
</td>
</tr>
?>
' 
    id='<?php 
echo $this->_tpl_vars['fields']['name_basic']['name'];
?>
' size='30' 
    maxlength='255' 
    value='<?php 
echo $this->_tpl_vars['value'];
?>
' title=''      accesskey='9'  >
   	   	</td>
    
      
	<?php 
echo smarty_function_counter(array('assign' => 'index'), $this);
?>

	<?php 
echo smarty_function_math(array('equation' => "left % right", 'left' => $this->_tpl_vars['index'], 'right' => $this->_tpl_vars['basicMaxColumns'], 'assign' => 'modVal'), $this);
?>

	<?php 
if ($this->_tpl_vars['index'] % $this->_tpl_vars['basicMaxColumns'] == 1 && $this->_tpl_vars['index'] != 1) {
    ?>
		</tr><tr>
	<?php 
}
?>
	
	<td scope="row" nowrap="nowrap" width='1%' >
<?php if ($_valid && !is_callable('content_577c53cf2a69f5_69195283')) {function content_577c53cf2a69f5_69195283($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include 'D:\\Program Files\\wamp\\www\\tesis-aus\\configs\\smarty\\plugins\\function.counter.php';
?><?php echo '<script'; ?>
 type="text/javascript">
    $(document).ready(function () {

        $("[name='ver_capacitador']").click(function () {
            var id_capacitador = $(this).data("id");
            var urlp = "index.php?section=capacitadores&sub=ver_capacitador&id_capacitador=" + id_capacitador;
            window.open(urlp, "_self");
        });

        $("[name='modificar_capacitador']").click(function () {
            var id_capacitador = $(this).data("id");
            var urlp = "index.php?section=capacitadores&sub=modificar_capacitador&id_capacitador=" + id_capacitador;
            window.open(urlp, "_self");
        });

        $("[name='alta_capacitador']").click(function () {
            var id_capacitador = $(this).data("id");
            $("#modal_confirm").dialog("option", "title", "Alta de capacitador");
            $("#modal_confirm").html("&iquest;Est&aacute; seguro que desea dar de alta este capacitador?");
            $("#modal_confirm").dialog("open");

            //Set botones confirmar
            $("#modal_confirm").dialog("option", "buttons", {
                "SI": function () {
                    $.ajax({
                        method: "POST",
                        dataType: "json",
                        url: "includes/capacitadores/ajax_capacitadores.php?funcion=alta_capacitador",
                        data: {
                            id_capacitador: id_capacitador,
                            usrlogin: $("#usrlogin").val()
                        }
                    })
                            .done(function (data, textStatus, jqXHR) {
                                $("#modal_alert").dialog("option", "title", "Alta de capacitadores");
                                if (data.success) {
                                    $("#modal_alert").html("El capacitador fue dado de alta");
                                } else {
                                    $("#modal_alert").html("El capacitador no posee id valido");
                                }
                                $("#modal_alert").dialog("open");
                            })
                            .fail(function (jqXHR, textStatus, errorThrown) {
                                if (console && console.log) {
                                    console.log("La solicitud a fallado: " + textStatus);
                                    console.log(jqXHR + " # " + errorThrown);
                                }
                            });
                },
                "NO": function () {
                    $(this).dialog("close");
                }
            });
        });

        $("[name='baja_capacitador']").click(function () {
            var id_capacitador = $(this).data("id");
            $("#modal_confirm").dialog("option", "title", "Baja de capacitador");
            $("#modal_confirm").html("&iquest;Est&aacute; seguro que desea dar de baja este capacitador?");
            $("#modal_confirm").dialog("open");

            //Set botones confirmar
            $("#modal_confirm").dialog("option", "buttons", {
                "SI": function () {
                    $.ajax({
                        method: "POST",
                        dataType: "json",
                        url: "includes/capacitadores/ajax_capacitadores.php?funcion=baja_capacitador",
                        data: {
                            id_capacitador: id_capacitador,
                            usrlogin: $("#usrlogin").val()
                        }
                    })
                            .done(function (data, textStatus, jqXHR) {
                                $("#modal_alert").dialog("option", "title", "Baja de capacitador");
                                if (data.success) {
                                    $("#modal_alert").html("El capacitador fue dado de baja");
                                } else {
                                    $("#modal_alert").html("El capacitador no posee id valido");
                                }
                                $("#modal_alert").dialog("open");
                            })
                            .fail(function (jqXHR, textStatus, errorThrown) {
                                if (console && console.log) {
                                    console.log("La solicitud a fallado: " + textStatus);
                                    console.log(jqXHR + " # " + errorThrown);
                                }
                            });
                },
                "NO": function () {
                    $(this).dialog("close");
                }
            });
        });

        //Set botones alert
        $("#modal_alert").dialog("option", "buttons", {
            "Acpetar": function () {
                window.location.reload();
            }
        });

    });
<?php echo '</script'; ?>
>

<h1>Capacitadores</h1>
<form autocomplete="off" id="formListarCapacitadores" name="formListarCapacitadores" action="index.php?section=capacitadores&sub=listar_capacitadores" method="POST">

    <p>Cantidad total de capacitadores <?php echo $_smarty_tpl->tpl_vars['cantidad_capacitadores']->value;?>
<br />
        Estado:
        <input type="hidden" value="" name="apellido" id="nombre"/>
        <input type="hidden" value="" name="nombre" id="apellido"/>
        <input type="hidden" value="" name="dni" id="dni"/>

        <select id="estado" name="estado">
            <?php if ($_smarty_tpl->tpl_vars['estado']->value=="ACTIVO") {?>
            <option value=""> TODOS </option>
            <option value="ACTIVO" selected=""> ACTIVO </option>
            <option value="INACTIVO"> INACTIVO </option>
            <?php } elseif ($_smarty_tpl->tpl_vars['estado']->value=="INACTIVO") {?>
            <option value=""> TODOS </option>
            <option value="ACTIVO"> ACTIVO </option>
            <option value="INACTIVO" selected=""> INACTIVO </option>
            <?php } else { ?>
            <option value="" selected=""> TODOS </option>
            <option value="ACTIVO"> ACTIVO </option>
            <option value="INACTIVO"> INACTIVO </option>
            <?php }?>
        </select>
        <button type="submit" form="formListarCapacitadores" value="filtrar">Filtrar</button>
    </p>
</form>

<table class="zebra-striped" id="sortTableExample">
    <thead>
        <tr>
            <th>#</th>
            <th>Apellido</th>
            <th>Nombres</th>
            <th>Tel&eacute;fono</th>
            <th>Celular</th>
            <th>Estado</th>
            <th>Acciones</th>
        </tr>
    </thead>

    <tbody>
        <?php echo smarty_function_counter(array('start'=>0,'print'=>false),$_smarty_tpl);?>

        <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['c'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['c']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['name'] = 'c';
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['lista_capacitadores']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total']);
?>
        <tr>
            <td><?php echo smarty_function_counter(array(),$_smarty_tpl);?>
</td>
            <td><?php echo strtoupper($_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['apellido']);?>
</td>
            <td><?php echo strtoupper($_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['nombre']);?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['telefono'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['celular'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['estado'];?>
</td>
            <td>
                <img name="ver_capacitador" src="images/icons/file_search.png" title="Ver capacitador" alt="Ver capacitador" border="0" height="17" align="absmiddle" data-id="<?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id_capacitador'];?>
" />
                <?php if ($_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['estado']=="ACTIVO") {?>
                <img name="modificar_capacitador" src="images/icons/file_edit.png" title="Modificar capacitador" alt="Modificar capacitador" border="0" height="17" align="absmiddle" data-id="<?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id_capacitador'];?>
" />
                <img name="baja_capacitador" src="images/icons/file_delete.png" title="baja capacitador" alt="Baja capacitador" border="0" height="17" align="absmiddle" data-id="<?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id_capacitador'];?>
" />
                <?php } else { ?>
                <img name="alta_capacitador" src="images/icons/file_add.png" title="Alta capacitador" alt="Alta capacitador" border="0" height="17" align="absmiddle" data-id="<?php echo $_smarty_tpl->tpl_vars['lista_capacitadores']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id_capacitador'];?>
" />
                <?php }?>
            </td>
        </tr>
        <?php endfor; endif; ?>
    </tbody>
</table>
<input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['usrlogin']->value;?>
" id="usrlogin" name="usrlogin"/>
<?php }} ?>
    function content_5653523b32a2c2_17832300($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'C:\\xampp\\htdocs\\flowershop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo $_smarty_tpl->getSubTemplate("./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['orderRet']->value)) {
            ?>
	<div class="box">
		<h2 class="page-subheading"><?php 
            echo smartyTranslate(array('s' => 'RE#'), $_smarty_tpl);
            echo sprintf("%06d", $_smarty_tpl->tpl_vars['orderRet']->value->id);
            ?>
 <?php 
            echo smartyTranslate(array('s' => 'on'), $_smarty_tpl);
            ?>
 <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value->date_add, 'full' => 0), $_smarty_tpl);
            ?>
</h2>
		<p class="bold"><?php 
            echo smartyTranslate(array('s' => 'We have logged your return request.'), $_smarty_tpl);
            ?>
</p>
		<p><?php 
            echo smartyTranslate(array('s' => 'Your package must be returned to us within'), $_smarty_tpl);
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['nbdaysreturn']->value;
            ?>
 <?php 
            echo smartyTranslate(array('s' => 'days of receiving your order.'), $_smarty_tpl);
            ?>
</p>
		<p><?php 
            echo smartyTranslate(array('s' => 'The current status of your merchandise return is:'), $_smarty_tpl);
            ?>
 <span class="bold"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['state_name']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
</span></p>
		<p><?php 
            echo smartyTranslate(array('s' => 'List of items to be returned:'), $_smarty_tpl);
            ?>
</p>
	</div>
	<div id="order-detail-content" class="table_block">
		<table class="table table-bordered">
			<thead>
				<tr>
					<th class="first_item"><?php 
            echo smartyTranslate(array('s' => 'Reference'), $_smarty_tpl);
            ?>
</th>
					<th class="item"><?php 
            echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl);
            ?>
</th>
					<th class="last_item"><?php 
            echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl);
            ?>
</th>
				</tr>
			</thead>
			<tbody>
			<?php 
            $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['product']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['products']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['product']->index = -1;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index'] = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                $_smarty_tpl->tpl_vars['product']->_loop = true;
                $_smarty_tpl->tpl_vars['product']->index++;
                $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['first'] = $_smarty_tpl->tpl_vars['product']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']++;
                ?>

				<?php 
                $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, 0);
                ?>
				<?php 
                $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['customization']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['returnedCustomizations']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['customization']->index = -1;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index'] = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) {
                    $_smarty_tpl->tpl_vars['customization']->_loop = true;
                    $_smarty_tpl->tpl_vars['customization']->index++;
                    $_smarty_tpl->tpl_vars['customization']->first = $_smarty_tpl->tpl_vars['customization']->index === 0;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['first'] = $_smarty_tpl->tpl_vars['customization']->first;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']++;
                    ?>
					<?php 
                    if ($_smarty_tpl->tpl_vars['customization']->value['product_id'] == $_smarty_tpl->tpl_vars['product']->value['product_id']) {
                        ?>
						<tr class="<?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['first']) {
                            ?>
first_item<?php 
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index'] % 2) {
                            ?>
alternate_item<?php 
                        } else {
                            ?>
item<?php 
                        }
                        ?>
">
							<td><?php 
                        if ($_smarty_tpl->tpl_vars['customization']->value['reference']) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['customization']->value['reference'], ENT_QUOTES, 'UTF-8', true);
                        } else {
                            ?>
--<?php 
                        }
                        ?>
</td>
							<td class="bold"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['customization']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</td>
							<td><span class="order_qte_span editable"><?php 
                        echo intval($_smarty_tpl->tpl_vars['customization']->value['product_quantity']);
                        ?>
</span></td>
						</tr>
						<?php 
                        $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['product_id'], null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['product_attribute_id'], null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['customizationId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['id_customization'], null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['addressDeliveryId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['id_address_delivery'], null, 0);
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['datas']->_loop = false;
                        $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['addressDeliveryId']->value][$_smarty_tpl->tpl_vars['customizationId']->value]['datas'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value) {
                            $_smarty_tpl->tpl_vars['datas']->_loop = true;
                            $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key;
                            ?>
							<tr class="alternate_item">
								<td colspan="3">
									<?php 
                            if ($_smarty_tpl->tpl_vars['type']->value == Product::CUSTOMIZE_FILE) {
                                ?>
									<ul class="customizationUploaded">
										<?php 
                                $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['data']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['datas']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
                                    $_smarty_tpl->tpl_vars['data']->_loop = true;
                                    ?>
											<li><img src="<?php 
                                    echo $_smarty_tpl->tpl_vars['pic_dir']->value;
                                    echo $_smarty_tpl->tpl_vars['data']->value['value'];
                                    ?>
_small" alt="" class="customizationUploaded" /></li>
										<?php 
                                }
                                ?>
									</ul>
									<?php 
                            } elseif ($_smarty_tpl->tpl_vars['type']->value == Product::CUSTOMIZE_TEXTFIELD) {
                                ?>
									<ul class="typedText"><?php 
                                echo smarty_function_counter(array('start' => 0, 'print' => false), $_smarty_tpl);
                                ?>

										<?php 
                                $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['data']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['datas']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
                                    $_smarty_tpl->tpl_vars['data']->_loop = true;
                                    ?>
											<?php 
                                    $_smarty_tpl->tpl_vars['customizationFieldName'] = new Smarty_variable("Text #" . $_smarty_tpl->tpl_vars['data']->value['id_customization_field'], null, 0);
                                    ?>
											<li><?php 
                                    echo smartyTranslate(array('s' => '%s:', 'sprintf' => ($tmp = @$_smarty_tpl->tpl_vars['data']->value['name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['customizationFieldName']->value : $tmp), $_smarty_tpl);
                                    ?>
 <?php 
                                    echo $_smarty_tpl->tpl_vars['data']->value['value'];
                                    ?>
</li>
										<?php 
                                }
                                ?>
									</ul>
									<?php 
                            }
                            ?>
								</td>
							</tr>
						<?php 
                        }
                        ?>
						<?php 
                        $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable($_smarty_tpl->tpl_vars['quantityDisplayed']->value + $_smarty_tpl->tpl_vars['customization']->value['product_quantity'], null, 0);
                        ?>
					<?php 
                    }
                    ?>
				<?php 
                }
                ?>

				<?php 
                if ($_smarty_tpl->tpl_vars['product']->value['product_quantity'] > $_smarty_tpl->tpl_vars['quantityDisplayed']->value) {
                    ?>
					<tr class="<?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['first']) {
                        ?>
first_item<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index'] % 2) {
                        ?>
alternate_item<?php 
                    } else {
                        ?>
item<?php 
                    }
                    ?>
">
						<td><?php 
                    if ($_smarty_tpl->tpl_vars['product']->value['product_reference']) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_reference'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        ?>
--<?php 
                    }
                    ?>
</td>
						<td class="bold"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true);
                    ?>
</td>
						<td><span class="order_qte_span editable"><?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['product_quantity']);
                    ?>
</span></td>
					</tr>
				<?php 
                }
                ?>
			<?php 
            }
            ?>
			</tbody>
		</table>
	</div>

	<?php 
            if ($_smarty_tpl->tpl_vars['orderRet']->value->state == 2) {
                ?>
	<div class="box">
    	<h3 class="page-subheading"><?php 
                echo smartyTranslate(array('s' => 'Reminder'), $_smarty_tpl);
                ?>
</h3>
		<ul>
			<li><?php 
                echo smartyTranslate(array('s' => 'All merchandise must be returned in its original packaging and in its original state.'), $_smarty_tpl);
                ?>
</li>
			<li><?php 
                echo smartyTranslate(array('s' => 'Please print out the'), $_smarty_tpl);
                ?>
 <a href="<?php 
                ob_start();
                echo intval($_smarty_tpl->tpl_vars['orderRet']->value->id);
                $_tmp53 = ob_get_clean();
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return', true, null, "id_order_return=" . $_tmp53), ENT_QUOTES, 'UTF-8', true);
                ?>
"><?php 
                echo smartyTranslate(array('s' => 'PDF return slip'), $_smarty_tpl);
                ?>
</a> <?php 
                echo smartyTranslate(array('s' => 'and include it with your package.'), $_smarty_tpl);
                ?>
</li>
			<li><?php 
                echo smartyTranslate(array('s' => 'Please see the PDF return slip'), $_smarty_tpl);
                ?>
 (<a href="<?php 
                ob_start();
                echo intval($_smarty_tpl->tpl_vars['orderRet']->value->id);
                $_tmp54 = ob_get_clean();
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return', true, null, "id_order_return=" . $_tmp54), ENT_QUOTES, 'UTF-8', true);
                ?>
"><?php 
                echo smartyTranslate(array('s' => 'for the correct address.'), $_smarty_tpl);
                ?>
</a>)</li>
		</ul>
		<?php 
                echo smartyTranslate(array('s' => 'When we receive your package, we will notify you by email. We will then begin processing order reimbursement.'), $_smarty_tpl);
                ?>

		<br /><br /><a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact', true), ENT_QUOTES, 'UTF-8', true);
                ?>
"><?php 
                echo smartyTranslate(array('s' => 'Please let us know if you have any questions.'), $_smarty_tpl);
                ?>
</a>
		<br />
		<p class="bold"><?php 
                echo smartyTranslate(array('s' => 'If the conditions of return listed above are not respected, we reserve the right to refuse your package and/or reimbursement.'), $_smarty_tpl);
                ?>
</p>
	</div>
	<?php 
            } elseif ($_smarty_tpl->tpl_vars['orderRet']->value->state == 1) {
                ?>
		<p class="bold"><?php 
                echo smartyTranslate(array('s' => 'You must wait for confirmation before returning any merchandise.'), $_smarty_tpl);
                ?>
</p>
	<?php 
            }
        }
        ?>

<?php 
    }
コード例 #22
0
<?php 
ob_start();
echo smarty_function_sugar_translate(array('label' => 'LBL_DESCRIPTION', 'module' => 'Accounts'), $this);
?>

<?php 
$this->_smarty_vars['capture']['label'] = ob_get_contents();
$this->assign('label', ob_get_contents());
ob_end_clean();
echo is_array($_tmp = $this->_tpl_vars['label']) ? $this->_run_mod_handler('strip_semicolon', true, $_tmp) : smarty_modifier_strip_semicolon($_tmp);
?>
:
</td>
<td valign="top" width='37.5%' colspan='3'>
<?php 
echo smarty_function_counter(array('name' => 'panelFieldCount', 'print' => false), $this);
?>


<?php 
if (empty($this->_tpl_vars['fields']['description']['value'])) {
    $this->assign('value', $this->_tpl_vars['fields']['description']['default_value']);
} else {
    $this->assign('value', $this->_tpl_vars['fields']['description']['value']);
}
?>
  
<textarea  id='Accountsdescription' name='Accountsdescription'
rows="6" 
cols="80" 
title='' tabindex="0" 
コード例 #23
0
        echo $this->_tpl_vars['button']['linkId'];
        ?>
' href="javascript:void(0)">
				            <?php 
        if (isset($this->_tpl_vars['button']['imageName'])) {
            echo $this->_tpl_vars['button']['imageTitle'];
        } else {
            echo $this->_tpl_vars['buttonName'];
        }
        ?>
</a></td>
				     </tr>
				 </table>
			</td>
			<?php 
        echo smarty_function_counter(array('name' => 'buttonCounter'), $this);
        ?>

		<?php 
    }
}
unset($_from);
?>
	</tr></table>
<!-- Hidden div for hidden content so IE doesn't ignore it -->
<div style="float:left; left:-100px; display: hidden;">&nbsp;
	<?php 
echo '
	<style type=\'text/css\'>
		.wizard { padding: 5px; text-align:center; font-weight:bold}
		.title{ color:#990033; font-weight:bold; padding: 0px 5px 0px 0px; font-size: 20pt}
コード例 #24
0
            echo '';
            $this->assign('key', $this->_tpl_vars['header']['sort']);
            echo '';
            echo $this->_tpl_vars['sort']->_response[$this->_tpl_vars['key']]['link'];
            echo '';
        } else {
            echo '';
            echo $this->_tpl_vars['header']['name'];
            echo '';
        }
        echo '</th>';
    }
}
unset($_from);
echo '</tr>';
echo smarty_function_counter(array('start' => 0, 'skip' => 1, 'print' => false), $this);
echo '';
$_from = $this->_tpl_vars['rows'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['row']) {
        echo '<tr id=\'rowid';
        echo $this->_tpl_vars['row']['contact_id'];
        echo '\' class="';
        echo smarty_function_cycle(array('values' => "odd-row,even-row"), $this);
        echo '">';
        $this->assign('cbName', $this->_tpl_vars['row']['checkbox']);
        echo '<td>';
        echo $this->_tpl_vars['form'][$this->_tpl_vars['cbName']]['html'];
    function content_561d15eaa35b10_16334302($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        $_smarty_tpl->_capture_stack[0][] = array('tr_count', null, null);
        ob_start();
        echo smarty_function_counter(array('name' => 'tr_count'), $_smarty_tpl);
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
<tbody>
<?php 
        if (count($_smarty_tpl->tpl_vars['list']->value)) {
            $_smarty_tpl->tpl_vars['tr'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['tr']->_loop = false;
            $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['tr']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['tr']->key => $_smarty_tpl->tpl_vars['tr']->value) {
                $_smarty_tpl->tpl_vars['tr']->_loop = true;
                $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['tr']->key;
                $_smarty_tpl->tpl_vars['tr']->iteration++;
                ?>
	<tr<?php 
                if ($_smarty_tpl->tpl_vars['position_identifier']->value) {
                    ?>
 id="tr_<?php 
                    echo $_smarty_tpl->tpl_vars['position_group_identifier']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                    ?>
_<?php 
                    if (isset($_smarty_tpl->tpl_vars['tr']->value['position']['position'])) {
                        echo $_smarty_tpl->tpl_vars['tr']->value['position']['position'];
                    } else {
                        ?>
0<?php 
                    }
                    ?>
"<?php 
                }
                ?>
 class="<?php 
                if (isset($_smarty_tpl->tpl_vars['tr']->value['class'])) {
                    echo $_smarty_tpl->tpl_vars['tr']->value['class'];
                }
                ?>
 <?php 
                if (1 & $_smarty_tpl->tpl_vars['tr']->iteration / 1) {
                    ?>
odd<?php 
                }
                ?>
"<?php 
                if (isset($_smarty_tpl->tpl_vars['tr']->value['color']) && $_smarty_tpl->tpl_vars['color_on_bg']->value) {
                    ?>
 style="background-color: <?php 
                    echo $_smarty_tpl->tpl_vars['tr']->value['color'];
                    ?>
"<?php 
                }
                ?>
 >
		<?php 
                if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
                    ?>
			<td class="row-selector text-center">
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['list_skip_actions']->value['delete'])) {
                        ?>
					<?php 
                        if (!in_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], $_smarty_tpl->tpl_vars['list_skip_actions']->value['delete'])) {
                            ?>
						<input type="checkbox" name="<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
Box[]" value="<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                            ?>
"<?php 
                            ob_start();
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                            $_tmp1 = ob_get_clean();
                            if (isset($_smarty_tpl->tpl_vars['checked_boxes']->value) && is_array($_smarty_tpl->tpl_vars['checked_boxes']->value) && in_array($_tmp1, $_smarty_tpl->tpl_vars['checked_boxes']->value)) {
                                ?>
 checked="checked"<?php 
                            }
                            ?>
 class="noborder" />
					<?php 
                        }
                        ?>
				<?php 
                    } else {
                        ?>
					<input type="checkbox" name="<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
Box[]" value="<?php 
                        echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                        ?>
"<?php 
                        ob_start();
                        echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                        $_tmp2 = ob_get_clean();
                        if (isset($_smarty_tpl->tpl_vars['checked_boxes']->value) && is_array($_smarty_tpl->tpl_vars['checked_boxes']->value) && in_array($_tmp2, $_smarty_tpl->tpl_vars['checked_boxes']->value)) {
                            ?>
 checked="checked"<?php 
                        }
                        ?>
 class="noborder" />
				<?php 
                    }
                    ?>
			</td>
		<?php 
                }
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['params']->_loop = false;
                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
                    $_smarty_tpl->tpl_vars['params']->_loop = true;
                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
                    ?>
			
				<td
					<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['position'])) {
                        ?>
						id="td_<?php 
                        if (!empty($_smarty_tpl->tpl_vars['position_group_identifier']->value)) {
                            echo $_smarty_tpl->tpl_vars['position_group_identifier']->value;
                        } else {
                            ?>
0<?php 
                        }
                        ?>
_<?php 
                        echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];
                        if (Smarty::$_smarty_vars['capture']['tr_count'] > 1) {
                            ?>
_<?php 
                            echo intval(Smarty::$_smarty_vars['capture']['tr_count'] - 1);
                        }
                        ?>
"
					<?php 
                    }
                    ?>
					class="<?php 
                    if (!$_smarty_tpl->tpl_vars['no_link']->value) {
                        ?>
pointer<?php 
                    }
                    if (isset($_smarty_tpl->tpl_vars['params']->value['position']) && $_smarty_tpl->tpl_vars['order_by']->value == 'position' && $_smarty_tpl->tpl_vars['order_way']->value != 'DESC') {
                        ?>
 dragHandle<?php 
                    }
                    if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['class'];
                    }
                    if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['align'];
                    }
                    ?>
"
					<?php 
                    if (!isset($_smarty_tpl->tpl_vars['params']->value['position']) && !$_smarty_tpl->tpl_vars['no_link']->value && !isset($_smarty_tpl->tpl_vars['params']->value['remove_onclick'])) {
                        ?>
						onclick="document.location = '<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['current_index']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
&amp;<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['identifier']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
=<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], ENT_QUOTES, 'UTF-8', true);
                        if ($_smarty_tpl->tpl_vars['view']->value) {
                            ?>
&amp;view<?php 
                        } else {
                            ?>
&amp;update<?php 
                        }
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8', true);
                        if ($_smarty_tpl->tpl_vars['page']->value > 1) {
                            ?>
&amp;page=<?php 
                            echo intval($_smarty_tpl->tpl_vars['page']->value);
                        }
                        ?>
&amp;token=<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
'">
					<?php 
                    } else {
                        ?>
					>
				<?php 
                    }
                    ?>
			
			
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['prefix'])) {
                        echo $_smarty_tpl->tpl_vars['params']->value['prefix'];
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_success']) && $_smarty_tpl->tpl_vars['params']->value['badge_success'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_success']) && $_smarty_tpl->tpl_vars['tr']->value['badge_success'] == $_smarty_tpl->tpl_vars['params']->value['badge_success']) {
                        ?>
<span class="badge badge-success"><?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_warning']) && $_smarty_tpl->tpl_vars['params']->value['badge_warning'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_warning']) && $_smarty_tpl->tpl_vars['tr']->value['badge_warning'] == $_smarty_tpl->tpl_vars['params']->value['badge_warning']) {
                        ?>
<span class="badge badge-warning"><?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_danger']) && $_smarty_tpl->tpl_vars['params']->value['badge_danger'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_danger']) && $_smarty_tpl->tpl_vars['tr']->value['badge_danger'] == $_smarty_tpl->tpl_vars['params']->value['badge_danger']) {
                        ?>
<span class="badge badge-danger"><?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['color']) && isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']])) {
                        ?>
					<span class="label color_field" style="background-color:<?php 
                        echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']];
                        ?>
;color:<?php 
                        if (Tools::getBrightness($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']]) < 128) {
                            ?>
white<?php 
                        } else {
                            ?>
#383838<?php 
                        }
                        ?>
">
				<?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                        ?>
					<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['active'])) {
                            ?>
						<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['activeVisu'])) {
                            ?>
						<?php 
                            if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) {
                                ?>
							<i class="icon-check-ok"></i> <?php 
                                echo smartyTranslate(array('s' => 'Enabled'), $_smarty_tpl);
                                ?>

						<?php 
                            } else {
                                ?>
							<i class="icon-remove"></i> <?php 
                                echo smartyTranslate(array('s' => 'Disabled'), $_smarty_tpl);
                                ?>

						<?php 
                            }
                            ?>
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['position'])) {
                            ?>
						<?php 
                            if (!$_smarty_tpl->tpl_vars['filters_has_value']->value && $_smarty_tpl->tpl_vars['order_by']->value == 'position' && $_smarty_tpl->tpl_vars['order_way']->value != 'DESC') {
                                ?>
							<div class="dragGroup">
								<div class="positions">
									<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position'] + 1;
                                ?>

								</div>
							</div>
						<?php 
                            } else {
                                ?>
							<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position'] + 1;
                                ?>

						<?php 
                            }
                            ?>
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['image'])) {
                            ?>
						<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['icon'])) {
                            ?>
						<?php 
                            if (is_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                                ?>
							<?php 
                                if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['class'])) {
                                    ?>
								<i class="<?php 
                                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['class'];
                                    ?>
"></i>
							<?php 
                                } else {
                                    ?>
								<img src="../img/admin/<?php 
                                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['src'];
                                    ?>
" alt="<?php 
                                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['alt'];
                                    ?>
" title="<?php 
                                    echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['alt'];
                                    ?>
" />
							<?php 
                                }
                                ?>
						<?php 
                            }
                            ?>
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'price') {
                            ?>
						<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]), $_smarty_tpl);
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['float'])) {
                            ?>
						<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'date') {
                            ?>
						<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], 'full' => 0), $_smarty_tpl);
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'datetime') {
                            ?>
						<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], 'full' => 1), $_smarty_tpl);
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'decimal') {
                            ?>
						<?php 
                            echo sprintf("%.2f", $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]);
                            ?>

					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'percent') {
                            ?>
						<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                            ?>
 <?php 
                            echo smartyTranslate(array('s' => '%'), $_smarty_tpl);
                            ?>

					
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type']) && $_smarty_tpl->tpl_vars['params']->value['type'] == 'editable' && isset($_smarty_tpl->tpl_vars['tr']->value['id'])) {
                            ?>
						<input type="text" name="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['tr']->value['id'];
                            ?>
" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);
                            ?>
" class="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
" />
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['callback'])) {
                            ?>
						<?php 
                            if (isset($_smarty_tpl->tpl_vars['params']->value['maxlength']) && Tools::strlen($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) > $_smarty_tpl->tpl_vars['params']->value['maxlength']) {
                                ?>
							<span title="<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                                ?>
"><?php 
                                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], $_smarty_tpl->tpl_vars['params']->value['maxlength'], '...');
                                ?>
</span>
						<?php 
                            } else {
                                ?>
							<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                                ?>

						<?php 
                            }
                            ?>
					<?php 
                        } elseif ($_smarty_tpl->tpl_vars['key']->value == 'color') {
                            ?>
						<?php 
                            if (!is_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                                ?>
						<div style="background-color: <?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];
                                ?>
;" class="attributes-color-container"></div>
						<?php 
                            } else {
                                ?>
 
						<img src="<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['texture'];
                                ?>
" alt="<?php 
                                echo $_smarty_tpl->tpl_vars['tr']->value['name'];
                                ?>
" class="attributes-color-container" />
						<?php 
                            }
                            ?>
					<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['params']->value['maxlength']) && Tools::strlen($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) > $_smarty_tpl->tpl_vars['params']->value['maxlength']) {
                            ?>
						<span title="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], $_smarty_tpl->tpl_vars['params']->value['maxlength'], '...'), ENT_QUOTES, 'UTF-8', true);
                            ?>
</span>
					<?php 
                        } else {
                            ?>
						<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);
                            ?>

					<?php 
                        }
                        ?>
				<?php 
                    } else {
                        ?>
					--
				<?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['suffix'])) {
                        echo $_smarty_tpl->tpl_vars['params']->value['suffix'];
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['color']) && isset($_smarty_tpl->tpl_vars['tr']->value['color'])) {
                        ?>
					</span>
				<?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_danger']) && $_smarty_tpl->tpl_vars['params']->value['badge_danger'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_danger']) && $_smarty_tpl->tpl_vars['tr']->value['badge_danger'] == $_smarty_tpl->tpl_vars['params']->value['badge_danger']) {
                        ?>
</span><?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_warning']) && $_smarty_tpl->tpl_vars['params']->value['badge_warning'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_warning']) && $_smarty_tpl->tpl_vars['tr']->value['badge_warning'] == $_smarty_tpl->tpl_vars['params']->value['badge_warning']) {
                        ?>
</span><?php 
                    }
                    ?>
				<?php 
                    if (isset($_smarty_tpl->tpl_vars['params']->value['badge_success']) && $_smarty_tpl->tpl_vars['params']->value['badge_success'] && isset($_smarty_tpl->tpl_vars['tr']->value['badge_success']) && $_smarty_tpl->tpl_vars['tr']->value['badge_success'] == $_smarty_tpl->tpl_vars['params']->value['badge_success']) {
                        ?>
</span><?php 
                    }
                    ?>
			
			
				</td>
			
		<?php 
                }
                ?>

	<?php 
                if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {
                    ?>
		<td title="<?php 
                    echo $_smarty_tpl->tpl_vars['tr']->value['shop_name'];
                    ?>
">
			<?php 
                    if (isset($_smarty_tpl->tpl_vars['tr']->value['shop_short_name'])) {
                        ?>
				<?php 
                        echo $_smarty_tpl->tpl_vars['tr']->value['shop_short_name'];
                        ?>

			<?php 
                    } else {
                        ?>
				<?php 
                        echo $_smarty_tpl->tpl_vars['tr']->value['shop_name'];
                        ?>

			<?php 
                    }
                    ?>
		</td>
	<?php 
                }
                ?>
	<?php 
                if ($_smarty_tpl->tpl_vars['has_actions']->value) {
                    ?>
		<td class="text-right">
			<?php 
                    $_smarty_tpl->tpl_vars['compiled_actions'] = new Smarty_variable(array(), null, 0);
                    ?>
			<?php 
                    $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['action']->_loop = false;
                    $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['actions']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
                        $_smarty_tpl->tpl_vars['action']->_loop = true;
                        $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key;
                        ?>
				<?php 
                        if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value])) {
                            ?>
					<?php 
                            if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                                ?>
						<?php 
                                $_smarty_tpl->tpl_vars['action'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value, null, 0);
                                ?>
					<?php 
                            }
                            ?>
					<?php 
                            if ($_smarty_tpl->tpl_vars['action']->value == 'delete' && count($_smarty_tpl->tpl_vars['actions']->value) > 2) {
                                ?>
						<?php 
                                $_smarty_tpl->createLocalArrayVariable('compiled_actions', null, 0);
                                $_smarty_tpl->tpl_vars['compiled_actions']->value[] = 'divider';
                                ?>
					<?php 
                            }
                            ?>
					<?php 
                            $_smarty_tpl->createLocalArrayVariable('compiled_actions', null, 0);
                            $_smarty_tpl->tpl_vars['compiled_actions']->value[] = $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value];
                            ?>
				<?php 
                        }
                        ?>
			<?php 
                    }
                    ?>
			<?php 
                    if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 0) {
                        ?>
				<?php 
                        if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) {
                            ?>
<div class="btn-group-action"><?php 
                        }
                        ?>
				<div class="btn-group pull-right">
					<?php 
                        echo $_smarty_tpl->tpl_vars['compiled_actions']->value[0];
                        ?>

					<?php 
                        if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) {
                            ?>
					<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
						<i class="icon-caret-down"></i>&nbsp;
					</button>
						<ul class="dropdown-menu">
						<?php 
                            $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['action']->_loop = false;
                            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['compiled_actions']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
                                $_smarty_tpl->tpl_vars['action']->_loop = true;
                                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key;
                                ?>
							<?php 
                                if ($_smarty_tpl->tpl_vars['key']->value != 0) {
                                    ?>
							<li <?php 
                                    if ($_smarty_tpl->tpl_vars['action']->value == 'divider') {
                                        ?>
class="divider"<?php 
                                    }
                                    ?>
>
								<?php 
                                    if ($_smarty_tpl->tpl_vars['action']->value != 'divider') {
                                        echo $_smarty_tpl->tpl_vars['action']->value;
                                    }
                                    ?>
							</li>
							<?php 
                                }
                                ?>
						<?php 
                            }
                            ?>
						</ul>
					<?php 
                        }
                        ?>
				</div>
				<?php 
                        if (count($_smarty_tpl->tpl_vars['compiled_actions']->value) > 1) {
                            ?>
</div><?php 
                        }
                        ?>
			<?php 
                    }
                    ?>
		</td>
	<?php 
                }
                ?>
	</tr>
<?php 
            }
        } else {
            ?>
	<tr>
		<td class="list-empty" colspan="<?php 
            echo count($_smarty_tpl->tpl_vars['fields_display']->value) + 1;
            ?>
">
			<div class="list-empty-msg">
				<i class="icon-warning-sign list-empty-icon"></i>
				<?php 
            echo smartyTranslate(array('s' => 'No records found'), $_smarty_tpl);
            ?>

			</div>
		</td>
	</tr>
<?php 
        }
        ?>
</tbody>
<?php 
    }
    function content_56bb020a81f023_11835942($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php';
        }
        if (!is_callable('smarty_function_counter')) {
            include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\function.counter.php';
        }
        ?>
<!-- MODULE Block cart -->
<?php 
        if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && $_smarty_tpl->tpl_vars['blockcart_top']->value) {
            ?>
<div class="col-sm-4 clearfix<?php 
            if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                ?>
 header_user_catalog<?php 
            }
            ?>
">
<?php 
        }
        ?>
	<div class="shopping_cart">
		<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true);
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'View my shopping cart', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
" rel="nofollow">
			<b><?php 
        echo smartyTranslate(array('s' => 'Cart', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</b>
			<span class="ajax_cart_quantity<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) {
            ?>
 unvisible<?php 
        }
        ?>
"><?php 
        echo $_smarty_tpl->tpl_vars['cart_qties']->value;
        ?>
</span>
			<span class="ajax_cart_product_txt<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value != 1) {
            ?>
 unvisible<?php 
        }
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Product', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</span>
			<span class="ajax_cart_product_txt_s<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value < 2) {
            ?>
 unvisible<?php 
        }
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Products', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</span>
			<span class="ajax_cart_total<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) {
            ?>
 unvisible<?php 
        }
        ?>
">
				<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) {
            ?>
					<?php 
            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                ?>
						<?php 
                $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0);
                ?>
						<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl);
                ?>

					<?php 
            } else {
                ?>
						<?php 
                $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0);
                ?>
						<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl);
                ?>

					<?php 
            }
            ?>
				<?php 
        }
        ?>
			</span>
			<span class="ajax_cart_no_product<?php 
        if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) {
            ?>
 unvisible<?php 
        }
        ?>
"><?php 
        echo smartyTranslate(array('s' => '(empty)', 'mod' => 'blockcart'), $_smarty_tpl);
        ?>
</span>
			<?php 
        if ($_smarty_tpl->tpl_vars['ajax_allowed']->value && isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && !$_smarty_tpl->tpl_vars['blockcart_top']->value) {
            ?>
				<span class="block_cart_expand<?php 
            if (!isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) || isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'expanded') {
                ?>
 unvisible<?php 
            }
            ?>
">&nbsp;</span>
				<span class="block_cart_collapse<?php 
            if (isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'collapsed') {
                ?>
 unvisible<?php 
            }
            ?>
">&nbsp;</span>
			<?php 
        }
        ?>
		</a>
		<?php 
        if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
            ?>
			<div class="cart_block block exclusive">
				<div class="block_content">
					<!-- block list of products -->
					<div class="cart_block_list<?php 
            if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && !$_smarty_tpl->tpl_vars['blockcart_top']->value) {
                if (isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'expanded' || !$_smarty_tpl->tpl_vars['ajax_allowed']->value || !isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value)) {
                    ?>
 expanded<?php 
                } else {
                    ?>
 collapsed unvisible<?php 
                }
            }
            ?>
">
						<?php 
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
							<dl class="products">
								<?php 
                $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['product']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['product']->iteration = 0;
                $_smarty_tpl->tpl_vars['product']->index = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                    $_smarty_tpl->tpl_vars['product']->_loop = true;
                    $_smarty_tpl->tpl_vars['product']->iteration++;
                    $_smarty_tpl->tpl_vars['product']->index++;
                    $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
                    $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['product']->first;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['product']->last;
                    ?>
									<?php 
                    $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, 0);
                    ?>
									<?php 
                    $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, 0);
                    ?>
									<dt data-id="cart_block_product_<?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                    ?>
_<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) {
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                    } else {
                        ?>
0<?php 
                    }
                    ?>
_<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']) {
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);
                    } else {
                        ?>
0<?php 
                    }
                    ?>
" class="<?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {
                        ?>
first_item<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {
                        ?>
last_item<?php 
                    } else {
                        ?>
item<?php 
                    }
                    ?>
">
										<a class="cart-images" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                    ?>
"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['id_image'], 'cart_default');
                    ?>
" alt="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                    ?>
" /></a>
										<div class="cart-info">
											<div class="product-name">
												<span class="quantity-formated"><span class="quantity"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity'];
                    ?>
</span>&nbsp;x&nbsp;</span><a class="cart_block_product_name" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                    ?>
"><?php 
                    echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 13, '...'), ENT_QUOTES, 'UTF-8', true);
                    ?>
</a>
											</div>
											<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                        ?>
												<div class="product-atributes">
													<a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true);
                        ?>
" title="<?php 
                        echo smartyTranslate(array('s' => 'Product detail', 'mod' => 'blockcart'), $_smarty_tpl);
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['product']->value['attributes_small'];
                        ?>
</a>
												</div>
											<?php 
                    }
                    ?>
											<span class="price">
												<?php 
                    if (!isset($_smarty_tpl->tpl_vars['product']->value['is_gift']) || !$_smarty_tpl->tpl_vars['product']->value['is_gift']) {
                        ?>
													<?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value == @constant('PS_TAX_EXC')) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => (string) $_smarty_tpl->tpl_vars['product']->value['total']), $_smarty_tpl);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => (string) $_smarty_tpl->tpl_vars['product']->value['total_wt']), $_smarty_tpl);
                        }
                        ?>
                                                    <div class="hookDisplayProductPriceBlock-price">
                                                        <?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price", 'from' => "blockcart"), $_smarty_tpl);
                        ?>

                                                    </div>
												<?php 
                    } else {
                        ?>
													<?php 
                        echo smartyTranslate(array('s' => 'Free!', 'mod' => 'blockcart'), $_smarty_tpl);
                        ?>

												<?php 
                    }
                    ?>
											</span>
										</div>
										<span class="remove_link">
											<?php 
                    if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) && (!isset($_smarty_tpl->tpl_vars['product']->value['is_gift']) || !$_smarty_tpl->tpl_vars['product']->value['is_gift'])) {
                        ?>
												<a class="ajax_cart_block_remove_link" href="<?php 
                        ob_start();
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                        $_tmp9 = ob_get_clean();
                        ob_start();
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                        $_tmp10 = ob_get_clean();
                        ob_start();
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);
                        $_tmp11 = ob_get_clean();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp9 . "&ipa=" . $_tmp10 . "&id_address_delivery=" . $_tmp11 . "&token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value), ENT_QUOTES, 'UTF-8', true);
                        ?>
" rel="nofollow" title="<?php 
                        echo smartyTranslate(array('s' => 'remove this product from my cart', 'mod' => 'blockcart'), $_smarty_tpl);
                        ?>
">&nbsp;</a>
											<?php 
                    }
                    ?>
										</span>
									</dt>
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                        ?>
										<dd data-id="cart_block_combination_of_<?php 
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                        if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) {
                            ?>
_<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                        }
                        ?>
_<?php 
                        echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);
                        ?>
" class="<?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {
                            ?>
first_item<?php 
                        } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {
                            ?>
last_item<?php 
                        } else {
                            ?>
item<?php 
                        }
                        ?>
">
									<?php 
                    }
                    ?>
									<!-- Customizable datas -->
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']])) {
                        ?>
										<?php 
                        if (!isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                            ?>
											<dd data-id="cart_block_combination_of_<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            ?>
_<?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) {
                                echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                            } else {
                                ?>
0<?php 
                            }
                            ?>
_<?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']) {
                                echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);
                            } else {
                                ?>
0<?php 
                            }
                            ?>
" class="<?php 
                            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {
                                ?>
first_item<?php 
                            } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {
                                ?>
last_item<?php 
                            } else {
                                ?>
item<?php 
                            }
                            ?>
">
										<?php 
                        }
                        ?>
										<ul class="cart_block_customizations" data-id="customization_<?php 
                        echo $_smarty_tpl->tpl_vars['productId']->value;
                        ?>
_<?php 
                        echo $_smarty_tpl->tpl_vars['productAttributeId']->value;
                        ?>
">
											<?php 
                        $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['customization']->_loop = false;
                        $_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) {
                            $_smarty_tpl->tpl_vars['customization']->_loop = true;
                            $_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key;
                            ?>
												<li name="customization">
													<div data-id="deleteCustomizableProduct_<?php 
                            echo intval($_smarty_tpl->tpl_vars['id_customization']->value);
                            ?>
_<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            ?>
_<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                            ?>
_<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);
                            ?>
" class="deleteCustomizableProduct">
														<a class="ajax_cart_block_remove_link" href="<?php 
                            ob_start();
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            $_tmp12 = ob_get_clean();
                            ob_start();
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                            $_tmp13 = ob_get_clean();
                            ob_start();
                            echo intval($_smarty_tpl->tpl_vars['id_customization']->value);
                            $_tmp14 = ob_get_clean();
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp12 . "&ipa=" . $_tmp13 . "&id_customization=" . $_tmp14 . "&token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value), ENT_QUOTES, 'UTF-8', true);
                            ?>
" rel="nofollow">&nbsp;</a>
													</div>
													<?php 
                            if (isset($_smarty_tpl->tpl_vars['customization']->value['datas'][$_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value][0])) {
                                ?>
														<?php 
                                echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(smarty_modifier_replace($_smarty_tpl->tpl_vars['customization']->value['datas'][$_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value][0]['value'], "<br />", " "), 28, '...'), ENT_QUOTES, 'UTF-8', true);
                                ?>

													<?php 
                            } else {
                                ?>
														<?php 
                                echo smartyTranslate(array('s' => 'Customization #%d:', 'sprintf' => intval($_smarty_tpl->tpl_vars['id_customization']->value), 'mod' => 'blockcart'), $_smarty_tpl);
                                ?>

													<?php 
                            }
                            ?>
												</li>
											<?php 
                        }
                        ?>
										</ul>
										<?php 
                        if (!isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                            ?>
</dd><?php 
                        }
                        ?>
									<?php 
                    }
                    ?>
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                        ?>
</dd><?php 
                    }
                    ?>
								<?php 
                }
                ?>
							</dl>
						<?php 
            }
            ?>
						<p class="cart_block_no_products<?php 
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>
 unvisible<?php 
            }
            ?>
">
							<?php 
            echo smartyTranslate(array('s' => 'No products', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

						</p>
						<?php 
            if (count($_smarty_tpl->tpl_vars['discounts']->value) > 0) {
                ?>
							<table class="vouchers<?php 
                if (count($_smarty_tpl->tpl_vars['discounts']->value) == 0) {
                    ?>
 unvisible<?php 
                }
                ?>
">
								<?php 
                $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['discount']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['discounts']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) {
                    $_smarty_tpl->tpl_vars['discount']->_loop = true;
                    ?>
									<?php 
                    if ($_smarty_tpl->tpl_vars['discount']->value['value_real'] > 0) {
                        ?>
										<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_<?php 
                        echo intval($_smarty_tpl->tpl_vars['discount']->value['id_discount']);
                        ?>
">
											<td class="quantity">1x</td>
											<td class="name" title="<?php 
                        echo $_smarty_tpl->tpl_vars['discount']->value['description'];
                        ?>
">
												<?php 
                        echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['discount']->value['name'], 18, '...'), ENT_QUOTES, 'UTF-8', true);
                        ?>

											</td>
											<td class="price">
												-<?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']), $_smarty_tpl);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real']), $_smarty_tpl);
                        }
                        ?>
											</td>
											<td class="delete">
												<?php 
                        if (strlen($_smarty_tpl->tpl_vars['discount']->value['code'])) {
                            ?>
													<a class="delete_voucher" href="<?php 
                            echo $_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true);
                            ?>
?deleteDiscount=<?php 
                            echo intval($_smarty_tpl->tpl_vars['discount']->value['id_discount']);
                            ?>
" title="<?php 
                            echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcart'), $_smarty_tpl);
                            ?>
" rel="nofollow">
														<i class="icon-remove-sign"></i>
													</a>
												<?php 
                        }
                        ?>
											</td>
										</tr>
									<?php 
                    }
                    ?>
								<?php 
                }
                ?>
							</table>
						<?php 
            }
            ?>
						<?php 
            $_smarty_tpl->tpl_vars['free_ship'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['cart']->value->getDeliveryAddressesWithoutCarriers(true, $_smarty_tpl->tpl_vars['errors']->value)), null, 0);
            ?>
						<div class="cart-prices">
							<div class="cart-prices-line first-line">
								<span class="price cart_block_shipping_cost ajax_cart_shipping_cost<?php 
            if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && $_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery || $_smarty_tpl->tpl_vars['free_ship']->value)) {
                ?>
 unvisible<?php 
            }
            ?>
">
									<?php 
            if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0) {
                ?>
										 <?php 
                if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && (!isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) {
                    echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart'), $_smarty_tpl);
                }
                ?>
									<?php 
            } else {
                ?>
										<?php 
                echo $_smarty_tpl->tpl_vars['shipping_cost']->value;
                ?>

									<?php 
            }
            ?>
								</span>
								<span<?php 
            if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && $_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery || $_smarty_tpl->tpl_vars['free_ship']->value)) {
                ?>
 class="unvisible"<?php 
            }
            ?>
>
									<?php 
            echo smartyTranslate(array('s' => 'Shipping', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

								</span>
							</div>
							<?php 
            if ($_smarty_tpl->tpl_vars['show_wrapping']->value) {
                ?>
								<div class="cart-prices-line">
									<?php 
                $_smarty_tpl->tpl_vars['cart_flag'] = new Smarty_variable(constant('Cart::ONLY_WRAPPING'), null, 0);
                ?>
									<span class="price cart_block_wrapping_cost">
										<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
											<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, $_smarty_tpl->tpl_vars['cart_flag']->value)), $_smarty_tpl);
                } else {
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, $_smarty_tpl->tpl_vars['cart_flag']->value)), $_smarty_tpl);
                    ?>

										<?php 
                }
                ?>
									</span>
									<span>
										<?php 
                echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl);
                ?>

									</span>
							   </div>
							<?php 
            }
            ?>
							<?php 
            if ($_smarty_tpl->tpl_vars['show_tax']->value && isset($_smarty_tpl->tpl_vars['tax_cost']->value)) {
                ?>
								<div class="cart-prices-line">
									<span class="price cart_block_tax_cost ajax_cart_tax_cost"><?php 
                echo $_smarty_tpl->tpl_vars['tax_cost']->value;
                ?>
</span>
									<span><?php 
                echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl);
                ?>
</span>
								</div>
							<?php 
            }
            ?>
							<div class="cart-prices-line last-line">
								<span class="price cart_block_total ajax_block_cart_total"><?php 
            echo $_smarty_tpl->tpl_vars['total']->value;
            ?>
</span>
								<span><?php 
            echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
</span>
							</div>
							<?php 
            if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) {
                ?>
								<p>
								<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 0) {
                    ?>
									<?php 
                    echo smartyTranslate(array('s' => 'Prices are tax included', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

								<?php 
                } elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
									<?php 
                    echo smartyTranslate(array('s' => 'Prices are tax excluded', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

								<?php 
                }
                ?>
								</p>
							<?php 
            }
            ?>
						</div>
						<p class="cart-buttons">
							<a id="button_order_cart" class="btn btn-default button button-small" href="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true);
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'Check out', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
" rel="nofollow">
								<span>
									<?php 
            echo smartyTranslate(array('s' => 'Check out', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
<i class="icon-chevron-right right"></i>
								</span>
							</a>
						</p>
					</div>
				</div>
			</div><!-- .cart_block -->
		<?php 
        }
        ?>
	</div>
<?php 
        if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && $_smarty_tpl->tpl_vars['blockcart_top']->value) {
            ?>
</div>
<?php 
        }
        echo smarty_function_counter(array('name' => 'active_overlay', 'assign' => 'active_overlay'), $_smarty_tpl);
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['active_overlay']->value == 1) {
            ?>
	<div id="layer_cart">
		<div class="clearfix">
			<div class="layer_cart_product col-xs-12 col-md-6">
				<span class="cross" title="<?php 
            echo smartyTranslate(array('s' => 'Close window', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
"></span>
				<span class="title">
					<i class="icon-check"></i><?php 
            echo smartyTranslate(array('s' => 'Product successfully added to your shopping cart', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

				</span>
				<div class="product-image-container layer_cart_img">
				</div>
				<div class="layer_cart_product_info">
					<span id="layer_cart_product_title" class="product-name"></span>
					<span id="layer_cart_product_attributes"></span>
					<div>
						<strong class="dark"><?php 
            echo smartyTranslate(array('s' => 'Quantity', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
</strong>
						<span id="layer_cart_product_quantity"></span>
					</div>
					<div>
						<strong class="dark"><?php 
            echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
</strong>
						<span id="layer_cart_product_price"></span>
					</div>
				</div>
			</div>
			<div class="layer_cart_cart col-xs-12 col-md-6">
				<span class="title">
					<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
					<span class="ajax_cart_product_txt_s <?php 
            if ($_smarty_tpl->tpl_vars['cart_qties']->value < 2) {
                ?>
 unvisible<?php 
            }
            ?>
">
						<?php 
            echo smartyTranslate(array('s' => 'There are [1]%d[/1] items in your cart.', 'mod' => 'blockcart', 'sprintf' => array($_smarty_tpl->tpl_vars['cart_qties']->value), 'tags' => array('<span class="ajax_cart_quantity">')), $_smarty_tpl);
            ?>

					</span>
					<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
					<span class="ajax_cart_product_txt <?php 
            if ($_smarty_tpl->tpl_vars['cart_qties']->value > 1) {
                ?>
 unvisible<?php 
            }
            ?>
">
						<?php 
            echo smartyTranslate(array('s' => 'There is 1 item in your cart.', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

					</span>
				</span>
				<div class="layer_cart_row">
					<strong class="dark">
						<?php 
            echo smartyTranslate(array('s' => 'Total products', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

						<?php 
            if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) {
                ?>
							<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
								<?php 
                    echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

							<?php 
                } else {
                    ?>
								<?php 
                    echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

							<?php 
                }
                ?>
						<?php 
            }
            ?>
					</strong>
					<span class="ajax_block_products_total">
						<?php 
            if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) {
                ?>
							<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, Cart::ONLY_PRODUCTS)), $_smarty_tpl);
                ?>

						<?php 
            }
            ?>
					</span>
				</div>

				<?php 
            if ($_smarty_tpl->tpl_vars['show_wrapping']->value) {
                ?>
					<div class="layer_cart_row">
						<strong class="dark">
							<?php 
                echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl);
                ?>

							<?php 
                if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) {
                    ?>
								<?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                        ?>
									<?php 
                        echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                        ?>

								<?php 
                    } else {
                        ?>
									<?php 
                        echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                        ?>

								<?php 
                    }
                    ?>
							<?php 
                }
                ?>
						</strong>
						<span class="price cart_block_wrapping_cost">
							<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
								<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, Cart::ONLY_WRAPPING)), $_smarty_tpl);
                    ?>

							<?php 
                } else {
                    ?>
								<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, Cart::ONLY_WRAPPING)), $_smarty_tpl);
                    ?>

							<?php 
                }
                ?>
						</span>
					</div>
				<?php 
            }
            ?>
				<div class="layer_cart_row">
					<strong class="dark<?php 
            if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) {
                ?>
 unvisible<?php 
            }
            ?>
">
						<?php 
            echo smartyTranslate(array('s' => 'Total shipping', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
&nbsp;<?php 
            if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) {
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                }
            }
            ?>
					</strong>
					<span class="ajax_cart_shipping_cost<?php 
            if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) {
                ?>
 unvisible<?php 
            }
            ?>
">
						<?php 
            if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0) {
                ?>
							 <?php 
                if (!isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) {
                    echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart'), $_smarty_tpl);
                }
                ?>
						<?php 
            } else {
                ?>
							<?php 
                echo $_smarty_tpl->tpl_vars['shipping_cost']->value;
                ?>

						<?php 
            }
            ?>
					</span>
				</div>
				<?php 
            if ($_smarty_tpl->tpl_vars['show_tax']->value && isset($_smarty_tpl->tpl_vars['tax_cost']->value)) {
                ?>
					<div class="layer_cart_row">
						<strong class="dark"><?php 
                echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl);
                ?>
</strong>
						<span class="price cart_block_tax_cost ajax_cart_tax_cost"><?php 
                echo $_smarty_tpl->tpl_vars['tax_cost']->value;
                ?>
</span>
					</div>
				<?php 
            }
            ?>
				<div class="layer_cart_row">
					<strong class="dark">
						<?php 
            echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

						<?php 
            if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) {
                ?>
							<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
								<?php 
                    echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

							<?php 
                } else {
                    ?>
								<?php 
                    echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl);
                    ?>

							<?php 
                }
                ?>
						<?php 
            }
            ?>
					</strong>
					<span class="ajax_block_cart_total">
						<?php 
            if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) {
                ?>
							<?php 
                if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                    ?>
								<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false)), $_smarty_tpl);
                    ?>

							<?php 
                } else {
                    ?>
								<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true)), $_smarty_tpl);
                    ?>

							<?php 
                }
                ?>
						<?php 
            }
            ?>
					</span>
				</div>
				<div class="button-container">
					<span class="continue btn btn-default button exclusive-medium" title="<?php 
            echo smartyTranslate(array('s' => 'Continue shopping', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
">
						<span>
							<i class="icon-chevron-left left"></i><?php 
            echo smartyTranslate(array('s' => 'Continue shopping', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>

						</span>
					</span>
					<a class="btn btn-default button button-medium"	href="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true);
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'Proceed to checkout', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
" rel="nofollow">
						<span>
							<?php 
            echo smartyTranslate(array('s' => 'Proceed to checkout', 'mod' => 'blockcart'), $_smarty_tpl);
            ?>
<i class="icon-chevron-right right"></i>
						</span>
					</a>
				</div>
			</div>
		</div>
		<div class="crossseling"></div>
	</div> <!-- #layer_cart -->
	<div class="layer_cart_overlay"></div>
<?php 
        }
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('CUSTOMIZE_TEXTFIELD' => $_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value), $_smarty_tpl);
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_dir' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['img_dir']->value)), $_smarty_tpl);
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('generated_date' => intval(time())), $_smarty_tpl);
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('ajax_allowed' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['ajax_allowed']->value)), $_smarty_tpl);
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('hasDeliveryAddress' => isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) && $_smarty_tpl->tpl_vars['cart']->value->id_address_delivery), $_smarty_tpl);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'customizationIdMessage'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'customizationIdMessage'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Customization #', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'customizationIdMessage'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'removingLinkText'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'removingLinkText'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'remove this product from my cart', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'removingLinkText'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'freeShippingTranslation'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeShippingTranslation'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeShippingTranslation'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'freeProductTranslation'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeProductTranslation'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Free!', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeProductTranslation'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'delete_txt'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'delete_txt'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'delete_txt'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'toBeDetermined'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'toBeDetermined'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'toBeDetermined'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<!-- /MODULE Block cart -->
<?php 
    }
    function content_54e3b3fea11481_82928055($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/home/neoliam/public_html/tienda/tools/smarty/plugins/function.counter.php';
        }
        if (isset($_smarty_tpl->tpl_vars['fields']->value['title'])) {
            ?>
<h3><?php 
            echo $_smarty_tpl->tpl_vars['fields']->value['title'];
            ?>
</h3><?php 
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['tabs']->value) && count($_smarty_tpl->tpl_vars['tabs']->value)) {
            ?>
<script type="text/javascript">
	var helper_tabs = <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value);
            ?>
;
	var unique_field_id = '';
</script>
<?php 
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['identifier_bk']->value) && $_smarty_tpl->tpl_vars['identifier_bk']->value == $_smarty_tpl->tpl_vars['identifier']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('identifier_count', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'identifier_count'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        $_smarty_tpl->tpl_vars['identifier_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['identifier']->value, null, 1);
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['identifier_bk'] = clone $_smarty_tpl->tpl_vars['identifier_bk'];
        }
        if (isset($_smarty_tpl->tpl_vars['table_bk']->value) && $_smarty_tpl->tpl_vars['table_bk']->value == $_smarty_tpl->tpl_vars['table']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'table_count'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1);
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk'];
        }
        ?>
<form id="<?php 
        if (isset($_smarty_tpl->tpl_vars['fields']->value['form']['form']['id_form'])) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['fields']->value['form']['form']['id_form'], ENT_QUOTES, 'UTF-8', true);
        } else {
            if ($_smarty_tpl->tpl_vars['table']->value == null) {
                ?>
configuration_form<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form<?php 
            }
            if (isset(Smarty::$_smarty_vars['capture']['table_count']) && Smarty::$_smarty_vars['capture']['table_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['table_count']);
            }
        }
        ?>
" class="defaultForm form-horizontal<?php 
        if (isset($_smarty_tpl->tpl_vars['name_controller']->value) && $_smarty_tpl->tpl_vars['name_controller']->value) {
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['name_controller']->value;
        }
        ?>
"<?php 
        if (isset($_smarty_tpl->tpl_vars['current']->value) && $_smarty_tpl->tpl_vars['current']->value) {
            ?>
 action="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);
            if (isset($_smarty_tpl->tpl_vars['token']->value) && $_smarty_tpl->tpl_vars['token']->value) {
                ?>
&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
            }
            ?>
"<?php 
        }
        ?>
 method="post" enctype="multipart/form-data"<?php 
        if (isset($_smarty_tpl->tpl_vars['style']->value)) {
            ?>
 style="<?php 
            echo $_smarty_tpl->tpl_vars['style']->value;
            ?>
"<?php 
        }
        ?>
 novalidate>
	<?php 
        if ($_smarty_tpl->tpl_vars['form_id']->value) {
            ?>
		<input type="hidden" name="<?php 
            echo $_smarty_tpl->tpl_vars['identifier']->value;
            ?>
" id="<?php 
            echo $_smarty_tpl->tpl_vars['identifier']->value;
            if (isset(Smarty::$_smarty_vars['capture']['identifier_count']) && Smarty::$_smarty_vars['capture']['identifier_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['identifier_count']);
            }
            ?>
" value="<?php 
            echo $_smarty_tpl->tpl_vars['form_id']->value;
            ?>
" />
	<?php 
        }
        ?>
	<?php 
        if (!empty($_smarty_tpl->tpl_vars['submit_action']->value)) {
            ?>
		<input type="hidden" name="<?php 
            echo $_smarty_tpl->tpl_vars['submit_action']->value;
            ?>
" value="1" />
	<?php 
        }
        ?>
	<?php 
        $_smarty_tpl->tpl_vars['fieldset'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['fieldset']->_loop = false;
        $_smarty_tpl->tpl_vars['f'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['fields']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['fieldset']->key => $_smarty_tpl->tpl_vars['fieldset']->value) {
            $_smarty_tpl->tpl_vars['fieldset']->_loop = true;
            $_smarty_tpl->tpl_vars['f']->value = $_smarty_tpl->tpl_vars['fieldset']->key;
            ?>
		
		<?php 
            $_smarty_tpl->_capture_stack[0][] = array('fieldset_name', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'fieldset_name'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
		<div class="panel" id="fieldset_<?php 
            echo $_smarty_tpl->tpl_vars['f']->value;
            if (isset(Smarty::$_smarty_vars['capture']['identifier_count']) && Smarty::$_smarty_vars['capture']['identifier_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['identifier_count']);
            }
            if (Smarty::$_smarty_vars['capture']['fieldset_name'] > 1) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['fieldset_name'] - 1);
            }
            ?>
">
			<?php 
            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['field']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['fieldset']->value['form'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                $_smarty_tpl->tpl_vars['field']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key;
                ?>
				<?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 'legend') {
                    ?>
					
						<div class="panel-heading">
							<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['image']) && isset($_smarty_tpl->tpl_vars['field']->value['title'])) {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['image'];
                        ?>
" alt="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['title'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" /><?php 
                    }
                    ?>
							<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['icon'])) {
                        ?>
<i class="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['icon'];
                        ?>
"></i><?php 
                    }
                    ?>
							<?php 
                    echo $_smarty_tpl->tpl_vars['field']->value['title'];
                    ?>

						</div>
					
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'description' && $_smarty_tpl->tpl_vars['field']->value) {
                    ?>
					<div class="alert alert-info"><?php 
                    echo $_smarty_tpl->tpl_vars['field']->value;
                    ?>
</div>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'input') {
                    ?>
					<div class="form-wrapper">
					<?php 
                    $_smarty_tpl->tpl_vars['input'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['input']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['field']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['input']->key => $_smarty_tpl->tpl_vars['input']->value) {
                        $_smarty_tpl->tpl_vars['input']->_loop = true;
                        ?>
						
						<div class="form-group<?php 
                        if (isset($_smarty_tpl->tpl_vars['input']->value['form_group_class'])) {
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['input']->value['form_group_class'];
                        }
                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'hidden') {
                            ?>
 hide<?php 
                        }
                        ?>
"<?php 
                        if ($_smarty_tpl->tpl_vars['input']->value['name'] == 'id_state') {
                            ?>
 id="contains_states"<?php 
                            if (!$_smarty_tpl->tpl_vars['contains_states']->value) {
                                ?>
 style="display:none;"<?php 
                            }
                        }
                        if (isset($_smarty_tpl->tpl_vars['tabs']->value) && isset($_smarty_tpl->tpl_vars['input']->value['tab'])) {
                            ?>
 data-tab-id="<?php 
                            echo $_smarty_tpl->tpl_vars['input']->value['tab'];
                            ?>
"<?php 
                        }
                        ?>
>
						<?php 
                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'hidden') {
                            ?>
							<input type="hidden" name="<?php 
                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                            ?>
" id="<?php 
                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                            ?>
" value="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                            ?>
" />
						<?php 
                        } else {
                            ?>
							
	<?php 
                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'modules') {
                                ?>
		<div <?php 
                                if (!$_smarty_tpl->tpl_vars['form_id']->value) {
                                    ?>
class="hide"<?php 
                                }
                                ?>
>
			<label class="control-label col-lg-3"><?php 
                                echo smartyTranslate(array('s' => 'Authorized modules:'), $_smarty_tpl);
                                ?>
</label>
		</div>
	<?php 
                            } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'group_discount_category') {
                                ?>
		<div <?php 
                                if (!$_smarty_tpl->tpl_vars['form_id']->value) {
                                    ?>
class="hide"<?php 
                                }
                                ?>
>
			
								<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['label'])) {
                                    ?>
									<label class="control-label col-lg-3<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required'] && $_smarty_tpl->tpl_vars['input']->value['type'] != 'radio') {
                                        ?>
 required<?php 
                                    }
                                    ?>
">
										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                        ?>
										<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="<?php 
                                        if (is_array($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                            ?>
													<?php 
                                            $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['hint']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['input']->value['hint'];
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                                                $_smarty_tpl->tpl_vars['hint']->_loop = true;
                                                ?>
														<?php 
                                                if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                                                    ?>
															<?php 
                                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value['text'], ENT_QUOTES, 'UTF-8', true);
                                                    ?>

														<?php 
                                                } else {
                                                    ?>
															<?php 
                                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value, ENT_QUOTES, 'UTF-8', true);
                                                    ?>

														<?php 
                                                }
                                                ?>
													<?php 
                                            }
                                            ?>
												<?php 
                                        } else {
                                            ?>
													<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['hint'], ENT_QUOTES, 'UTF-8', true);
                                            ?>

												<?php 
                                        }
                                        ?>
">
										<?php 
                                    }
                                    ?>
										<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['label'];
                                    ?>

										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                        ?>
										</span>
										<?php 
                                    }
                                    ?>
									</label>
								<?php 
                                }
                                ?>
							
		</div>
	<?php 
                            } else {
                                ?>
		
								<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['label'])) {
                                    ?>
									<label class="control-label col-lg-3<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required'] && $_smarty_tpl->tpl_vars['input']->value['type'] != 'radio') {
                                        ?>
 required<?php 
                                    }
                                    ?>
">
										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                        ?>
										<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="<?php 
                                        if (is_array($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                            ?>
													<?php 
                                            $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['hint']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['input']->value['hint'];
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                                                $_smarty_tpl->tpl_vars['hint']->_loop = true;
                                                ?>
														<?php 
                                                if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                                                    ?>
															<?php 
                                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value['text'], ENT_QUOTES, 'UTF-8', true);
                                                    ?>

														<?php 
                                                } else {
                                                    ?>
															<?php 
                                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value, ENT_QUOTES, 'UTF-8', true);
                                                    ?>

														<?php 
                                                }
                                                ?>
													<?php 
                                            }
                                            ?>
												<?php 
                                        } else {
                                            ?>
													<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['hint'], ENT_QUOTES, 'UTF-8', true);
                                            ?>

												<?php 
                                        }
                                        ?>
">
										<?php 
                                    }
                                    ?>
										<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['label'];
                                    ?>

										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                        ?>
										</span>
										<?php 
                                    }
                                    ?>
									</label>
								<?php 
                                }
                                ?>
							
	<?php 
                            }
                            ?>


							
	<?php 
                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'group_discount_category') {
                                ?>
	<div <?php 
                                if (!$_smarty_tpl->tpl_vars['form_id']->value) {
                                    ?>
class="hide"<?php 
                                }
                                ?>
>
		<script type="text/javascript">
		$(document).ready(function() {
			$("#group_discount_category").fancybox({
				beforeLoad: function () {
					$('#group_discount_category_fancybox').show();
					initFancyBox();
				},
				beforeClose: function () {
					$('#group_discount_category_fancybox').hide();
				}
			});
		});
		
		function deleteCategoryReduction(id_category)
		{
			$('#group_discount_category_table tr#'+id_category).fadeOut('slow', function () {
				$(this).remove();	
			});
		
		}
		
		function addCategoryReduction() 
		{
			exist = false;
			$('.category_reduction').each( function () {
				if ($(this).attr('name') == 'category_reduction['+$('[name="id_category"]:checked').val()+']')
				{
					exist = true;
					jAlert('<?php 
                                echo smartyTranslate(array('s' => 'This category already exists for this group.', 'js' => 1), $_smarty_tpl);
                                ?>
');
					return false;
				}
			});
			
			if (exist)
				return;
			$.ajax({
				type:"POST",
				url: "ajax-tab.php",
				async: true,
				dataType: "json",
				data : {
					ajax: "1",
					token: "<?php 
                                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminGroups'), $_smarty_tpl);
                                ?>
",
					controller: "AdminGroups",
					action: "addCategoryReduction",
					category_reduction: $('#category_reduction_fancybox').val() ,
					id_category: $('[name="id_category"]:checked').val()
				},
				success : function(jsonData) {
					if (jsonData.hasError)
					{
						var errors = '';
						for (error in jsonData.errors)
							//IE6 bug fix
							if (error != 'indexOf')
								errors += $('<div />').html(jsonData.errors[error]).text() + "\n";
						jAlert(errors);
					}
					else
					{
						$('#group_discount_category_table').append('<tr class="alt_row" id="'+jsonData.id_category+'"><td>'+jsonData.catPath+'</td><td><?php 
                                echo smartyTranslate(array('s' => 'Discount:'), $_smarty_tpl);
                                ?>
' + ' ' + jsonData.discount+'<?php 
                                echo smartyTranslate(array('s' => '%'), $_smarty_tpl);
                                ?>
</td><td><a href="#" onclick="deleteCategoryReduction('+jsonData.id_category+');" class="btn btn-default"><i class="icon-trash"></i> <?php 
                                echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl);
                                ?>
</a></td></tr>');
						var input_hidden = document.createElement("input");
						input_hidden.setAttribute('type', 'hidden');
						input_hidden.setAttribute('value', jsonData.discount);
						input_hidden.setAttribute('name', 'category_reduction['+jsonData.id_category+']');
						input_hidden.setAttribute('class', 'category_reduction');
						
						$('#group_discount_category_table tr#'+jsonData.id_category+' > td:last').append(input_hidden);
						$.fancybox.close();
					}
				}
			});
			
			return false;
		}
			
		function initFancyBox()
		{
			$('[name="id_category"]:checked').removeAttr('checked');
			$('#category_reduction_fancybox').val('0.00');
		}
		</script>

		<div class="col-lg-9">
			<a class="btn btn-default" href="#group_discount_category_fancybox" id="group_discount_category"><?php 
                                echo smartyTranslate(array('s' => 'Add a category discount'), $_smarty_tpl);
                                ?>
</a>
			<table class="table" id="group_discount_category_table">
				<?php 
                                $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['category']->_loop = false;
                                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['input']->value['values'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) {
                                    $_smarty_tpl->tpl_vars['category']->_loop = true;
                                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['category']->key;
                                    ?>
					<tr class="alt_row" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['category']->value['id_category'];
                                    ?>
">
						<td><?php 
                                    echo $_smarty_tpl->tpl_vars['category']->value['path'];
                                    ?>
</td>
						<td><?php 
                                    echo smartyTranslate(array('s' => 'Discount: %.2f%%', 'sprintf' => $_smarty_tpl->tpl_vars['category']->value['reduction']), $_smarty_tpl);
                                    ?>
</td>
						<td>
							<a href="#" onclick="deleteCategoryReduction(<?php 
                                    echo $_smarty_tpl->tpl_vars['category']->value['id_category'];
                                    ?>
);"class="btn btn-default">
								<i class="icon-trash"></i> <?php 
                                    echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl);
                                    ?>

							</a>
							<input type="hidden" class="category_reduction" name="category_reduction[<?php 
                                    echo $_smarty_tpl->tpl_vars['category']->value['id_category'];
                                    ?>
]" value="<?php 
                                    echo $_smarty_tpl->tpl_vars['category']->value['reduction'];
                                    ?>
">
						</td>
					</tr>
				<?php 
                                }
                                ?>
			</table>
		</div>
		<div id="group_discount_category_fancybox" class="bootstrap" style="display:none" >
			<div class="panel form-horizontal">
				<div class="panel-heading">
					<i class="icon-group"></i> <?php 
                                echo smartyTranslate(array('s' => 'New group category discount'), $_smarty_tpl);
                                ?>

				</div>
				<?php 
                                echo $_smarty_tpl->tpl_vars['categoryTreeView']->value;
                                ?>

				<div class="alert alert-info"><?php 
                                echo smartyTranslate(array('s' => 'Caution: The discount applied to a category does not stack with the overall reduction but instead replaces it.'), $_smarty_tpl);
                                ?>
</div>
				<div class="alert alert-warning"><?php 
                                echo smartyTranslate(array('s' => 'Only products that have this category as the default category will be affected.'), $_smarty_tpl);
                                ?>
</div>
				<div class="form-group">
					<label class="control-label col-lg-3" for="category_reduction_fancybox"><?php 
                                echo smartyTranslate(array('s' => 'Discount (%):'), $_smarty_tpl);
                                ?>
</label>
					<div class="col-lg-9">
						<input type="text" name="category_reduction_fancybox" id="category_reduction_fancybox" value="0.00" class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-lg-12">
						<button type="button" onclick="addCategoryReduction();" class="btn btn-default pull-right"><?php 
                                echo smartyTranslate(array('s' => 'add'), $_smarty_tpl);
                                ?>
</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php 
                            } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'modules') {
                                ?>
	<div <?php 
                                if (!$_smarty_tpl->tpl_vars['form_id']->value) {
                                    ?>
class="hide"<?php 
                                }
                                ?>
>
		<script type="text/javascript">
			$(document).ready(function() {
				$('#authorized-modules').find('[value="0"]').click(function() {
					$(this).parent().parent().find('input[type=hidden]').attr('name', 'modulesBoxUnauth[]');
				});

				$('#authorized-modules').find('[value="1"]').click(function() {
					$(this).parent().parent().find('input[type=hidden]').attr('name', 'modulesBoxAuth[]');
				});
			});
		</script>

		<div class="col-lg-9" id="authorized-modules">			
			<?php 
                                $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['module']->_loop = false;
                                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['input']->value['values']['auth_modules'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                                    $_smarty_tpl->tpl_vars['module']->_loop = true;
                                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['module']->key;
                                    ?>
			<div class="form-group">
				<label class="control-label col-lg-4"><img src="../modules/<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
/logo.gif" height="16" width="16" alt="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" /> <?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</label>
				<div class="input-group col-lg-8">
					<span class="switch prestashop-switch fixed-width-lg">
						<input type="radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_on" value="1" checked="checked"/>
						<label for="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_on"><?php 
                                    echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                                    ?>
</label>
						<input type="radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_off" value="0"/>
						<label for="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_off"><?php 
                                    echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                                    ?>
</label>
						<a class="slide-button btn"></a>
					</span>
					<input type="hidden" name="modulesBoxAuth[]" value="<?php 
                                    echo intval($_smarty_tpl->tpl_vars['module']->value->id);
                                    ?>
"/>
				</div>
			</div>
			<?php 
                                }
                                ?>
			<?php 
                                $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['module']->_loop = false;
                                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['input']->value['values']['unauth_modules'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                                    $_smarty_tpl->tpl_vars['module']->_loop = true;
                                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['module']->key;
                                    ?>
			<div class="form-group">
				<label class="control-label col-lg-4"><img src="../modules/<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
/logo.gif" height="16" width="16" alt="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8', true);
                                    ?>
"/> <?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</label>
				<div class="input-group col-lg-8">
					<span class="switch prestashop-switch fixed-width-lg">
						<input type="radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_on" value="1"/>
						<label for="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_on"><?php 
                                    echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                                    ?>
</label>
						<input type="radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_off" value="0" checked="checked"/>
						<label for="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8', true);
                                    ?>
_off"><?php 
                                    echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                                    ?>
</label>
						<a class="slide-button btn"></a>
					</span>
					<input type="hidden" name="modulesBoxUnauth[]" value="<?php 
                                    echo intval($_smarty_tpl->tpl_vars['module']->value->id);
                                    ?>
"/>
				</div>
			</div>
			<?php 
                                }
                                ?>
		</div>
	</div>
	<?php 
                            } else {
                                ?>
		
								<div class="col-lg-<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['col'])) {
                                    echo intval($_smarty_tpl->tpl_vars['input']->value['col']);
                                } else {
                                    ?>
9<?php 
                                }
                                ?>
 <?php 
                                if (!isset($_smarty_tpl->tpl_vars['input']->value['label'])) {
                                    ?>
col-lg-offset-3<?php 
                                }
                                ?>
">
								
								<?php 
                                if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'text' || $_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                    ?>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['lang']) && $_smarty_tpl->tpl_vars['input']->value['lang']) {
                                        ?>
									<?php 
                                        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                            ?>
									<div class="form-group">
									<?php 
                                        }
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['language']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                            $_smarty_tpl->tpl_vars['language']->_loop = true;
                                            ?>
										<?php 
                                            $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']], null, 0);
                                            ?>
										<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
										<div class="translatable-field lang-<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                ?>
" <?php 
                                                if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] != $_smarty_tpl->tpl_vars['defaultFormLanguage']->value) {
                                                    ?>
style="display:none"<?php 
                                                }
                                                ?>
>
											<div class="col-lg-9">
										<?php 
                                            }
                                            ?>
												<?php 
                                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                ?>
													
														<script type="text/javascript">
															$().ready(function () {
																var input_id = '<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                }
                                                ?>
';
																$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
                                                echo smartyTranslate(array('s' => 'Add tag', 'js' => 1), $_smarty_tpl);
                                                ?>
'});
																$('#<?php 
                                                echo $_smarty_tpl->tpl_vars['table']->value;
                                                ?>
_form').submit( function() {
																	$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
																});
															});
														</script>
													
												<?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
												<div class="input-group<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    ?>
 <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                }
                                                ?>
">
												<?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
												<span id="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                }
                                                ?>
_counter" class="input-group-addon">
													<span class="text-count-down"><?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                ?>
</span>
												</span>
												<?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['prefix'])) {
                                                ?>
													<span class="input-group-addon">
													  <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['prefix'];
                                                ?>

													</span>
													<?php 
                                            }
                                            ?>
												<input type="text"
													id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                ?>
_<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                            }
                                            ?>
"
													name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_<?php 
                                            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                            ?>
"
													class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                ?>
 tagify<?php 
                                            }
                                            ?>
"
													value="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                                echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                            } else {
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                            }
                                            ?>
"
													onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                                ?>
 size="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                                ?>
"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
 data-maxchar="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                ?>
"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                                ?>
 maxlength="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                                ?>
"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                                ?>
 readonly="readonly"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                                ?>
 disabled="disabled"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                                ?>
 autocomplete="off"<?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                                ?>
 required="required" <?php 
                                            }
                                            ?>
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                                ?>
 placeholder="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                                ?>
"<?php 
                                            }
                                            ?>
 />
													<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
													<span class="input-group-addon">
													  <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                                ?>

													</span>
													<?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
												</div>
												<?php 
                                            }
                                            ?>
										<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
											</div>
											<div class="col-lg-2">
												<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
													<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                                ?>

													<i class="icon-caret-down"></i>
												</button>
												<ul class="dropdown-menu">
													<?php 
                                                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['language']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                    ?>
													<li><a href="javascript:hideOtherLanguage(<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    ?>
);" tabindex="-1"><?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                                    ?>
</a></li>
													<?php 
                                                }
                                                ?>
												</ul>
											</div>
										</div>
										<?php 
                                            }
                                            ?>
									<?php 
                                        }
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
									<script type="text/javascript">
									function countDown($source, $target) {
										var max = $source.attr("data-maxchar");
										$target.html(max-$source.val().length);

										$source.keyup(function(){
											$target.html(max-$source.val().length);
										});
									}

									$(document).ready(function(){
									<?php 
                                            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['language']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                ?>
										countDown($("#<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                }
                                                ?>
"), $("#<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                }
                                                ?>
_counter"));
									<?php 
                                            }
                                            ?>
									});
									</script>
									<?php 
                                        }
                                        ?>
									<?php 
                                        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                            ?>
									</div>
									<?php 
                                        }
                                        ?>
									<?php 
                                    } else {
                                        ?>
										<?php 
                                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                            ?>
											
											<script type="text/javascript">
												$().ready(function () {
													var input_id = '<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
';
													$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
                                            echo smartyTranslate(array('s' => 'Add tag'), $_smarty_tpl);
                                            ?>
'});
													$('#<?php 
                                            echo $_smarty_tpl->tpl_vars['table']->value;
                                            ?>
_form').submit( function() {
														$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
													});
												});
											</script>
											
										<?php 
                                        }
                                        ?>
										<?php 
                                        $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], null, 0);
                                        ?>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                            ?>
										<div class="input-group<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                ?>
 <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            ?>
">
										<?php 
                                        }
                                        ?>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
										<span id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
_counter" class="input-group-addon"><span class="text-count-down"><?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                            ?>
</span></span>
										<?php 
                                        }
                                        ?>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['prefix'])) {
                                            ?>
										<span class="input-group-addon">
										  <?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['prefix'];
                                            ?>

										</span>
										<?php 
                                        }
                                        ?>
										<input type="text"
											name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
											id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"
											value="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                            echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                        } else {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                        }
                                        ?>
"
											class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                            ?>
 tagify<?php 
                                        }
                                        ?>
"
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                            ?>
 size="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
 data-maxchar="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                            ?>
 maxlength="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                            ?>
 readonly="readonly"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                            ?>
 disabled="disabled"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                            ?>
 autocomplete="off"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                            ?>
 required="required" <?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                            ?>
 placeholder="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                            ?>
"<?php 
                                        }
                                        ?>
											/>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                            ?>
										<span class="input-group-addon">
										  <?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                            ?>

										</span>
										<?php 
                                        }
                                        ?>
										
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                            ?>
										</div>
										<?php 
                                        }
                                        ?>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
										<script type="text/javascript">
										function countDown($source, $target) {
											var max = $source.attr("data-maxchar");
											$target.html(max-$source.val().length);

											$source.keyup(function(){
												$target.html(max-$source.val().length);
											});
										}
										$(document).ready(function(){
											countDown($("#<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
"), $("#<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
_counter"));
										});
										</script>
										<?php 
                                        }
                                        ?>
									<?php 
                                    }
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'textbutton') {
                                    ?>
									<?php 
                                    $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], null, 0);
                                    ?>
									<div class="row">
										<div class="col-lg-9">
										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                        ?>
										<div class="input-group">
											<span id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
_counter" class="input-group-addon">
												<span class="text-count-down"><?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                        ?>
</span>
											</span>
										<?php 
                                    }
                                    ?>
										<input type="text"
											name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
"
											id="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                    } else {
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    }
                                    ?>
"
											value="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                        echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                    } else {
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                    }
                                    ?>
"
											class="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                    }
                                    if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                        ?>
 tagify<?php 
                                    }
                                    ?>
"
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                        ?>
 size="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                        ?>
"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                        ?>
 data-maxchar="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                        ?>
"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                        ?>
 maxlength="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                        ?>
"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                        ?>
 readonly="readonly"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                        ?>
 disabled="disabled"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                        ?>
 autocomplete="off"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                        ?>
 placeholder="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                        ?>
"<?php 
                                    }
                                    ?>
											/>
										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                    }
                                    ?>
										<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                        ?>
										</div>
										<?php 
                                    }
                                    ?>
										</div>
										<div class="col-lg-2">
											<button type="button" class="btn btn-default<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['button']['attributes']['class'])) {
                                        ?>
 <?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['button']['attributes']['class'];
                                    }
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['button']['class'])) {
                                        ?>
 <?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['button']['class'];
                                    }
                                    ?>
"
												<?php 
                                    $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['value']->_loop = false;
                                    $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
                                    $_from = $_smarty_tpl->tpl_vars['input']->value['button']['attributes'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                        $_smarty_tpl->tpl_vars['value']->_loop = true;
                                        $_smarty_tpl->tpl_vars['name']->value = $_smarty_tpl->tpl_vars['value']->key;
                                        ?>
													<?php 
                                        if (mb_strtolower($_smarty_tpl->tpl_vars['name']->value, 'UTF-8') != 'class') {
                                            ?>
													 <?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);
                                            ?>
="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true);
                                            ?>
"
													<?php 
                                        }
                                        ?>
												<?php 
                                    }
                                    ?>
 >
												<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['button']['label'];
                                    ?>

											</button>
										</div>
									</div>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                        ?>
									<script type="text/javascript">
										function countDown($source, $target) {
											var max = $source.attr("data-maxchar");
											$target.html(max-$source.val().length);
											$source.keyup(function(){
												$target.html(max-$source.val().length);
											});
										}
										$(document).ready(function() {
											countDown($("#<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"), $("#<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
_counter"));
										});
									</script>
									<?php 
                                    }
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'select') {
                                    ?>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['options']['query']) && !$_smarty_tpl->tpl_vars['input']->value['options']['query'] && isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) {
                                        ?>
										<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['empty_message'];
                                        ?>

										<?php 
                                        $_smarty_tpl->createLocalArrayVariable('input', null, 0);
                                        $_smarty_tpl->tpl_vars['input']->value['required'] = false;
                                        ?>
										<?php 
                                        $_smarty_tpl->createLocalArrayVariable('input', null, 0);
                                        $_smarty_tpl->tpl_vars['input']->value['desc'] = null;
                                        ?>
									<?php 
                                    } else {
                                        ?>
										<select name="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                        ?>
"
												class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['class'], ENT_QUOTES, 'utf-8', true);
                                        }
                                        ?>
 fixed-width-xl"
												id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['id'], ENT_QUOTES, 'utf-8', true);
                                        } else {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                        }
                                        ?>
"
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                            ?>
multiple="multiple" <?php 
                                        }
                                        ?>
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                            ?>
size="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['size'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        ?>
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['onchange'])) {
                                            ?>
onchange="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['onchange'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        ?>
>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['options']['default'])) {
                                            ?>
												<option value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['options']['default']['value'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['options']['default']['label'], ENT_QUOTES, 'utf-8', true);
                                            ?>
</option>
											<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['options']['optiongroup'])) {
                                            ?>
												<?php 
                                            $_smarty_tpl->tpl_vars['optiongroup'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['optiongroup']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['input']->value['options']['optiongroup']['query'];
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['optiongroup']->key => $_smarty_tpl->tpl_vars['optiongroup']->value) {
                                                $_smarty_tpl->tpl_vars['optiongroup']->_loop = true;
                                                ?>
													<optgroup label="<?php 
                                                echo $_smarty_tpl->tpl_vars['optiongroup']->value[$_smarty_tpl->tpl_vars['input']->value['options']['optiongroup']['label']];
                                                ?>
">
														<?php 
                                                $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['option']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['optiongroup']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['query']];
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                                    $_smarty_tpl->tpl_vars['option']->_loop = true;
                                                    ?>
															<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']];
                                                    ?>
"
																<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                        ?>
																	<?php 
                                                        $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                        $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                        $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                        if (!is_array($_from) && !is_object($_from)) {
                                                            settype($_from, 'array');
                                                        }
                                                        foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                            ?>
																		<?php 
                                                            if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']]) {
                                                                ?>
selected="selected"<?php 
                                                            }
                                                            ?>
																	<?php 
                                                        }
                                                        ?>
																<?php 
                                                    } else {
                                                        ?>
																	<?php 
                                                        if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']]) {
                                                            ?>
selected="selected"<?php 
                                                        }
                                                        ?>
																<?php 
                                                    }
                                                    ?>
															><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['name']];
                                                    ?>
</option>
														<?php 
                                                }
                                                ?>
													</optgroup>
												<?php 
                                            }
                                            ?>
											<?php 
                                        } else {
                                            ?>
												<?php 
                                            $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['option']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['input']->value['options']['query'];
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                                $_smarty_tpl->tpl_vars['option']->_loop = true;
                                                ?>
													<?php 
                                                if (is_object($_smarty_tpl->tpl_vars['option']->value)) {
                                                    ?>
														<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']};
                                                    ?>
"
															<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                        ?>
																<?php 
                                                        $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                        $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                        $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                        if (!is_array($_from) && !is_object($_from)) {
                                                            settype($_from, 'array');
                                                        }
                                                        foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                            ?>
																	<?php 
                                                            if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}) {
                                                                ?>
																		selected="selected"
																	<?php 
                                                            }
                                                            ?>
																<?php 
                                                        }
                                                        ?>
															<?php 
                                                    } else {
                                                        ?>
																<?php 
                                                        if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}) {
                                                            ?>
																	selected="selected"
																<?php 
                                                        }
                                                        ?>
															<?php 
                                                    }
                                                    ?>
														><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['name']};
                                                    ?>
</option>
													<?php 
                                                } elseif ($_smarty_tpl->tpl_vars['option']->value == "-") {
                                                    ?>
														<option value="">-</option>
													<?php 
                                                } else {
                                                    ?>
														<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']];
                                                    ?>
"
															<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                        ?>
																<?php 
                                                        $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                        $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                        $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                        if (!is_array($_from) && !is_object($_from)) {
                                                            settype($_from, 'array');
                                                        }
                                                        foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                            ?>
																	<?php 
                                                            if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']]) {
                                                                ?>
																		selected="selected"
																	<?php 
                                                            }
                                                            ?>
																<?php 
                                                        }
                                                        ?>
															<?php 
                                                    } else {
                                                        ?>
																<?php 
                                                        if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']]) {
                                                            ?>
																	selected="selected"
																<?php 
                                                        }
                                                        ?>
															<?php 
                                                    }
                                                    ?>
														><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['name']];
                                                    ?>
</option>

													<?php 
                                                }
                                                ?>
												<?php 
                                            }
                                            ?>
											<?php 
                                        }
                                        ?>
										</select>
									<?php 
                                    }
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'radio') {
                                    ?>
									<?php 
                                    $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['value']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['input']->value['values'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                        $_smarty_tpl->tpl_vars['value']->_loop = true;
                                        ?>
										<div class="radio <?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
">
											<label><input type="radio"	name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['value']->value['id'];
                                        ?>
" value="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value['value'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
"<?php 
                                        if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) {
                                            ?>
 checked="checked"<?php 
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                            ?>
 disabled="disabled"<?php 
                                        }
                                        ?>
/><?php 
                                        echo $_smarty_tpl->tpl_vars['value']->value['label'];
                                        ?>
</label>
										</div>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['value']->value['p']) && $_smarty_tpl->tpl_vars['value']->value['p']) {
                                            ?>
<p class="help-block"><?php 
                                            echo $_smarty_tpl->tpl_vars['value']->value['p'];
                                            ?>
</p><?php 
                                        }
                                        ?>
									<?php 
                                    }
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'switch') {
                                    ?>
									<span class="switch prestashop-switch fixed-width-lg">
										<?php 
                                    $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['value']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['input']->value['values'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                        $_smarty_tpl->tpl_vars['value']->_loop = true;
                                        ?>
										<input type="radio" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"<?php 
                                        if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                            ?>
 id="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_on"<?php 
                                        } else {
                                            ?>
 id="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_off"<?php 
                                        }
                                        ?>
 value="<?php 
                                        echo $_smarty_tpl->tpl_vars['value']->value['value'];
                                        ?>
"<?php 
                                        if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) {
                                            ?>
 checked="checked"<?php 
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                            ?>
 disabled="disabled"<?php 
                                        }
                                        ?>
/>
										<label <?php 
                                        if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                            ?>
 for="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_on"<?php 
                                        } else {
                                            ?>
 for="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_off"<?php 
                                        }
                                        ?>
><?php 
                                        if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                            echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                                        } else {
                                            echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                                        }
                                        ?>
</label>
										<?php 
                                    }
                                    ?>
										<a class="slide-button btn"></a>
									</span>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'textarea') {
                                    ?>
									<?php 
                                    $_smarty_tpl->tpl_vars['use_textarea_autosize'] = new Smarty_variable(true, null, 0);
                                    ?>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['lang']) && $_smarty_tpl->tpl_vars['input']->value['lang']) {
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['language']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                            $_smarty_tpl->tpl_vars['language']->_loop = true;
                                            ?>
									<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
									<div class="form-group translatable-field lang-<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                ?>
"<?php 
                                                if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] != $_smarty_tpl->tpl_vars['defaultFormLanguage']->value) {
                                                    ?>
 style="display:none;"<?php 
                                                }
                                                ?>
>
										<div class="col-lg-9">
									<?php 
                                            }
                                            ?>
											<textarea name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
_<?php 
                                            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                            ?>
" class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['autoload_rte']) && $_smarty_tpl->tpl_vars['input']->value['autoload_rte']) {
                                                ?>
rte autoload_rte<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    ?>
 <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                }
                                            } else {
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    ?>
 <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                } else {
                                                    ?>
 textarea-autosize<?php 
                                                }
                                            }
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']], ENT_QUOTES, 'UTF-8', true);
                                            ?>
</textarea>
									<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
	
										</div>
										<div class="col-lg-2">
											<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
												<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                                ?>

												<span class="caret"></span>
											</button>
											<ul class="dropdown-menu">
												<?php 
                                                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['language']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                    ?>
												<li>
													<a href="javascript:hideOtherLanguage(<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    ?>
);" tabindex="-1"><?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                                    ?>
</a>
												</li>
												<?php 
                                                }
                                                ?>
											</ul>
										</div>
									</div>
									<?php 
                                            }
                                            ?>
									<?php 
                                        }
                                        ?>

									<?php 
                                    } else {
                                        ?>
										<textarea name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
" <?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['cols'])) {
                                            ?>
cols="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['cols'];
                                            ?>
"<?php 
                                        }
                                        ?>
 <?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['rows'])) {
                                            ?>
rows="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['rows'];
                                            ?>
"<?php 
                                        }
                                        ?>
 class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['autoload_rte']) && $_smarty_tpl->tpl_vars['input']->value['autoload_rte']) {
                                            ?>
rte autoload_rte<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                ?>
 <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                        } else {
                                            ?>
 textarea-autosize<?php 
                                        }
                                        ?>
"><?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                        ?>
</textarea>
									<?php 
                                    }
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'checkbox') {
                                    ?>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['expand'])) {
                                        ?>
										<a class="btn btn-default show_checkbox<?php 
                                        if (strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'hide') {
                                            ?>
 hidden<?php 
                                        }
                                        ?>
" href="#">
											<i class="icon-<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['expand']['show']['icon'];
                                        ?>
"></i>
											<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['expand']['show']['text'];
                                        ?>

											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['expand']['print_total']) && $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'] > 0) {
                                            ?>
												<span class="badge"><?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'];
                                            ?>
</span>
											<?php 
                                        }
                                        ?>
										</a>
										<a class="btn btn-default hide_checkbox<?php 
                                        if (strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'show') {
                                            ?>
 hidden<?php 
                                        }
                                        ?>
" href="#">
											<i class="icon-<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['expand']['hide']['icon'];
                                        ?>
"></i>
											<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['expand']['hide']['text'];
                                        ?>

											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['expand']['print_total']) && $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'] > 0) {
                                            ?>
												<span class="badge"><?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'];
                                            ?>
</span>
											<?php 
                                        }
                                        ?>
										</a>
									<?php 
                                    }
                                    ?>
									<?php 
                                    $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['value']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['input']->value['values']['query'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                        $_smarty_tpl->tpl_vars['value']->_loop = true;
                                        ?>
										<?php 
                                        $_smarty_tpl->tpl_vars['id_checkbox'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['name'] . '_' . $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['input']->value['values']['id']], null, 0);
                                        ?>
										<div class="checkbox<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['expand']) && strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'show') {
                                            ?>
 hidden<?php 
                                        }
                                        ?>
">
											<label for="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
"><input type="checkbox" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
" class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
"<?php 
                                        if (isset($_smarty_tpl->tpl_vars['value']->value['val'])) {
                                            ?>
 value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value['val'], ENT_QUOTES, 'UTF-8', true);
                                            ?>
"<?php 
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value]) && $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value]) {
                                            ?>
 checked="checked"<?php 
                                        }
                                        ?>
 /><?php 
                                        echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['input']->value['values']['name']];
                                        ?>
</label>
										</div>
									<?php 
                                    }
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'change-password') {
                                    ?>
									<div class="row">
										<div class="col-lg-12">
											<button type="button" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-btn-change" class="btn btn-default">
												<i class="icon-lock"></i>
												<?php 
                                    echo smartyTranslate(array('s' => 'Change password...'), $_smarty_tpl);
                                    ?>

											</button>
											<div id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-change-container" class="form-password-change well hide">
												<div class="form-group">
													<label for="old_passwd" class="control-label col-lg-2 required">
														<?php 
                                    echo smartyTranslate(array('s' => 'Current password'), $_smarty_tpl);
                                    ?>

													</label>
													<div class="col-lg-10">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-unlock"></i>
															</span>
															<input type="password" id="old_passwd" name="old_passwd" class="form-control" value="" required="required" autocomplete="off">
														</div>
													</div>
												</div>
												<hr />
												<div class="form-group">
													<label for="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
" class="required control-label col-lg-2">
														<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="Password should be at least 8 characters long.">						
															<?php 
                                    echo smartyTranslate(array('s' => 'New password'), $_smarty_tpl);
                                    ?>

														</span>
													</label>
													<div class="col-lg-9">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-key"></i>
															</span>
															<input type="password" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
" name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
" class="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                    }
                                    ?>
" value="" required="required" autocomplete="off"/>
														</div>
														<span id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-output"></span>
													</div>
												</div>
												<div class="form-group">
													<label for="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
2" class="required control-label col-lg-2">
														<?php 
                                    echo smartyTranslate(array('s' => 'Confirm password'), $_smarty_tpl);
                                    ?>

													</label>
													<div class="col-lg-4">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-key"></i>
															</span>
															<input type="password" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
2" name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
2" class="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                    }
                                    ?>
" value="" autocomplete="off"/>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-lg-10 col-lg-offset-2">
														<input type="text" class="form-control fixed-width-md pull-left" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-generate-field" disabled="disabled">
														<button type="button" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-generate-btn" class="btn btn-default">
															<i class="icon-random"></i>
															<?php 
                                    echo smartyTranslate(array('s' => 'Generate password'), $_smarty_tpl);
                                    ?>

														</button>
													</div>
												</div>
												<div class="form-group">
													<div class="col-lg-10 col-lg-offset-2">
														<p class="checkbox">
															<label for="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-checkbox-mail">
																<input name="passwd_send_email" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-checkbox-mail" type="checkbox" checked="checked">
																<?php 
                                    echo smartyTranslate(array('s' => 'Send me this new password by Email'), $_smarty_tpl);
                                    ?>

															</label>
														</p>
													</div>
												</div>
												<div class="row">
													<div class="col-lg-12">
														<button type="button" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-cancel-btn" class="btn btn-default">
															<i class="icon-remove"></i>
															<?php 
                                    echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
                                    ?>

														</button>
													</div>
												</div>
											</div>
										</div>
									</div>
									<script>
										$(function(){
											var $oldPwd = $('#old_passwd');
											var $passwordField = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
');
											var $output = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-output');
											var $generateBtn = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-generate-btn');
											var $generateField = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-generate-field');
											var $cancelBtn = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-cancel-btn');
											
											var feedback = [
												{ badge: 'text-danger', text: '<?php 
                                    echo smartyTranslate(array('s' => "Invalid", 'js' => 1), $_smarty_tpl);
                                    ?>
' },
												{ badge: 'text-warning', text: '<?php 
                                    echo smartyTranslate(array('s' => "Okay", 'js' => 1), $_smarty_tpl);
                                    ?>
' },
												{ badge: 'text-success', text: '<?php 
                                    echo smartyTranslate(array('s' => "Good", 'js' => 1), $_smarty_tpl);
                                    ?>
' },
												{ badge: 'text-success', text: '<?php 
                                    echo smartyTranslate(array('s' => "Fabulous", 'js' => 1), $_smarty_tpl);
                                    ?>
' }
											];
											$.passy.requirements.length.min = 8;
											$.passy.requirements.characters = 'DIGIT';
											$passwordField.passy(function(strength, valid) {
												$output.text(feedback[strength].text);
												$output.removeClass('text-danger').removeClass('text-warning').removeClass('text-success');
												$output.addClass(feedback[strength].badge);
												if (valid){
													$output.show();
												}
												else {
													$output.hide();
												}
											});
											var $container = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-change-container');
											var $changeBtn = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
-btn-change');
											var $confirmPwd = $('#<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
2');

											$changeBtn.on('click',function(){
												$container.removeClass('hide');
												$changeBtn.addClass('hide');
											});
											$generateBtn.click(function() {
												$generateField.passy( 'generate', 8 );
												var generatedPassword = $generateField.val();
												$passwordField.val(generatedPassword);
												$confirmPwd.val(generatedPassword);
											});
											$cancelBtn.on('click',function() {
												$container.find("input").val("");
												$container.addClass('hide');
												$changeBtn.removeClass('hide');
											});

											$.validator.addMethod('password_same', function(value, element) {
												return $passwordField.val() == $confirmPwd.val();
											}, '<?php 
                                    echo smartyTranslate(array('s' => "Invalid password confirmation", 'js' => 1), $_smarty_tpl);
                                    ?>
');

											$('#employee_form').validate({
												rules: {
													"email": {
														email: true
													},
													"<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
" : {
														minlength: 8
													},
													"<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
2": {
														password_same: true
													},
													"old_passwd" : {},
												},
												// override jquery validate plugin defaults for bootstrap 3
												highlight: function(element) {
													$(element).closest('.form-group').addClass('has-error');
												},
												unhighlight: function(element) {
													$(element).closest('.form-group').removeClass('has-error');
												},
												errorElement: 'span',
												errorClass: 'help-block',
												errorPlacement: function(error, element) {
													if(element.parent('.input-group').length) {
														error.insertAfter(element.parent());
													} else {
														error.insertAfter(element);
													}
												}
											});
										});
									</script>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'password') {
                                    ?>
									<div class="input-group fixed-width-lg">
										<span class="input-group-addon">
											<i class="icon-key"></i>
										</span>
										<input type="password"
											id="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                    } else {
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    }
                                    ?>
"
											name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
"
											class="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                    }
                                    ?>
"
											value=""
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                        ?>
autocomplete="off"<?php 
                                    }
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                        ?>
 required="required" <?php 
                                    }
                                    ?>
 />
									</div>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'birthday') {
                                    ?>
								<div class="form-group">
									<?php 
                                    $_smarty_tpl->tpl_vars['select'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['select']->_loop = false;
                                    $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                    $_from = $_smarty_tpl->tpl_vars['input']->value['options'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['select']->key => $_smarty_tpl->tpl_vars['select']->value) {
                                        $_smarty_tpl->tpl_vars['select']->_loop = true;
                                        $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['select']->key;
                                        ?>
									<div class="col-lg-2">
										<select name="<?php 
                                        echo $_smarty_tpl->tpl_vars['key']->value;
                                        ?>
" class="fixed-width-lg<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            ?>
 <?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
">
											<option value="">-</option>
											<?php 
                                        if ($_smarty_tpl->tpl_vars['key']->value == 'months') {
                                            ?>
												
												<?php 
                                            $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['v']->_loop = false;
                                            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                                            $_from = $_smarty_tpl->tpl_vars['select']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                                                $_smarty_tpl->tpl_vars['v']->_loop = true;
                                                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                                                ?>
													<option value="<?php 
                                                echo $_smarty_tpl->tpl_vars['k']->value;
                                                ?>
" <?php 
                                                if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['key']->value]) {
                                                    ?>
selected="selected"<?php 
                                                }
                                                ?>
><?php 
                                                echo smartyTranslate(array('s' => $_smarty_tpl->tpl_vars['v']->value), $_smarty_tpl);
                                                ?>
</option>
												<?php 
                                            }
                                            ?>
											<?php 
                                        } else {
                                            ?>
												<?php 
                                            $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['v']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['select']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                                                $_smarty_tpl->tpl_vars['v']->_loop = true;
                                                ?>
													<option value="<?php 
                                                echo $_smarty_tpl->tpl_vars['v']->value;
                                                ?>
" <?php 
                                                if ($_smarty_tpl->tpl_vars['v']->value == $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['key']->value]) {
                                                    ?>
selected="selected"<?php 
                                                }
                                                ?>
><?php 
                                                echo $_smarty_tpl->tpl_vars['v']->value;
                                                ?>
</option>
												<?php 
                                            }
                                            ?>
											<?php 
                                        }
                                        ?>
										</select>
									</div>
									<?php 
                                    }
                                    ?>
								</div>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'group') {
                                    ?>
									<?php 
                                    $_smarty_tpl->tpl_vars['groups'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['values'], null, 0);
                                    ?>
									<?php 
                                    /*  Call merged included template "helpers/form/form_group.tpl" */
                                    $_tpl_stack[] = $_smarty_tpl;
                                    $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('helpers/form/form_group.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '188511155654e3b3fad83fa0-59265628');
                                    content_54e3b3fd6d1ae2_56762739($_smarty_tpl);
                                    $_smarty_tpl = array_pop($_tpl_stack);
                                    /*  End of included template "helpers/form/form_group.tpl" */
                                    ?>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'shop') {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['html'];
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'categories') {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['categories_tree']->value;
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'file') {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['file'];
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'categories_select') {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['category_tree'];
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'asso_shop' && isset($_smarty_tpl->tpl_vars['asso_shop']->value) && $_smarty_tpl->tpl_vars['asso_shop']->value) {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['asso_shop']->value;
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'color') {
                                    ?>
								<div class="form-group">
									<div class="col-lg-2">
										<div class="row">
											<div class="input-group">
												<input type="color"
												data-hex="true"
												<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        ?>
 class="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        ?>
"
												<?php 
                                    } else {
                                        ?>
 class="color mColorPickerInput"<?php 
                                    }
                                    ?>
												name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
"
												value="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                    ?>
" />
											</div>
										</div>
									</div>
								</div>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'date') {
                                    ?>
									<div class="row">
										<div class="input-group col-lg-4">
											<input
												id="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                    } else {
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    }
                                    ?>
"
												type="text"
												data-hex="true"
												<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        ?>
 class="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        ?>
"
												<?php 
                                    } else {
                                        ?>
class="datepicker"<?php 
                                    }
                                    ?>
												name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
"
												value="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                    ?>
" />
											<span class="input-group-addon">
												<i class="icon-calendar-empty"></i>
											</span>
										</div>
									</div>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'datetime') {
                                    ?>
									<div class="row">
										<div class="input-group col-lg-4">
											<input
												id="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                    } else {
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    }
                                    ?>
"
												type="text"
												data-hex="true"
												<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                        ?>
 class="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        ?>
"
												<?php 
                                    } else {
                                        ?>
 class="datetimepicker"<?php 
                                    }
                                    ?>
												name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
"
												value="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                    ?>
" />
											<span class="input-group-addon">
												<i class="icon-calendar-empty"></i>
											</span>
										</div>
									</div>
								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'free') {
                                    ?>
									<?php 
                                    echo $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                    ?>

								<?php 
                                } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'html') {
                                    ?>
									<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['html_content'])) {
                                        ?>
										<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['html_content'];
                                        ?>

									<?php 
                                    } else {
                                        ?>
										<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>

									<?php 
                                    }
                                    ?>
								<?php 
                                }
                                ?>
								
								
									<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['desc']) && !empty($_smarty_tpl->tpl_vars['input']->value['desc'])) {
                                    ?>
										<p class="help-block">
											<?php 
                                    if (is_array($_smarty_tpl->tpl_vars['input']->value['desc'])) {
                                        ?>
												<?php 
                                        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['p']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['desc'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                                            $_smarty_tpl->tpl_vars['p']->_loop = true;
                                            ?>
													<?php 
                                            if (is_array($_smarty_tpl->tpl_vars['p']->value)) {
                                                ?>
														<span id="<?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value['id'];
                                                ?>
"><?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value['text'];
                                                ?>
</span><br />
													<?php 
                                            } else {
                                                ?>
														<?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value;
                                                ?>
<br />
													<?php 
                                            }
                                            ?>
												<?php 
                                        }
                                        ?>
											<?php 
                                    } else {
                                        ?>
												<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['desc'];
                                        ?>

											<?php 
                                    }
                                    ?>
										</p>
									<?php 
                                }
                                ?>
								
								</div>
							
	<?php 
                            }
                            ?>

						<?php 
                        }
                        ?>
						</div>
						
					<?php 
                    }
                    ?>
					<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminForm', 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                    ?>

					<?php 
                    if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {
                        ?>
						<?php 
                        $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
                        ob_start();
                        ?>
display<?php 
                        echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);
                        ?>
Form<?php 
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        ?>
						<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value, 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                        ?>

					<?php 
                    } elseif (isset($_GET['controller'])) {
                        ?>
						<?php 
                        $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
                        ob_start();
                        ?>
display<?php 
                        echo htmlentities(ucfirst($_GET['controller']));
                        ?>
Form<?php 
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        ?>
						<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value, 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                        ?>

					<?php 
                    }
                    ?>
				</div><!-- /.form-wrapper -->
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'desc') {
                    ?>
					<div class="alert alert-info col-lg-offset-3">
						<?php 
                    if (is_array($_smarty_tpl->tpl_vars['field']->value)) {
                        ?>
							<?php 
                        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['p']->_loop = false;
                        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['field']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                            $_smarty_tpl->tpl_vars['p']->_loop = true;
                            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['p']->key;
                            ?>
								<?php 
                            if (is_array($_smarty_tpl->tpl_vars['p']->value)) {
                                ?>
									<span<?php 
                                if (isset($_smarty_tpl->tpl_vars['p']->value['id'])) {
                                    ?>
 id="<?php 
                                    echo $_smarty_tpl->tpl_vars['p']->value['id'];
                                    ?>
"<?php 
                                }
                                ?>
><?php 
                                echo $_smarty_tpl->tpl_vars['p']->value['text'];
                                ?>
</span><br />
								<?php 
                            } else {
                                ?>
									<?php 
                                echo $_smarty_tpl->tpl_vars['p']->value;
                                ?>

									<?php 
                                if (isset($_smarty_tpl->tpl_vars['field']->value[$_smarty_tpl->tpl_vars['k']->value + 1])) {
                                    ?>
<br /><?php 
                                }
                                ?>
								<?php 
                            }
                            ?>
							<?php 
                        }
                        ?>
						<?php 
                    } else {
                        ?>
							<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value;
                        ?>

						<?php 
                    }
                    ?>
					</div>
				<?php 
                }
                ?>
				
			<?php 
            }
            ?>
			
			<?php 
            $_smarty_tpl->_capture_stack[0][] = array('form_submit_btn', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'form_submit_btn'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']) || isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'])) {
                ?>
					<div class="panel-footer">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']) && !empty($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit'])) {
                    ?>
						<button type="submit" value="1"	id="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['id'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['id'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
_form_submit_btn<?php 
                    }
                    if (Smarty::$_smarty_vars['capture']['form_submit_btn'] > 1) {
                        ?>
_<?php 
                        echo intval(Smarty::$_smarty_vars['capture']['form_submit_btn'] - 1);
                    }
                    ?>
" name="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['name'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['name'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['submit_action']->value;
                    }
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['stay']) && $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['stay']) {
                        ?>
AndStay<?php 
                    }
                    ?>
" class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['class'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['class'];
                    } else {
                        ?>
btn btn-default pull-right<?php 
                    }
                    ?>
">
							<i class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['icon'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['icon'];
                    } else {
                        ?>
process-icon-save<?php 
                    }
                    ?>
"></i> <?php 
                    echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['title'];
                    ?>

						</button>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['show_cancel_button']->value) && $_smarty_tpl->tpl_vars['show_cancel_button']->value) {
                    ?>
						<a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['back_url']->value, ENT_QUOTES, 'UTF-8', true);
                    ?>
" class="btn btn-default" onclick="window.history.back();">
							<i class="process-icon-cancel"></i> <?php 
                    echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
                    ?>

						</a>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset'])) {
                    ?>
						<button
							type="reset"
							id="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['id'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['id'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
_form_reset_btn<?php 
                    }
                    ?>
"
							class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['class'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['class'];
                    } else {
                        ?>
btn btn-default<?php 
                    }
                    ?>
"
							>
							<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['icon'])) {
                        ?>
<i class="<?php 
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['icon'];
                        ?>
"></i> <?php 
                    }
                    ?>
 <?php 
                    echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['title'];
                    ?>

						</button>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'])) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['btn']->_loop = false;
                    $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                        $_smarty_tpl->tpl_vars['btn']->_loop = true;
                        $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                        ?>
							<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['href']) && trim($_smarty_tpl->tpl_vars['btn']->value['href']) != '') {
                            ?>
								<a href="<?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['href'];
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="btn btn-default<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</a>
							<?php 
                        } else {
                            ?>
								<button type="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['type'];
                            } else {
                                ?>
button<?php 
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="btn btn-default<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" name="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['name'];
                            } else {
                                ?>
submitOptions<?php 
                                echo $_smarty_tpl->tpl_vars['table']->value;
                            }
                            ?>
"<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</button>
							<?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						<?php 
                }
                ?>
					</div>
				<?php 
            }
            ?>
			
		</div>
		
		
	<?php 
        }
        ?>
</form>



<?php 
        if (isset($_smarty_tpl->tpl_vars['tinymce']->value) && $_smarty_tpl->tpl_vars['tinymce']->value) {
            ?>
<script type="text/javascript">
	var iso = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['iso']->value);
            ?>
';
	var pathCSS = '<?php 
            echo addslashes(@constant('_THEME_CSS_DIR_'));
            ?>
';
	var ad = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['ad']->value);
            ?>
';

	$(document).ready(function(){
		
			tinySetup({
				editor_selector :"autoload_rte"
			});
		
	});
</script>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['firstCall']->value) {
            ?>
	<script type="text/javascript">
		var module_dir = '<?php 
            echo @constant('_MODULE_DIR_');
            ?>
';
		var id_language = <?php 
            echo intval($_smarty_tpl->tpl_vars['defaultFormLanguage']->value);
            ?>
;
		var languages = new Array();
		var vat_number = <?php 
            if ($_smarty_tpl->tpl_vars['vat_number']->value) {
                ?>
1<?php 
            } else {
                ?>
0<?php 
            }
            ?>
;
		// Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
		// precedence conflicts with other document.ready() blocks
		<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key;
                ?>
			languages[<?php 
                echo $_smarty_tpl->tpl_vars['k']->value;
                ?>
] = {
				id_lang: <?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
,
				iso_code: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>
',
				name: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['name'];
                ?>
',
				is_default: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['is_default'];
                ?>
'
			};
		<?php 
            }
            ?>
		// we need allowEmployeeFormLang var in ajax request
		allowEmployeeFormLang = <?php 
            echo intval($_smarty_tpl->tpl_vars['allowEmployeeFormLang']->value);
            ?>
;
		displayFlags(languages, id_language, allowEmployeeFormLang);

		$(document).ready(function() {

			$(".show_checkbox").click(function () {
				$(this).addClass('hidden')
				$(this).siblings('.checkbox').removeClass('hidden');
				$(this).siblings('.hide_checkbox').removeClass('hidden');
				return false;
			});
			$(".hide_checkbox").click(function () {
				$(this).addClass('hidden')
				$(this).siblings('.checkbox').addClass('hidden');
				$(this).siblings('.show_checkbox').removeClass('hidden');
				return false;
			});

			<?php 
            if (isset($_smarty_tpl->tpl_vars['fields_value']->value['id_state'])) {
                ?>
				if ($('#id_country') && $('#id_state'))
				{
					ajaxStates(<?php 
                echo $_smarty_tpl->tpl_vars['fields_value']->value['id_state'];
                ?>
);
					$('#id_country').change(function() {
						ajaxStates();
					});
				}
			<?php 
            }
            ?>

			if ($(".datepicker").length > 0)
				$(".datepicker").datepicker({
					prevText: '',
					nextText: '',
					dateFormat: 'yy-mm-dd'
				});

			if ($(".datetimepicker").length > 0)
			$('.datetimepicker').datetimepicker({
				prevText: '',
				nextText: '',
				dateFormat: 'yy-mm-dd',
				// Define a custom regional settings in order to use PrestaShop translation tools
				currentText: '<?php 
            echo smartyTranslate(array('s' => 'Now'), $_smarty_tpl);
            ?>
',
				closeText: '<?php 
            echo smartyTranslate(array('s' => 'Done'), $_smarty_tpl);
            ?>
',
				ampm: false,
				amNames: ['AM', 'A'],
				pmNames: ['PM', 'P'],
				timeFormat: 'hh:mm:ss tt',
				timeSuffix: '',
				timeOnlyTitle: '<?php 
            echo smartyTranslate(array('s' => 'Choose Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				timeText: '<?php 
            echo smartyTranslate(array('s' => 'Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				hourText: '<?php 
            echo smartyTranslate(array('s' => 'Hour', 'js' => 1), $_smarty_tpl);
            ?>
',
				minuteText: '<?php 
            echo smartyTranslate(array('s' => 'Minute', 'js' => 1), $_smarty_tpl);
            ?>
',
			});
			<?php 
            if (isset($_smarty_tpl->tpl_vars['use_textarea_autosize']->value)) {
                ?>
			$(".textarea-autosize").autosize();
			<?php 
            }
            ?>
		});
	state_token = '<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminStates'), $_smarty_tpl);
            ?>
';
	
	</script>
<?php 
        }
    }
    function content_569a531e198cc4_29171742($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\function.cycle.php';
        }
        ?>
<div class="panel">
	<h3>
		<i class="icon-list-ul"></i>
		<?php 
        if (isset($_smarty_tpl->tpl_vars['panel_title']->value)) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['panel_title']->value, ENT_QUOTES, 'UTF-8', true);
        } else {
            echo smartyTranslate(array('s' => 'Modules list'), $_smarty_tpl);
        }
        ?>
	</h3>
	<div class="modules_list_container_tab row">
		<div class="col-lg-12">
			<?php 
        if (count($_smarty_tpl->tpl_vars['modules_list']->value)) {
            ?>
				<table class="table">
					<?php 
            echo smarty_function_counter(array('start' => 1, 'assign' => "count"), $_smarty_tpl);
            ?>

						<?php 
            $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['module']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['modules_list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                $_smarty_tpl->tpl_vars['module']->_loop = true;
                ?>
							<?php 
                ob_start();
                echo smarty_function_cycle(array('values' => ",row alt"), $_smarty_tpl);
                $_tmp22 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate('controllers/modules/tab_module_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class_row' => $_tmp22), 0);
                ?>

						<?php 
                echo smarty_function_counter(array(), $_smarty_tpl);
                ?>

					<?php 
            }
            ?>
				</table>
				<?php 
            if ($_smarty_tpl->tpl_vars['controller_name']->value == 'AdminPayment' && isset($_smarty_tpl->tpl_vars['view_all']->value)) {
                ?>
					<div class="panel-footer">
						<div class="col-lg-4 col-lg-offset-4">
							<a class="btn btn-default btn-block" href="index.php?tab=AdminModules&amp;token=<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminModules'), $_smarty_tpl);
                ?>
&amp;filterCategory=payments_gateways">
								<i class="process-icon-payment"></i>
								<?php 
                echo smartyTranslate(array('s' => 'View all available payments solutions'), $_smarty_tpl);
                ?>

							</a>
						</div>
					</div>
				<?php 
            }
            ?>
			<?php 
        } else {
            ?>
				<table class="table">
					<tr>
						<td>
							<div class="alert alert-warning">
							<?php 
            if ($_smarty_tpl->tpl_vars['controller_name']->value == 'AdminPayment') {
                ?>
							<?php 
                echo smartyTranslate(array('s' => 'It seems there are no recommended payment solutions for your country.'), $_smarty_tpl);
                ?>
<br />
							<a class="_blank" href="https://www.prestashop.com/en/contact-us"><?php 
                echo smartyTranslate(array('s' => 'Do you think there should be one? Let us know!'), $_smarty_tpl);
                ?>
</a>
							<?php 
            } else {
                echo smartyTranslate(array('s' => 'No modules available in this section.'), $_smarty_tpl);
            }
            ?>
</div>
						</td>
					</tr>
				</table>
			<?php 
        }
        ?>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$('.fancybox-quick-view').fancybox({
			type: 'ajax',
			autoDimensions: false,
			autoSize: false,
			width: 600,
			height: 'auto',
			helpers: {
				overlay: {
					locked: false
				}
			}
		});
	});
</script>
<?php 
    }
    function content_54e1867fe4c1b7_38055114($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/home/neoliam/public_html/tienda/tools/smarty/plugins/function.counter.php';
        }
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/neoliam/public_html/tienda/tools/smarty/plugins/modifier.replace.php';
        }
        ?>

<div class="leadin"></div>

<script type="text/javascript">
	id_language = Number(<?php 
        echo $_smarty_tpl->tpl_vars['current_id_lang']->value;
        ?>
);
	<?php 
        if (isset($_smarty_tpl->tpl_vars['tabs']->value) && count($_smarty_tpl->tpl_vars['tabs']->value)) {
            ?>
		var helper_tabs= <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value);
            ?>
;
		var unique_field_id = '<?php 
            echo $_smarty_tpl->tpl_vars['table']->value;
            ?>
_';
	<?php 
        }
        ?>
</script>

<?php 
        if (isset($_smarty_tpl->tpl_vars['table_bk']->value) && $_smarty_tpl->tpl_vars['table_bk']->value == $_smarty_tpl->tpl_vars['table']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'table_count'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1);
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk'];
        }
        ?>
<form action="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;token=<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
" id="<?php 
        if ($_smarty_tpl->tpl_vars['table']->value == null) {
            ?>
configuration_form<?php 
        } else {
            echo $_smarty_tpl->tpl_vars['table']->value;
            ?>
_form<?php 
        }
        if (isset(Smarty::$_smarty_vars['capture']['table_count']) && Smarty::$_smarty_vars['capture']['table_count']) {
            ?>
_<?php 
            echo intval(Smarty::$_smarty_vars['capture']['table_count']);
        }
        ?>
" method="post" enctype="multipart/form-data" class="form-horizontal">
	<?php 
        $_smarty_tpl->tpl_vars['categoryData'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['categoryData']->_loop = false;
        $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['option_list']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['categoryData']->key => $_smarty_tpl->tpl_vars['categoryData']->value) {
            $_smarty_tpl->tpl_vars['categoryData']->_loop = true;
            $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['categoryData']->key;
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['top'])) {
                echo $_smarty_tpl->tpl_vars['categoryData']->value['top'];
            }
            ?>
		<div class="panel <?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['class'])) {
                echo $_smarty_tpl->tpl_vars['categoryData']->value['class'];
            }
            ?>
" id="<?php 
            echo $_smarty_tpl->tpl_vars['table']->value;
            ?>
_fieldset_<?php 
            echo $_smarty_tpl->tpl_vars['category']->value;
            ?>
">
			
			<div class="panel-heading">
				<i class="<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['icon'])) {
                echo $_smarty_tpl->tpl_vars['categoryData']->value['icon'];
            } else {
                ?>
icon-cogs<?php 
            }
            ?>
"></i>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['title'])) {
                echo $_smarty_tpl->tpl_vars['categoryData']->value['title'];
            } else {
                echo smartyTranslate(array('s' => 'Options'), $_smarty_tpl);
            }
            ?>
			</div>

			

			<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['description']) && $_smarty_tpl->tpl_vars['categoryData']->value['description']) {
                ?>
				<div class="alert alert-info"><?php 
                echo $_smarty_tpl->tpl_vars['categoryData']->value['description'];
                ?>
</div>
			<?php 
            }
            ?>
			
			<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['info']) && $_smarty_tpl->tpl_vars['categoryData']->value['info']) {
                ?>
				<div><?php 
                echo $_smarty_tpl->tpl_vars['categoryData']->value['info'];
                ?>
</div>
			<?php 
            }
            ?>

			<?php 
            if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['use_multishop']->value) {
                ?>
			<div class="well clearfix">
				<label class="control-label col-lg-3">
					<i class="icon-sitemap"></i> <?php 
                echo smartyTranslate(array('s' => 'Multistore'), $_smarty_tpl);
                ?>

				</label>
				<div class="col-lg-9">
					<span class="switch prestashop-switch fixed-width-lg">
						<input type="radio" name="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
" id="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
_on" value="1" onclick="toggleAllMultishopDefaultValue($('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_fieldset_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
'), true)"/><label for="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
_on"><?php 
                echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                ?>
</label><input type="radio" name="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
" id="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
_off" value="0" checked="checked" onclick="toggleAllMultishopDefaultValue($('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_fieldset_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
'), false)"/><label for="<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_multishop_<?php 
                echo $_smarty_tpl->tpl_vars['category']->value;
                ?>
_off"><?php 
                echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                ?>
</label>
						<a class="slide-button btn"></a>
					</span>
					<div class="row">
						<div class="col-lg-12">
							<p class="help-block">
								<strong><?php 
                echo smartyTranslate(array('s' => 'Check / Uncheck all'), $_smarty_tpl);
                ?>
</strong>
								<?php 
                echo smartyTranslate(array('s' => '(If you are editing this page for several shops, some fields may be disabled. If you need to edit them, you will need to check the box for each field)'), $_smarty_tpl);
                ?>

							</p>
						</div>
					</div>
				</div>
			</div>
			<?php 
            }
            ?>

			<div class="form-wrapper">
			<?php 
            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['field']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['categoryData']->value['fields'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                $_smarty_tpl->tpl_vars['field']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key;
                ?>
					<?php 
                if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') {
                    ?>
						<input type="hidden" name="<?php 
                    echo $_smarty_tpl->tpl_vars['key']->value;
                    ?>
" value="<?php 
                    echo $_smarty_tpl->tpl_vars['field']->value['value'];
                    ?>
" />
					<?php 
                } else {
                    ?>
						<div class="form-group<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['form_group_class'])) {
                        ?>
 <?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['form_group_class'];
                    }
                    ?>
"<?php 
                    if (isset($_smarty_tpl->tpl_vars['tabs']->value) && isset($_smarty_tpl->tpl_vars['field']->value['tab'])) {
                        ?>
 data-tab-id="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['tab'];
                        ?>
"<?php 
                    }
                    ?>
>
							<div id="conf_id_<?php 
                    echo $_smarty_tpl->tpl_vars['key']->value;
                    ?>
"<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) {
                        ?>
 class="isInvisible"<?php 
                    }
                    ?>
>								
								
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['title']) && isset($_smarty_tpl->tpl_vars['field']->value['hint'])) {
                        ?>
										<label class="control-label col-lg-3<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['required']) && $_smarty_tpl->tpl_vars['field']->value['required'] && $_smarty_tpl->tpl_vars['field']->value['type'] != 'radio') {
                            ?>
 required<?php 
                        }
                        ?>
">
											<?php 
                        if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) {
                            ?>
											<input type="checkbox" name="multishopOverrideOption[<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
]" value="1"<?php 
                            if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) {
                                ?>
 checked="checked"<?php 
                            }
                            ?>
 onclick="toggleMultishopDefaultValue(this, '<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
')"/>
											<?php 
                        }
                        ?>
											<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="
												<?php 
                        if (is_array($_smarty_tpl->tpl_vars['field']->value['hint'])) {
                            ?>
													<?php 
                            $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['hint']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['field']->value['hint'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                                $_smarty_tpl->tpl_vars['hint']->_loop = true;
                                ?>
														<?php 
                                if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                                    ?>
															<?php 
                                    echo $_smarty_tpl->tpl_vars['hint']->value['text'];
                                    ?>

														<?php 
                                } else {
                                    ?>
															<?php 
                                    echo $_smarty_tpl->tpl_vars['hint']->value;
                                    ?>

														<?php 
                                }
                                ?>
													<?php 
                            }
                            ?>
												<?php 
                        } else {
                            ?>
													<?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['hint'];
                            ?>

												<?php 
                        }
                        ?>
											" data-html="true">
												<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['title'];
                        ?>

											</span>
										</label>
									<?php 
                    } elseif (isset($_smarty_tpl->tpl_vars['field']->value['title'])) {
                        ?>
										<label class="control-label col-lg-3">
											<?php 
                        if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) {
                            ?>
											<input type="checkbox" name="multishopOverrideOption[<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
]" value="1"<?php 
                            if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) {
                                ?>
 checked="checked"<?php 
                            }
                            ?>
 onclick="checkMultishopDefaultValue(this, '<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
')" />
											<?php 
                        }
                        ?>
											<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['title'];
                        ?>

										</label>
									<?php 
                    }
                    ?>
								
								

								
									<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'select') {
                        ?>
										<div class="col-lg-9">
											<?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['list']) {
                            ?>
												<select class="form-control fixed-width-xxl <?php 
                            if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {
                                echo $_smarty_tpl->tpl_vars['field']->value['class'];
                            }
                            ?>
" name="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
"<?php 
                            if (isset($_smarty_tpl->tpl_vars['field']->value['js'])) {
                                ?>
 onchange="<?php 
                                echo $_smarty_tpl->tpl_vars['field']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
 id="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {
                                ?>
 size="<?php 
                                echo $_smarty_tpl->tpl_vars['field']->value['size'];
                                ?>
"<?php 
                            }
                            ?>
>
													<?php 
                            $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['option']->_loop = false;
                            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['field']->value['list'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                $_smarty_tpl->tpl_vars['option']->_loop = true;
                                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['option']->key;
                                ?>
														<option value="<?php 
                                echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']];
                                ?>
"<?php 
                                if ($_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]) {
                                    ?>
 selected="selected"<?php 
                                }
                                ?>
><?php 
                                echo $_smarty_tpl->tpl_vars['option']->value['name'];
                                ?>
</option>
													<?php 
                            }
                            ?>
												</select>
											<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) {
                            ?>
												<?php 
                            echo $_smarty_tpl->tpl_vars['input']->value['empty_message'];
                            ?>

											<?php 
                        }
                        ?>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'bool') {
                        ?>
										<div class="col-lg-9">
											<span class="switch prestashop-switch fixed-width-lg">
												<input type="radio" name="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
" id="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
_on" value="1" <?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['value']) {
                            ?>
 checked="checked"<?php 
                        }
                        if (isset($_smarty_tpl->tpl_vars['field']->value['js']['on'])) {
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['js']['on'];
                        }
                        ?>
/><label for="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
_on" class="radioCheck"><?php 
                        echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                        ?>
</label><input type="radio" name="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
" id="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
_off" value="0" <?php 
                        if (!$_smarty_tpl->tpl_vars['field']->value['value']) {
                            ?>
 checked="checked"<?php 
                        }
                        if (isset($_smarty_tpl->tpl_vars['field']->value['js']['off'])) {
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['js']['off'];
                        }
                        ?>
/><label for="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
_off" class="radioCheck"><?php 
                        echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                        ?>
</label>
												<a class="slide-button btn"></a>
											</span>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'radio') {
                        ?>
										<div class="col-lg-9">
											<?php 
                        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['v']->_loop = false;
                        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['field']->value['choices'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                            $_smarty_tpl->tpl_vars['v']->_loop = true;
                            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                            ?>
												<p class="radio">
													<label for="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['k']->value;
                            ?>
"><input type="radio" name="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
" id="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
_<?php 
                            echo $_smarty_tpl->tpl_vars['k']->value;
                            ?>
" value="<?php 
                            echo $_smarty_tpl->tpl_vars['k']->value;
                            ?>
"<?php 
                            if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) {
                                ?>
 checked="checked"<?php 
                            }
                            if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value];
                            }
                            ?>
/><?php 
                            echo $_smarty_tpl->tpl_vars['v']->value;
                            ?>
</label>
												</p>
											<?php 
                        }
                        ?>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox') {
                        ?>
										<div class="col-lg-9">
											<?php 
                        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['v']->_loop = false;
                        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['field']->value['choices'];
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                            $_smarty_tpl->tpl_vars['v']->_loop = true;
                            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                            ?>
												<p class="checkbox">
													<label class="col-lg-3" for="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            echo $_smarty_tpl->tpl_vars['k']->value;
                            ?>
_on"><input type="checkbox" name="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            ?>
" id="<?php 
                            echo $_smarty_tpl->tpl_vars['key']->value;
                            echo $_smarty_tpl->tpl_vars['k']->value;
                            ?>
_on" value="<?php 
                            echo intval($_smarty_tpl->tpl_vars['k']->value);
                            ?>
"<?php 
                            if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) {
                                ?>
 checked="checked"<?php 
                            }
                            if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value];
                            }
                            ?>
/><?php 
                            echo $_smarty_tpl->tpl_vars['v']->value;
                            ?>
</label>
												</p>
											<?php 
                        }
                        ?>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'text') {
                        ?>
										<div class="col-lg-9"><?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
<div class="input-group"><?php 
                        }
                        ?>
											<input class="form-control <?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {
                            echo $_smarty_tpl->tpl_vars['field']->value['class'];
                        }
                        ?>
" type="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['type'];
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) {
                            ?>
 id="<?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['id'];
                            ?>
"<?php 
                        }
                        ?>
 size="<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {
                            echo intval($_smarty_tpl->tpl_vars['field']->value['size']);
                        } else {
                            ?>
5<?php 
                        }
                        ?>
" name="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" <?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) {
                            ?>
autocomplete="off"<?php 
                        }
                        ?>
/>
											<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
											<span class="input-group-addon">
												<?php 
                            echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']);
                            ?>

											</span>
											<?php 
                        }
                        ?>
											<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
</div><?php 
                        }
                        ?>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'password') {
                        ?>
										<div class="col-lg-9"><?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
<div class="input-group"><?php 
                        }
                        ?>
											<input type="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['type'];
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) {
                            ?>
 id="<?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['id'];
                            ?>
"<?php 
                        }
                        ?>
 size="<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {
                            echo intval($_smarty_tpl->tpl_vars['field']->value['size']);
                        } else {
                            ?>
5<?php 
                        }
                        ?>
" name="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
" value=""<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) {
                            ?>
 autocomplete="off"<?php 
                        }
                        ?>
 />
											<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
											<span class="input-group-addon">
												<?php 
                            echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']);
                            ?>

											</span>
											<?php 
                        }
                        ?>
											<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {
                            ?>
</div><?php 
                        }
                        ?>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') {
                        ?>
										<div class="col-lg-9">
											<textarea class="textarea-autosize" name=<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
 cols="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['cols'];
                        ?>
" rows="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['rows'];
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</textarea>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'file') {
                        ?>
										<div class="col-lg-9"><?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['file'];
                        ?>
</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'color') {
                        ?>
										<div class="col-lg-2">
											<div class="input-group">
												<input type="color" size="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['size'];
                        ?>
" data-hex="true" <?php 
                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                            ?>
class="<?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['class'];
                            ?>
" <?php 
                        } else {
                            ?>
class="color mColorPickerInput"<?php 
                        }
                        ?>
 name="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['name'];
                        ?>
" class="<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {
                            echo $_smarty_tpl->tpl_vars['field']->value['class'];
                        }
                        ?>
" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" />
											</div>
							            </div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'price') {
                        ?>
										<div class="col-lg-9">
											<div class="input-group fixed-width-lg">
												<span class="input-group-addon"><?php 
                        echo $_smarty_tpl->tpl_vars['currency_left_sign']->value;
                        echo $_smarty_tpl->tpl_vars['currency_right_sign']->value;
                        ?>
 <?php 
                        echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl);
                        ?>
</span>
												<input type="text" size="<?php 
                        if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {
                            echo intval($_smarty_tpl->tpl_vars['field']->value['size']);
                        } else {
                            ?>
5<?php 
                        }
                        ?>
" name="<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" />
											</div>
										</div>
									<?php 
                    } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') {
                        ?>
										<?php 
                        if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang') {
                            ?>
											<div class="col-lg-9">
												<div class="row">
												<?php 
                            $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['value']->_loop = false;
                            $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['field']->value['languages'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                $_smarty_tpl->tpl_vars['value']->_loop = true;
                                $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key;
                                ?>
													<?php 
                                if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) {
                                    ?>
													<div class="translatable-field lang-<?php 
                                    echo $_smarty_tpl->tpl_vars['id_lang']->value;
                                    ?>
" <?php 
                                    if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) {
                                        ?>
style="display:none;"<?php 
                                    }
                                    ?>
>
														<div class="col-lg-9">
													<?php 
                                } else {
                                    ?>
													<div class="col-lg-12">
													<?php 
                                }
                                ?>
															<input type="text"
																name="<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
_<?php 
                                echo $_smarty_tpl->tpl_vars['id_lang']->value;
                                ?>
"
																value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true);
                                ?>
"
																<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                    ?>
class="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                    ?>
"<?php 
                                }
                                ?>
															/>
													<?php 
                                if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) {
                                    ?>
														</div>
														<div class="col-lg-2">
															<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
																<?php 
                                    $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['language']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                        $_smarty_tpl->tpl_vars['language']->_loop = true;
                                        ?>
																	<?php 
                                        if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) {
                                            echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                        }
                                        ?>
																<?php 
                                    }
                                    ?>
																<span class="caret"></span>
															</button>
															<ul class="dropdown-menu">
																<?php 
                                    $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['language']->_loop = false;
                                    $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                        $_smarty_tpl->tpl_vars['language']->_loop = true;
                                        ?>
																<li>
																	<a href="javascript:hideOtherLanguage(<?php 
                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                        ?>
);"><?php 
                                        echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                        ?>
</a>
																</li>
																<?php 
                                    }
                                    ?>
															</ul>
														</div>
													</div>
													<?php 
                                } else {
                                    ?>
													</div>
													<?php 
                                }
                                ?>
												<?php 
                            }
                            ?>
												</div>
											</div>
										<?php 
                        } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang') {
                            ?>
											<div class="col-lg-9">
												<?php 
                            $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['value']->_loop = false;
                            $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable();
                            $_from = $_smarty_tpl->tpl_vars['field']->value['languages'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                $_smarty_tpl->tpl_vars['value']->_loop = true;
                                $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key;
                                ?>
													<div class="row translatable-field lang-<?php 
                                echo $_smarty_tpl->tpl_vars['id_lang']->value;
                                ?>
" <?php 
                                if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) {
                                    ?>
style="display:none;"<?php 
                                }
                                ?>
>
														<div id="<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
_<?php 
                                echo $_smarty_tpl->tpl_vars['id_lang']->value;
                                ?>
" class="col-lg-9" >
															<textarea class="textarea-autosize" name="<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
_<?php 
                                echo $_smarty_tpl->tpl_vars['id_lang']->value;
                                ?>
"><?php 
                                echo smarty_modifier_replace($_smarty_tpl->tpl_vars['value']->value, '\\r\\n', "\n");
                                ?>
</textarea>
														</div>
														<div class="col-lg-2">
															<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
																<?php 
                                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['language']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                                    ?>
																	<?php 
                                    if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) {
                                        echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                    }
                                    ?>
																<?php 
                                }
                                ?>
																<span class="caret"></span>
															</button>
															<ul class="dropdown-menu">
																<?php 
                                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['language']->_loop = false;
                                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                                    ?>
																<li>
																	<a href="javascript:hideOtherLanguage(<?php 
                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                    ?>
);"><?php 
                                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                    ?>
</a>
																</li>
																<?php 
                                }
                                ?>
															</ul>
														</div>

													</div>
												<?php 
                            }
                            ?>
												<script type="text/javascript">
													$(document).ready(function() {
														$(".textarea-autosize").autosize();
													});
												</script>
											</div>
										<?php 
                        } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') {
                            ?>
											<?php 
                            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['language']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['languages']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                $_smarty_tpl->tpl_vars['language']->_loop = true;
                                ?>
												<div id="<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
_<?php 
                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                ?>
" style="display: <?php 
                                if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['current_id_lang']->value) {
                                    ?>
block<?php 
                                } else {
                                    ?>
none<?php 
                                }
                                ?>
;" class="col-lg-9">
													<select name="<?php 
                                echo $_smarty_tpl->tpl_vars['key']->value;
                                ?>
_<?php 
                                echo mb_strtoupper($_smarty_tpl->tpl_vars['language']->value['iso_code'], 'UTF-8');
                                ?>
">
														<?php 
                                $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['v']->_loop = false;
                                $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['field']->value['list'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                                    $_smarty_tpl->tpl_vars['v']->_loop = true;
                                    $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                                    ?>
															<option value="<?php 
                                    if (isset($_smarty_tpl->tpl_vars['v']->value['cast'])) {
                                        echo $_smarty_tpl->tpl_vars['v']->value['cast'][$_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]];
                                    } else {
                                        echo $_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']];
                                    }
                                    ?>
"
																<?php 
                                    if ($_smarty_tpl->tpl_vars['field']->value['value'][$_smarty_tpl->tpl_vars['language']->value['id_lang']] == $_smarty_tpl->tpl_vars['v']->value['name']) {
                                        ?>
 selected="selected"<?php 
                                    }
                                    ?>
>
																<?php 
                                    echo $_smarty_tpl->tpl_vars['v']->value['name'];
                                    ?>

															</option>
														<?php 
                                }
                                ?>
													</select>
												</div>
											<?php 
                            }
                            ?>
										<?php 
                        }
                        ?>
									<?php 
                    }
                    ?>
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['desc']) && !empty($_smarty_tpl->tpl_vars['field']->value['desc'])) {
                        ?>
									<div class="col-lg-9 col-lg-offset-3">
										<div class="help-block">
											<?php 
                        if (is_array($_smarty_tpl->tpl_vars['field']->value['desc'])) {
                            ?>
												<?php 
                            $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['p']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['field']->value['desc'];
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                                $_smarty_tpl->tpl_vars['p']->_loop = true;
                                ?>
													<?php 
                                if (is_array($_smarty_tpl->tpl_vars['p']->value)) {
                                    ?>
														<span id="<?php 
                                    echo $_smarty_tpl->tpl_vars['p']->value['id'];
                                    ?>
"><?php 
                                    echo $_smarty_tpl->tpl_vars['p']->value['text'];
                                    ?>
</span><br />
													<?php 
                                } else {
                                    ?>
														<?php 
                                    echo $_smarty_tpl->tpl_vars['p']->value;
                                    ?>
<br />
													<?php 
                                }
                                ?>
												<?php 
                            }
                            ?>
											<?php 
                        } else {
                            ?>
												<?php 
                            echo $_smarty_tpl->tpl_vars['field']->value['desc'];
                            ?>

											<?php 
                        }
                        ?>
										</div>
									</div>
									<?php 
                    }
                    ?>
								
								<?php 
                    if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) {
                        ?>
								<div class="col-lg-9 col-lg-offset-3">
									<p class="alert alert-warning row-margin-top">
										<?php 
                        echo smartyTranslate(array('s' => 'You can\'t change the value of this configuration field in the context of this shop.'), $_smarty_tpl);
                        ?>

									</p>
								</div>
								<?php 
                    }
                    ?>
								
							</div>
						</div>
				<?php 
                }
                ?>
			<?php 
            }
            ?>
			</div><!-- /.form-wrapper -->

			<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['bottom'])) {
                echo $_smarty_tpl->tpl_vars['categoryData']->value['bottom'];
            }
            ?>
			
				<?php 
            if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) || isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) {
                ?>
					<div class="panel-footer">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) && !empty($_smarty_tpl->tpl_vars['categoryData']->value['submit'])) {
                    ?>
						<button type="<?php 
                    if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'])) {
                        echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'];
                    } else {
                        ?>
submit<?php 
                    }
                    ?>
" <?php 
                    if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'])) {
                        ?>
id="<?php 
                        echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'];
                        ?>
"<?php 
                    }
                    ?>
 class="btn btn-default pull-right" name="<?php 
                    if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'])) {
                        echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'];
                    } else {
                        ?>
submitOptions<?php 
                        echo $_smarty_tpl->tpl_vars['table']->value;
                    }
                    ?>
"><i class="process-icon-<?php 
                    if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'])) {
                        echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'];
                    } else {
                        ?>
save<?php 
                    }
                    ?>
"></i> <?php 
                    echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['title'];
                    ?>
</button>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['btn']->_loop = false;
                    $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['categoryData']->value['buttons'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                        $_smarty_tpl->tpl_vars['btn']->_loop = true;
                        $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                        ?>
						<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['href']) && trim($_smarty_tpl->tpl_vars['btn']->value['href']) != '') {
                            ?>
							<a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="btn btn-default<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</a>
						<?php 
                        } else {
                            ?>
							<button type="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['type'];
                            } else {
                                ?>
button<?php 
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            } else {
                                ?>
btn btn-default<?php 
                            }
                            ?>
" name="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['name'];
                            } else {
                                ?>
submitOptions<?php 
                                echo $_smarty_tpl->tpl_vars['table']->value;
                            }
                            ?>
"<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</button>
						<?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						<?php 
                }
                ?>
					</div>
				<?php 
            }
            ?>
			
		</div>
	<?php 
        }
        ?>
	<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminOptions'), $_smarty_tpl);
        ?>

	<?php 
        if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {
            ?>
		<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);
            ?>
Options<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
		<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

	<?php 
        } elseif (isset($_GET['controller'])) {
            ?>
		<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo htmlentities(ucfirst($_GET['controller']));
            ?>
Options<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
		<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

	<?php 
        }
        ?>
</form>


<?php 
    }
    function content_55d6f1bb106229_01490594($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
        }
        if (isset($_smarty_tpl->tpl_vars['fields']->value['title'])) {
            ?>
<h3><?php 
            echo $_smarty_tpl->tpl_vars['fields']->value['title'];
            ?>
</h3><?php 
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['tabs']->value) && count($_smarty_tpl->tpl_vars['tabs']->value)) {
            ?>
<script type="text/javascript">
	var helper_tabs = <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value);
            ?>
;
	var unique_field_id = '';
</script>
<?php 
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['identifier_bk']->value) && $_smarty_tpl->tpl_vars['identifier_bk']->value == $_smarty_tpl->tpl_vars['identifier']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('identifier_count', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'identifier_count'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        $_smarty_tpl->tpl_vars['identifier_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['identifier']->value, null, 1);
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['identifier_bk'] = clone $_smarty_tpl->tpl_vars['identifier_bk'];
        }
        if (isset($_smarty_tpl->tpl_vars['table_bk']->value) && $_smarty_tpl->tpl_vars['table_bk']->value == $_smarty_tpl->tpl_vars['table']->value) {
            $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'table_count'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
        $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1);
        if ($_smarty_tpl->parent != null) {
            $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk'];
        }
        ?>
<form id="<?php 
        if (isset($_smarty_tpl->tpl_vars['fields']->value['form']['form']['id_form'])) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['fields']->value['form']['form']['id_form'], ENT_QUOTES, 'UTF-8', true);
        } else {
            if ($_smarty_tpl->tpl_vars['table']->value == null) {
                ?>
configuration_form<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form<?php 
            }
            if (isset(Smarty::$_smarty_vars['capture']['table_count']) && Smarty::$_smarty_vars['capture']['table_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['table_count']);
            }
        }
        ?>
" class="defaultForm form-horizontal<?php 
        if (isset($_smarty_tpl->tpl_vars['name_controller']->value) && $_smarty_tpl->tpl_vars['name_controller']->value) {
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['name_controller']->value;
        }
        ?>
"<?php 
        if (isset($_smarty_tpl->tpl_vars['current']->value) && $_smarty_tpl->tpl_vars['current']->value) {
            ?>
 action="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);
            if (isset($_smarty_tpl->tpl_vars['token']->value) && $_smarty_tpl->tpl_vars['token']->value) {
                ?>
&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
            }
            ?>
"<?php 
        }
        ?>
 method="post" enctype="multipart/form-data"<?php 
        if (isset($_smarty_tpl->tpl_vars['style']->value)) {
            ?>
 style="<?php 
            echo $_smarty_tpl->tpl_vars['style']->value;
            ?>
"<?php 
        }
        ?>
 novalidate>
	<?php 
        if ($_smarty_tpl->tpl_vars['form_id']->value) {
            ?>
		<input type="hidden" name="<?php 
            echo $_smarty_tpl->tpl_vars['identifier']->value;
            ?>
" id="<?php 
            echo $_smarty_tpl->tpl_vars['identifier']->value;
            if (isset(Smarty::$_smarty_vars['capture']['identifier_count']) && Smarty::$_smarty_vars['capture']['identifier_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['identifier_count']);
            }
            ?>
" value="<?php 
            echo $_smarty_tpl->tpl_vars['form_id']->value;
            ?>
" />
	<?php 
        }
        ?>
	<?php 
        if (!empty($_smarty_tpl->tpl_vars['submit_action']->value)) {
            ?>
		<input type="hidden" name="<?php 
            echo $_smarty_tpl->tpl_vars['submit_action']->value;
            ?>
" value="1" />
	<?php 
        }
        ?>
	<?php 
        $_smarty_tpl->tpl_vars['fieldset'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['fieldset']->_loop = false;
        $_smarty_tpl->tpl_vars['f'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['fields']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['fieldset']->key => $_smarty_tpl->tpl_vars['fieldset']->value) {
            $_smarty_tpl->tpl_vars['fieldset']->_loop = true;
            $_smarty_tpl->tpl_vars['f']->value = $_smarty_tpl->tpl_vars['fieldset']->key;
            ?>
		
		<?php 
            $_smarty_tpl->_capture_stack[0][] = array('fieldset_name', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'fieldset_name'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
		<div class="panel" id="fieldset_<?php 
            echo $_smarty_tpl->tpl_vars['f']->value;
            if (isset(Smarty::$_smarty_vars['capture']['identifier_count']) && Smarty::$_smarty_vars['capture']['identifier_count']) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['identifier_count']);
            }
            if (Smarty::$_smarty_vars['capture']['fieldset_name'] > 1) {
                ?>
_<?php 
                echo intval(Smarty::$_smarty_vars['capture']['fieldset_name'] - 1);
            }
            ?>
">
			<?php 
            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['field']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['fieldset']->value['form'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                $_smarty_tpl->tpl_vars['field']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key;
                ?>
				<?php 
                if ($_smarty_tpl->tpl_vars['key']->value == 'legend') {
                    ?>
					
	<h3>
		<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['image'])) {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['image'];
                        ?>
" alt="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['title'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" /><?php 
                    }
                    ?>
		<?php 
                    if (isset($_smarty_tpl->tpl_vars['field']->value['icon'])) {
                        ?>
<i class="<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value['icon'];
                        ?>
"></i><?php 
                    }
                    ?>
		<?php 
                    echo $_smarty_tpl->tpl_vars['field']->value['title'];
                    ?>

		<span class="panel-heading-action">
			<?php 
                    $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['btn']->_loop = false;
                    $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                        $_smarty_tpl->tpl_vars['btn']->_loop = true;
                        $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                        ?>
				<?php 
                        if ($_smarty_tpl->tpl_vars['k']->value != 'modules-list' && $_smarty_tpl->tpl_vars['k']->value != 'back') {
                            ?>
					<a id="desc-<?php 
                            echo $_smarty_tpl->tpl_vars['table']->value;
                            ?>
-<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                            } else {
                                echo $_smarty_tpl->tpl_vars['k']->value;
                            }
                            ?>
" class="list-toolbar-btn" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {
                                ?>
href="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['href'];
                                ?>
"<?php 
                            }
                            ?>
 <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['target']) && $_smarty_tpl->tpl_vars['btn']->value['target']) {
                                ?>
target="_blank"<?php 
                            }
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
>
						<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php 
                            echo smartyTranslate(array('s' => $_smarty_tpl->tpl_vars['btn']->value['desc']), $_smarty_tpl);
                            ?>
" data-html="true">
							<i class="process-icon-<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                            } else {
                                echo $_smarty_tpl->tpl_vars['k']->value;
                            }
                            ?>
 <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" ></i>
						</span>
					</a>
				<?php 
                        }
                        ?>
			<?php 
                    }
                    ?>
			</span>
	</h3>

				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'description' && $_smarty_tpl->tpl_vars['field']->value) {
                    ?>
					<div class="alert alert-info"><?php 
                    echo $_smarty_tpl->tpl_vars['field']->value;
                    ?>
</div>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'input') {
                    ?>
					<div class="form-wrapper">
					<?php 
                    $_smarty_tpl->tpl_vars['input'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['input']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['field']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['input']->key => $_smarty_tpl->tpl_vars['input']->value) {
                        $_smarty_tpl->tpl_vars['input']->_loop = true;
                        ?>
						
	<?php 
                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'cms_blocks') {
                            ?>
		<div class="row">
			<script type="text/javascript">
				var come_from = '<?php 
                            echo $_smarty_tpl->tpl_vars['name_controller']->value;
                            ?>
';
				var token = '<?php 
                            echo $_smarty_tpl->tpl_vars['token']->value;
                            ?>
';
				var alternate = 1;
			</script>
			<?php 
                            $_smarty_tpl->tpl_vars['cms_blocks_positions'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['values'], null, 0);
                            ?>
			<?php 
                            if (isset($_smarty_tpl->tpl_vars['cms_blocks_positions']->value) && count($_smarty_tpl->tpl_vars['cms_blocks_positions']->value) > 0) {
                                ?>
				<?php 
                                $_smarty_tpl->tpl_vars['cms_blocks_position'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['cms_blocks_position']->_loop = false;
                                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['cms_blocks_positions']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['cms_blocks_position']->key => $_smarty_tpl->tpl_vars['cms_blocks_position']->value) {
                                    $_smarty_tpl->tpl_vars['cms_blocks_position']->_loop = true;
                                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['cms_blocks_position']->key;
                                    ?>
					<div class="col-lg-6">
						<div class="panel">
							<div class="panel-heading">
								<?php 
                                    if ($_smarty_tpl->tpl_vars['key']->value == 0) {
                                        ?>
									<?php 
                                        echo smartyTranslate(array('s' => 'Left blocks', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>

								<?php 
                                    } else {
                                        ?>
									<?php 
                                        echo smartyTranslate(array('s' => 'Right blocks', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>

								<?php 
                                    }
                                    ?>
							</div>
							<table class="table tableDnD cms" id="cms_block_<?php 
                                    echo $_smarty_tpl->tpl_vars['key']->value % 2;
                                    ?>
">
								<thead>
									<tr class="nodrag nodrop">
										<th><?php 
                                    echo smartyTranslate(array('s' => 'ID', 'mod' => 'blockcms'), $_smarty_tpl);
                                    ?>
</th>
										<th><?php 
                                    echo smartyTranslate(array('s' => 'Name of the block', 'mod' => 'blockcms'), $_smarty_tpl);
                                    ?>
</th>
										<th><?php 
                                    echo smartyTranslate(array('s' => 'Category name', 'mod' => 'blockcms'), $_smarty_tpl);
                                    ?>
</th>
										<th><?php 
                                    echo smartyTranslate(array('s' => 'Position', 'mod' => 'blockcms'), $_smarty_tpl);
                                    ?>
</th>
										<th></th>
									</tr>
								</thead>
								<tbody>
									<?php 
                                    $_smarty_tpl->tpl_vars['cms_block'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['cms_block']->_loop = false;
                                    $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                    $_from = $_smarty_tpl->tpl_vars['cms_blocks_position']->value;
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['cms_block']->key => $_smarty_tpl->tpl_vars['cms_block']->value) {
                                        $_smarty_tpl->tpl_vars['cms_block']->_loop = true;
                                        $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['cms_block']->key;
                                        ?>
										<tr class="<?php 
                                        if ($_smarty_tpl->tpl_vars['key']->value % 2) {
                                            ?>
alt_row<?php 
                                        } else {
                                            ?>
not_alt_row<?php 
                                        }
                                        ?>
 row_hover" id="tr_<?php 
                                        echo $_smarty_tpl->tpl_vars['key']->value % 2;
                                        ?>
_<?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['id_cms_block'];
                                        ?>
_<?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['position'];
                                        ?>
">
											<td><?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['id_cms_block'];
                                        ?>
</td>
											<td><?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['block_name'];
                                        ?>
</td>
											<td><?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['category_name'];
                                        ?>
</td>
											<td class="center pointer dragHandle" id="td_<?php 
                                        echo $_smarty_tpl->tpl_vars['key']->value % 2;
                                        ?>
_<?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['id_cms_block'];
                                        ?>
">
												<div class="dragGroup">
													<div class="positions">
														<?php 
                                        echo $_smarty_tpl->tpl_vars['cms_block']->value['position'] + 1;
                                        ?>

													</div>
												</div>
											</td>
											<td>
												<div class="btn-group-action">
													<div class="btn-group pull-right">
														<a class="btn btn-default" href="<?php 
                                        echo $_smarty_tpl->tpl_vars['current']->value;
                                        ?>
&amp;token=<?php 
                                        echo $_smarty_tpl->tpl_vars['token']->value;
                                        ?>
&amp;editBlockCMS&amp;id_cms_block=<?php 
                                        echo (int) $_smarty_tpl->tpl_vars['cms_block']->value['id_cms_block'];
                                        ?>
" title="<?php 
                                        echo smartyTranslate(array('s' => 'Edit', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>
">
															<i class="icon-edit"></i> <?php 
                                        echo smartyTranslate(array('s' => 'Edit', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>

														</a>
														<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
															<i class="icon-caret-down"></i>&nbsp;
														</button>
														<ul class="dropdown-menu">
														<li>
															<a href="<?php 
                                        echo $_smarty_tpl->tpl_vars['current']->value;
                                        ?>
&amp;token=<?php 
                                        echo $_smarty_tpl->tpl_vars['token']->value;
                                        ?>
&amp;deleteBlockCMS&amp;id_cms_block=<?php 
                                        echo (int) $_smarty_tpl->tpl_vars['cms_block']->value['id_cms_block'];
                                        ?>
" title="<?php 
                                        echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>
">
																<i class="icon-trash"></i> <?php 
                                        echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcms'), $_smarty_tpl);
                                        ?>

															</a>
														</li>
														</ul>
													</div>
												</div>
											</td>
										</tr>
									<?php 
                                    }
                                    ?>
								</tbody>
							</table>
						</div>
					</div>
				<?php 
                                }
                                ?>
			<?php 
                            }
                            ?>
		</div>

	<?php 
                        } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'cms_pages') {
                            ?>

		<?php 
                            $_smarty_tpl->tpl_vars['cms'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['values'], null, 0);
                            ?>
		<?php 
                            if (isset($_smarty_tpl->tpl_vars['cms']->value) && count($_smarty_tpl->tpl_vars['cms']->value) > 0) {
                                ?>
			<div class="row">
				<div class="col-lg-9 col-lg-offset-3">
					<div class="panel">
						<div class="panel-heading">
							<?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['label'];
                                ?>

						</div>
						<table class="table">
							<thead>
								<tr>
									<th>
										<input type="checkbox" name="checkme" id="checkme" class="noborder" onclick="checkDelBoxes(this.form, '<?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                ?>
', this.checked)" />
									</th>
									<th><?php 
                                echo smartyTranslate(array('s' => 'ID', 'mod' => 'blockcms'), $_smarty_tpl);
                                ?>
</th>
									<th><?php 
                                echo smartyTranslate(array('s' => 'Name', 'mod' => 'blockcms'), $_smarty_tpl);
                                ?>
</th>
								</tr>
							</thead>
							<tbody>
								<?php 
                                $_smarty_tpl->tpl_vars['cms_category'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['cms_category']->_loop = false;
                                $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['cms']->value;
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['cms_category']->key => $_smarty_tpl->tpl_vars['cms_category']->value) {
                                    $_smarty_tpl->tpl_vars['cms_category']->_loop = true;
                                    $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['cms_category']->key;
                                    ?>
									<tr <?php 
                                    if ($_smarty_tpl->tpl_vars['key']->value % 2) {
                                        ?>
class="alt_row"<?php 
                                    }
                                    ?>
>
										<td>
											<?php 
                                    $_smarty_tpl->tpl_vars['id_checkbox'] = new Smarty_variable(1 . '_' . $_smarty_tpl->tpl_vars['cms_category']->value['id_cms_category'], null, 0);
                                    ?>
											<input type="checkbox" class="cmsBox" name="<?php 
                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                    ?>
" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                    ?>
" value="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                    ?>
" <?php 
                                    if (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value])) {
                                        ?>
checked="checked"<?php 
                                    }
                                    ?>
 />
										</td>
										<td>
											<?php 
                                    echo $_smarty_tpl->tpl_vars['cms_category']->value['id_cms_category'];
                                    ?>

										</td>
										<td>
											<label class="control-label" for="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                    ?>
">
												<?php 
                                    if ($_smarty_tpl->tpl_vars['cms_category']->value['level_depth'] > 0) {
                                        ?>
													<?php 
                                        echo str_repeat('- ', $_smarty_tpl->tpl_vars['cms_category']->value['level_depth'] - 1);
                                        ?>

												<?php 
                                    }
                                    ?>
												<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_category']->value['name'], ENT_QUOTES, 'UTF-8', true);
                                    ?>

											</label>
										</td>
									</tr>
									<?php 
                                    $_smarty_tpl->tpl_vars['cms_page'] = new Smarty_Variable();
                                    $_smarty_tpl->tpl_vars['cms_page']->_loop = false;
                                    $_smarty_tpl->tpl_vars['subkey'] = new Smarty_Variable();
                                    $_from = $_smarty_tpl->tpl_vars['cms_category']->value['cms_pages'];
                                    if (!is_array($_from) && !is_object($_from)) {
                                        settype($_from, 'array');
                                    }
                                    foreach ($_from as $_smarty_tpl->tpl_vars['cms_page']->key => $_smarty_tpl->tpl_vars['cms_page']->value) {
                                        $_smarty_tpl->tpl_vars['cms_page']->_loop = true;
                                        $_smarty_tpl->tpl_vars['subkey']->value = $_smarty_tpl->tpl_vars['cms_page']->key;
                                        ?>
										<tr class="subitem<?php 
                                        if (($_smarty_tpl->tpl_vars['subkey']->value + $_smarty_tpl->tpl_vars['key']->value - 1) % 2) {
                                            ?>
 alt_row<?php 
                                        }
                                        ?>
">
											<td>
												<?php 
                                        $_smarty_tpl->tpl_vars['id_checkbox'] = new Smarty_variable(0 . '_' . $_smarty_tpl->tpl_vars['cms_page']->value['id_cms'], null, 0);
                                        ?>
												<input type="checkbox" class="cmsBox" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
" value="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
" <?php 
                                        if (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value])) {
                                            ?>
checked="checked"<?php 
                                        }
                                        ?>
 />
											</td>
											<td>
												<?php 
                                        echo $_smarty_tpl->tpl_vars['cms_page']->value['id_cms'];
                                        ?>

											</td>
											<td>
												<label class="control-label" for="<?php 
                                        echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                        ?>
">
													<?php 
                                        echo str_repeat('- ', $_smarty_tpl->tpl_vars['cms_category']->value['level_depth']) . $_smarty_tpl->tpl_vars['cms_page']->value['meta_title'];
                                        ?>

												</label>
											</td>
										</tr>
									<?php 
                                    }
                                    ?>
								<?php 
                                }
                                ?>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<?php 
                            } else {
                                ?>
			<p><?php 
                                echo smartyTranslate(array('s' => 'No pages have been created.', 'mod' => 'blockcms'), $_smarty_tpl);
                                ?>
</p>
		<?php 
                            }
                            ?>
	<?php 
                        } else {
                            ?>
		
						<div class="form-group<?php 
                            if (isset($_smarty_tpl->tpl_vars['input']->value['form_group_class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['form_group_class'];
                            }
                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'hidden') {
                                ?>
 hide<?php 
                            }
                            ?>
"<?php 
                            if ($_smarty_tpl->tpl_vars['input']->value['name'] == 'id_state') {
                                ?>
 id="contains_states"<?php 
                                if (!$_smarty_tpl->tpl_vars['contains_states']->value) {
                                    ?>
 style="display:none;"<?php 
                                }
                            }
                            if (isset($_smarty_tpl->tpl_vars['tabs']->value) && isset($_smarty_tpl->tpl_vars['input']->value['tab'])) {
                                ?>
 data-tab-id="<?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['tab'];
                                ?>
"<?php 
                            }
                            ?>
>
						<?php 
                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'hidden') {
                                ?>
							<input type="hidden" name="<?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                ?>
" id="<?php 
                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                ?>
" value="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                ?>
" />
						<?php 
                            } else {
                                ?>
							
	<?php 
                                if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'cms_blocks') {
                                    ?>
		
	<?php 
                                } else {
                                    ?>
		
								<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['label'])) {
                                        ?>
									<label class="control-label col-lg-3<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required'] && $_smarty_tpl->tpl_vars['input']->value['type'] != 'radio') {
                                            ?>
 required<?php 
                                        }
                                        ?>
">
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                            ?>
										<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="<?php 
                                            if (is_array($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                                ?>
													<?php 
                                                $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['hint']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['input']->value['hint'];
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                                                    $_smarty_tpl->tpl_vars['hint']->_loop = true;
                                                    ?>
														<?php 
                                                    if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                                                        ?>
															<?php 
                                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value['text'], ENT_QUOTES, 'UTF-8', true);
                                                        ?>

														<?php 
                                                    } else {
                                                        ?>
															<?php 
                                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['hint']->value, ENT_QUOTES, 'UTF-8', true);
                                                        ?>

														<?php 
                                                    }
                                                    ?>
													<?php 
                                                }
                                                ?>
												<?php 
                                            } else {
                                                ?>
													<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['hint'], ENT_QUOTES, 'UTF-8', true);
                                                ?>

												<?php 
                                            }
                                            ?>
">
										<?php 
                                        }
                                        ?>
										<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['label'];
                                        ?>

										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['hint'])) {
                                            ?>
										</span>
										<?php 
                                        }
                                        ?>
									</label>
								<?php 
                                    }
                                    ?>
							
	<?php 
                                }
                                ?>


							
								<div class="col-lg-<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['col'])) {
                                    echo intval($_smarty_tpl->tpl_vars['input']->value['col']);
                                } else {
                                    ?>
9<?php 
                                }
                                ?>
 <?php 
                                if (!isset($_smarty_tpl->tpl_vars['input']->value['label'])) {
                                    ?>
col-lg-offset-3<?php 
                                }
                                ?>
">
								
	<?php 
                                if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'select_category') {
                                    ?>
		<?php 
                                    if (!function_exists('smarty_template_function_render_select')) {
                                        function smarty_template_function_render_select($_smarty_tpl, $params)
                                        {
                                            $saved_tpl_vars = $_smarty_tpl->tpl_vars;
                                            foreach ($_smarty_tpl->smarty->template_functions['render_select']['parameter'] as $key => $value) {
                                                $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);
                                            }
                                            foreach ($params as $key => $value) {
                                                $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);
                                            }
                                            ?>
			<?php 
                                            $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['item']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['items']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                                                $_smarty_tpl->tpl_vars['item']->_loop = true;
                                                ?>
				<?php 
                                                if (isset($_smarty_tpl->tpl_vars['item']->value['id_cms_category'])) {
                                                    ?>
					<option id="category_<?php 
                                                    echo $_smarty_tpl->tpl_vars['item']->value['id_cms_category'];
                                                    ?>
" value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['item']->value['id_cms_category'];
                                                    ?>
"
						<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['fields_value']->value['id_category']) && $_smarty_tpl->tpl_vars['item']->value['id_cms_category'] == $_smarty_tpl->tpl_vars['fields_value']->value['id_category']) {
                                                        ?>
							selected
						<?php 
                                                    }
                                                    ?>
 >
						<?php 
                                                    echo str_repeat('-', $_smarty_tpl->tpl_vars['level']->value) . $_smarty_tpl->tpl_vars['item']->value['name'];
                                                    ?>

					</option>
					<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['item']->value['sub_categories']) && count($_smarty_tpl->tpl_vars['item']->value['sub_categories']) > 0) {
                                                        ?>
						<?php 
                                                        smarty_template_function_render_select($_smarty_tpl, array('items' => $_smarty_tpl->tpl_vars['item']->value['sub_categories'], 'level' => $_smarty_tpl->tpl_vars['level']->value + 1));
                                                        ?>

					<?php 
                                                    }
                                                    ?>
				<?php 
                                                }
                                                ?>
			<?php 
                                            }
                                            ?>
		<?php 
                                            $_smarty_tpl->tpl_vars = $saved_tpl_vars;
                                            foreach (Smarty::$global_tpl_vars as $key => $value) {
                                                if (!isset($_smarty_tpl->tpl_vars[$key])) {
                                                    $_smarty_tpl->tpl_vars[$key] = $value;
                                                }
                                            }
                                        }
                                    }
                                    ?>

		<?php 
                                    if (isset($_smarty_tpl->tpl_vars['input']->value['options']['query']) && count($_smarty_tpl->tpl_vars['input']->value['options']['query']) > 0) {
                                        ?>
			<?php 
                                        $_smarty_tpl->tpl_vars['categories'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['options']['query'], null, 0);
                                        ?>
			<select class="form-control fixed-width-xl" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
">
				<?php 
                                        smarty_template_function_render_select($_smarty_tpl, array('items' => $_smarty_tpl->tpl_vars['categories']->value));
                                        ?>

			</select>
		<?php 
                                    }
                                    ?>
	<?php 
                                } else {
                                    ?>
		
								<?php 
                                    if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'text' || $_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['lang']) && $_smarty_tpl->tpl_vars['input']->value['lang']) {
                                            ?>
									<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
									<div class="form-group">
									<?php 
                                            }
                                            ?>
									<?php 
                                            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['language']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                ?>
										<?php 
                                                $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']], null, 0);
                                                ?>
										<?php 
                                                if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                    ?>
										<div class="translatable-field lang-<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    ?>
" <?php 
                                                    if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] != $_smarty_tpl->tpl_vars['defaultFormLanguage']->value) {
                                                        ?>
style="display:none"<?php 
                                                    }
                                                    ?>
>
											<div class="col-lg-9">
										<?php 
                                                }
                                                ?>
												<?php 
                                                if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                    ?>
													
														<script type="text/javascript">
															$().ready(function () {
																var input_id = '<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    } else {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    }
                                                    ?>
';
																$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
                                                    echo smartyTranslate(array('s' => 'Add tag', 'js' => 1), $_smarty_tpl);
                                                    ?>
'});
																$('#<?php 
                                                    echo $_smarty_tpl->tpl_vars['table']->value;
                                                    ?>
_form').submit( function() {
																	$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
																});
															});
														</script>
													
												<?php 
                                                }
                                                ?>
												<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                    ?>
												<div class="input-group<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                        ?>
 <?php 
                                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                    }
                                                    ?>
">
												<?php 
                                                }
                                                ?>
												<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                    ?>
												<span id="<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    } else {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    }
                                                    ?>
_counter" class="input-group-addon">
													<span class="text-count-down"><?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                    ?>
</span>
												</span>
												<?php 
                                                }
                                                ?>
												<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['prefix'])) {
                                                    ?>
													<span class="input-group-addon">
													  <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['prefix'];
                                                    ?>

													</span>
													<?php 
                                                }
                                                ?>
												<input type="text"
													id="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                    ?>
_<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                }
                                                ?>
"
													name="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                ?>
"
													class="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                }
                                                if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                    ?>
 tagify<?php 
                                                }
                                                ?>
"
													value="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                                    echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                                } else {
                                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                                }
                                                ?>
"
													onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                                    ?>
 size="<?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                                    ?>
"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                    ?>
 data-maxchar="<?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                    ?>
"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                                    ?>
 maxlength="<?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                                    ?>
"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                                    ?>
 readonly="readonly"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                                    ?>
 disabled="disabled"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                                    ?>
 autocomplete="off"<?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                                    ?>
 required="required" <?php 
                                                }
                                                ?>
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                                    ?>
 placeholder="<?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                                    ?>
"<?php 
                                                }
                                                ?>
 />
													<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                    ?>
													<span class="input-group-addon">
													  <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                                    ?>

													</span>
													<?php 
                                                }
                                                ?>
												<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                    ?>
												</div>
												<?php 
                                                }
                                                ?>
										<?php 
                                                if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                    ?>
											</div>
											<div class="col-lg-2">
												<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
													<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                                    ?>

													<i class="icon-caret-down"></i>
												</button>
												<ul class="dropdown-menu">
													<?php 
                                                    $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars['language']->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                        $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                        ?>
													<li><a href="javascript:hideOtherLanguage(<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                        ?>
);" tabindex="-1"><?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                                        ?>
</a></li>
													<?php 
                                                    }
                                                    ?>
												</ul>
											</div>
										</div>
										<?php 
                                                }
                                                ?>
									<?php 
                                            }
                                            ?>
									<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
									<script type="text/javascript">
									function countDown($source, $target) {
										var max = $source.attr("data-maxchar");
										$target.html(max-$source.val().length);

										$source.keyup(function(){
											$target.html(max-$source.val().length);
										});
									}

									$(document).ready(function(){
									<?php 
                                                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['language']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                    ?>
										countDown($("#<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    } else {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    }
                                                    ?>
"), $("#<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    } else {
                                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                        ?>
_<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    }
                                                    ?>
_counter"));
									<?php 
                                                }
                                                ?>
									});
									</script>
									<?php 
                                            }
                                            ?>
									<?php 
                                            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                ?>
									</div>
									<?php 
                                            }
                                            ?>
									<?php 
                                        } else {
                                            ?>
										<?php 
                                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                ?>
											
											<script type="text/javascript">
												$().ready(function () {
													var input_id = '<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                }
                                                ?>
';
													$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
                                                echo smartyTranslate(array('s' => 'Add tag'), $_smarty_tpl);
                                                ?>
'});
													$('#<?php 
                                                echo $_smarty_tpl->tpl_vars['table']->value;
                                                ?>
_form').submit( function() {
														$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
													});
												});
											</script>
											
										<?php 
                                            }
                                            ?>
										<?php 
                                            $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], null, 0);
                                            ?>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
										<div class="input-group<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    ?>
 <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                }
                                                ?>
">
										<?php 
                                            }
                                            ?>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
										<span id="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                }
                                                ?>
_counter" class="input-group-addon"><span class="text-count-down"><?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                ?>
</span></span>
										<?php 
                                            }
                                            ?>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['prefix'])) {
                                                ?>
										<span class="input-group-addon">
										  <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['prefix'];
                                                ?>

										</span>
										<?php 
                                            }
                                            ?>
										<input type="text"
											name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
"
											id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
"
											value="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                                echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                            } else {
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                            }
                                            ?>
"
											class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                                ?>
 tagify<?php 
                                            }
                                            ?>
"
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                                ?>
 size="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                                ?>
"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
 data-maxchar="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                                ?>
"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                                ?>
 maxlength="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                                ?>
"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                                ?>
 readonly="readonly"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                                ?>
 disabled="disabled"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                                ?>
 autocomplete="off"<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                                ?>
 required="required" <?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                                ?>
 placeholder="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                                ?>
"<?php 
                                            }
                                            ?>
											/>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
										<span class="input-group-addon">
										  <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                                ?>

										</span>
										<?php 
                                            }
                                            ?>

										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar']) || isset($_smarty_tpl->tpl_vars['input']->value['prefix']) || isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                                ?>
										</div>
										<?php 
                                            }
                                            ?>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                                ?>
										<script type="text/javascript">
										function countDown($source, $target) {
											var max = $source.attr("data-maxchar");
											$target.html(max-$source.val().length);

											$source.keyup(function(){
												$target.html(max-$source.val().length);
											});
										}
										$(document).ready(function(){
											countDown($("#<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                }
                                                ?>
"), $("#<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                                } else {
                                                    echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                }
                                                ?>
_counter"));
										});
										</script>
										<?php 
                                            }
                                            ?>
									<?php 
                                        }
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'textbutton') {
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['value_text'] = new Smarty_variable($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], null, 0);
                                        ?>
									<div class="row">
										<div class="col-lg-9">
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
										<div class="input-group">
											<span id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
_counter" class="input-group-addon">
												<span class="text-count-down"><?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                            ?>
</span>
											</span>
										<?php 
                                        }
                                        ?>
										<input type="text"
											name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
											id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"
											value="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['string_format']) && $_smarty_tpl->tpl_vars['input']->value['string_format']) {
                                            echo htmlspecialchars(sprintf($_smarty_tpl->tpl_vars['input']->value['string_format'], $_smarty_tpl->tpl_vars['value_text']->value), ENT_QUOTES, 'UTF-8', true);
                                        } else {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['value_text']->value, ENT_QUOTES, 'UTF-8', true);
                                        }
                                        ?>
"
											class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        if ($_smarty_tpl->tpl_vars['input']->value['type'] == 'tags') {
                                            ?>
 tagify<?php 
                                        }
                                        ?>
"
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                            ?>
 size="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['size'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
 data-maxchar="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxchar'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxlength'])) {
                                            ?>
 maxlength="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['maxlength'];
                                            ?>
"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['readonly']) && $_smarty_tpl->tpl_vars['input']->value['readonly']) {
                                            ?>
 readonly="readonly"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                            ?>
 disabled="disabled"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                            ?>
 autocomplete="off"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['placeholder']) && $_smarty_tpl->tpl_vars['input']->value['placeholder']) {
                                            ?>
 placeholder="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['placeholder'];
                                            ?>
"<?php 
                                        }
                                        ?>
											/>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['suffix'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['suffix'];
                                        }
                                        ?>
										<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
										</div>
										<?php 
                                        }
                                        ?>
										</div>
										<div class="col-lg-2">
											<button type="button" class="btn btn-default<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['button']['attributes']['class'])) {
                                            ?>
 <?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['button']['attributes']['class'];
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['button']['class'])) {
                                            ?>
 <?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['button']['class'];
                                        }
                                        ?>
"
												<?php 
                                        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['value']->_loop = false;
                                        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['button']['attributes'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                            $_smarty_tpl->tpl_vars['value']->_loop = true;
                                            $_smarty_tpl->tpl_vars['name']->value = $_smarty_tpl->tpl_vars['value']->key;
                                            ?>
													<?php 
                                            if (mb_strtolower($_smarty_tpl->tpl_vars['name']->value, 'UTF-8') != 'class') {
                                                ?>
													 <?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);
                                                ?>
="<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true);
                                                ?>
"
													<?php 
                                            }
                                            ?>
												<?php 
                                        }
                                        ?>
 >
												<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['button']['label'];
                                        ?>

											</button>
										</div>
									</div>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['maxchar'])) {
                                            ?>
									<script type="text/javascript">
										function countDown($source, $target) {
											var max = $source.attr("data-maxchar");
											$target.html(max-$source.val().length);
											$source.keyup(function(){
												$target.html(max-$source.val().length);
											});
										}
										$(document).ready(function() {
											countDown($("#<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
"), $("#<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
_counter"));
										});
									</script>
									<?php 
                                        }
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'swap') {
                                        ?>
									<div class="form-group">
										<div class="col-lg-9">
											<div class="form-control-static row">
												<div class="col-xs-6">
													<select <?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                            ?>
size="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['size'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['onchange'])) {
                                            ?>
 onchange="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['onchange'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        ?>
 class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['class'], ENT_QUOTES, 'utf-8', true);
                                        }
                                        ?>
" id="availableSwap" name="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                        ?>
_available[]" multiple="multiple">
													<?php 
                                        $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['option']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['options']['query'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                            $_smarty_tpl->tpl_vars['option']->_loop = true;
                                            ?>
														<?php 
                                            if (is_object($_smarty_tpl->tpl_vars['option']->value)) {
                                                ?>
															<?php 
                                                if (!in_array($_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}, $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']])) {
                                                    ?>
																<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']};
                                                    ?>
"><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['name']};
                                                    ?>
</option>
															<?php 
                                                }
                                                ?>
														<?php 
                                            } elseif ($_smarty_tpl->tpl_vars['option']->value == "-") {
                                                ?>
															<option value="">-</option>
														<?php 
                                            } else {
                                                ?>
															<?php 
                                                if (!in_array($_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']], $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']])) {
                                                    ?>
																<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']];
                                                    ?>
"><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['name']];
                                                    ?>
</option>
															<?php 
                                                }
                                                ?>
														<?php 
                                            }
                                            ?>
													<?php 
                                        }
                                        ?>
													</select>
													<a href="#" id="addSwap" class="btn btn-default btn-block"><?php 
                                        echo smartyTranslate(array('s' => 'Add'), $_smarty_tpl);
                                        ?>
 <i class="icon-arrow-right"></i></a>
												</div>
												<div class="col-xs-6">
													<select <?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                            ?>
size="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['size'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['onchange'])) {
                                            ?>
 onchange="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['onchange'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"<?php 
                                        }
                                        ?>
 class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['class'], ENT_QUOTES, 'utf-8', true);
                                        }
                                        ?>
" id="selectedSwap" name="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                        ?>
_selected[]" multiple="multiple">
													<?php 
                                        $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['option']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['options']['query'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                            $_smarty_tpl->tpl_vars['option']->_loop = true;
                                            ?>
														<?php 
                                            if (is_object($_smarty_tpl->tpl_vars['option']->value)) {
                                                ?>
															<?php 
                                                if (in_array($_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}, $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']])) {
                                                    ?>
																<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']};
                                                    ?>
"><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['name']};
                                                    ?>
</option>
															<?php 
                                                }
                                                ?>
														<?php 
                                            } elseif ($_smarty_tpl->tpl_vars['option']->value == "-") {
                                                ?>
															<option value="">-</option>
														<?php 
                                            } else {
                                                ?>
															<?php 
                                                if (in_array($_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']], $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']])) {
                                                    ?>
																<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']];
                                                    ?>
"><?php 
                                                    echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['name']];
                                                    ?>
</option>
															<?php 
                                                }
                                                ?>
														<?php 
                                            }
                                            ?>
													<?php 
                                        }
                                        ?>
													</select>
													<a href="#" id="removeSwap" class="btn btn-default btn-block"><i class="icon-arrow-left"></i> <?php 
                                        echo smartyTranslate(array('s' => 'Remove'), $_smarty_tpl);
                                        ?>
</a>
												</div>
											</div>
										</div>
									</div>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'select') {
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['options']['query']) && !$_smarty_tpl->tpl_vars['input']->value['options']['query'] && isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) {
                                            ?>
										<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['empty_message'];
                                            ?>

										<?php 
                                            $_smarty_tpl->createLocalArrayVariable('input', null, 0);
                                            $_smarty_tpl->tpl_vars['input']->value['required'] = false;
                                            ?>
										<?php 
                                            $_smarty_tpl->createLocalArrayVariable('input', null, 0);
                                            $_smarty_tpl->tpl_vars['input']->value['desc'] = null;
                                            ?>
									<?php 
                                        } else {
                                            ?>
										<select name="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                            ?>
"
												class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['class'], ENT_QUOTES, 'utf-8', true);
                                            }
                                            ?>
 fixed-width-xl"
												id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['id'], ENT_QUOTES, 'utf-8', true);
                                            } else {
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['name'], ENT_QUOTES, 'utf-8', true);
                                            }
                                            ?>
"
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                ?>
multiple="multiple" <?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['size'])) {
                                                ?>
size="<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['size'], ENT_QUOTES, 'utf-8', true);
                                                ?>
"<?php 
                                            }
                                            ?>
												<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['onchange'])) {
                                                ?>
onchange="<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['onchange'], ENT_QUOTES, 'utf-8', true);
                                                ?>
"<?php 
                                            }
                                            ?>
>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['options']['default'])) {
                                                ?>
												<option value="<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['options']['default']['value'], ENT_QUOTES, 'utf-8', true);
                                                ?>
"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['input']->value['options']['default']['label'], ENT_QUOTES, 'utf-8', true);
                                                ?>
</option>
											<?php 
                                            }
                                            ?>
											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['options']['optiongroup'])) {
                                                ?>
												<?php 
                                                $_smarty_tpl->tpl_vars['optiongroup'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['optiongroup']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['input']->value['options']['optiongroup']['query'];
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['optiongroup']->key => $_smarty_tpl->tpl_vars['optiongroup']->value) {
                                                    $_smarty_tpl->tpl_vars['optiongroup']->_loop = true;
                                                    ?>
													<optgroup label="<?php 
                                                    echo $_smarty_tpl->tpl_vars['optiongroup']->value[$_smarty_tpl->tpl_vars['input']->value['options']['optiongroup']['label']];
                                                    ?>
">
														<?php 
                                                    $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars['option']->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['optiongroup']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['query']];
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                                        $_smarty_tpl->tpl_vars['option']->_loop = true;
                                                        ?>
															<option value="<?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']];
                                                        ?>
"
																<?php 
                                                        if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                            ?>
																	<?php 
                                                            $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                            $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                            if (!is_array($_from) && !is_object($_from)) {
                                                                settype($_from, 'array');
                                                            }
                                                            foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                                $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                                ?>
																		<?php 
                                                                if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']]) {
                                                                    ?>
selected="selected"<?php 
                                                                }
                                                                ?>
																	<?php 
                                                            }
                                                            ?>
																<?php 
                                                        } else {
                                                            ?>
																	<?php 
                                                            if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['id']]) {
                                                                ?>
selected="selected"<?php 
                                                            }
                                                            ?>
																<?php 
                                                        }
                                                        ?>
															><?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['options']['name']];
                                                        ?>
</option>
														<?php 
                                                    }
                                                    ?>
													</optgroup>
												<?php 
                                                }
                                                ?>
											<?php 
                                            } else {
                                                ?>
												<?php 
                                                $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['option']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['input']->value['options']['query'];
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
                                                    $_smarty_tpl->tpl_vars['option']->_loop = true;
                                                    ?>
													<?php 
                                                    if (is_object($_smarty_tpl->tpl_vars['option']->value)) {
                                                        ?>
														<option value="<?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']};
                                                        ?>
"
															<?php 
                                                        if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                            ?>
																<?php 
                                                            $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                            $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                            if (!is_array($_from) && !is_object($_from)) {
                                                                settype($_from, 'array');
                                                            }
                                                            foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                                $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                                ?>
																	<?php 
                                                                if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}) {
                                                                    ?>
																		selected="selected"
																	<?php 
                                                                }
                                                                ?>
																<?php 
                                                            }
                                                            ?>
															<?php 
                                                        } else {
                                                            ?>
																<?php 
                                                            if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['id']}) {
                                                                ?>
																	selected="selected"
																<?php 
                                                            }
                                                            ?>
															<?php 
                                                        }
                                                        ?>
														><?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value->{$_smarty_tpl->tpl_vars['input']->value['options']['name']};
                                                        ?>
</option>
													<?php 
                                                    } elseif ($_smarty_tpl->tpl_vars['option']->value == "-") {
                                                        ?>
														<option value="">-</option>
													<?php 
                                                    } else {
                                                        ?>
														<option value="<?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']];
                                                        ?>
"
															<?php 
                                                        if (isset($_smarty_tpl->tpl_vars['input']->value['multiple'])) {
                                                            ?>
																<?php 
                                                            $_smarty_tpl->tpl_vars['field_value'] = new Smarty_Variable();
                                                            $_smarty_tpl->tpl_vars['field_value']->_loop = false;
                                                            $_from = $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                                            if (!is_array($_from) && !is_object($_from)) {
                                                                settype($_from, 'array');
                                                            }
                                                            foreach ($_from as $_smarty_tpl->tpl_vars['field_value']->key => $_smarty_tpl->tpl_vars['field_value']->value) {
                                                                $_smarty_tpl->tpl_vars['field_value']->_loop = true;
                                                                ?>
																	<?php 
                                                                if ($_smarty_tpl->tpl_vars['field_value']->value == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']]) {
                                                                    ?>
																		selected="selected"
																	<?php 
                                                                }
                                                                ?>
																<?php 
                                                            }
                                                            ?>
															<?php 
                                                        } else {
                                                            ?>
																<?php 
                                                            if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['id']]) {
                                                                ?>
																	selected="selected"
																<?php 
                                                            }
                                                            ?>
															<?php 
                                                        }
                                                        ?>
														><?php 
                                                        echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['input']->value['options']['name']];
                                                        ?>
</option>

													<?php 
                                                    }
                                                    ?>
												<?php 
                                                }
                                                ?>
											<?php 
                                            }
                                            ?>
										</select>
									<?php 
                                        }
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'radio') {
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['value']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['values'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                            $_smarty_tpl->tpl_vars['value']->_loop = true;
                                            ?>
										<div class="radio <?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            ?>
">
											<label><input type="radio"	name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
" id="<?php 
                                            echo $_smarty_tpl->tpl_vars['value']->value['id'];
                                            ?>
" value="<?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value['value'], ENT_QUOTES, 'UTF-8', true);
                                            ?>
"<?php 
                                            if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) {
                                                ?>
 checked="checked"<?php 
                                            }
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                                ?>
 disabled="disabled"<?php 
                                            }
                                            ?>
/><?php 
                                            echo $_smarty_tpl->tpl_vars['value']->value['label'];
                                            ?>
</label>
										</div>
										<?php 
                                            if (isset($_smarty_tpl->tpl_vars['value']->value['p']) && $_smarty_tpl->tpl_vars['value']->value['p']) {
                                                ?>
<p class="help-block"><?php 
                                                echo $_smarty_tpl->tpl_vars['value']->value['p'];
                                                ?>
</p><?php 
                                            }
                                            ?>
									<?php 
                                        }
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'switch') {
                                        ?>
									<span class="switch prestashop-switch fixed-width-lg">
										<?php 
                                        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['value']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['values'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                            $_smarty_tpl->tpl_vars['value']->_loop = true;
                                            ?>
										<input type="radio" name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
"<?php 
                                            if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                                ?>
 id="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_on"<?php 
                                            } else {
                                                ?>
 id="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_off"<?php 
                                            }
                                            ?>
 value="<?php 
                                            echo $_smarty_tpl->tpl_vars['value']->value['value'];
                                            ?>
"<?php 
                                            if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']] == $_smarty_tpl->tpl_vars['value']->value['value']) {
                                                ?>
 checked="checked"<?php 
                                            }
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['disabled']) && $_smarty_tpl->tpl_vars['input']->value['disabled']) {
                                                ?>
 disabled="disabled"<?php 
                                            }
                                            ?>
/>
										<label <?php 
                                            if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                                ?>
 for="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_on"<?php 
                                            } else {
                                                ?>
 for="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_off"<?php 
                                            }
                                            ?>
><?php 
                                            if ($_smarty_tpl->tpl_vars['value']->value['value'] == 1) {
                                                echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                                            } else {
                                                echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                                            }
                                            ?>
</label>
										<?php 
                                        }
                                        ?>
										<a class="slide-button btn"></a>
									</span>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'textarea') {
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['use_textarea_autosize'] = new Smarty_variable(true, null, 0);
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['lang']) && $_smarty_tpl->tpl_vars['input']->value['lang']) {
                                            ?>
									<?php 
                                            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                            $_smarty_tpl->tpl_vars['language']->_loop = false;
                                            $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                            if (!is_array($_from) && !is_object($_from)) {
                                                settype($_from, 'array');
                                            }
                                            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                ?>
									<?php 
                                                if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                    ?>
									<div class="form-group translatable-field lang-<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                    ?>
"<?php 
                                                    if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] != $_smarty_tpl->tpl_vars['defaultFormLanguage']->value) {
                                                        ?>
 style="display:none;"<?php 
                                                    }
                                                    ?>
>
										<div class="col-lg-9">
									<?php 
                                                }
                                                ?>
											<textarea name="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                                ?>
_<?php 
                                                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                ?>
" class="<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['autoload_rte']) && $_smarty_tpl->tpl_vars['input']->value['autoload_rte']) {
                                                    ?>
rte autoload_rte<?php 
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                        ?>
 <?php 
                                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                    }
                                                } else {
                                                    if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                        ?>
 <?php 
                                                        echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                    } else {
                                                        ?>
 textarea-autosize<?php 
                                                    }
                                                }
                                                ?>
"><?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']][$_smarty_tpl->tpl_vars['language']->value['id_lang']], ENT_QUOTES, 'UTF-8', true);
                                                ?>
</textarea>
									<?php 
                                                if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                                                    ?>
										</div>
										<div class="col-lg-2">
											<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
												<?php 
                                                    echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                                                    ?>

												<span class="caret"></span>
											</button>
											<ul class="dropdown-menu">
												<?php 
                                                    $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                                                    $_smarty_tpl->tpl_vars['language']->_loop = false;
                                                    $_from = $_smarty_tpl->tpl_vars['languages']->value;
                                                    if (!is_array($_from) && !is_object($_from)) {
                                                        settype($_from, 'array');
                                                    }
                                                    foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                                                        $_smarty_tpl->tpl_vars['language']->_loop = true;
                                                        ?>
												<li>
													<a href="javascript:hideOtherLanguage(<?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                                                        ?>
);" tabindex="-1"><?php 
                                                        echo $_smarty_tpl->tpl_vars['language']->value['name'];
                                                        ?>
</a>
												</li>
												<?php 
                                                    }
                                                    ?>
											</ul>
										</div>
									</div>
									<?php 
                                                }
                                                ?>
									<?php 
                                            }
                                            ?>

									<?php 
                                        } else {
                                            ?>
										<textarea name="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>
" id="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                            } else {
                                                echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            }
                                            ?>
" <?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['cols'])) {
                                                ?>
cols="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['cols'];
                                                ?>
"<?php 
                                            }
                                            ?>
 <?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['rows'])) {
                                                ?>
rows="<?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['rows'];
                                                ?>
"<?php 
                                            }
                                            ?>
 class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['autoload_rte']) && $_smarty_tpl->tpl_vars['input']->value['autoload_rte']) {
                                                ?>
rte autoload_rte<?php 
                                                if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                    ?>
 <?php 
                                                    echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                                }
                                            } else {
                                                ?>
 textarea-autosize<?php 
                                            }
                                            ?>
"><?php 
                                            echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                            ?>
</textarea>
									<?php 
                                        }
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'checkbox') {
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['expand'])) {
                                            ?>
										<a class="btn btn-default show_checkbox<?php 
                                            if (strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'hide') {
                                                ?>
 hidden<?php 
                                            }
                                            ?>
" href="#">
											<i class="icon-<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['show']['icon'];
                                            ?>
"></i>
											<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['show']['text'];
                                            ?>

											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['expand']['print_total']) && $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'] > 0) {
                                                ?>
												<span class="badge"><?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'];
                                                ?>
</span>
											<?php 
                                            }
                                            ?>
										</a>
										<a class="btn btn-default hide_checkbox<?php 
                                            if (strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'show') {
                                                ?>
 hidden<?php 
                                            }
                                            ?>
" href="#">
											<i class="icon-<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['hide']['icon'];
                                            ?>
"></i>
											<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['expand']['hide']['text'];
                                            ?>

											<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['expand']['print_total']) && $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'] > 0) {
                                                ?>
												<span class="badge"><?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['expand']['print_total'];
                                                ?>
</span>
											<?php 
                                            }
                                            ?>
										</a>
									<?php 
                                        }
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['value']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['values']['query'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                                            $_smarty_tpl->tpl_vars['value']->_loop = true;
                                            ?>
										<?php 
                                            $_smarty_tpl->tpl_vars['id_checkbox'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['name'] . '_' . $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['input']->value['values']['id']], null, 0);
                                            ?>
										<div class="checkbox<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['expand']) && strtolower($_smarty_tpl->tpl_vars['input']->value['expand']['default']) == 'show') {
                                                ?>
 hidden<?php 
                                            }
                                            ?>
">
											<label for="<?php 
                                            echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                            ?>
"><input type="checkbox" name="<?php 
                                            echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                            ?>
" id="<?php 
                                            echo $_smarty_tpl->tpl_vars['id_checkbox']->value;
                                            ?>
" class="<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            ?>
"<?php 
                                            if (isset($_smarty_tpl->tpl_vars['value']->value['val'])) {
                                                ?>
 value="<?php 
                                                echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value['val'], ENT_QUOTES, 'UTF-8', true);
                                                ?>
"<?php 
                                            }
                                            if (isset($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value]) && $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value]) {
                                                ?>
 checked="checked"<?php 
                                            }
                                            ?>
 /><?php 
                                            echo $_smarty_tpl->tpl_vars['value']->value[$_smarty_tpl->tpl_vars['input']->value['values']['name']];
                                            ?>
</label>
										</div>
									<?php 
                                        }
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'change-password') {
                                        ?>
									<div class="row">
										<div class="col-lg-12">
											<button type="button" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-btn-change" class="btn btn-default">
												<i class="icon-lock"></i>
												<?php 
                                        echo smartyTranslate(array('s' => 'Change password...'), $_smarty_tpl);
                                        ?>

											</button>
											<div id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-change-container" class="form-password-change well hide">
												<div class="form-group">
													<label for="old_passwd" class="control-label col-lg-2 required">
														<?php 
                                        echo smartyTranslate(array('s' => 'Current password'), $_smarty_tpl);
                                        ?>

													</label>
													<div class="col-lg-10">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-unlock"></i>
															</span>
															<input type="password" id="old_passwd" name="old_passwd" class="form-control" value="" required="required" autocomplete="off">
														</div>
													</div>
												</div>
												<hr />
												<div class="form-group">
													<label for="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" class="required control-label col-lg-2">
														<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="<?php 
                                        echo smartyTranslate(array('s' => 'Password should be at least 8 characters long.'), $_smarty_tpl);
                                        ?>
">
															<?php 
                                        echo smartyTranslate(array('s' => 'New password'), $_smarty_tpl);
                                        ?>

														</span>
													</label>
													<div class="col-lg-9">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-key"></i>
															</span>
															<input type="password" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
" value="" required="required" autocomplete="off"/>
														</div>
														<span id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-output"></span>
													</div>
												</div>
												<div class="form-group">
													<label for="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
2" class="required control-label col-lg-2">
														<?php 
                                        echo smartyTranslate(array('s' => 'Confirm password'), $_smarty_tpl);
                                        ?>

													</label>
													<div class="col-lg-4">
														<div class="input-group fixed-width-lg">
															<span class="input-group-addon">
																<i class="icon-key"></i>
															</span>
															<input type="password" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
2" name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
2" class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
" value="" autocomplete="off"/>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-lg-10 col-lg-offset-2">
														<input type="text" class="form-control fixed-width-md pull-left" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-generate-field" disabled="disabled">
														<button type="button" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-generate-btn" class="btn btn-default">
															<i class="icon-random"></i>
															<?php 
                                        echo smartyTranslate(array('s' => 'Generate password'), $_smarty_tpl);
                                        ?>

														</button>
													</div>
												</div>
												<div class="form-group">
													<div class="col-lg-10 col-lg-offset-2">
														<p class="checkbox">
															<label for="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-checkbox-mail">
																<input name="passwd_send_email" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-checkbox-mail" type="checkbox" checked="checked">
																<?php 
                                        echo smartyTranslate(array('s' => 'Send me this new password by Email'), $_smarty_tpl);
                                        ?>

															</label>
														</p>
													</div>
												</div>
												<div class="row">
													<div class="col-lg-12">
														<button type="button" id="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-cancel-btn" class="btn btn-default">
															<i class="icon-remove"></i>
															<?php 
                                        echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
                                        ?>

														</button>
													</div>
												</div>
											</div>
										</div>
									</div>
									<script>
										$(function(){
											var $oldPwd = $('#old_passwd');
											var $passwordField = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
');
											var $output = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-output');
											var $generateBtn = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-generate-btn');
											var $generateField = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-generate-field');
											var $cancelBtn = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-cancel-btn');

											var feedback = [
												{ badge: 'text-danger', text: '<?php 
                                        echo smartyTranslate(array('s' => "Invalid", 'js' => 1), $_smarty_tpl);
                                        ?>
' },
												{ badge: 'text-warning', text: '<?php 
                                        echo smartyTranslate(array('s' => "Okay", 'js' => 1), $_smarty_tpl);
                                        ?>
' },
												{ badge: 'text-success', text: '<?php 
                                        echo smartyTranslate(array('s' => "Good", 'js' => 1), $_smarty_tpl);
                                        ?>
' },
												{ badge: 'text-success', text: '<?php 
                                        echo smartyTranslate(array('s' => "Fabulous", 'js' => 1), $_smarty_tpl);
                                        ?>
' }
											];
											$.passy.requirements.length.min = 8;
											$.passy.requirements.characters = 'DIGIT';
											$passwordField.passy(function(strength, valid) {
												$output.text(feedback[strength].text);
												$output.removeClass('text-danger').removeClass('text-warning').removeClass('text-success');
												$output.addClass(feedback[strength].badge);
												if (valid){
													$output.show();
												}
												else {
													$output.hide();
												}
											});
											var $container = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-change-container');
											var $changeBtn = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
-btn-change');
											var $confirmPwd = $('#<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
2');

											$changeBtn.on('click',function(){
												$container.removeClass('hide');
												$changeBtn.addClass('hide');
											});
											$generateBtn.click(function() {
												$generateField.passy( 'generate', 8 );
												var generatedPassword = $generateField.val();
												$passwordField.val(generatedPassword);
												$confirmPwd.val(generatedPassword);
											});
											$cancelBtn.on('click',function() {
												$container.find("input").val("");
												$container.addClass('hide');
												$changeBtn.removeClass('hide');
											});

											$.validator.addMethod('password_same', function(value, element) {
												return $passwordField.val() == $confirmPwd.val();
											}, '<?php 
                                        echo smartyTranslate(array('s' => "Invalid password confirmation", 'js' => 1), $_smarty_tpl);
                                        ?>
');

											$('#employee_form').validate({
												rules: {
													"email": {
														email: true
													},
													"<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
" : {
														minlength: 8
													},
													"<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
2": {
														password_same: true
													},
													"old_passwd" : {},
												},
												// override jquery validate plugin defaults for bootstrap 3
												highlight: function(element) {
													$(element).closest('.form-group').addClass('has-error');
												},
												unhighlight: function(element) {
													$(element).closest('.form-group').removeClass('has-error');
												},
												errorElement: 'span',
												errorClass: 'help-block',
												errorPlacement: function(error, element) {
													if(element.parent('.input-group').length) {
														error.insertAfter(element.parent());
													} else {
														error.insertAfter(element);
													}
												}
											});
										});
									</script>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'password') {
                                        ?>
									<div class="input-group fixed-width-lg">
										<span class="input-group-addon">
											<i class="icon-key"></i>
										</span>
										<input type="password"
											id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"
											name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
											class="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                        }
                                        ?>
"
											value=""
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['input']->value['autocomplete']) {
                                            ?>
autocomplete="off"<?php 
                                        }
                                        ?>
											<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['required']) && $_smarty_tpl->tpl_vars['input']->value['required']) {
                                            ?>
 required="required" <?php 
                                        }
                                        ?>
 />
									</div>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'birthday') {
                                        ?>
								<div class="form-group">
									<?php 
                                        $_smarty_tpl->tpl_vars['select'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['select']->_loop = false;
                                        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['options'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['select']->key => $_smarty_tpl->tpl_vars['select']->value) {
                                            $_smarty_tpl->tpl_vars['select']->_loop = true;
                                            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['select']->key;
                                            ?>
									<div class="col-lg-2">
										<select name="<?php 
                                            echo $_smarty_tpl->tpl_vars['key']->value;
                                            ?>
" class="fixed-width-lg<?php 
                                            if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                                ?>
 <?php 
                                                echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            }
                                            ?>
">
											<option value="">-</option>
											<?php 
                                            if ($_smarty_tpl->tpl_vars['key']->value == 'months') {
                                                ?>
												
												<?php 
                                                $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['v']->_loop = false;
                                                $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                                                $_from = $_smarty_tpl->tpl_vars['select']->value;
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                                                    $_smarty_tpl->tpl_vars['v']->_loop = true;
                                                    $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
                                                    ?>
													<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['k']->value;
                                                    ?>
" <?php 
                                                    if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['key']->value]) {
                                                        ?>
selected="selected"<?php 
                                                    }
                                                    ?>
><?php 
                                                    echo smartyTranslate(array('s' => $_smarty_tpl->tpl_vars['v']->value), $_smarty_tpl);
                                                    ?>
</option>
												<?php 
                                                }
                                                ?>
											<?php 
                                            } else {
                                                ?>
												<?php 
                                                $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
                                                $_smarty_tpl->tpl_vars['v']->_loop = false;
                                                $_from = $_smarty_tpl->tpl_vars['select']->value;
                                                if (!is_array($_from) && !is_object($_from)) {
                                                    settype($_from, 'array');
                                                }
                                                foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
                                                    $_smarty_tpl->tpl_vars['v']->_loop = true;
                                                    ?>
													<option value="<?php 
                                                    echo $_smarty_tpl->tpl_vars['v']->value;
                                                    ?>
" <?php 
                                                    if ($_smarty_tpl->tpl_vars['v']->value == $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['key']->value]) {
                                                        ?>
selected="selected"<?php 
                                                    }
                                                    ?>
><?php 
                                                    echo $_smarty_tpl->tpl_vars['v']->value;
                                                    ?>
</option>
												<?php 
                                                }
                                                ?>
											<?php 
                                            }
                                            ?>
										</select>
									</div>
									<?php 
                                        }
                                        ?>
								</div>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'group') {
                                        ?>
									<?php 
                                        $_smarty_tpl->tpl_vars['groups'] = new Smarty_variable($_smarty_tpl->tpl_vars['input']->value['values'], null, 0);
                                        ?>
									<?php 
                                        /*  Call merged included template "helpers/form/form_group.tpl" */
                                        $_tpl_stack[] = $_smarty_tpl;
                                        $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('helpers/form/form_group.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '144851870155d6f1b84c19f5-59465720');
                                        content_55d6f1ba32a6d0_57235941($_smarty_tpl);
                                        $_smarty_tpl = array_pop($_tpl_stack);
                                        /*  End of included template "helpers/form/form_group.tpl" */
                                        ?>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'shop') {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['html'];
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'categories') {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['categories_tree']->value;
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'file') {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['file'];
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'categories_select') {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['category_tree'];
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'asso_shop' && isset($_smarty_tpl->tpl_vars['asso_shop']->value) && $_smarty_tpl->tpl_vars['asso_shop']->value) {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['asso_shop']->value;
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'color') {
                                        ?>
								<div class="form-group">
									<div class="col-lg-2">
										<div class="row">
											<div class="input-group">
												<input type="color"
												data-hex="true"
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            ?>
 class="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            ?>
"
												<?php 
                                        } else {
                                            ?>
 class="color mColorPickerInput"<?php 
                                        }
                                        ?>
												name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
												value="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" />
											</div>
										</div>
									</div>
								</div>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'date') {
                                        ?>
									<div class="row">
										<div class="input-group col-lg-4">
											<input
												id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"
												type="text"
												data-hex="true"
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            ?>
 class="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            ?>
"
												<?php 
                                        } else {
                                            ?>
class="datepicker"<?php 
                                        }
                                        ?>
												name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
												value="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" />
											<span class="input-group-addon">
												<i class="icon-calendar-empty"></i>
											</span>
										</div>
									</div>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'datetime') {
                                        ?>
									<div class="row">
										<div class="input-group col-lg-4">
											<input
												id="<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['id'])) {
                                            echo $_smarty_tpl->tpl_vars['input']->value['id'];
                                        } else {
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        }
                                        ?>
"
												type="text"
												data-hex="true"
												<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {
                                            ?>
 class="<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['class'];
                                            ?>
"
												<?php 
                                        } else {
                                            ?>
 class="datetimepicker"<?php 
                                        }
                                        ?>
												name="<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                        ?>
"
												value="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" />
											<span class="input-group-addon">
												<i class="icon-calendar-empty"></i>
											</span>
										</div>
									</div>
								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'free') {
                                        ?>
									<?php 
                                        echo $_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['input']->value['name']];
                                        ?>

								<?php 
                                    } elseif ($_smarty_tpl->tpl_vars['input']->value['type'] == 'html') {
                                        ?>
									<?php 
                                        if (isset($_smarty_tpl->tpl_vars['input']->value['html_content'])) {
                                            ?>
										<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['html_content'];
                                            ?>

									<?php 
                                        } else {
                                            ?>
										<?php 
                                            echo $_smarty_tpl->tpl_vars['input']->value['name'];
                                            ?>

									<?php 
                                        }
                                        ?>
								<?php 
                                    }
                                    ?>
								
	<?php 
                                }
                                ?>

								
									<?php 
                                if (isset($_smarty_tpl->tpl_vars['input']->value['desc']) && !empty($_smarty_tpl->tpl_vars['input']->value['desc'])) {
                                    ?>
										<p class="help-block">
											<?php 
                                    if (is_array($_smarty_tpl->tpl_vars['input']->value['desc'])) {
                                        ?>
												<?php 
                                        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
                                        $_smarty_tpl->tpl_vars['p']->_loop = false;
                                        $_from = $_smarty_tpl->tpl_vars['input']->value['desc'];
                                        if (!is_array($_from) && !is_object($_from)) {
                                            settype($_from, 'array');
                                        }
                                        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                                            $_smarty_tpl->tpl_vars['p']->_loop = true;
                                            ?>
													<?php 
                                            if (is_array($_smarty_tpl->tpl_vars['p']->value)) {
                                                ?>
														<span id="<?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value['id'];
                                                ?>
"><?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value['text'];
                                                ?>
</span><br />
													<?php 
                                            } else {
                                                ?>
														<?php 
                                                echo $_smarty_tpl->tpl_vars['p']->value;
                                                ?>
<br />
													<?php 
                                            }
                                            ?>
												<?php 
                                        }
                                        ?>
											<?php 
                                    } else {
                                        ?>
												<?php 
                                        echo $_smarty_tpl->tpl_vars['input']->value['desc'];
                                        ?>

											<?php 
                                    }
                                    ?>
										</p>
									<?php 
                                }
                                ?>
								
								</div>
							
						<?php 
                            }
                            ?>
						</div>
						
	<?php 
                        }
                        ?>

					<?php 
                    }
                    ?>
					<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminForm', 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                    ?>

					<?php 
                    if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {
                        ?>
						<?php 
                        $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
                        ob_start();
                        ?>
display<?php 
                        echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);
                        ?>
Form<?php 
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        ?>
						<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value, 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                        ?>

					<?php 
                    } elseif (isset($_GET['controller'])) {
                        ?>
						<?php 
                        $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
                        ob_start();
                        ?>
display<?php 
                        echo htmlentities(ucfirst($_GET['controller']));
                        ?>
Form<?php 
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        ?>
						<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value, 'fieldset' => $_smarty_tpl->tpl_vars['f']->value), $_smarty_tpl);
                        ?>

					<?php 
                    }
                    ?>
				</div><!-- /.form-wrapper -->
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['key']->value == 'desc') {
                    ?>
					<div class="alert alert-info col-lg-offset-3">
						<?php 
                    if (is_array($_smarty_tpl->tpl_vars['field']->value)) {
                        ?>
							<?php 
                        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['p']->_loop = false;
                        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['field']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
                            $_smarty_tpl->tpl_vars['p']->_loop = true;
                            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['p']->key;
                            ?>
								<?php 
                            if (is_array($_smarty_tpl->tpl_vars['p']->value)) {
                                ?>
									<span<?php 
                                if (isset($_smarty_tpl->tpl_vars['p']->value['id'])) {
                                    ?>
 id="<?php 
                                    echo $_smarty_tpl->tpl_vars['p']->value['id'];
                                    ?>
"<?php 
                                }
                                ?>
><?php 
                                echo $_smarty_tpl->tpl_vars['p']->value['text'];
                                ?>
</span><br />
								<?php 
                            } else {
                                ?>
									<?php 
                                echo $_smarty_tpl->tpl_vars['p']->value;
                                ?>

									<?php 
                                if (isset($_smarty_tpl->tpl_vars['field']->value[$_smarty_tpl->tpl_vars['k']->value + 1])) {
                                    ?>
<br /><?php 
                                }
                                ?>
								<?php 
                            }
                            ?>
							<?php 
                        }
                        ?>
						<?php 
                    } else {
                        ?>
							<?php 
                        echo $_smarty_tpl->tpl_vars['field']->value;
                        ?>

						<?php 
                    }
                    ?>
					</div>
				<?php 
                }
                ?>
				
			<?php 
            }
            ?>
			
			<?php 
            $_smarty_tpl->_capture_stack[0][] = array('form_submit_btn', null, null);
            ob_start();
            echo smarty_function_counter(array('name' => 'form_submit_btn'), $_smarty_tpl);
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']) || isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'])) {
                ?>
					<div class="panel-footer">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']) && !empty($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit'])) {
                    ?>
						<button type="submit" value="1"	id="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['id'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['id'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
_form_submit_btn<?php 
                    }
                    if (Smarty::$_smarty_vars['capture']['form_submit_btn'] > 1) {
                        ?>
_<?php 
                        echo intval(Smarty::$_smarty_vars['capture']['form_submit_btn'] - 1);
                    }
                    ?>
" name="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['name'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['name'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['submit_action']->value;
                    }
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['stay']) && $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['stay']) {
                        ?>
AndStay<?php 
                    }
                    ?>
" class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['class'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['class'];
                    } else {
                        ?>
btn btn-default pull-right<?php 
                    }
                    ?>
">
							<i class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['icon'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['icon'];
                    } else {
                        ?>
process-icon-save<?php 
                    }
                    ?>
"></i> <?php 
                    echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['submit']['title'];
                    ?>

						</button>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['show_cancel_button']->value) && $_smarty_tpl->tpl_vars['show_cancel_button']->value) {
                    ?>
						<a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['back_url']->value, ENT_QUOTES, 'UTF-8', true);
                    ?>
" class="btn btn-default" onclick="window.history.back();">
							<i class="process-icon-cancel"></i> <?php 
                    echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl);
                    ?>

						</a>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset'])) {
                    ?>
						<button
							type="reset"
							id="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['id'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['id'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
_form_reset_btn<?php 
                    }
                    ?>
"
							class="<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['class'])) {
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['class'];
                    } else {
                        ?>
btn btn-default<?php 
                    }
                    ?>
"
							>
							<?php 
                    if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['icon'])) {
                        ?>
<i class="<?php 
                        echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['icon'];
                        ?>
"></i> <?php 
                    }
                    ?>
 <?php 
                    echo $_smarty_tpl->tpl_vars['fieldset']->value['form']['reset']['title'];
                    ?>

						</button>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'])) {
                    ?>
						<?php 
                    $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['btn']->_loop = false;
                    $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['fieldset']->value['form']['buttons'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                        $_smarty_tpl->tpl_vars['btn']->_loop = true;
                        $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                        ?>
							<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['href']) && trim($_smarty_tpl->tpl_vars['btn']->value['href']) != '') {
                            ?>
								<a href="<?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['href'];
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="btn btn-default<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</a>
							<?php 
                        } else {
                            ?>
								<button type="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['type'];
                            } else {
                                ?>
button<?php 
                            }
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {
                                ?>
id="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['id'];
                                ?>
"<?php 
                            }
                            ?>
 class="btn btn-default<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                            }
                            ?>
" name="<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) {
                                echo $_smarty_tpl->tpl_vars['btn']->value['name'];
                            } else {
                                ?>
submitOptions<?php 
                                echo $_smarty_tpl->tpl_vars['table']->value;
                            }
                            ?>
"<?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                                ?>
 onclick="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {
                                ?>
<i class="<?php 
                                echo $_smarty_tpl->tpl_vars['btn']->value['icon'];
                                ?>
" ></i> <?php 
                            }
                            echo $_smarty_tpl->tpl_vars['btn']->value['title'];
                            ?>
</button>
							<?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						<?php 
                }
                ?>
					</div>
				<?php 
            }
            ?>
			
		</div>
		
		
	<?php 
        }
        ?>
</form>



<?php 
        if (isset($_smarty_tpl->tpl_vars['tinymce']->value) && $_smarty_tpl->tpl_vars['tinymce']->value) {
            ?>
<script type="text/javascript">
	var iso = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['iso']->value);
            ?>
';
	var pathCSS = '<?php 
            echo addslashes(@constant('_THEME_CSS_DIR_'));
            ?>
';
	var ad = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['ad']->value);
            ?>
';

	$(document).ready(function(){
		
			tinySetup({
				editor_selector :"autoload_rte"
			});
		
	});
</script>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['firstCall']->value) {
            ?>
	<script type="text/javascript">
		var module_dir = '<?php 
            echo @constant('_MODULE_DIR_');
            ?>
';
		var id_language = <?php 
            echo intval($_smarty_tpl->tpl_vars['defaultFormLanguage']->value);
            ?>
;
		var languages = new Array();
		var vat_number = <?php 
            if ($_smarty_tpl->tpl_vars['vat_number']->value) {
                ?>
1<?php 
            } else {
                ?>
0<?php 
            }
            ?>
;
		// Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
		// precedence conflicts with other document.ready() blocks
		<?php 
            $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['language']->_loop = false;
            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['languages']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                $_smarty_tpl->tpl_vars['language']->_loop = true;
                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key;
                ?>
			languages[<?php 
                echo $_smarty_tpl->tpl_vars['k']->value;
                ?>
] = {
				id_lang: <?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
,
				iso_code: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>
',
				name: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['name'];
                ?>
',
				is_default: '<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['is_default'];
                ?>
'
			};
		<?php 
            }
            ?>
		// we need allowEmployeeFormLang var in ajax request
		allowEmployeeFormLang = <?php 
            echo intval($_smarty_tpl->tpl_vars['allowEmployeeFormLang']->value);
            ?>
;
		displayFlags(languages, id_language, allowEmployeeFormLang);

		$(document).ready(function() {

			$(".show_checkbox").click(function () {
				$(this).addClass('hidden')
				$(this).siblings('.checkbox').removeClass('hidden');
				$(this).siblings('.hide_checkbox').removeClass('hidden');
				return false;
			});
			$(".hide_checkbox").click(function () {
				$(this).addClass('hidden')
				$(this).siblings('.checkbox').addClass('hidden');
				$(this).siblings('.show_checkbox').removeClass('hidden');
				return false;
			});

			<?php 
            if (isset($_smarty_tpl->tpl_vars['fields_value']->value['id_state'])) {
                ?>
				if ($('#id_country') && $('#id_state'))
				{
					ajaxStates(<?php 
                echo $_smarty_tpl->tpl_vars['fields_value']->value['id_state'];
                ?>
);
					$('#id_country').change(function() {
						ajaxStates();
					});
				}
			<?php 
            }
            ?>

			if ($(".datepicker").length > 0)
				$(".datepicker").datepicker({
					prevText: '',
					nextText: '',
					dateFormat: 'yy-mm-dd'
				});

			if ($(".datetimepicker").length > 0)
			$('.datetimepicker').datetimepicker({
				prevText: '',
				nextText: '',
				dateFormat: 'yy-mm-dd',
				// Define a custom regional settings in order to use PrestaShop translation tools
				currentText: '<?php 
            echo smartyTranslate(array('s' => 'Now', 'js' => 1), $_smarty_tpl);
            ?>
',
				closeText: '<?php 
            echo smartyTranslate(array('s' => 'Done', 'js' => 1), $_smarty_tpl);
            ?>
',
				ampm: false,
				amNames: ['AM', 'A'],
				pmNames: ['PM', 'P'],
				timeFormat: 'hh:mm:ss tt',
				timeSuffix: '',
				timeOnlyTitle: '<?php 
            echo smartyTranslate(array('s' => 'Choose Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				timeText: '<?php 
            echo smartyTranslate(array('s' => 'Time', 'js' => 1), $_smarty_tpl);
            ?>
',
				hourText: '<?php 
            echo smartyTranslate(array('s' => 'Hour', 'js' => 1), $_smarty_tpl);
            ?>
',
				minuteText: '<?php 
            echo smartyTranslate(array('s' => 'Minute', 'js' => 1), $_smarty_tpl);
            ?>
',
			});
			<?php 
            if (isset($_smarty_tpl->tpl_vars['use_textarea_autosize']->value)) {
                ?>
			$(".textarea-autosize").autosize();
			<?php 
            }
            ?>
		});
	state_token = '<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminStates'), $_smarty_tpl);
            ?>
';
	
	</script>
<?php 
        }
    }