www.gusucode.com > 高端教育培训门户+论坛网站源码程序 > 整站安装/整站源码/data/template/2_diy_portal_view_6.tpl.php

    <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('view_6');
0
|| checktplrefresh('data/diy/./template/wfdsoft_dmegc_160717//portal/view_6.htm', './template/wfdsoft_dmegc_160717/portal/portal_comment.htm', 1474376805, 'diy', './data/template/2_diy_portal_view_6.tpl.php', 'data/diy/./template/wfdsoft_dmegc_160717/', 'portal/view_6')
|| checktplrefresh('data/diy/./template/wfdsoft_dmegc_160717//portal/view_6.htm', './template/default/common/seccheck.htm', 1474376805, 'diy', './data/template/2_diy_portal_view_6.tpl.php', 'data/diy/./template/wfdsoft_dmegc_160717/', 'portal/view_6')
;
block_get('59,60,61,58');?><?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>
<style type="text/css">
.wp,#wp{ width:1180px;}
.deanwp{ width:1180px!important; margin:0 auto!important;}
.deanfabuxinxi{ position:relative; text-align:center; height:45px; line-height:45px; border-bottom: 1px dotted #dee5ec;  padding-bottom: 10px;}
.deanfbxxtop{ float:left; }
.deanfbxxtop a{ display:block; float:left;}
.deanfbxxtop a span.deantx{ display:block; float:left; width:45px; height:45px;}
.deanfbxxtop a span.deantx img{ width:45px; height:45px; border-radius:100%; }
.deanfbxxtop a span.deanzzm{ display:block; float:left;  padding:0 10px; font-size:14px; color:#999; height:45px; line-height:45px;}
.deanfbxxbottom span.deandate{  display:block; float:left;  padding:0 10px; font-size:14px;background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/date1.png) left center no-repeat;padding-left:25px; color:#999; height:45px; line-height:45px;}
.deanfbxxbottom{ float:left; }
.deanfbxxbottom span{ display:inline-block; padding-left:25px; font-size:12px; color:#999; margin-right:10px;}
.deanfbxxbottom span a{ font-size:12px; color:#999;}
.deanfbxxbottom span.deanviews{background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/view1.png) left center no-repeat;}
.deanfbxxbottom span.deanreplies{background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/reply1.png) left center no-repeat;}
.deanfbxxbottom span.deanedit{background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/edit1.png) left center no-repeat;}
.deanfbxxbottom span.deandelete{background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/delete1.png) left center no-repeat;}
</style>
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <em>&rsaquo;</em>
<a href="<?php echo $_G['setting']['navs']['1']['filename'];?>"><?php echo $_G['setting']['navs']['1']['navname'];?></a> <em>&rsaquo;</em><?php if(is_array($cat['ups'])) foreach($cat['ups'] as $value) { ?> <a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>"><?php echo $value['catname'];?></a><em>&rsaquo;</em><?php } ?>
<?php echo $cat['catname'];?>
</div>
</div>

<div class="clear"></div>
<?php if(!empty($_G['setting']['pluginhooks']['view_article_top'])) echo $_G['setting']['pluginhooks']['view_article_top'];?><?php echo adshow("text/wp a_t");?><div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2 wp cl deanwp">

    	<div class="mn">
        	
        <div class="bm vw">
          <div class="h hm">
            <h1 class="ph"><?php echo $article['title'];?> <?php if($article['status'] == 1) { ?>(待审核)<?php } elseif($article['status'] == 2) { ?>(已忽略)<?php } ?></h1>
            <div class="deanfabuxinxi">
                <div class="deanfbxxtop">
                    <a href="home.php?mod=space&amp;uid=<?php echo $article['uid'];?>">
                        <span class="deantx"><?php echo avatar($article[uid],big);?></span>
                        <span class="deanzzm"><?php echo $article['username'];?></span>
                        
                        <div class="clear"></div>
                    </a>
                    
                    <div class="clear"></div>
                </div>
                <div class="deanfbxxbottom">
                	<span class="deandate"><?php echo $article['dateline'];?></span>
                    <span class="deanviews"><?php if($article['viewnum'] > 0) { ?><?php echo $article['viewnum'];?><?php } else { ?>0<?php } ?></span>
                    <span class="deanreplies"><?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 } ?></span>
                    <span class="deanedit"><?php if($article['author']) { ?>原作者: <?php echo $article['author'];?><?php } ?>
                        <?php if($article['from']) { ?>来自: <?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']) { ?>
                            <a href="portal.php?mod=portalcp&amp;ac=article&amp;op=edit&amp;aid=<?php echo $article['aid'];?>">编辑</a>
                            
                     </span>
                     <span class="deandelete">
                        <?php if($article['status']>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])) { ?>
                        <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 { ?>
                                <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 } ?>
                        <?php } ?>
                        <?php if(!empty($_G['setting']['pluginhooks']['view_article_subtitle'])) echo $_G['setting']['pluginhooks']['view_article_subtitle'];?>
                     </span>
                </div>
                <div class="clear"></div>
            </div>
          </div>
          
          <!--[diy=diysummarytop]--><div id="diysummarytop" class="area"></div><!--[/diy]--> 
          
          <?php if($article['summary'] && empty($cat['notshowarticlesummay'])) { ?>
          <div class="s">
            <div class="deanjianjie_wz">简介</div>
            <div class="deansummary_wz"><?php echo $article['summary'];?></div>
            <div class="clear"></div>
            <?php if(!empty($_G['setting']['pluginhooks']['view_article_summary'])) echo $_G['setting']['pluginhooks']['view_article_summary'];?>
          </div>
          <?php } ?> 
          
          <!--[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 } ?>
            
            <div class="o cl ptm pbm"> 
            
            
            <div class="z">
            <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"24"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};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>
            
              <?php if(!empty($_G['setting']['pluginhooks']['view_article_op_extra'])) echo $_G['setting']['pluginhooks']['view_article_op_extra'];?> 
              <a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=article&amp;id=<?php echo $article['aid'];?>&amp;handlekey=favoritearticlehk_<?php echo $article['aid'];?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">收藏</a> 
              <?php if(helper_access::check_module('share')) { ?> 
              <a href="home.php?mod=spacecp&amp;ac=share&amp;type=article&amp;id=<?php echo $article['aid'];?>&amp;handlekey=sharearticlehk_<?php echo $article['aid'];?>" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">分享</a> 
              <?php } ?> 
              <a href="misc.php?mod=invite&amp;action=article&amp;id=<?php echo $article['aid'];?>" id="a_invite" onclick="showWindow('invite', this.href, 'get', 0);" class="oshr oivt">邀请</a> </div>
            
            <!--[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>
            <div id="click_div"> 
              <?php include template('home/space_click'); ?> 
            </div>
            
            <?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) { ?> 
                <?php $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 } ?> 
          
          <?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($article['preaid'] || $article['nextaid']) { ?>
          <div class="pren pbm cl"> 
            <?php if($article['prearticle']) { ?><em class="z">上一篇:<a href="<?php echo $article['prearticle']['url'];?>"><?php echo $article['prearticle']['title'];?></a></em><?php } ?> 
            <?php if($article['nextarticle']) { ?><em class="y">下一篇:<a href="<?php echo $article['nextarticle']['url'];?>"><?php echo $article['nextarticle']['title'];?></a></em><?php } ?> 
          </div>
          <?php } ?> 
        </div>
        
        <!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]--> 
        
        <?php echo adshow("article/mbm hm/2");?><?php echo adshow("article/mbm hm/3");?> 
        
        <?php if($article['related']) { ?>
        <div id="related_article" class="bm">
          <div class="portal_tit cl">
            <h3>相关阅读</h3>
          </div>
          <div class="bm_c">
            <ul class="xl xl2 cl" id="raid_div">
              <?php if(is_array($article['related'])) foreach($article['related'] as $raid => $rvalue) { ?>              <input type="hidden" value="<?php echo $raid;?>" />
              <li>&bull; <a href="<?php echo $rvalue['uri'];?>"><?php echo $rvalue['title'];?></a></li>
              <?php } ?>
            </ul>
          </div>
        </div>
        <?php } ?> 
        
        <!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]--> 
        <?php if($article['allowcomment']==1) { ?> 
        <?php $data = &$article?> 
        <div id="comment" class="bm">
  <div class="portal_tit cl"> 
    <em class="y">此篇文章已有<span style="color:#7EBAFF; "><?php echo $data['commentnum'];?></span>人参与评论</em>
    <h3>请发表评论</h3>
    
  </div>
  <div id="comment_ul"> 
    
    <?php if(!empty($pricount)) { ?>
    <p class="mtn mbn y">提示:本页有 <?php echo $pricount;?> 个评论因未通过审核而被隐藏</p>
    <?php } ?> 
    
    <?php if(!$data['htmlmade']) { ?>
    
    
    
    <form id="cform" name="cform" action="<?php echo $form_url;?>" method="post" autocomplete="off">
<div class="tedt" id="tedt">
<div class="area">
<textarea name="message" rows="3" class="pt" id="message"  <?php if(!$_G['uid']) { ?> placeholder="立即登录发表您的看法吧^0^"<?php } ?> onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
</div>
</div>
                <div class="mb15 cl">


<?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 z"><?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="pt10 cl y"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn y">评论</button></p>
                </div>
</form>
    
    
    

   
    
        <script type="text/javascript">
    jQuery(function(){
jQuery("#tedt .pt").focus(function(){
  jQuery(this).addClass("bgchange");
}).blur(function(){
  jQuery(this).removeClass("bgchange");
});
    });
    </script> 

    <h3>全部评论</h3>
    <?php } ?> 
    <ul>
    <?php if(is_array($commentlist)) foreach($commentlist as $comment) { ?> 
    <?php include template('portal/comment_li'); ?> 
    <?php 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 } ?> 
    <?php } ?>
    </ul>
    <p class="ptn cl" style=" text-align:center">
        <?php if($data['commentnum']) { ?><a href="<?php echo $common_url;?>" class="xi2">查看全部评论>></a><?php } ?>
      </p>
  </div>
