www.gusucode.com > 教程素材资源下载论坛网站源码程序 > 教程素材资源下载论坛/整站源码/data/template/2_diy_portal_view_product.tpl.php

    <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('view_product');
0
|| checktplrefresh('./template/dean_code_161226/portal/view_product.htm', './template/dean_code_161226/portal/portal_comment.htm', 1499954231, 'diy', './data/template/2_diy_portal_view_product.tpl.php', './template/dean_code_161226', 'portal/view_product')
|| checktplrefresh('./template/dean_code_161226/portal/view_product.htm', './template/default/common/seccheck.htm', 1499954231, 'diy', './data/template/2_diy_portal_view_product.tpl.php', './template/dean_code_161226', 'portal/view_product')
;?><?php include template('common/header'); ?><!--[name][迪恩UI/CG灵感创意内容页][/name]-->

<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:100%;}
.deanadsbanner{ display:block; width:100%; min-width:1250px; height:325px; background:url(./template/dean_code_161226/deancss/portal_list_view/aboutus.jpg) no-repeat;}
.deanadstxt{ width:100%; position:absolute; top:170px; left:0;}
.deanadsbanner h5{ width:602px; height:81px; margin: 50px auto;}

body{ background:#f3f3f3 url(./template/dean_code_161226/deancss/portal_list_view/bg.png) 0 0 repeat!important;}
#pt{ margin:0;}
#nv_portal .vw .pren em{ float:left; width:575px;}
#comment_ul ul{ width: 96.8%;padding-left: 30px;}
.deanacticletop{}
.deanacticletop h4{font-size:40px; height:58px; line-height:58px;overflow:hidden; color:#333; font-weight:normal; text-align:center; margin-bottom:15px;}
.ct2 .mn {border-right:0; float:left; width:880px; padding:15px; background:#fff;}

.deanmanagerart{ border-bottom:1px solid #ededed; padding:5px 0px 10px 0; text-align:center; margin-bottom:15px;}
.deanmanagerart span{ display:inline-block; padding-left:25px; font-size:12px; color:#999; margin-right:10px;}
.deanmanagerart span a{ font-size:12px; color:#999;}
.deanmanagerart span a:hover{ color:#8FC31F}
.deanmanagerart span.deanviews{background:url(./template/dean_code_161226/deancss/portal_list_view/view.png) left center no-repeat;}
.deanmanagerart span.deanreplies{background:url(./template/dean_code_161226/deancss/portal_list_view/reply.png) left center no-repeat;}
.deanmanagerart span.deanedit{background:url(./template/dean_code_161226/deancss/portal_list_view/edit.png) left center no-repeat;}
.deanmanagerart span.deandelete{background:url(./template/dean_code_161226/deancss/portal_list_view/delete.png) left center no-repeat;}
.deanmanagerart span.deanshoucang{background:url(./template/dean_code_161226/deancss/portal_list_view/xin.png) left center no-repeat;}
.deanmanagerart span.deanfenxianga{background:url(./template/dean_code_161226/deancss/portal_list_view/share.png) left center no-repeat;}
.deanmanagerart span.deanyaoqing{background:url(./template/dean_code_161226/deancss/portal_list_view/invite.png) left center no-repeat;}
.deanmanagerart span.deanadds{background:url(./template/dean_code_161226/deancss/portal_list_view/add.png) left center no-repeat;}
.deanmanagerart span.deanpushed{background:url(./template/dean_code_161226/deancss/portal_list_view/cloud.png) left center no-repeat;}

.deancaser_rr{ float:right; width:250px;}
.deanfbxxbottom{ padding-top:10px; border-top:1px solid #ededed;}
.deanfbxxbottom span{ text-align:center; font-size:12px; color:#999;  float: left;  width: 33%; display:block;line-height: 24px;}
.deanfbxxbottom span.deansss{ margin-right:-1px;}
.deanfbxxbottom span.deanviews{ border-left:1px solid #ededed; border-right:1px solid #ededed; width: 34%;}
.deanfbxxbottom span.deanreplies{margin-left:-1px;}
.deanfbxxbottom span.deanreplies a{}
.deanfbxxbottom span em{ display: block; font-size: 20px; color: #333;  font-weight: normal;}
/*作者栏*/
.deanfabuxinxi{ width:220px; padding:15px; background:#fff; margin-bottom:20px; position:relative;}
.deanfabuxinxi i{ display:block; width:12px; height:20px; background:url(./template/dean_code_161226/deancss/portal_list_view/b-trangle.png) center no-repeat; position:absolute; top:70px; left:-12px;}

.bm{ border:0; margin-bottom:0;}
.deanfbxxtop{}
.deanfbxxtop h5{ height:30px; margin-bottom:20px;}
.deanfbxxtop h5 span{ display:block; font-size:14px; color:#fff; font-weight:normal; text-align:center; background:#8FC31F; height:35px; line-height:35px; width:90px; border-radius:0 24px 24px 0; position:absolute; top:10px; left:0;}
.deanfbxxtop h5 em{ float:right; font-weight:normal; width:67px; overflow:hidden; height:20px; line-height:20px; display:block; font-size:12px; color:#999; margin-top:2px; padding-left:23px; background:url(./template/dean_code_161226/deancss/portal_list_view/time.png) left center no-repeat;}
.deanfbxxtop a{ display:block; }
.deantx{width:100px; height:100px; margin:0 auto;}
.deantx img{width:100px; height:100px; border-radius:100%;}
.deanzzm{ text-align:center; height:45px; line-height:45px; font-size:16px; color:#333; font-weight:bold;}

.deanothersart{ width:220px; padding:15px; background:#fff; margin-bottom:20px;}
.deanothersart h3{ border-bottom:1px solid #ededed;  height:30px; margin-bottom:10px;}
.deanothersart h3 span{display: block; font-size: 16px; font-weight:normal; color: #293047; padding-left: 10px; border-left: 5px solid #8FC31F; height: 23px; line-height: 23px;}
.deanoarts{}
.deanoarts ul li{ height:35px; line-height:35px; padding-left:15px; background:url(./template/dean_code_161226/deancss/portal_list_view/dian.png) left center no-repeat; overflow:hidden; border-bottom:1px dashed #ededed;}
.deanoarts ul li:last-child{ border-bottom:0;}
.deanoarts ul li a{ font-size:14px; color:#666;}
.deanoarts ul li a:hover{ color:#8FC31F;}
/* 标题 */

.vw, #comment{ width:100%!important;}
.deanpc_right{float: left;width: 1000px;margin: 40px 0px 40px 50px; }
.vw .s{ padding:5px 15px; background:#f1f1f1;}
.vw .o{ border-top:1px solid #ededed; margin:0!important;}
.vw,#comment{ width:755px;}
 #nv_portal .vw .d{ margin:0; border-bottom:0;}
#comment_ul .portrait img{ width:50px; height:50px;}
#comment_ul .portrait{left:-60px;}
.tedt{ border:none!important;}
</style>
<div class="deanadsbanner deanactions fadeIn">
    <div class="deanadstxt">
        <h5><img src="./template/dean_code_161226/deancss/portal_list_view/bgs.png" /></h5>
    </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 id="ct" class="ct2 wp cl" style="width:1180px!important; margin:20px auto;">
    	<div class="mn">
        	<div class="deanacticletop">
            	<h4><?php echo $article['title'];?> <?php if($article['status'] == 1) { ?>(待审核)<?php } elseif($article['status'] == 2) { ?>(已忽略)<?php } ?></h4>
        	</div>
            <div class="deanmanagerart">
            	<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>
                     <span class="deanshoucang"><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);">收藏</a></span>
                    <?php if(helper_access::check_module('share')) { ?>
                    <span class="deanfenxianga"><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);">分享</a></span>
                    <?php } ?>
                    <span class="deanyaoqing"><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);">邀请</a></span>
                    <?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="deanadds"><a 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></span>
                    <?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="deanpushed"><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></span>
                    <?php } ?>
            </div>
<div class="bm vw">
<div class="d">
<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 } ?>
<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) { $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 } ?>
</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'];?>

<?php if($article['preaid'] || $article['nextaid']) { ?>
<div class="pren pbm cl">
<?php if($article['prearticle']) { ?><em>上一篇:<a href="<?php echo $article['prearticle']['url'];?>"><?php echo $article['prearticle']['title'];?></a></em><?php } if($article['nextarticle']) { ?><em>下一篇:<a href="<?php echo $article['nextarticle']['url'];?>"><?php echo $article['nextarticle']['title'];?></a></em><?php } ?>
                <div class="clear"></div>
</div>
<?php } ?>
</div>
        <div class="deanseperatedlines"></div><?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 deanrelatedthreads">
                <h3><span>相关阅读</span></h3>
              </div>
              <div class="bm_c">
                <ul class="xl xl2 cl deanthreadslists" id="raid_div">
                  <?php if(is_array($article['related'])) foreach($article['related'] as $raid => $rvalue) { ?>                  <input type="hidden" value="<?php echo $raid;?>" />
                  <li><a href="<?php echo $rvalue['uri'];?>"><?php echo $rvalue['title'];?></a></li>
                  <?php } ?>
                </ul>
              </div>
            </div>
            <?php } ?> 
<?php if($article['allowcomment']==1) { $data = &$article?><div id="comment" class="bm">
  <div class="deanartcomment"> 
    <em class="y">该文章已有<span><?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 } ?>
</div>
        <div class="deancaser_rr">
            <div class="deanfabuxinxi">
            	<i></i>
                <div class="deanfbxxtop">
                	<h5><span>本文作者</span><em><?php echo $article['dateline'];?></em><div class="clear"></div></h5>
                    <a href="home.php?mod=space&amp;uid=<?php echo $article['uid'];?>">
                        <div class="deantx"><?php echo avatar($article[uid],big);?></div>
                        <div class="deanzzm"><?php echo $article['username'];?></div>
                    </a>
                    
                    <div class="clear"></div>
                </div>
                <div class="deanfbxxbottom">
                <?php $deanusersfollows = DB::result(DB::query("SELECT follower FROM ".DB::table('common_member_count')." WHERE uid = '$article[uid]'"));?>                    <span class="deansss">被关注<em><?php echo $deanusersfollows['follower'];?></em></span>
                    
                    <span class="deanviews">阅读<em><?php if($article['viewnum'] > 0) { ?><?php echo $article['viewnum'];?><?php } else { ?>0<?php } ?></em></span>
                    <span class="deanreplies">回复<?php if($article['commentnum'] > 0) { ?><a href="<?php echo $common_url;?>" title="查看全部评论"><em><?php echo $article['commentnum'];?></em></a><?php } else { ?><em>0</em><?php } ?></span>
                    <div class="clear"></div>
                </div>
            </div>
            <!--其他文章-->
            <div class="deanothersart">
            	<h3><span>该作者的其他文章</span></h3>
                <div class="deanoarts">
                	<ul>
                    <?php $ralatedsarts = DB::fetch_all("SELECT * FROM ".DB::table('portal_article_title')." WHERE uid= '$article[uid]' ORDER BY `dateline` DESC LIMIT 10");?>                        <?php if(is_array($ralatedsarts)) foreach($ralatedsarts as $slide) { ?>                        <li><a href="portal.php?mod=view&amp;aid=<?php echo $slide['aid'];?>" target="_blank"><?php echo $slide['title'];?></a></li>
                        <?php } ?>
                    	
                    </ul>
                </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 } ?>
<script type="text/javascript">
jQuery(function() { 
var elm = jQuery('.deanfabuxinxi'); 
var startPos = jQuery(elm).offset().top; 
jQuery.event.add(window, "scroll", function() { 
var p = jQuery(window).scrollTop(); 
jQuery(elm).css('position',((p) > startPos) ? 'fixed' : 'relative'); 
jQuery(elm).css('top',((p) > startPos) ? '50px' : ''); 
jQuery(elm).css('box-shadow',((p) > startPos) ? '0px 2px 4px 2px #eaeaea' : '');
jQuery(elm).css('z-index',((p) > startPos) ? '2' : '');
}); 
}); 
</script>
<input type="hidden" id="portalview" value="1"><?php include template('common/footer'); ?>