<div class="container-fluid">
        <{if $now_op=="login_form"}>
            <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_ssh_login_form.tpl"}>
        <{else}>

            <div id="admTab1">
                <ul>
                    <{if $all_install.upgrade or $all_install.unable}>
                        <li><a href="#tabs1"><{$smarty.const._MA_TADADMIN_NEED_UPGRADE}></a></li>
                    <{/if}>
                    <li><a href="#tabs2"><{$smarty.const._MA_TADADMIN_INSTALLED}></a></li>
                    <{if $all_uninstall.module}><li><a href="#tabs3"><{$smarty.const._MA_TADADMIN_ENABLE_MODS}></a></li><{/if}>
                    <{if $all_uninstall.adm_tpl}><li><a href="#tabs4"><{$smarty.const._MA_TADADMIN_ENABLE_ADM}></a></li><{/if}>
                    <{if $all_uninstall.theme}><li><a href="#tabs5"><{$smarty.const._MA_TADADMIN_ENABLE_THEME}></a></li><{/if}>
                    <{if $all_uninstall.block}><li><a href="#tabs6"><{$smarty.const._MA_TADADMIN_ENABLE_BLOCK}></a></li><{/if}>
                </ul>

                <{if $all_install.upgrade or $all_install.unable}>
                    <div id="tabs1" >
                        <!-- 需升級 -->
                        <{if $all_install.upgrade}>
                            <{foreach from=$all_install.upgrade key=kind item=items}>
                                <!-- 使用中 -->
                                <{if $items.1}>
                                    <h2 class="mod_head"><{$kind}></h2>
                                    <table class="footable">
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                    <{foreach from=$items.1 key=dirname item=mod}>
                                        <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                    <{/foreach}>
                                    </table>
                                <{/if}>

                                <!-- 關閉中 -->
                                <{if $items.0}>
                                    <h2 class="mod_head"><{$kind}><{$smarty.const._MA_TADADMIN_CLOSED}></h2>
                                    <table class="footable">
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                    <{foreach from=$items.0 key=dirname item=mod}>
                                        <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                    <{/foreach}>
                                    </table>
                                <{/if}>
                            <{/foreach}>
                        <{/if}>

                        <!-- 無法升級 -->
                        <{if $all_install.unable}>
                            <{foreach from=$all_install.unable key=kind item=items}>
                                <!-- 使用中 -->
                                <{if $items.1}>
                                    <h2 class="mod_head"><{$kind}></h2>
                                    <table class="footable">
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                    <{foreach from=$items.1 item=mod}>
                                        <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                    <{/foreach}>
                                    </table>
                                <{/if}>

                                <!-- 關閉中 -->
                                <{if $items.0}>
                                    <h2 class="mod_head"><{$kind}><{$smarty.const._MA_TADADMIN_CLOSED}></h2>
                                    <table class="footable">
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                    <{foreach from=$items.0 item=mod}>
                                        <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                    <{/foreach}>
                                    </table>
                                <{/if}>
                            <{/foreach}>
                        <{/if}>
                    </div>
                <{/if}>

                <div id="tabs2">
                    <{foreach from=$all_install.latest key=kind item=items}>
                        <!-- 使用中 -->
                        <{if $items.1}>
                            <h2 class="mod_head"><{$kind}></h2>
                            <table class="footable">
                            <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                            <{foreach from=$items.1 item=mod}>
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                            <{/foreach}>
                            </table>
                        <{/if}>

                        <!-- 關閉中 -->
                        <{if $items.0}>
                            <h2 class="mod_head"><{$kind}><{$smarty.const._MA_TADADMIN_CLOSED}></h2>
                            <table class="footable">
                            <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                            <{foreach from=$items.0 item=mod}>
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                            <{/foreach}>
                            </table>
                        <{/if}>
                    <{/foreach}>
                </div>

                <!-- 可安裝模組 -->
                <{if $all_uninstall.module}>
                    <div id="tabs3" >
                        <{if $all_uninstall.module.install}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_MODS}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.module.install item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>

                        <{if $all_uninstall.module.unable}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_MODS}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.module.unable item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>
                    </div>
                <{/if}>

                <!-- 可安裝後台 -->
                <{if $all_uninstall.adm_tpl}>
                    <div id="tabs4">
                        <{if $all_uninstall.adm_tpl.install}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_ADM}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.adm_tpl.install item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>

                        <{if $all_uninstall.adm_tpl.unable}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_ADM}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.adm_tpl.unable item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>
                    </div>
                <{/if}>


                <{if $all_uninstall.theme}>
                    <div id="tabs5">
                        <{if $all_uninstall.theme.install}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_THEME}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.theme.install item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>

                        <{if $all_uninstall.theme.unable}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_THEME}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.theme.unable item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>
                    </div>
                <{/if}>


                <{if $all_uninstall.block}>
                    <div id="tabs6">
                        <{if $all_uninstall.block.install}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_BLOCK}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.block.install item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>

                        <{if $all_uninstall.block.unable}>
                            <h2 class="mod_head"><{$smarty.const._MA_TADADMIN_ENABLE_BLOCK}></h2>
                            <table class="footable">
                                <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_thead.tpl"}>
                                <{foreach from=$all_uninstall.block.unable item=mod}>
                                    <{includeq file="$xoops_rootpath/modules/tad_admin/templates/sub_modules_list.tpl"}>
                                <{/foreach}>
                            </table>
                        <{/if}>
                    </div>
                <{/if}>
            </div>

        <{/if}>
    </div>

    <{$FooTableJS}>
    <{$fancybox_code}>
    <{$jquery}>
    <script>
        $( function() {
            $( "#admTab1" ).tabs();
        } );
    </script>