</div>
 
        <?php } ?>     
        <!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]--> 
      
        


            <!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]-->
    
    
        </div>
    	<div class="sd pph">
<?php if($cat['others']) { ?>
         
                 
        
        <div class="deannextnav deanactions fadeInUp">
            <div class="deantitle"><h3>相关分类</h3></div>
            	<ul>
                <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                <li><a href="<?php echo getportalcategoryurl($value['catid']); ?>"><?php echo $value['catname'];?></a></li>
                <?php } ?>
                </ul>
                <div class="clear"></div>
            </ul>
        </div>
         <?php } ?>
         <div class="clear"></div>
        
        <!-- 精彩阅读 -->
<div class="deansidebox deanactions fadeInUp">
        	<div class="deanpubtitle">
                <h3>精彩阅读</h3>
                <a href="#" target="_blank"></a>
                <div class="clear"></div>
            </div>
            <div class="focusBox">
            	<!--[diy=focusBox]--><div id="focusBox" class="area"><div id="framedcP2x3" class="frame move-span cl frame-1"><div id="framedcP2x3_left" class="column frame-1-c"><div id="framedcP2x3_left_temp" class="move-span temp"></div><?php block_display('59');?></div></div></div><!--[/diy]-->
                    
                    <a class="prev" href="javascript:void(0)"><</a>
                    <a class="next" href="javascript:void(0)">></a>
                    <ul class="hd">
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
                    </ul>
            </div>
        
            <script type="text/javascript">
                jQuery(".focusBox").slide({ mainCell:".pic",effect:"left", autoPlay:true, delayTime:300});
            </script>
            
            
        </div>

        <!-- 精选资讯 -->
