
<script>
    function number($id){
        $id=$id+1
        return $id;
    }
  
</script>
<div class="new_share r">
    <span class="l b">分享到：</span>
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <a class="bds_t163"></a>
        <span class="bds_more"></span>
        <a class="shareCount"></a>
    </div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=2243292" ></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
    </script>
    <!-- Baidu Button END -->
</div>

<div class="blank10"></div>
<form  method="post" id ="commentary_form" name="commentary_form">
    <div class="postcomments">
        <h3 class="tit_base"><span class="l">最新评论</span><a href="javascript:void(0)" target="_self" onclick="reghref()">刷新</a></h3>

        <ol class="commentlist" id="commentlist" name="commentlist">

            {评论信息}
            <li class="comment depth_1">
                <div class="c_floor">
                    <input type="button" name="remark" style="visibility:hidden" value="{remark}">
                    {remark}#
                </div>

                <div class="c_avatar"><img class="avatar" src="images/img/thumb.jpg" alt="" /></div>
                <div class="c_main">
                    <p>{content}</p>
                    <div class="c_meta">
                        <span class="c_author">用户名：<a href="">{username}</a></span>
                        <p>  {publish_time} </p>

                    </div>
            </li>
            {/评论信息}
            <div id="depth_1" name="depth_1"></div>

        </ol>

        <input type="button" onclick="form_button()" value="点击更多">
        <input type="button" name="acticle_id" style="visibility:hidden" value="<?php echo $commentary_id; ?>">
    </div>

</form>
<div class="blank20"></div>
<form id="commentary_action" name="commentary_action" mehtod="post">
    <div class="webshot rel">

        <div class="title_base_a">
            <a >已有<span class="gcc0"> {评论条数}{count(*)}  {/评论条数}</span>条评论，共<span class="gcc0">  {评论人数}{num_user}  {/评论人数}</span>人参与</a>
        </div>

        <h3 class="title_base"></h3>
        <div class="comt">
            <input type="text" id="acticle_id" name="acticle_id" value="<?php echo $commentary_id ?>" style="visibility:hidden" >
            <textarea class="comt_area" name="saytext" id="saytext" cols="100%" rows="3" tabindex="1" onKeyDown=""></textarea>
            <div class="comt_ctrl">
                <div id="show"></div>
                <span class="emotion">表情</span></p>
                <input class="comt_submit" type="button" name="button" id="button" tabindex="5" value="发布评论" onclick="form_submit()">
            </div>
            <script type="text/javascript">
                $(function(){
                    $('.emotion').qqFace({
                        id : 'facebox', 
                        assign:'saytext', 
                        path:'arclist/'	//表情存放的路径
                    });
                    $(".sub_btn").click(function(){
                        var str = $("#saytext").val();
                        $("#show").html(replace_em(str));
                    });
                });
                //查看结果
                function replace_em(str){
                    str = str.replace(/\</g,'&lt;');
                    str = str.replace(/\>/g,'&gt;');
                    str = str.replace(/\n/g,'<br/>');
                    str = str.replace(/\[em_([0-9]*)\]/g,'<img src="arclist/$1.gif" border="0" />');
                    return str;
                }
                function reghref(){
                    document.URL= location.reload();
                }
                
            </script>
            <div class="comment">         
            </div>    
        </div>
    </div>
</form>
<div class="blank20"></div>

