<!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" />
    </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.content_list}}</span>
            </div>
            <!-- 文章列表 -->
            <div class="div_li_data">
                <form style="margin-top:0px;" action="{{$current_page_url}}" method="post">
                    <span><a href="javascript:;"><input type="checkbox" onclick="fnSelectCheckbox(this, 'article_box')"></a>（{{$lang.select_all}}&nbsp;/&nbsp;{{$lang.select_notall}}）</span>

                    <span><input type='submit' name="sub_del_article" class='button' value='{{$lang.delete_select}}' onclick="javascript: return fnRunterDel('{{$lang.notice_allow_delete}}')"/></span>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label>{{$lang.label_cate}}：</label>
                    <select name="text_cate_search">
                        <option value="0">{{$lang.please_select_cate}}</option>
                        {{foreach from=$cate_list item=cate}}
                        <option value="{{$cate.category_id}}" {{if $w_cate_id eq $cate.category_id}}selected{{/if}}>{{$cate.category_name}}</option>
                        {{/foreach}}
                    </select>
                    <label>{{$lang.label_tag}}：</label>
                    <select name="text_tag_search">
                        <option value="0">{{$lang.please_select_tag}}</option>
                        {{foreach from=$tags_list item=tags}}
                        <option value="{{$tags.tag_id}}" {{if $w_tag_id eq $tags.tag_id}}selected{{/if}} >{{$tags.tag_name}}</option>
                        {{/foreach}}
                    </select>
                    <label>{{$lang.label_subject}}：</label>
                    <input type="text" name="text_subject_search" value="{{if $w_subject_val}}{{$w_subject_val}}{{/if}}"/>
                    <input type="submit" class='button' name="text_search_sub" value="{{$lang.search}}" />

                    <span><hr/></span>
                    <table width="100%" bgcolor="#E4EAF1" cellpadding="1" cellspacing="1" border="0" id="article_box">
                        <tr style="background:#6D829C;font-size:14px;color:#FFF; font-weight:bold;height:25px;">
                            <th width="5%"></th>
                            <th width="6%">{{$lang.label_number}}</th>
                            <th width="12%">{{$lang.label_cate}}</th>
                            <th width="25%">{{$lang.label_subject}}</th>
                            <th width="16%">{{$lang.label_time}}</th>
                            <th width="10%">{{$lang.label_author}}</th>
                            <th width="7%">{{$lang.label_click}}</th>
                            <th width="7%">{{$lang.label_repl}}</th>
                            <th width="12%">{{$lang.label_operate}}</th>
                        </tr>
                        {{foreach from=$article_list item=articles}}
                        <tr style="background:#FFF;font-size:14px;color:#6D829C;height:25px;">
                            <td style="padding-left:10px;"><input type="checkbox" name="text_articles_id[]" value="{{$articles.article_id}}"></td>
                            <td style="padding-left:10px;">{{$articles.article_id}}</td>
                            <td style="padding-left:10px;">{{if $articles.category_name eq '0'}}{{$lang.not_cate}}{{else}}{{$articles.category_name}}{{/if}}</td>
                            <td style="padding-left:10px;" class="list"><a href="../view_content.php?aid={{$articles.article_id}}" target="_blank">{{$articles.subject}}</a></td>
                            <td style="padding-left:18px;">{{$articles.submit_time|date_format:"%Y-%m-%e %T"}}</td>
                            <td style="padding-left:10px;">{{$articles.username}}</td>
                            <td style="padding-left:10px;">{{$articles.click_number}}</td>
                            <td style="padding-left:10px;">{{$articles.repl_number}}</td>
                            <td style="padding-left:10px;text-align:center;" class="list">
                                <a href="./content.php?act=add_content&mod=edit&aid={{$articles.article_id}}">{{$lang.operate_editor}}</a>
                                <a href="{{$current_page_url}}&mod=del&aid={{$articles.article_id}}" onclick="javascript: return fnRunterDel('{{$lang.notice_allow_delete}}')">{{$lang.operate_delete}}</a>
                            </td>
                        </tr>
                        {{/foreach}}
                        <tr>
                            <td colspan="9" style="text-align:right;padding-right:20px;">
                                <div class="sabrosus" id="local_page" style="text-align:right;">
                                    {{$page}}
                                </div>
                            </td>
                        </tr>
                    </table>
                    <div>&nbsp;</div>
                </form>
            </div>

        </div>
    </body>
    <!-- 加载分页的样式 -->
    <script type="text/javascript">
            var sSpan = $('local_page').childNodes;
            var iNum  = sSpan.length;
            for (i = 0; i < iNum; i++) {
                if (sSpan[i].tagName == 'SPAN') {
                    sSpan[i].className += 'current';
                }
            }

    </script>
</html>