<div class="deansidebox deanactions fadeInUp">
        	<div class="deanpubtitle">
                <h3>精选资讯</h3>
                <a href="#" target="_blank"></a>
                <div class="clear"></div>
            </div>
            <div class="deansdbox">
                <ul>
                	<!--[diy=deansdbox]--><div id="deansdbox" class="area"><div id="frameMQ33Q3" class="frame move-span cl frame-1"><div id="frameMQ33Q3_left" class="column frame-1-c"><div id="frameMQ33Q3_left_temp" class="move-span temp"></div><?php block_display('60');?></div></div></div><!--[/diy]-->
                	
                </ul>
            </div>
        </div>
        
        <!-- 推荐资讯 -->
<div class="deansidebox deanactions fadeInUp">
        	<div class="deanpubtitle" style="margin-bottom:0;">
                <h3>推荐资讯</h3>
                <a href="#" target="_blank"></a>
                <div class="clear"></div>
            </div>
            <div class="deanjczxbox">
            	<ul>
                	<!--[diy=deanjczxbox]--><div id="deanjczxbox" class="area"><div id="framejN2cAn" class="frame move-span cl frame-1"><div id="framejN2cAn_left" class="column frame-1-c"><div id="framejN2cAn_left_temp" class="move-span temp"></div><?php block_display('61');?></div></div></div><!--[/diy]-->
                	
                    <div class="clear"></div>
                </ul>
            </div>
            
        </div>

        <!-- 广告位 -->
<div class="deansidebox deanactions fadeInUp">
        	<div class="deanpubtitle">
                <h3>广告位</h3>
                <div class="clear"></div>
            </div>
            <div class="deanewm_c">
            	<!--[diy=deanewm_c]--><div id="deanewm_c" class="area"><div id="framep33Qm2" class="frame move-span cl frame-1"><div id="framep33Qm2_left" class="column frame-1-c"><div id="framep33Qm2_left_temp" class="move-span temp"></div><?php block_display('58');?></div></div></div><!--[/diy]-->
            </div>
            
        </div>
</div>
    <div class="clear"></div>

</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 } ?>

<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'); ?>