<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('view_19');
0
|| checktplrefresh('data/diy/./template/wfdsoft_jiaohu//portal/view_19.htm', './template/wfdsoft_jiaohu/portal/portal_comment.htm', 1524117776, 'diy', './data/template/3_diy_portal_view_19.tpl.php', 'data/diy/./template/wfdsoft_jiaohu/', 'portal/view_19')
|| checktplrefresh('data/diy/./template/wfdsoft_jiaohu//portal/view_19.htm', './template/default/common/seccheck.htm', 1524117776, 'diy', './data/template/3_diy_portal_view_19.tpl.php', 'data/diy/./template/wfdsoft_jiaohu/', 'portal/view_19')
;?><?php include template('common/header'); ?><script src="<?php echo $_G['setting']['jspath'];?>forum_viewthread.js?<?php echo VERHASH;?>" type="text/javascript"></script>
<script type="text/javascript">zoomstatus = parseInt(<?php echo $_G['setting']['zoomstatus'];?>), imagemaxwidth = '<?php echo $_G['setting']['imagemaxwidth'];?>', aimgcount = new Array();</script>
<?php if(!empty($_G['setting']['pluginhooks']['view_article_top'])) echo $_G['setting']['pluginhooks']['view_article_top'];?><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
<style>
.ct2 { border:0; padding-bottom:30px;} 
.vw .d img { max-width:1160px; }
.ie6 .vw .d img { width: expression(this.width > 1160 ? 1160:true); }
</style>

<script type="text/javascript">
  var bodyBgs = [];
  bodyBgs[0] = "<?php echo $_G['style']['styleimgdir'];?>/vbn4.jpg";
  bodyBgs[1] = "<?php echo $_G['style']['styleimgdir'];?>/vbn3.jpg";
  bodyBgs[2] = "<?php echo $_G['style']['styleimgdir'];?>/vbn2.jpg";
  bodyBgs[3] = "<?php echo $_G['style']['styleimgdir'];?>/vbn1.jpg";
  var randomBgIndex = Math.round( Math.random() * 3 );
  document.write('<style>.wk_news_box {background:url(' + bodyBgs[randomBgIndex] + ') no-repeat center top; background-size:cover;}</style>');
</script>

</div>
<div class="wk_news_box">
<div class="wk_portalhead_bg">
        <ul>
        <?php if($wk_menu) { ?>
            <?php if($cat['others']) { ?>
                <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                    <li><a href="<?php echo getportalcategoryurl($value['catid']); ?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
                <?php } ?>
            <?php } ?>
        <?php } else { ?>
            <?php if($cat['subs']) { ?>
                <?php if($cat['others']) { ?>
                    <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                    <?php if($value['catid'] == $cat['catid']) { ?>
                        <li><a href="<?php echo getportalcategoryurl($value['catid']); ?>" title="<?php echo $value['catname'];?>" class="a"><?php echo $week_lang['58'];?></a></li>
                    <?php } ?>
                    <?php } ?>
                <?php } ?>
                <?php if(is_array($cat['subs'])) foreach($cat['subs'] as $value) { ?>                    <li><a href="<?php echo getportalcategoryurl($value['catid']); ?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
                <?php } ?>
            <?php } else { ?>
                <?php if($cat['others']) { ?>
                    <?php if(is_array($cat['ups'])) foreach($cat['ups'] as $value) { if($value['catid'] == $cat['upid']) { ?><li><a href="<?php echo getportalcategoryurl($value['catid']); ?>" title="<?php echo $value['catname'];?>"><?php echo $week_lang['58'];?></a></li><?php } } ?>
                    <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                        <li><a href="<?php echo getportalcategoryurl($value['catid']); ?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
                    <?php } ?>
                <?php } ?>
            <?php } ?>
        <?php } ?>
        </ul>
        <div class="clear"></div>
    </div>
