齐博v7:默认主页 推荐栏目一行7列
>首页 -> 社会专题 -> 硬件网络 2013-07-26 来源:齐博论坛 作者: 【】 浏览:773

以下是引用片段:

template\default\index.htm

=========================================

<!--

EOT;

$moreline=7;//$chdb[config][line]>0?$chdb[config][line]:2;

$array=array_chunk($fiddb_article,$moreline);

$moretdwidth=floor(100/$moreline)."%";

foreach($array AS $key2=>$array2){

print <<<EOT

-->

<table style="margin-bottom:15px;" width="100%" border="0" cellspacing="0" cellpadding="0" class="MoreListArticle mt10">

<tr>

<!--

EOT;

$iii=0;

foreach($array2 AS $key=>$rss){

$iii++;

if($moreline>1&&$iii%$moreline==1){

$tbstyle=" style='padding-right:7px;' ";

}elseif($moreline>1&&$iii%$moreline==0){

$tbstyle=" style='padding-left:7px;' ";

}else{

$tbstyle=" ";

}

print <<<EOT

-->

<td class="Side$iii">

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="sidetabl2">

<tr>

<td class="head"><span>$rss[name]</span><a href="list.php?fid=$rss[fid]" target="_blank">more</a></td>

</tr>

<tr>

<td class="cont">

<!--

EOT;

$i=0;

foreach($rss[article] AS $key1=>$rs){

$rs[title]=get_word($rs[full_title],20);$i++;

$rs[posttime] = date("m/d",$rs[full_posttime]);

print <<<EOT

--> <div class="list"> <a href="bencandy.php?fid=$rs[fid]&id=$rs[aid]" class="a$i" target="_blank" title="$rs[full_title]">$rs[title]</a><span>[{$rs[posttime]}]</span></div>

<!--

EOT;

}print <<<EOT

-->

</td>

</tr>

</table>

</td>

<!--

EOT;

}print <<<EOT

-->

</tr>

</table>

<!--

EOT;

}print <<<EOT

-->

==============================

images\v7\index.css

/**********************************************************

*更多文章

************************************************************/

.MoreListArticle .Side1,.MoreListArticle .Side3{

width:130px;

}

.MoreListArticle .Side2{

padding:0 0px 0 10px;width:130px;

}

.MoreListArticle .Side3{

padding:0 0px 0 10px;width:130px;

}

.MoreListArticle .Side4{

padding:0 0px 0 10px;width:130px;

}

.MoreListArticle .Side5{

padding:0 0px 0 10px;width:130px;

}

.MoreListArticle .Side6{

padding:0 0px 0 11px;width:130px;

}

.MoreListArticle .Side7{

padding:0 0px 0 11px;width:130px;

}

.sidetabl2 .head{

height:33px;

line-height:33px;

background:url(index_hbg1.gif) left bottom no-repeat;

.sidetabl2 .head span{

float:left;

padding-left:25px;

}

.sidetabl2 .head a{

float:right;

padding-right:10px;

background:url(index_hbg1.gif) right bottom no-repeat;

.sidetabl2 .cont{

border:#DDD solid 1px;

border-top:0;

padding:3px 0px 3px 4px;

}

.sidetabl2 .cont .list{

height:22px;

line-height:22px;

overflow:hidden;

padding-left:8px;

background:url(index_icon4.gif) left 8px no-repeat;

}

.sidetabl2 .cont .list a{

float:left;

}

.sidetabl2 .cont .list a.a1{

/** font-weight:bold; **/

}

.sidetabl2 .cont .list span{

float:right;

color:#999;

}

您看到此篇文章时的感受是:
Tags: 责任编辑:佚名
免责申明: 除原创及很少部分因网文图片遗失而补存外,本站不存储任何有版权的内容。你看到的文章和信息及网址索引均由机器采集自互联网,由于时间不同,内容可能完全不同,请勿拿本网内容及网址索引用于交易及作为事实依据,仅限参考,不会自行判断者请勿接受本站信息,本网转载,并不意味着赞同其观点或证实其内容的真实性.如涉及版权等问题,请立即联系管理员,我们会予以更改或删除,保证您的权利.对使用本网站信息和服务所引起的后果,本网站不作任何承诺.
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论:0条】 【关闭】 【返回顶部
更多
上一篇齐博v7:成功登录无提示跳转完美.. 下一篇多个域名如何做301指向,而防止被..
密码: (新用户注册)

最新文章

图片主题

热门文章

推荐文章

相关文章

便民服务

手机扫描

空间赞助

快速互动

论坛互动
讨论留言

有事联系

有哪个那个什么的,赶紧点这里给DOVE发消息

统计联系

MAIL:gnlt@Dovechina.com
正在线上:1360

版权与建议

任何你想说的