-
Notifications
You must be signed in to change notification settings - Fork 0
/
shuku.php
executable file
·64 lines (55 loc) · 2.14 KB
/
shuku.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*-----------------
独立功能PHP程序
开发者:枯叶天
淘宝店铺:669977.TaoBao.com
演示站:www.SBYOU.net
官网:www.669977.net
QQ:1981255858
-----------------*/
$sbyou_net='over';
require_once(dirname(__FILE__)."/include/common.inc.php");
//处理栏目页码
$page=htmlspecialchars($_GET['page']);
if(!$page || !is_numeric($page)){
$page=1;
}
//相关变量
$BOOK_URL=sbyou_net_sysconfig('cfg_basehost').sbyou_net_sysconfig('cfg_indexurl');
$cfg_indexurl=sbyou_net_sysconfig('cfg_indexurl');
$templets=$cfg_indexurl.'templets/'.sbyou_net_sysconfig('cfg_df_style');
//页码
$entry='shuku';
include_once dirname(__FILE__).'/pageNav.php';
//列表
$dsql->SetQuery($where_sql." order by id desc limit $offset,$num");
$dsql->Execute();
while($list_row=$dsql->GetObject())
{
$topid=$list_row->topid;
if($list_row->zuozhe){
$list_zz='<a style="color:#025b81;" href="'.$cfg_indexurl.'author/?'.$list_row->id.'.html" target="_blank" title="'.$list_row->zuozhe.'">'.$list_row->zuozhe.'</a>';
}else{
$list_zz='<font style="color:#343434;">未记录</font>';
}
$gxlb_i++;$gxlb_i%2==0?$class=' class="odd"':$class='';
$list_str.='
<li'.$class.'>
<div class="c"><a href="'.$cfg_indexurl.SBYOU_NET_catalog($topid,'typedir').'.html" title="'.str_replace('·','',SBYOU_NET_catalog($topid,'typename')).'">['.str_replace('·','',SBYOU_NET_catalog($topid,'typename')).']</a></div>
<div class="title">
<div class="t"><a href="'.$cfg_indexurl.ltrim($list_row->typedir,'/').'/" title="'.$list_row->typename.'" target="_blank">'.$list_row->typename.'</a></div>
<div class="n">'.SbYOU_Net_NEW($list_row->id,ltrim($list_row->typedir,'/')).'</div>
</div>
<div class="words">'.$list_row->booksize.'</div>
<div class="author">'.$list_zz.'</div>
<div class="abover">'.($list_row->overdate==0?'<span>连载</span>':'<font style="color:blue">完结</font>').'</div>
<div class="time">'.date('Y-m-d',$list_row->lastupdate).'</div>
</li>
';
}
//加载模板
require_once(DEDEINC."/datalistcp.class.php");
$dlist = new DataListCP();
$dlist->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$cfg_df_style."/shuku.htm");
$dlist->Display();
?>