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

    <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('list_2');?><?php include template('common/header'); $list = array();?><?php $wheresql = category_get_wheresql($cat);?><?php $list = category_get_list($cat, $wheresql, $page);?><style type="text/css">
.wp, #wp{ width:100%;}
body{ background:#fff!important;}
#deanpage{ padding:0;}
.deanadsbanner a{ display:block; width:100%; min-width:1180px; height:296px; background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/bgs.jpg) 0 0 no-repeat;}
.deanproducttitle{ padding-top:68px;}
.deanproducttitle h4{font-size:33px; line-height:40px; color:#fff;  text-align:center;}
.deanproducttitle p{text-align:center; font-size:18px; color:#fff; font-weight:normal;margin-top: 10px; margin-bottom:74px;}
.w1180{ width:1180px; margin:0 auto;}
.deanwp{ width:1180px; margin:20px auto 0 auto; }
.ct2 .mn{ width:auto;padding-right: 0px;border-right: 0}
/* 标题 */
.dean_productnextnav{ float:left; width:900px; overflow:hidden; height:60px; line-height:60px;}
.dean_productnextnav ul{ }
.dean_productnextnav a{ font-size:12px; color:#666; border-right:1px solid #f1f2f3;   display:block;height:60px; line-height:60px; text-align:center; float:left;  min-width:120px;  }
.dean_productnextnav a:hover{ background:#04B7F2; color:#fff;}
.deanpc_top{ height:60px; width:1180px; background:#fff; border:1px solid #f1f2f3; margin-top:20px;}

/* 产品列表 */

.deanp_cinfo{ width:1230px;}
.deanp_cinfo ul{ width:1230px;}
.deanp_cinfo ul li{  float:left; width:278px; background:#fff;  margin:0 20px 20px 0; border:1px solid #ededed; }
.deanp_cinfo ul li:hover{ box-shadow:1px 2px 2px #efefef;}
.deanpropics{ }
.deanpropics a{ display:block;width:278px; height:210px;   position: relative;}
.deanpropics img{ width:278px; height:210px;}
.design_linfo {}
.design_linfo span{font-size: 12px; color: #acacac; display:inline-block; padding-right: 10px; cursor:pointer;}
.design_linfo span:hover{ color:#04B7F2;}
.deanp_contents{padding:5px 15px 10px 15px;}
.deanp_cinfo ul li h2{ margin-bottom:5px; height:30px; line-height:30px; overflow:hidden; }
.deanp_cinfo ul li h2 a.deanh2txt{ font-size: 16px;color: #666;font-weight: normal;width: 100%;overflow: hidden; }
.deanp_cinfo ul li h2 a.deanh2txt:hover,.deanbk:hover{ color:#04B7F2; }
.deanbk{display: inline-block;font-size: 12px; margin-right:10px; overflow:hidden;color: #04B7F2;float: left; font-weight:normal;}
.deanp_cinfo ul li .deanneirong{ font-size:12px; color:#999; line-height:22px; height:44px; overflow:hidden;margin-bottom:5px; }



.deantools{ float:right;}
.deantools a{ display:inline-block; float:left; width:90px; height:60px!important; line-height:60px;  text-align:center; font-size:12px;color:#666; border-left:1px solid #f1f2f3;margin-right:0; }
.deantools a.deanaddnew{ background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/pen.png) 20px center no-repeat;padding-left:25px;}
.deantools a.deanrssartice{ background:url(./template/wfdsoft_dmegc_160717/deancss/portal_list_view/rss.png) 20px center no-repeat; padding-left:15px;}

</style>
<div class="deanadsbanner deanactions fadeInLeft"><a href="#" target="_blank"></a></div>
<div class="deanpc_top w1180 deanactions fadeInDown">
        <?php if($cat['subs']) { ?>
        
        <div class="dean_productnextnav">
            <?php $i = 1;?>            <?php if(is_array($cat['subs'])) foreach($cat['subs'] as $value) { ?>            <?php if($i != 1) { } ?><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>"><?php echo $value['catname'];?></a><?php $i--;?>            <?php } ?>
            <div class="clear"></div>
        </div>
        <?php } ?>
        <div class="deantools">
                	
            <?php if(($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])) { ?>
            <a href="portal.php?mod=portalcp&amp;ac=article&amp;catid=<?php echo $cat['catid'];?>" class="deanaddnew deanactions bounceInLeft" title="发布文章">发布文章</a>
            <?php } ?>
        
            <?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="portal.php?mod=rss&amp;catid=<?php echo $cat['catid'];?>" class="deanrssartice deanactions bounceInRight" target="_blank" title="RSS">RSS</a><?php } ?>
            
        </div>
        <div class="clear"></div>
        
        
    </div>
<div class="deanwp">
    <?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">
    	
        <div class="deanpc_right">
                <div class="deanmn">
                
                <!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
                <div class="clear"></div>
                <div class="deanp_cinfo">
                    <ul>
                        <?php if(is_array($list['list'])) foreach($list['list'] as $value) { ?>                        <?php $highlight = article_title_style($value);?>                        <?php $article_url = fetch_article_url($value);?>                        <li class="deanactions fadeInUp">
                        	<div class="deanpropics">
                                <?php if($value['pic']) { ?>
                                <a href="<?php echo $article_url;?>" target="_blank">
                                    
                                    <img src="<?php echo $value['pic'];?>"/>
                                    
                                </a>
                                <?php } else { ?><a href="<?php echo $article_url;?>" target="_blank"><img src="<?php echo $_G['style']['styleimgdir'];?>/nopic.jpg" /><span></span></a><?php } ?>
                            </div>
                            
                            <div class="clear"></div>
                            <div class="deanp_contents">
                                <h2>
                                    <a class="deanh2txt" href="<?php echo $article_url;?>" target="_blank"><?php echo $value['title'];?></a>
                                </h2>
                                <div class="deanneirong"><?php echo $value['summary'];?></div>
                                <div class="design_linfo">
                                    <?php if($value['catname'] && $cat['subs']) { ?><a class="deanbk" href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" target="_blank"><?php echo $value['catname'];?></a><?php } ?>
                                    <span>
                                        阅读:<?php $query = DB::query("SELECT t1.viewnum from ".DB::table('portal_article_count')." t1 inner join ".DB::table('portal_article_title')." t2 on t1.aid=t2.aid WHERE t2.aid=$value[aid]"); $dean = DB::fetch($query);echo $dean['viewnum'];?>                                    </span>
                                    <span>
                                        回复:<?php $query = DB::query("SELECT t1.commentnum from ".DB::table('portal_article_count')." t1 inner join ".DB::table('portal_article_title')." t2 on t1.aid=t2.aid WHERE t2.aid=$value[aid]"); $dean = DB::fetch($query);echo $dean['commentnum'];?>                                    </span>
                                    <div class="clear"></div>
                                </div>
                            </div>
                        </li>
                            
                        <?php } ?>
                        <div class="clear"></div>
                    </ul>
                </div>
                <div class="clear"></div>
                <?php echo adshow("articlelist/mbm hm/3");?><?php echo adshow("articlelist/mbm hm/4");?>                <?php if($list['multi']) { ?><div class="pgs cl" id="deanpage"><?php echo $list['multi'];?></div><?php } ?>
                
                <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
        
            </div>
        </div>
        <div class="clear"></div>
        
    </div>
    <div class="wp mtn">
        <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
    </div>
</div><?php include template('common/footer'); ?>