| 以下是引用片段:
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; } |