dz文章索引

<?php 
define('APPTYPEID', 4);
define('CURSCRIPT', 'sitemap');
require './source/class/class_core.php';
$discuz = & discuz_core::instance();
$discuz->cachelist = $cachelist;$discuz->init();
$navtitle='站点标题';    //网页标题
$metakeywords='关键字';  //网页关键词
$metadescription='描述'; //网页描述
include template('common/header');echo '
<style type="text/css">
a:link {color: #333; text-decoration: none;}
a:visited {text-decoration: none; color: #666;}
a:hover {text-decoration: none; color: #F90;}
a:active {text-decoration: none; color: #F90;}
.newtid{width:99.7%;float:left; margin-top:10px; border: 1px dotted #F90; margin-bottom:10px; }
.newtid li{padding-left:2%;font-size: 12px;width:48%; float:left;line-height: 25px;}
.newtid li a{color: #333;}
.newtit strong a{position: absolute;bottom: 98765px;}
.newtid h2{font-size: 16px;line-height: 45px;}
</style>  
<ul class="newtid">';
$site_num  = DB::result(DB::query("SELECT COUNT(`aid`) FROM ".DB::table('portal_article_title')." as a inner join ".DB::table('portal_category')." as b on a.catid=b.catid where a.status=0 ORDER BY a.aid DESC"));
$site_num = $site_num ? $site_num :0;
$site_listnum = 100;
$site_page = intval($_G['gp_page']) ? intval($_G['gp_page']) :1;
$site_max = $site_page > 0 ? $site_listnum * ($site_page-1) : 0;
$site_max2 =   $site_max2 + 100;
$querys = DB::query("SELECT a.aid,a.title,a.catid,b.catid FROM ".DB::table('portal_article_title')." as a inner join ".DB::table('portal_category')." as b on a.catid=b.catid where a.status=0 ORDER BY a.aid DESC LIMIT ".$site_max.",".$site_max2);
$multipage = multi($site_num, $site_listnum,$site_page, "sitemap2.php");
$i=1;while($articleaid = DB::fetch($querys)){echo '<li>'.$i.'、<a href="portal.php?mod=view&aid='.$articleaid['aid'].'" target="_blank">'.$articleaid['title'].'</a></li>';$i++;} 
echo $multipage; 
echo '</ul>';
include template('common/footer');
?>