<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
            <title>{{$lang.admin_title}}</title>
            <script type="text/javascript" src="{{$js_path}}global.js"></script>
            <script type="text/javascript" src="{{$admin_js_path}}admin.js"></script>
            <script type="text/javascript" src="{{$js_path}}transport.js"></script>
            <link href="{{$style_path}}stylesheet.css" rel="stylesheet" type="text/css" />
              <script type="text/javascript">
                var fnClearCache = function() {
                    Ajax.call('includes/transport.php?&act=clear_cache','', fnCheckCommentResponse, 'GET', 'JSON');
                }
                var fnCheckCommentResponse = function(result) {
                    if (result.error) {
                        alert(result.error);
                    } else {
                        alert(result.status);
                    }
                }
            </script>
    </head>
    <body>
        <div id="admin">
            <!-- top -->
            <div id="top">
                <div id="banner">
                    <div class="logo">
                        <span style="color:#F5ad2e;"><strong>{{$admin}}</strong> , [&nbsp;<strong><a href="../logout.php">{{$lang.logout}}</a></strong>&nbsp;]</span>&nbsp;&nbsp;
                        <a href="./">{{$lang.admin_index}}</a>&nbsp;&nbsp;
                        <a href="../" target="_blank">{{$lang.site_index}}</a>&nbsp;&nbsp;
                        <a href="javascript:fnClearCache();">{{$lang.clear_cache}}</a>&nbsp;&nbsp;
                        <a href="http://www.smartgoon.com" target="_blank">{{$lang.official_site}}</a>&nbsp;&nbsp;
                        <a href="javascript:;">{{$lang.about}}</a>&nbsp;&nbsp;
                        <a href="">{{$lang.help}}</a>&nbsp;&nbsp;
                    </div>
                </div>
                <div id="nav_div">
                    <div id="nav_menu">{{$lang.nav_list_label}}</div>
                    <div id="nav_list">
                        <ul class="nav_ul">
                            {{foreach from=$nav item=li}}
                            <li class="nav_li {{if $li.current}}nav_current{{/if}}"><a href="{{$li.url}}">{{$li.name}}</a></li>
                            {{/foreach}}
                        </ul>
                        <div id="load-div"><img src="{{$image_path}}top_loader.gif" width="16" height="16" alt=""/></div>
                    </div>
                </div>
            </div>
            <div class="top_line"></div>

            <!-- content -->
            <div id="content">
                <!-- left -->
                <div id="menu" style="height:{{if $view_size.height}}{{$view_size.height}}{{else}}802px;{{/if}}">
                    <ul id="menu_ul" class="word">
                        {{foreach from=$category item=cate name=cate}}
                        <li class="menu_li {{if $smarty.foreach.cate.iteration eq 1}}menu_li_cur{{/if}}"><a href="{{$cate.url}}" target="main" onclick="fnSetMenuStyle(this);">{{$cate.name}}</a></li>
                        {{/foreach}}
                    </ul>
                </div>

                <!-- main -->
                <div id="main" style="height:{{if $view_size.height}}{{$view_size.height}}{{else}}802px;{{/if}}">
                    <iframe src="{{$loading_page}}" id="main" name="main" width="100%" height="{{if $view_size.height}}{{$view_size.height}}{{else}}100%{{/if}}" frameborder="0" scrolling="no" style="overflow:hidden;"></iframe>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            fnAutoSetWindow();
        </script>
    </body>
</html>