{dede:include filename="head.htm"/}

## 风云榜

{dede:php} global $dsql,$cfg_fengyun; $cfg_fengyun=trim(str_replace('，',',',$cfg_fengyun)); $andsql=($cfg_fengyun=='0' || $cfg_fengyun=='') ? "order by paixu desc":"and a.id in($cfg_fengyun)"; $query = "SELECT a.id,a.typename,a.typedir,(a.bookclickm+a.tuijianm) as paixu,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0 ".$andsql." limit 0,15"; $dsql->SetQuery($query); $dsql->Execute(); $s=""; while($row=$dsql->GetArray()){ $s.='
- ['.str_replace("·","",$row['retypename']).']
  '.$row['typename'].'('.$row['paixu'].')
'; } echo $s; {/dede:php}

## 封推新书 THE BEST NEWBOOK

{dede:php} global $dsql,$cfg_tui; $cfg_tui=trim(str_replace('，',',',$cfg_tui)); $andsql=($cfg_tui=='0' || $cfg_tui=='') ? " and a.booksize<1000000 and a.overdate='0'":" and a.id in($cfg_tui)"; $query = "SELECT a.id,a.typeimg,a.typename,a.description,a.typedir,a.tuijianm,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0".$andsql." order by tuijianm desc"; $row = $dsql->GetOne($query); $s=""; if($row) { $tid=$row['id']; $s.='

## '.$row['typename'].'

作者：'.$row['zuozhe'].' 类型：['.str_replace("·","",$row['retypename']).']

'; $row1 = $dsql->GetOne("Select a.id,a.title,b.body FROM `dede_archives` a left join dede_addonarticle b on(a.id=b.aid) Where a.typeid=$tid order by id desc"); if($row1) { $s.='最新章节：'.$row1['title'].'
'.mb_substr(str_replace('','',str_replace(' ','',$row1['body'])),18,600); } $s.='……

'; } $s.='
'; $query = "SELECT * FROM dede_arctype WHERE reid=0 and id<>45 order by sortrank limit 0,3"; $dsql->SetQuery($query); $dsql->Execute(); $n=1; while($row=$dsql->GetArray()){ $reid[$n]=$row['id']; $s.='

## '.str_replace("·","",$row['typename']).'

@'.$n.'@

'; $n++; } for($m=1;$m<$n;$m++) { $query = "SELECT a.id,a.typename,a.typedir,a.zuozhe,b.typedir as zuozhedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) WHERE a.reid=".$reid[$m]." order by id desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; while($row1=$dsql->GetArray()){ $s1.='
- ·['.$row1['zuozhe'].']'.$row1['typename'].'
'; } $s=str_replace("@$m@","$s1",$s); } $s.='
'; $query = "SELECT * FROM dede_arctype WHERE reid=0 and id<>45 order by sortrank limit 3,3"; $dsql->SetQuery($query); $dsql->Execute(); $n=1; while($row=$dsql->GetArray()){ $reid[$n]=$row['id']; $s.='

## '.str_replace("·","",$row['typename']).'

@'.$n.'@

'; $n++; } for($m=1;$m<$n;$m++) { $query = "SELECT a.id,a.typename,a.typedir,a.zuozhe,b.typedir as zuozhedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) WHERE a.reid=".$reid[$m]." order by id desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; while($row1=$dsql->GetArray()){ $s1.='
- ·['.$row1['zuozhe'].']'.$row1['typename'].'
'; } $s=str_replace("@$m@","$s1",$s); } echo $s; {/dede:php}

## 新书推荐榜

更多新书 >>
{dede:php} global $dsql,$cfg_newbooks; $cfg_newbooks=trim(str_replace('，',',',$cfg_newbooks)); $andsql=($cfg_newbooks=='0' || $cfg_newbooks=='') ? " and a.booksize<1000000 and a.overdate='0' order by tuijian desc limit 0,12":" and a.id in($cfg_newbooks) order by tuijian desc"; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclickm,a.tuijian,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0".$andsql; $dsql->SetQuery($query); $dsql->Execute(); $s=""; $i=0; while($row=$dsql->GetArray()){ $s.="
".$row['typename']."（推荐：".$row['tuijian']."）
作者:".$row['zuozhe']."
类型:".$row['retypename']."
下载:txt下载

简介：".cn_substr(html2text($row['description']),62)." ...

"; $i++; } if($i<6) { $ii=6-$i; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclickm,a.tuijian,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0 and a.booksize<1000000 and a.overdate='0' order by tuijian desc limit 0,$ii"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $s.="
".$row['typename']."（推荐：".$row['tuijian']."）
作者:".$row['zuozhe']."
类型:".$row['retypename']."
下载:txt下载

简介：".cn_substr(html2text($row['description']),62)." ...

"; } } $s.='

## 本周点击榜

'; $n=1; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclickw,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by bookclickw desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['bookclickw']; if($n==1) { $s.="
- ".$row['typename']."".$counta."
- 作者:".$row['zuozhe']."
  类型:[".str_replace("·","",$row['retypename'])."]
  下载:txt下载

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $s.="
- ".$row['typename']."".$counta."
"; } $n++; } $s.='

'; if($i>6) { $s.='

## 本周推荐榜

'; $n=1; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.tuijianw,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by tuijianw desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['tuijianw']; if($n==1) { $s.="
- ".$row['typename']."".$counta."
- 作者:".$row['zuozhe']."
  类型:[".str_replace("·","",$row['retypename'])."]
  下载:txt下载

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $s.="
- ".$row['typename']."".$counta."
"; } $n++; } $s.='

'; } $s.='
'; echo $s; {/dede:php}

## 精品推荐

Boutique Recommend
更多精品小说 >>

{dede:php} global $dsql,$cfg_jingpin; $cfg_jingpin=trim(str_replace('，',',',$cfg_jingpin)); $andsql=($cfg_jingpin=='0' || $cfg_jingpin=='') ? "order by bookclick desc":"and a.id in($cfg_jingpin)"; $query = "SELECT a.id,a.typename,a.typedir,a.bookclick,a.zuozhe,a.typeimg,c.typename as retypename FROM dede_arctype a left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0 ".$andsql." limit 0,6"; $dsql->SetQuery($query); $dsql->Execute(); $s=""; while($row=$dsql->GetArray()){ $s.='
- '.$row['typename'].'
'; } $s.='

'; $query = "SELECT * FROM dede_arctype WHERE reid=0 and id<>45 order by sortrank limit 0,3"; $dsql->SetQuery($query); $dsql->Execute(); $n=1; while($row=$dsql->GetArray()){ $reid[$n]=$row['id']; $s.='

### '.str_replace("·","",$row['typename']).'

@'.$n.'@

'; $n++; } for($m=1;$m<=$n;$m++) { $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.tuijianw,a.zuozhe,b.typedir as zuozhedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) WHERE a.reid=".$reid[$m]." order by tuijianw desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; while($row1=$dsql->GetArray()){ $s1.='
- ·['.$row1['zuozhe'].']'.$row1['typename'].'
'; } $s=str_replace("@$m@","$s1",$s); } $s.='

'; $cfg_jingpin=trim(str_replace('，',',',$cfg_jingpin)); $andsql=($cfg_jingpin=='0' || $cfg_jingpin=='') ? "order by bookclick desc":"and a.id in($cfg_jingpin)"; $query = "SELECT a.id,a.typename,a.typedir,a.bookclick,a.zuozhe,a.typeimg,c.typename as retypename FROM dede_arctype a left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0 ".$andsql." limit 6,6"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $s.='
- '.$row['typename'].'
'; } $s.='

'; $query = "SELECT * FROM dede_arctype WHERE reid=0 and id<>45 order by sortrank limit 3,3"; $dsql->SetQuery($query); $dsql->Execute(); $n=1; while($row=$dsql->GetArray()){ $reid[$n]=$row['id']; $s.='

### '.str_replace("·","",$row['typename']).'

@'.$n.'@

'; $n++; } for($m=1;$m<=$n;$m++) { $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.tuijianw,a.zuozhe,b.typedir as zuozhedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) WHERE a.reid=".$reid[$m]." order by tuijianw desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; while($row1=$dsql->GetArray()){ $s1.='
- ·['.$row1['zuozhe'].']'.$row1['typename'].'
'; } $s=str_replace("@$m@","$s1",$s); } $s.='

## 月度点击榜

'; $n=1; $content=""; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclickm,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by bookclickm desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['bookclickm']; if($n==1) { $content.="
- ".$row['typename']."".$counta."
- 作者:".$row['zuozhe']."
  类型:[".str_replace("·","",$row['retypename'])."]
  下载:txt下载

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $content.="
- ".$row['typename']."".$counta."
"; } $n++; } $s.=$content; $s.='

## 月度推荐榜

'; $n=1; $content=""; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.tuijianm,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by tuijianm desc limit 0,5"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['tuijianm']; if($n==1) { $content.="
- ".$row['typename']."".$counta."
- 作者:".$row['zuozhe']."
  类型:[".str_replace("·","",$row['retypename'])."]
  下载:txt下载

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $content.="
- ".$row['typename']."".$counta."
"; } $n++; } $s.=$content; echo $s; {/dede:php}

## 排行榜

Ranking
更多排行榜 >>

## 总点击榜

排序 类型 / 书名 点击数

{dede:php} global $dsql ; $content=""; $query = "SELECT a.typename,a.typedir,a.bookclick,a.booksize,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by bookclick desc limit 0,15"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['bookclick']; $content.='
- ['.str_replace("·","",$row['retypename']).'] '.$row['typename'].'('.$counta.')
'; } $content.='

## 总字数榜

排序 类型 / 书名 总字数

'; $query = "SELECT a.typename,a.typedir,a.bookclick,a.booksize,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by booksize desc limit 0,15"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['booksize']; $content.='
- ['.str_replace("·","",$row['retypename']).'] '.$row['typename'].'('.$counta.')
'; } $content.='

## 总推荐榜

排序 类型 / 书名 推荐数

'; $query = "SELECT a.typename,a.typedir,a.tuijian,a.booksize,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) order by tuijian desc limit 0,15"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['tuijian']; $content.='
- ['.str_replace("·","",$row['retypename']).'] '.$row['typename'].'('.$counta.')
'; } echo $content; {/dede:php}

## 更新列表

New List
书名/章节 总字数 作者状态 更新时间

{dede:php} global $dsql ; $s1=""; $query = "SELECT tp.id,tp.typedir,tp.typename,tp.zuozhe,tp.booksize,tp.overdate,tp.lastupdate,zz.typedir as zuozhedir FROM `dede_arctype` tp LEFT JOIN `dede_arctype` zz ON (zz.typename=tp.zuozhe and zz.reid=45) WHERE tp.reid not in(0,45) order by lastupdate desc limit 0,50"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $s1.='
- '.$row['typename'].'
  [下载] '; $tid=$row['id']; $over=($row['overdate']=='0') ? "连载":"完结"; $row1 = $dsql->GetOne("Select id,title FROM `dede_archives` Where typeid=$tid order by id desc"); if($row1) $s1.=''.$row1['title'].''; $s1.='
  '.$row['booksize'].'
  '.$row['zuozhe'].'
  '.$over.'
  '.date('Y-m-d',$row['lastupdate']).'
'; } $s1.='

## 新书作家推荐

'; $dsql->safeCheck = false; $n=1; $query = "SELECT COUNT(a.id) AS ano,a.zuozhe AS zuozhe,b.typeimg,b.description,b.typedir,b.tuijian,SUM(a.bookclick) AS bookclick,SUM(a.booksize) AS booksize,SUM(a.tuijian) AS booktuijian FROM dede_arctype b JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `dede_arctype`)-(SELECT MIN(id) FROM `dede_arctype`))+(SELECT MIN(id) FROM `dede_arctype`)) AS id) AS t2 LEFT JOIN dede_arctype a ON(a.zuozhe=b.typename) WHERE b.reid=45 AND b.id>t2.id GROUP BY b.typename order by booktuijian desc limit 10"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ if($n==1) { $zuozhe=$row['zuozhe']; $newbook = $dsql->GetOne("SELECT typename,typedir FROM dede_arctype where zuozhe='$zuozhe' order by overdate"); $newbookname = $newbook['typename']; $newbooktypeidr = $newbook['typedir']; $s1.="
- ".$row['zuozhe']."新书".$row['ano']."/".$row['booksize']."
- 作品数:".$row['ano']."
  总字数:".$row['booksize']."
  总点击:".$row['bookclick']."
  作家推荐:".$row['tuijian']."
  作品推荐:".$row['booktuijian']."
  新书:".$newbookname."
"; } else { $s1.="
- ".$row['zuozhe']."新书".$row['ano']."/".$row['booksize']."
"; } $n++; } $s1.='

## 热门新书推荐

'; $n=1; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclick,a.tuijian,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid<>45 and a.reid<>0 and a.booksize<300000 order by a.bookclick+a.tuijian desc limit 0,10"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $bt=$row['bookclick']+$row['tuijian']; if($n==1) { $s1.="
- ".$row['typename']."".$bt."
- 作者:".$row['zuozhe']."
  类型:".$row['retypename']."
  点/推:".$row['bookclick']."/".$row['tuijian']."

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $s1.="
- ".$row['typename']."".$bt."
"; } $n++; } $s1.='

## 热门完本推荐

'; $n=1; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclick,a.tuijian,a.zuozhe,b.typedir as zuozhedir,c.typename as retypename,c.typedir as retypedir FROM dede_arctype a left join dede_arctype b on(b.typename=a.zuozhe and b.reid=45) left join dede_arctype c on(c.id=a.reid) WHERE a.reid not in(0,45) and a.overdate<>'0' order by a.bookclick+a.tuijian desc limit 0,10"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $bt=$row['bookclick']+$row['tuijian']; if($n==1) { $s1.="
- ".$row['typename']."".$bt."
- 作者:".$row['zuozhe']."
  类型:".$row['retypename']."
  点/推:".$row['bookclick']."/".$row['tuijian']."

  简介：".cn_substr(html2text($row['description']),50)."……

"; } else { $s1.="
- ".$row['typename']."".$bt."
"; } $n++; } echo $s1; {/dede:php}

友情链接：{dede:flink row=200 typeid='2'/}
{dede:flink row=200 typeid='1'/}
版权声明：{dede:global.novel_powerby/}

- 返回顶部

{dede:myad name='tongji'/} {dede:myad name='index11'/} {dede:myad name='index21'/}