function content_55db8c5b839141_53918009($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        fn_preload_lang_vars(array('active', 'hidden', 'disabled', 'pending', 'new', 'active', 'disabled', 'hidden', 'pending', 'new', 'notify_customer', 'notify_orders_department', 'notify_vendor'));
        if ($_smarty_tpl->tpl_vars['non_editable']->value || $_smarty_tpl->tpl_vars['display']->value == "text") {
            ?>
    <span class="view-status">
        <?php 
            if ($_smarty_tpl->tpl_vars['status']->value == "A") {
                ?>
            <?php 
                echo $_smarty_tpl->__("active");
                ?>

        <?php 
            } elseif ($_smarty_tpl->tpl_vars['status']->value == "H") {
                ?>
            <?php 
                echo $_smarty_tpl->__("hidden");
                ?>

        <?php 
            } elseif ($_smarty_tpl->tpl_vars['status']->value == "D") {
                ?>
            <?php 
                echo $_smarty_tpl->__("disabled");
                ?>

        <?php 
            } elseif ($_smarty_tpl->tpl_vars['status']->value == "P") {
                ?>
            <?php 
                echo $_smarty_tpl->__("pending");
                ?>

        <?php 
            } elseif ($_smarty_tpl->tpl_vars['status']->value == "N") {
                ?>
            <?php 
                echo $_smarty_tpl->__("new");
                ?>

        <?php 
            }
            ?>
    </span>
<?php 
        } else {
            $_smarty_tpl->tpl_vars["prefix"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['prefix']->value) === null || $tmp === '' ? "select" : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["btn_meta"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['btn_meta']->value) === null || $tmp === '' ? "btn-text" : $tmp, null, 0);
            $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable($_smarty_tpl->tpl_vars['popup_additional_class']->value, null, 0);
            ?>
<div class="cm-popup-box dropleft <?php 
            if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) {
                ?>
dropdown<?php 
            }
            ?>
 <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['popup_additional_class']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
    <?php 
            if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) {
                ?>
        <a <?php 
                if ($_smarty_tpl->tpl_vars['id']->value) {
                    ?>
id="sw_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_wrap"<?php 
                }
                ?>
 class="<?php 
                if ($_smarty_tpl->tpl_vars['btn_meta']->value) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['btn_meta']->value, ENT_QUOTES, 'UTF-8');
                }
                ?>
 btn dropdown-toggle<?php 
                if ($_smarty_tpl->tpl_vars['id']->value) {
                    ?>
 cm-combination<?php 
                }
                ?>
" data-toggle="dropdown">
    <?php 
            }
            ?>
        <?php 
            if ($_smarty_tpl->tpl_vars['items_status']->value) {
                ?>
            <?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['items_status']->value[$_smarty_tpl->tpl_vars['status']->value]) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['default_status_text']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>

        <?php 
            } else {
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['status']->value == "A") {
                    ?>
                <?php 
                    echo $_smarty_tpl->__("active");
                    ?>

            <?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "D") {
                    ?>
                <?php 
                    echo $_smarty_tpl->__("disabled");
                    ?>

            <?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "H") {
                    ?>
                <?php 
                    echo $_smarty_tpl->__("hidden");
                    ?>

            <?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "P") {
                    ?>
                <?php 
                    echo $_smarty_tpl->__("pending");
                    ?>

            <?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "N") {
                    ?>
                <?php 
                    echo $_smarty_tpl->__("new");
                    ?>

            <?php 
                }
                ?>
        <?php 
            }
            ?>
    <?php 
            if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) {
                ?>
        <span class="caret"></span>
        </a>
    <?php 
            }
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['id']->value && !$_smarty_tpl->tpl_vars['hide_for_vendor']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["_update_controller"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['update_controller']->value) === null || $tmp === '' ? "tools" : $tmp, null, 0);
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['table']->value && $_smarty_tpl->tpl_vars['object_id_name']->value) {
                    $_smarty_tpl->_capture_stack[0][] = array("_extra", null, null);
                    ob_start();
                    ?>
&table=<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8');
                    ?>
&id_name=<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['object_id_name']->value, ENT_QUOTES, 'UTF-8');
                    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();
                    }
                }
                ?>
            <ul class="dropdown-menu">
            <?php 
                if (!$_smarty_tpl->tpl_vars['items_status']->value) {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["items_status"] = new Smarty_variable(fn_get_default_statuses($_smarty_tpl->tpl_vars['status']->value, $_smarty_tpl->tpl_vars['hidden']->value), null, 0);
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["extra_params"] = new Smarty_variable("&table=" . (string) $_smarty_tpl->tpl_vars['table']->value . "&id_name=" . (string) $_smarty_tpl->tpl_vars['object_id_name']->value, null, 0);
                    ?>
            <?php 
                } else {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["extra_params"] = new Smarty_variable((string) Smarty::$_smarty_vars['capture']['_extra'] . (string) $_smarty_tpl->tpl_vars['extra']->value, null, 0);
                    ?>
            <?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['st_return_url']->value) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars['return_url'] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['st_return_url']->value), null, 0);
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars['extra_params'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['extra_params']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_url']->value, null, 0);
                    ?>
            <?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['items_status']->value) {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars["val"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["val"]->_loop = false;
                    $_smarty_tpl->tpl_vars["st"] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['items_status']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["val"]->key => $_smarty_tpl->tpl_vars["val"]->value) {
                        $_smarty_tpl->tpl_vars["val"]->_loop = true;
                        $_smarty_tpl->tpl_vars["st"]->value = $_smarty_tpl->tpl_vars["val"]->key;
                        ?>
                <li <?php 
                        if ($_smarty_tpl->tpl_vars['status']->value == $_smarty_tpl->tpl_vars['st']->value) {
                            ?>
class="disabled"<?php 
                        }
                        ?>
><a class="<?php 
                        if ($_smarty_tpl->tpl_vars['confirm']->value) {
                            ?>
cm-confirm <?php 
                        }
                        ?>
status-link-<?php 
                        echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['status']->value == $_smarty_tpl->tpl_vars['st']->value) {
                            ?>
active<?php 
                        } else {
                            ?>
cm-ajax cm-post<?php 
                            if ($_smarty_tpl->tpl_vars['ajax_full_render']->value) {
                                ?>
 cm-ajax-full-render<?php 
                            }
                        }
                        ?>
 <?php 
                        if ($_smarty_tpl->tpl_vars['status_meta']->value) {
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['status_meta']->value, ENT_QUOTES, 'UTF-8');
                        }
                        ?>
