<?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(`tid`) FROM ".DB::table('forum_thread')." as a inner join ".DB::table('forum_forum')." as b on a.fid=b.fid where a.displayorder=0 ORDER BY a.tid 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.tid,a.subject,a.fid,b.name FROM ".DB::table('forum_thread')." as a inner join ".DB::table('forum_forum')." as b on a.fid=b.fid where a.displayorder=0 ORDER BY a.tid DESC LIMIT ".$site_max.",".$site_max2);
$multipage = multi($site_num, $site_listnum,$site_page, "sitemap.php");
$i=1;while($threadfid = DB::fetch($querys)){echo '<li>'.$i.'、<em>[<a href="forum.php?mod=forumdisplay&fid='.$threadfid['fid'].'">'.$threadfid['name'].'</a>]</em> <a href="forum.php?mod=viewthread&tid='.$threadfid['tid'].'" target="_blank">'.$threadfid['subject'].'</a></li>';$i++;}
echo $multipage;
echo '</ul>';
include template('common/footer');?>
|