<!-- Breadcrumb Header -->
<{includeq file="db:system_header.tpl"}>
<script type="text/javascript">
    IMG_ON = '<{xoAdminIcons success.png}>';
    IMG_OFF = '<{xoAdminIcons cancel.png}>';
</script>
<{if $filterform}>
    <div class="floatright">
        <div class="xo-buttons">
            <button id="xo-add-btn" class="ui-corner-all" onclick="self.location.href='admin.php?fct=blocksadmin&amp;op=add';">
                <img src="<{xoAdminIcons add.png}>" alt="<{$smarty.const._AM_SYSTEM_BLOCKS_ADD}>"/>
                <{$smarty.const._AM_SYSTEM_BLOCKS_ADD}>
            </button>
        </div>
    </div>
    <div class="clear"></div>
    <div id="xo-block-dragndrop">
        <table class="outer">
            <tr>
                <th>
                    <form name="<{$filterform.name}>" id="<{$filterform.name}>" action="<{$filterform.action}>" method="<{$filterform.method}>"
                            <{$filterform.extra}> >
                        <div class="xo-blocksfilter">
                            <{foreach item=element from=$filterform.elements}>
                                <{if $element.hidden != true}>
                                    <div class="xo-caption"><{$element.caption}></div>
                                    <div class="xo-element"><{$element.body}></div>
                                <{else}>
                                    <{$element.body}>
                                <{/if}>
                            <{/foreach}>
                        </div>
                    </form>
                </th>
            </tr>
            <tr>
                <td>
                    <table id="xo-block-managment">
                        <tr>
                            <td side="0" class="xo-blocksection" rowspan="3" id="xo-leftcolumn">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDELEFT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=0}>
                            </td>
                            <td side="3" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDETOPLEFT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=3}>
                            </td>
                            <td side="5" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDETOPCENTER}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=5}>
                            </td>
                            <td side="4" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDETOPRIGHT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=4}>
                            </td>
                            <td side="1" class="xo-blocksection" rowspan="3" id="xo-rightcolumn">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDERIGHT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=1}>
                            </td>
                        </tr>
                        <tr style="height:30px;">
                            <td colspan="3" class="xo-blockContent width5">&nbsp;</td>
                        </tr>
                        <tr>
                            <td side="7" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEBOTTOMLEFT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=7}>
                            </td>
                            <td side="9" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEBOTTOMCENTER}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=9}>
                            </td>
                            <td side="8" class="xo-blocksection">
                                <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEBOTTOMRIGHT}></div>
                                <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=8}>
                            </td>
                        </tr>
                        <tr>
                            <!-- Start Footer Blocks (By Timgno) -->
                            <table id="xo-block-footer">
                                <tr>
                                    <td side="10" class="xo-blocksection">
                                        <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEFOOTERLEFT}></div>
                                        <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=10}>
                                    </td>
                                    <td side="12" class="xo-blocksection">
                                        <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEFOOTERCENTER}></div>
                                        <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=12}>
                                    </td>
                                    <td side="11" class="xo-blocksection">
                                        <div class="xo-title"><{$smarty.const._AM_SYSTEM_BLOCKS_SIDEFOOTERRIGHT}></div>
                                        <{includeq file="db:system_blocks_item.tpl" blocks=$blocks side=11}>
                                    </td>
                                </tr>
                            </table>
                            <!-- End Footer Blocks (By Timgno) -->
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
<{/if}>
<div id="xo-block-add" <{if $filterform}>class="hide"<{/if}>>
    <{if !$filterform}><br/><{/if}>
    <{$blockform}>
</div>
<!-- Preview block -->
<div id="xo-preview-block" class="hide"></div>