"<?php 
                        if ($_smarty_tpl->tpl_vars['status_target_id']->value) {
                            ?>
 data-ca-target-id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['status_target_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"<?php 
                        }
                        ?>
 href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['_update_controller']->value . ".update_status?id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&status=" . (string) $_smarty_tpl->tpl_vars['st']->value . (string) $_smarty_tpl->tpl_vars['extra_params']->value . (string) $_smarty_tpl->tpl_vars['dynamic_object']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" onclick="return fn_check_object_status(this, '<?php 
                        echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                        ?>
', '<?php 
                        if ($_smarty_tpl->tpl_vars['statuses']->value) {
                            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['st']->value]['params']['color']) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8');
                        }
                        ?>
');" <?php 
                        if ($_smarty_tpl->tpl_vars['st_result_ids']->value) {
                            ?>
data-ca-target-id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['st_result_ids']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"<?php 
                        }
                        ?>
 data-ca-event="ce.update_object_status_callback"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['val']->value, ENT_QUOTES, 'UTF-8');
                        ?>
</a></li>
                <?php 
                    }
                    ?>
            <?php 
                }
                ?>
            <?php 
                $_smarty_tpl->_capture_stack[0][] = array("list_items", null, null);
                ob_start();
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['notify']->value) {
                    ?>
                <li class="divider"></li>
                <li><a><label for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify">
                    <input type="checkbox" name="__notify_user" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_user]').prop('checked', this.checked);" />
                    <?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['notify_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("notify_customer") : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
</label></a>
                </li>
            <?php 
                }
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['notify_department']->value) {
                    ?>
                <li><a><label for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify_department">
                    <input type="checkbox" name="__notify_department" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify_department" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_department]').prop('checked', this.checked);" />
                    <?php 
                    echo $_smarty_tpl->__("notify_orders_department");
                    ?>
</label></a>
                </li>
            <?php 
                }
                ?>
            <?php 
                if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['notify_vendor']->value) {
                    ?>
                <li><a><label for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify_vendor">
                    <input type="checkbox" name="__notify_vendor" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_notify_vendor" value="Y" checked="checked" onclick="Tygh.$('input[name=__notify_vendor]').prop('checked', this.checked);" />
                    <?php 
                    echo $_smarty_tpl->__("notify_vendor");
                    ?>
</label></a>
                </li>
            <?php 
                }
                ?>

            <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "select_popup:notify_checkboxes"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "select_popup:notify_checkboxes"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

            <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "select_popup:notify_checkboxes"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>


            <?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 
                if (trim(Smarty::$_smarty_vars['capture']['list_items'])) {
                    ?>
                <?php 
                    echo Smarty::$_smarty_vars['capture']['list_items'];
                    ?>

            <?php 
                }
                ?>
        </ul>
        <?php 
                if (!Smarty::$_smarty_vars['capture']['avail_box']) {
                    ?>
        <?php 
                    echo smarty_function_script(array('src' => "js/tygh/select_popup.js"), $_smarty_tpl);
                    ?>

        <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("avail_box", null, null);
                    ob_start();
                    ?>
Y<?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 
                }
                ?>
    <?php 
            }
            ?>
