{dede:include filename="head.htm"/}
当前位置：{dede:global.cfg_webname/} > {dede:field name='typename' function='str_replace("·","",@me)'/}小说
{dede:field.typeid runphp='yes'"} global $dsql; $row = $dsql->GetOne("SELECT a.lefttui FROM dede_arctype a WHERE a.id=@me"); $lefttui=trim(str_replace('，',',',$row['lefttui'])); $andsql=($lefttui=='0' || $lefttui=='') ? " order by id desc":" and a.id in($lefttui)"; $query = "SELECT a.id,a.typename,a.typedir,a.zuozhe,a.typeimg,a.description FROM dede_arctype a WHERE a.reid=@me".$andsql." limit 0,4"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; $s2='
'; $s3='
'; $n=0; while($row=$dsql->GetArray()){ $s1.='
'.$row['typename'].'
'; $s2.=''; $s3.='
'.cn_substr(html2text($row['description']),76).'…[点击阅读]
'; $n++; } @me=$s1.$s2.$s3; {/dede:field.typeid}

## 最新{dede:field name='typename' function='str_replace("·","",@me)'/}小说

{dede:field.typeid runphp='yes'"} global $dsql; $row = $dsql->GetOne("SELECT a.typenewbook FROM dede_arctype a WHERE a.id=@me"); $typenewbook=trim(str_replace('，',',',$row['typenewbook'])); $andsql=($typenewbook=='0' || $typenewbook=='') ? " order by id desc":" and a.id in($typenewbook) order by id desc"; $row = $dsql->GetOne("SELECT a.id,a.typename,a.typedir,a.zuozhe,a.description,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=@me".$andsql); @me='

## '.$row['typename'].' 作者：'.$row['zuozhe'].'

'.$row['description'].'……

'; {/dede:field.typeid}

## 精品{dede:field name='typename' function='str_replace("·","",@me)'/}小说推荐

{dede:field.typeid runphp='yes'"} global $dsql; $row = $dsql->GetOne("SELECT a.topnews FROM dede_arctype a WHERE a.id=@me"); $topnews=trim(str_replace('，',',',$row['topnews'])); $andsql=($topnews=='0' || $topnews=='') ? " order by id desc":" and a.id in($topnews)"; $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=@me".$andsql." limit 0,10"; $dsql->SetQuery($query); $dsql->Execute(); $s1=""; while($row=$dsql->GetArray()){ $s1.='
- ·['.$row['zuozhe'].']'.$row['typename'].'
'; } @me=$s1; {/dede:field.typeid}

月推荐榜 月排行榜

{dede:field.typeid runphp='yes'"} global $dsql ; $n=1; $reid=@me; $content=""; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.tuijianm,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 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']."
  下载:txt下载

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

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

'; $n=1; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclickm,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 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']."
  下载:txt下载

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

"; } else { $content.="
- ".$row['typename']."".$counta."
"; } $n++; } @me=$content; {/dede:field.typeid}

{dede:myad name='indexlist31'/}

## 更新列表

New List
更多{dede:field name='typename' function='str_replace("·","",@me)'/}小说 >>
书名/章节 总字数 作者状态 更新时间

{dede:field.typeid runphp='yes'"} 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=@me 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']).'
'; } @me=$s1; {/dede:field.typeid}

更多{dede:field name='typename' function='str_replace("·","",@me)'/}小说 >>

## {dede:field name='typename' function='str_replace("·","",@me)'/}小说作家推荐

{dede:field.typeid runphp='yes'"} global $dsql ; $n=1; $reid=@me; $content=""; $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 a LEFT JOIN dede_arctype b ON(a.zuozhe=b.typename and b.reid=45) WHERE a.reid=$reid GROUP BY a.zuozhe order by tuijian desc,booktuijian desc limit 0,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' and reid=$reid order by overdate"); $newbookname = $newbook['typename']; $newbooktypeidr = $newbook['typedir']; $content.="
- ".$row['zuozhe']."".$row['ano']."/".$row['booksize']."
- 作品数:".$row['ano']."
  总字数:".$row['booksize']."
  总点击:".$row['bookclick']."
  作家推荐:".$row['tuijian']."
  作品推荐:".$row['booktuijian']."
  新书:".$newbookname."
"; } else { $content.="
- ".$row['zuozhe']."".$row['ano']."/".$row['booksize']."
"; } $n++; } @me=$content; {/dede:field.typeid}

## {dede:field name='typename' function='str_replace("·","",@me)'/}新书推荐

{dede:field.typeid runphp='yes'"} global $dsql ; $n=1; $reid=@me; $content=""; $uptime=(time()-265000); $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclick,a.tuijian,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 and a.booksize<'300000' and a.lastupdate>'$uptime' order by a.bookclick+a.tuijian desc limit 0,10"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()){ $counta=$row['bookclick']+$row['tuijian']; if($n==1) { $content.="
- ".$row['typename']."".$counta."
- 作者:".$row['zuozhe']."
  下载:txt下载

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

"; } else { $content.="
- ".$row['typename']."".$counta."
"; } $n++; } @me=$content; {/dede:field.typeid}

## 完本{dede:field name='typename' function='str_replace("·","",@me)'/}小说推荐

{dede:field.typeid runphp='yes'"} global $dsql ; $n=1; $reid=@me; $content=""; $query = "SELECT a.typeimg,a.typename,a.description,a.typedir,a.bookclick,a.tuijian,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' 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) { $content.="
- ".$row['typename']."".$bt."
- 作者:".$row['zuozhe']."
  下载:txt下载

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

"; } else { $content.="
- ".$row['typename']."".$bt."
"; } $n++; } @me=$content; {/dede:field.typeid}

{dede:include filename="footer.htm"/}
{dede:myad name='tongji'/}
{dede:myad name='indexlist11'/} {dede:myad name='indexlist21'/}