<!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>
            <link href="{{$style_path}}main.css" rel="stylesheet" type="text/css" />
            <base target="_self" />

    </head>
    <body>
        <div class="layout">
            <!-- 当前所在位置和相关链接 -->
            <div class="location_nav">
                <!-- 当前所在位置 -->
                <div class="location_link">
                    <ol id='breadcrumb'>
                        {{foreach from=$location_link item=link name=link}}
                        <li>{{$link}}{{if !$smarty.foreach.link.last}}&nbsp;&gt;&nbsp;{{/if}}</li>
                        {{/foreach}}
                    </ol>
                </div>
                <!-- 相关链接 -->
                <div class="location_other">
                    {{foreach from=$location_other item=other_link}}
                    {{$other_link}}&nbsp;
                    {{/foreach}}
                </div>
            </div>

            <!-- 添加目录标题行 -->
            <div class="title_bgcolor">
                <span>{{$lang.title_create_dir}}</span>
            </div>
            <!-- 添加目录表单 -->
            <div style="height:50px;">
                <p style="margin-top:10px;"><form action="" method="post">
                        {{$lang.label_dir_name}}<input class="input_style" name="text_dir_name" type="text"  />
                        &nbsp;&nbsp;
                        <input type='submit' name="sub_add_dir" class='button primary' value='{{$lang.submit}}' />
                        &nbsp;&nbsp;
                        <input type='reset' class='realbutton' value='{{$lang.reset}}' />
                </p></form>
            </div>
            <!-- 目录列表标题行 -->
            <div class="title_bgcolor">
                <span>{{$lang.title_pic_dir_list}}</span>
            </div>
            <!-- 目录列表 -->
            <div class="div_li_data">
                <form style="margin-top:0px;" action="content.php?act=tag" method="post">
                <ul class="data_list" id="tag_box">
                    {{foreach from=$cate_dir item=dirs}}
                    <li>
                        <div>
                            <div>
                                <!-- 如果是写博客页面跳过来的，则多传递一个参数 -->
                                <a href="image.php?act=images&cate_id={{$dirs.cate_id}}{{if $select_func}}&func={{$select_func}}{{/if}}" border="0">
                                    <img src="{{$base_root_url}}/{{$dirs.default_pic}}">
                                </a>
                            </div>
                            <div><a href="image.php?act=images&cate_id={{$dirs.cate_id}}" border="0">{{$dirs.cate_name}}({{$dirs.image_total}})</a></div>
                        </div>
                    </li>
                    {{/foreach}}
                </ul>
                <div>&nbsp;</div>
                </form>
            </div>

        </div>
    </body>
</html>