<!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>{{$article.0.subject}}-{{$power}}</title>
        <meta name="keywords" content="{{$article.0.keywords}}" />
        <meta name="description" content="{{$site_desc}}" />
        <meta name="copyright" content="{{$power}}" />
        <meta name="MSSmartTagsPreventParsing" content="True" />
        <meta http-equiv="MSThemeCompatible" content="Yes" />
        <meta http-equiv="x-ua-compatible" content="ie=7" />
        <style type="text/css">@import url("{{$gen_css_path}}");</style>
        <script src="js/global.js" type="text/javascript"></script>
        <script src="js/index.js" type="text/javascript"></script>
        <link href="js/googlecode/prettify.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="js/googlecode/prettify.js"></script>
        <script type="text/javascript" src="js/comment.js"></script>
        <link rel="alternate" type="application/rss+xml" href="rss.xml" title="Gen" />
        <link rel="Shortcut Icon" href="images/favicon.ico" type="image/x-icon" />
    </head>

    <body onload="prettyPrint()">
        <!-- START 调用头部 -->
        {{include file="library/header.html"}}
        <!-- END   调用头部 -->
        <div id="wrap">


            <div id="content">

                <div id="contentleft">
		{{foreach from=$article item=art}}
                    <h3>
                        [{{if $art.is_original eq 1}}{{$lang.label_original}}{{else}}{{$lang.label_reship}}{{/if}}]
                        <a rel="bookmark" href="view_content.php?aid={{$art.article_id}}" title="{{$art.subject}}">
                            {{$art.subject}}
                        </a>
                    </h3>
                    <div class="date">
			{{$art.submit_time|date_format:"%Y-%m-%d %H:%I:%S"}} by {{$art.nickname}} .
                        <img src="{{$gen_img_path}}comment.png"></img>
                        <a rel="bookmark" href="view_content.php?aid={{$art.article_id}}">{{$art.repl_number}} Comment</a>
                        &nbsp;Reading {{$art.click_number}}&nbsp;<a href="./admin/content.php?act=add_content&mod=edit&aid={{$art.article_id}}" target="_blank">Editor</a>
                    </div>
                    <div style="clear:both;">
			{{$art.content}}
                        <div class="postmeta">
                            <p>{{$lang.category}} <a href="./list.php?step=category&act={{$art.category_id}}">{{if $art.category_name}}{{$art.category_name}}{{/if}}</a>
                                &nbsp;{{$lang.tags}}
                                {{foreach from=$art.tags_id item=tags}}
                                <a href="./list.php?step=tag&act={{$tags.tag_id}}">{{$tags.tag_name}}</a>&nbsp;&nbsp;
			{{/foreach}}
                            </p>
                        </div>
                    </div>
		{{/foreach}}
                <!--显示评论内容-->
                <div style="border-bottom:  #009988 1px solid;">
                    <div style="float:left;width:400px;"><a href="#comment_tips" name="comment_header">{{$lang.add_comment}}</a></div><div>{{$comment_count}}</div>
                </div>

                {{foreach from=$reply_list1 name=rep item=reply}}
                <div class="comment_list">
                    <div style="float:left;margin-top:15px;width:420px;height:auto;">
                    {{if $reply.website neq ''}}
                    <a href="{{$reply.website}}">{{$reply.author_name}}</a>
                    {{elseif $reply.email neq ''}}
                    <a href="mailto:{{$reply.email}}">{{$reply.author_name}}</a>
                    {{else}}
                    {{$reply.author_name}}
                    {{/if}}
                    {{$lang.published_in}}{{$reply.format_time}}
                    &nbsp; <a href="#{{$reply.reply_id}}" name="{{$reply.reply_id}}">#{{$reply.lou}}</a>
                    </div>
                    <div style="margin:0px;height:auto;">
                        {{if $reply.user_pic eq ''}}
                        <img style="border:#CCC 1px solid;" src="images/avatars/unrecorded .jpg"></img>
                        {{else}}
                        <img style="border:#CCC 1px solid;" src="{{$reply.user_pic}}"></img>
                        {{/if}}
                    </div>
                    
                    <div id="comment_list_text">
                        {{$reply.content}}
                        {{if $reply.admin_reply_content neq ''}}
                        <div class="comment_admin_reply">{{$reply.admin_user_name}} &nbsp;{{$reply.admin_last_change_time|date_format:"%Y-%m-%d %H:%I:%S"}}</div>
                        <div class="comment_admin_reply">{{$reply.admin_reply_content}}</div>
                        {{/if}}
                    </div>
                    <div id="comment_list_reply">
                        <a href="#text_comment" onclick="fnInsertReply('{{$lang.label_reply}}', '{{$current_page_url}}', '{{$reply.reply_id}}', '{{$reply.author_name}}');">{{$lang.label_reply}}</a>
                        <a href="#text_comment" onclick="fnInsertQuote('{{$lang.label_quote}}', '{{$current_page_url}}', '{{$reply.reply_id}}', '{{$reply.author_name}}', '{{$reply.entites_content}}')">{{$lang.label_quote}}</a>
                    </div>
                </div>
                {{/foreach}}
                <!--评论分页-->
                    <div class="sabrosus">
                        {{$page}}
                    </div>
                <div style="height: 10px;"></div>
                    <!--评论提交表单-->
                    {{if $is_allow_comment eq 1}}
                    <form name="form1" method="post">
                    <div class="comment">
                        <a name="comment_tips"></a>
                        <div class="comment_style">{{$lang.title_add_comment}}</div>
                        <div class="comment_style">
                            <input type="text" name="text_name" class="input_style" value="{{if $guest.name}}{{$guest.name}}{{else}}Name{{/if}}" onfocus="fnFocus(this, 'Name')" onblur="fnBlur(this, 'Name')"/>
                            <span id="notice_name">*</span>
                        </div>
                        <div class="comment_style">
                            <input type="text" name="text_email" class="input_style" value="{{if $guest.email}}{{$guest.email}}{{else}}Email{{/if}}" onfocus="fnFocus(this, 'Email')" onblur="fnBlur(this, 'Email')"/>
                            <span id="notice_email">*</span>
                        </div>
                        <div class="comment_style">
                            <input type="text" name="text_website" class="input_style" value="{{if $guest.website}}{{$guest.website}}{{else}}Website{{/if}}" onfocus="fnFocus(this, 'Website')" onblur="fnBlur(this, 'Website')"/>
                            <span id="notice_website">{{$lang.notice_website}}</span>
                        </div>
                        <div class="comment_style">
                            <textarea class="textarea_comment" name="text_comment" id="text_comment"></textarea>
                            <div class="smile">
                                {{$lang.notice_smile}}
                                {{foreach from=$smilies item=smilie}}
				{{$smilie}}
                                {{/foreach}}
                            </div>
                        </div>
                        <div id="comment_notice_relative" onclick="fnClockNoticeComment();">{{$lang.notice_comment}}</div>
                        <div class="comment_style" style="float:left">
                            <input type="hidden" name="text_article_id" value="{{$article.0.article_id}}"/>
                            <input type="button" onclick="fnSubForm('{{$current_page_url}}');" class="button1" name="sub_comment" value="{{$lang.submit_pub_reply}}"/>
                        </div>
                    </form>
                    </div>
                    {{/if}}
                    

                </div>
                
	{{include file="library/l_sidebar.html"}}
	{{include file="library/r_sidebar.html"}}
            </div>

            <!-- START 调用底部 -->
            {{include file="library/footer.html"}}
            <!-- END   调用底部 -->

    </body>
</html>