<div class="clear"></div>
<h1 class="ph"><?php echo $article['title'];?> <?php if($article['status'] == 1) { ?>(待审核)<?php } elseif($article['status'] == 2) { ?>(已忽略)<?php } ?></h1>
    <p class="xg1">
        <?php echo $article['dateline'];?><span class="pipe">|</span>
        发布者: <a href="home.php?mod=space&amp;uid=<?php echo $article['uid'];?>"><?php echo $article['username'];?></a><span class="pipe">|</span>
        查看: <em id="_viewnum"><?php if($article['viewnum'] > 0) { ?><?php echo $article['viewnum'];?><?php } else { ?>0<?php } ?></em><span class="pipe">|</span>
        评论: <?php if($article['commentnum'] > 0) { ?><a href="<?php echo $common_url;?>" title="查看全部评论"><em id="_commentnum"><?php echo $article['commentnum'];?></em></a><?php } else { ?>0<?php } ?>
        <?php if($article['author']) { ?><span class="pipe">|</span>原作者: <?php echo $article['author'];?><?php } ?>
        <?php if($article['from']) { ?><span class="pipe">|</span>来自: <?php if($article['fromurl']) { ?><a href="<?php echo $article['fromurl'];?>" target="_blank"><?php echo $article['from'];?></a><?php } else { ?><?php echo $article['from'];?><?php } } ?>

        <?php if($_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']) { ?>
            <span class="pipe">|</span><a href="portal.php?mod=portalcp&amp;ac=article&amp;op=edit&amp;aid=<?php echo $article['aid'];?>">编辑</a>
            <?php if($article['status']>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])) { ?>
                <span class="pipe">|</span><a href="portal.php?mod=portalcp&amp;ac=article&amp;op=verify&amp;aid=<?php echo $article['aid'];?>" id="article_verify_<?php echo $article['aid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">审核</a>
            <?php } else { ?>
                <span class="pipe">|</span><a href="portal.php?mod=portalcp&amp;ac=article&amp;op=delete&amp;aid=<?php echo $article['aid'];?>" id="article_delete_<?php echo $article['aid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">删除</a>
            <?php } ?>
            <span class="pipe">|</span><a id="related_article" href="portal.php?mod=portalcp&amp;ac=related&amp;aid=<?php echo $article['aid'];?>&amp;catid=<?php echo $article['catid'];?>&amp;update=1" onclick="showWindow(this.id, this.href, 'get', 0);return false;">添加相关文章</a>
        <?php } ?>
        <?php if($article['status']==0 && ($_G['group']['allowdiy']  || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5) || getstatus($_G['member']['allowadmincp'], 6))) { ?>
        	<span class="pipe">|</span><a href="portal.php?mod=portalcp&amp;ac=portalblock&amp;op=recommend&amp;idtype=aid&amp;id=<?php echo $article['aid'];?>" onclick="showWindow('recommend', this.href, 'get', 0)">模块推送</a>
        <?php } ?>
        <?php if(!empty($_G['setting']['pluginhooks']['view_article_subtitle'])) echo $_G['setting']['pluginhooks']['view_article_subtitle'];?>
    </p>
</div>
<div class="clear"></div>
<div class="wk_ymbg">
<div id="wp" class="wp">

<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2 wp cl">

        <div class="clear"></div>
        
<div class="bm vw">
        
<div class="h hm wk_hm">

</div>

<!--[diy=diysummarytop]--><div id="diysummarytop" class="area"></div><!--[/diy]-->

<!--[diy=diysummarybottom]--><div id="diysummarybottom" class="area"></div><!--[/diy]-->

<div class="d">

<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->

<table cellpadding="0" cellspacing="0" class="vwtb"><tr><td id="article_content"><?php echo adshow("article/a_af/1");?><?php if($content['title']) { ?>
<div class="vm_pagetitle xw1"><?php echo $content['title'];?></div>
<?php } ?>
<?php echo $content['content'];?>
</td></tr></table>
<?php if(!empty($_G['setting']['pluginhooks']['view_article_content'])) echo $_G['setting']['pluginhooks']['view_article_content'];?>
<?php if($multi) { ?><div class="ptw pbw cl"><?php echo $multi;?></div><?php } ?>

<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->

<script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>

<?php if(!empty($contents)) { ?>
<div id="inner_nav" class="ptn xs1">
<h3>本文导航</h3>
<ul class="xl xl2 cl"><?php if(is_array($contents)) foreach($contents as $key => $value) { $curpage = $key+1;?><?php $inner_view_url = helper_page::mpurl($viewurl, '&page=', $curpage);?><li>&bull; <a href="<?php echo $inner_view_url;?>"<?php if($key === $start) { ?> class="xi1"<?php } ?>>第 <?php echo $curpage;?> 页 <?php echo $value['title'];?></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>

<!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]-->

</div>
<?php if(!empty($aimgs[$content['pid']])) { ?>
<script type="text/javascript" reload="1">aimgcount[<?php echo $content['pid'];?>] = [<?php echo implode(',', $aimgs[$content['pid']]);; ?>];attachimgshow(<?php echo $content['pid'];?>);</script>
<?php } if(!empty($_G['setting']['pluginhooks']['view_share_method'])) { ?>
<div class="tshare cl">
<strong>!viewthread_share_to!:</strong>
<?php if(!empty($_G['setting']['pluginhooks']['view_share_method'])) echo $_G['setting']['pluginhooks']['view_share_method'];?>
</div>
<?php } ?>
            
            <?php if(!empty($_G['setting']['pluginhooks']['view_article_op_extra'])) echo $_G['setting']['pluginhooks']['view_article_op_extra'];?>
            <div class="clear"></div>
            
            <div class="week_share">
                <div class="bdsharebuttonbox"><a class="ishare"><?php echo $week_lang['77'];?></a>
                    <a href="#" class="bds_weixin" data-cmd="weixin" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['78'];?>"><?php echo $week_lang['78'];?></a>
                    <a href="#" class="bds_sqq" data-cmd="sqq" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['79'];?>"><?php echo $week_lang['79'];?></a>
                    <a href="#" class="bds_tsina" data-cmd="tsina" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['80'];?>"><?php echo $week_lang['80'];?></a>
                    <a href="#" class="bds_qzone" data-cmd="qzone" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['81'];?>"><?php echo $week_lang['81'];?></a>
                    <a href="#" class="bds_tqq" data-cmd="tqq" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['82'];?>"><?php echo $week_lang['82'];?></a>
                    <a href="#" class="bds_renren" data-cmd="renren" title="<?php echo $week_lang['77'];?> <?php echo $week_lang['83'];?>"><?php echo $week_lang['83'];?></a>
                </div>
                <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
            </div>

<div class="clear"></div>
</div>

<!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]--><?php echo adshow("article/mbm hm/2");?><?php echo adshow("article/mbm hm/3");?><!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]-->

