list.temp.php
872 Bytes
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
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
DoWapHeader($pagetitle);
?>
<p><b>列表:</b><?=$pagetitle?></p>
<p>
<?php
while($r=$empire->fetch($sql))
{
$titleurl="show.php?classid=".$r[classid]."&id=".$r[id]."&style=".$wapstyle."&bclassid=".$bclassid."&cid=".$classid."&cpage=".$page;
//截取字數
if($pr['wapsubtitle'])
{
$r[title]=sub($r[title],0,$pr['wapsubtitle'],false);
}
//時間格式
$r[newstime]=date($pr['wapshowdate'],$r[newstime]);
?>
<a href="<?=$titleurl?>"><?=DoWapClearHtml($r[title])?></a> <small>(<?=$r[newstime]?>)</small><br />
<?php
}
?>
</p>
<?php
if($returnpage)
{
?>
<p><?=$returnpage?><br /></p>
<?php
}
?>
<p><a href="index.php?style=<?=$wapstyle?>&bclassid=<?=$bclassid?>">返回</a> <a href="index.php?style=<?=$wapstyle?>">網站首頁</a></p>
<?php
DoWapFooter();
?>