</div>
<?php 
        }
    }
    function content_55dc7cc5d5be05_55013665($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        fn_preload_lang_vars(array('active', 'hidden', 'disabled', 'active', 'hidden', 'disabled', 'status', 'status', 'active', 'hidden', 'pending', 'new', 'disabled'));
        if ($_smarty_tpl->tpl_vars['display']->value == "select" || $_smarty_tpl->tpl_vars['display']->value == "popup") {
            $_smarty_tpl->tpl_vars["selected_st"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['obj']->value['status']) === null || $tmp === '' ? "A" : $tmp, null, 0);
            $_smarty_tpl->_capture_stack[0][] = array("status_title", null, null);
            ob_start();
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['selected_st']->value == "A") {
                ?>
        <?php 
                echo $_smarty_tpl->__("active");
                ?>

    <?php 
            } elseif ($_smarty_tpl->tpl_vars['selected_st']->value == "H") {
                ?>
        <?php 
                echo $_smarty_tpl->__("hidden");
                ?>

    <?php 
            } elseif ($_smarty_tpl->tpl_vars['selected_st']->value == "D") {
                ?>
        <?php 
                echo $_smarty_tpl->__("disabled");
                ?>

    <?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();
            }
        }
        if ($_smarty_tpl->tpl_vars['display']->value == "select") {
            ?>
<select class="input-small <?php 
            if ($_smarty_tpl->tpl_vars['meta']->value) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['meta']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['input_id']->value) {
                ?>
id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['input_id']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
>
    <option value="A" <?php 
            if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "A") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("active");
            ?>
</option>
    <?php 
            if ($_smarty_tpl->tpl_vars['hidden']->value) {
                ?>
    <option value="H" <?php 
                if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "H") {
                    ?>
selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->__("hidden");
                ?>
</option>
    <?php 
            }
            ?>
    <option value="D" <?php 
            if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "D") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("disabled");
            ?>
</option>
</select>
<?php 
        } elseif ($_smarty_tpl->tpl_vars['display']->value == "popup") {
            ?>
<input <?php 
            if ($_smarty_tpl->tpl_vars['meta']->value) {
                ?>
class="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['meta']->value, ENT_QUOTES, 'UTF-8');
                ?>
"<?php 
            }
            ?>
 type="hidden" name="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" id="<?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['input_id']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['input_name']->value : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_st']->value, ENT_QUOTES, 'UTF-8');
            ?>
" />
<div class="cm-popup-box btn-group dropleft">
    <a id="sw_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="dropdown-toggle btn-text" data-toggle="dropdown">
    <?php 
            echo Smarty::$_smarty_vars['capture']['status_title'];
            ?>

    <span class="caret"></span>
    </a>
    <ul class="dropdown-menu cm-select">
        <?php 
            $_smarty_tpl->tpl_vars["items_status"] = new Smarty_variable(fn_get_default_statuses($_smarty_tpl->tpl_vars['status']->value, $_smarty_tpl->tpl_vars['hidden']->value), null, 0);
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["val"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["val"]->_loop = false;
            $_smarty_tpl->tpl_vars["st"] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['items_status']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["val"]->key => $_smarty_tpl->tpl_vars["val"]->value) {
                $_smarty_tpl->tpl_vars["val"]->_loop = true;
                $_smarty_tpl->tpl_vars["st"]->value = $_smarty_tpl->tpl_vars["val"]->key;
                ?>
            <li <?php 
                if ($_smarty_tpl->tpl_vars['selected_st']->value == $_smarty_tpl->tpl_vars['st']->value) {
                    ?>
class="disabled"<?php 
                }
                ?>
><a class="status-link-<?php 
                echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                ?>
 <?php 
                if ($_smarty_tpl->tpl_vars['selected_st']->value == $_smarty_tpl->tpl_vars['st']->value) {
                    ?>
active<?php 
                }
                ?>
"  onclick="return fn_check_object_status(this, '<?php 
                echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                ?>
', '<?php 
                if ($_smarty_tpl->tpl_vars['statuses']->value) {
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['st']->value]['color']) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8');
                }
                ?>
');" data-ca-result-id="<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['input_id']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['input_name']->value : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['val']->value, ENT_QUOTES, 'UTF-8');
                ?>
</a></li>
        <?php 
            }
            ?>
    </ul>