<?php if($wk_comment) { if($article['allowcomment']==1) { $data = &$article?><div id="comment" class="bm">
<div class="w_title">
<?php if(!$data['htmlmade']) { if($data['commentnum']) { ?>
<a href="javascript:;" class="y xi2" onclick="location.href=location.href.replace(/(\#.*)/, '')+'#cform';$('message').focus();return false;">发表评论</a>
<?php } } else { ?>
<a href="<?php echo $common_url;?>#cform" class="y xi2">发表评论</a>
<?php } ?>
<h3>最新评论</h3>
</div>
<div id="comment_ul" class="bm_c">
    	<?php if(!$data['htmlmade']) { ?>
<form id="cform" name="cform" action="<?php echo $form_url;?>" method="post" autocomplete="off">
<div class="tedt">
<div class="area">
<textarea name="message" rows="3" class="pt" id="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
</div>
</div>

<?php if($secqaacheck || $seccodecheck) { ?><?php
$sectpl = <<<EOF
<sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
EOF;
?>
<div class="mtm"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
$sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
<span id="secqaa_q<?php echo $sechash;?>"></span>		
<script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
<?php } if($seccodecheck) { ?>
<span id="seccode_c<?php echo $sechash;?>"></span>		
<script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
<?php } ?></div>
<?php } if(!empty($topicid) ) { ?>
<input type="hidden" name="referer" value="<?php echo $topicurl;?>#comment" />
<input type="hidden" name="topicid" value="<?php echo $topicid;?>">
<?php } else { ?>
<input type="hidden" name="portal_referer" value="<?php echo $viewurl;?>#comment">
<input type="hidden" name="referer" value="<?php echo $viewurl;?>#comment" />
<input type="hidden" name="id" value="<?php echo $data['id'];?>" />
<input type="hidden" name="idtype" value="<?php echo $data['idtype'];?>" />
<input type="hidden" name="aid" value="<?php echo $aid;?>">
<?php } ?>
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
<input type="hidden" name="replysubmit" value="true">
<input type="hidden" name="commentsubmit" value="true" />
<p class="ptn"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="wk_fbpltp"><img src="<?php echo $_G['style']['styleimgdir'];?>/publish.png" title="评论"/></button></p>
</form>
<?php } ?>
        <div class="clear"></div><?php if(is_array($commentlist)) foreach($commentlist as $comment) { include template('portal/comment_li'); if(!empty($aimgs[$comment['cid']])) { ?>
<script type="text/javascript" reload="1">aimgcount[<?php echo $comment['cid'];?>] = [<?php echo implode(',', $aimgs[$comment['cid']]);; ?>];attachimgshow(<?php echo $comment['cid'];?>);</script>
<?php } } if(!empty($pricount)) { ?>
<p class="mtn mbn y">提示：本页有 <?php echo $pricount;?> 个评论因未通过审核而被隐藏</p>
<?php } ?>
        <?php if($data['commentnum']) { ?><p class="ptm pbm"><a href="<?php echo $common_url;?>" class="xi2">查看全部评论(<em id="_commentnum"><?php echo $data['commentnum'];?></em>)</a></p><?php } ?>
</div>
</div><?php } } ?>

<!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]-->
</div>
</div>
<div class="clear"></div>

<?php if($_G['relatedlinks']) { ?>
<script type="text/javascript">
var relatedlink = [];<?php if(is_array($_G['relatedlinks'])) foreach($_G['relatedlinks'] as $key => $link) { ?>relatedlink[<?php echo $key;?>] = {'sname':'<?php echo $link['name'];?>', 'surl':'<?php echo $link['url'];?>'};
<?php } ?>
relatedlinks('article_content');
</script>
<?php } if($article['preaid'] || $article['nextaid']) { ?>
<div class="wk_sxy">
    <?php if($article['prearticle']) { ?><div class="post-prev" ><a href="<?php echo $article['prearticle']['url'];?>" title="上一篇：<?php echo $article['prearticle']['title'];?>">&lt;</a></div><?php } ?>
    <?php if($article['nextarticle']) { ?><div class="post-next" ><a href="<?php echo $article['nextarticle']['url'];?>" title="下一篇：<?php echo $article['nextarticle']['title'];?>">&gt;</a></div><?php } ?>
</div>
<?php } ?>

<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<input type="hidden" id="portalview" value="1"><?php include template('common/footer'); ?>