<td colspan="2" align="center">
    <h2>{$params_tpl['title']}{$params_tpl['help']}</h2>
    <div style="display: flex; flex-direction: column;">{$tpl_types['filter']}</div>
    <div style="display: flex; flex-direction: column;">{$tpl_types['put_field']}</div>
    <div style="display: none; flex-direction: column;">{$tpl_types['display_none']}</div>
</td>

<script>
    (function() {
{if $construct_params && $construct_params['params'][$tpl_num]['display_none']}
        let rel_table = "{$construct_params['params'][$tpl_num]['display_none']}";
{else}
        const queryString = window.location.search;
        const urlParams = new URLSearchParams(queryString);
        let rel_table = urlParams.get('rel_table');
{/if}
        $('input[name="calc_params[{$tpl_num}][display_none]"]').val(rel_table > 0 ? rel_table : -1);
    })();
</script>