</div>
<?php 
            if (!Smarty::$_smarty_vars['capture']['avail_box']) {
                ?>
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/select_popup.js"), $_smarty_tpl);
                ?>

    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("avail_box", null, null);
                ob_start();
                ?>
Y<?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();
                }
            }
        } elseif ($_smarty_tpl->tpl_vars['display']->value == "text") {
            ?>
<div class="control-group">
    <label class="control-label cm-required"><?php 
            echo $_smarty_tpl->__("status");
            ?>
:</label>
    <div class="controls">
    <span>
    <?php 
            echo Smarty::$_smarty_vars['capture']['status_title'];
            ?>

    </span>
    </div>
</div>
<?php 
        } else {
            ?>
<div class="control-group">
    <label class="control-label cm-required"><?php 
            echo $_smarty_tpl->__("status");
            ?>
:</label>
    <div class="controls">
        <?php 
            if ($_smarty_tpl->tpl_vars['items_status']->value) {
                ?>
            <?php 
                $_smarty_tpl->tpl_vars["val"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["val"]->_loop = false;
                $_smarty_tpl->tpl_vars["st"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['items_status']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["val"]->index = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars["val"]->key => $_smarty_tpl->tpl_vars["val"]->value) {
                    $_smarty_tpl->tpl_vars["val"]->_loop = true;
                    $_smarty_tpl->tpl_vars["st"]->value = $_smarty_tpl->tpl_vars["val"]->key;
                    $_smarty_tpl->tpl_vars["val"]->index++;
                    $_smarty_tpl->tpl_vars["val"]->first = $_smarty_tpl->tpl_vars["val"]->index === 0;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["status_cycle"]['first'] = $_smarty_tpl->tpl_vars["val"]->first;
                    ?>
                <label class="radio inline" for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                    ?>
"><input type="radio" name="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['st']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8');
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['obj']->value['status'] == $_smarty_tpl->tpl_vars['st']->value || !$_smarty_tpl->tpl_vars['obj']->value['status'] && $_smarty_tpl->getVariable('smarty')->value['foreach']['status_cycle']['first']) {
                        ?>
checked="checked"<?php 
                    }
                    ?>
 value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['st']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" /><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['val']->value, ENT_QUOTES, 'UTF-8');
                    ?>
</label>
            <?php 
                }
                ?>
        <?php 
            } else {
                ?>
            <label class="radio inline" for="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
_a"><input type="radio" name="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
" id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
_a" <?php 
                if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "A" || !$_smarty_tpl->tpl_vars['obj']->value['status']) {
                    ?>
checked="checked"<?php 
                }
                ?>
 value="A" /><?php 
                echo $_smarty_tpl->__("active");
                ?>
</label>

        <?php 
                if ($_smarty_tpl->tpl_vars['hidden']->value) {
                    ?>
            <label class="radio inline" for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_h"><input type="radio" name="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_h" <?php 
                    if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "H") {
                        ?>
checked="checked"<?php 
                    }
                    ?>
 value="H" /><?php 
                    echo $_smarty_tpl->__("hidden");
                    ?>
</label>
        <?php 
                }
                ?>

        <?php 
                if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "P") {
                    ?>
            <label class="radio inline" for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_p"><input type="radio" name="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_p" checked="checked" value="P"/><?php 
                    echo $_smarty_tpl->__("pending");
                    ?>
</label>
        <?php 
                }
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "N") {
                    ?>
            <label class="radio inline" for="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_n"><input type="radio" name="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" id="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                    ?>
_n" checked="checked" value="N"/><?php 
                    echo $_smarty_tpl->__("new");
                    ?>
</label>
        <?php 
                }
                ?>

            <label class="radio inline" for="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
_d"><input type="radio" name="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8');
                ?>
" id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                ?>
_<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['obj_id']->value) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
_d" <?php 
                if ($_smarty_tpl->tpl_vars['obj']->value['status'] == "D") {
                    ?>
checked="checked"<?php 
                }
                ?>
 value="D" /><?php 
                echo $_smarty_tpl->__("disabled");
                ?>
</label>
        <?php 
            }
            ?>
    </div>
</div>
<?php 
        }
    }