 |
$limit="50";
require "../article/notice.php"
?> |
|
|
 |
require"../article/show6.php";?> |
|
|
 |
$len = "24";
$limit = "6"; # 显示多少篇文章
$sortids="11";
include("../article/get.php");
?> |
|
|
 |
$len = "24";
$limit = "6"; # 显示多少篇文章
$sortids="12";
include("../article/get.php");
?> |
|
|
 |
|
 |
|
$configuration = array();
require "admin/config.php";
require "admin/configs/setting.php";
// var_dump($configuration);
// extract($configuration,EXTR_SKIP);
extract($configuration, EXTR_OVERWRITE);
$sortid =9;
if (!$sortinfo) {
$sortinfo = validate_sortid($sortid);
}
$sortinfo[description] = str_replace(" "," ",nl2br($sortinfo[description]));
cachesorts();
$sortlist = makesortlist();
unset($articlelist);
//$perpage = $sortinfo[perpage];
$perpage = 10;
$subsortids = getsubsorts($sortid);
$total = $DB->fetch_one_array("SELECT COUNT(*) AS count FROM " . $db_prefix . "article AS article
WHERE sortid IN (0" . $subsortids . ") AND visible=1");
$totalresults = $total[count];
$totalpages = ceil($total[count] / $perpage);
if ($pagenum < 1 OR empty($pagenum)) {
$pagenum = 1;
} elseif ($pagenum > $totalpages) {
$pagenum = $totalpages;
}
$offset = ($pagenum-1) * $perpage;
if ($totalresults > 0) {
$from = $offset + 1;
if ($pagenum == $totalpages) {
$to = $totalresults;
} else {
$to = $offset + $perpage;
}
} else {
$from = 0;
$to = 0;
}
$articles = $DB->query("SELECT article.* FROM " . $db_prefix . "article AS article
WHERE sortid IN (0" . $subsortids . ") AND visible=1
ORDER BY date
LIMIT $offset,$perpage");
if ($DB->num_rows($articles) > 0) {
$counter = 0;
$row = 0;
$division = $sortinfo[division_article];
$tablewidth = floor(100 / $division);
echo "";
$i=1;
while ( $article = $DB->fetch_array($articles)) {
$article[time] = padate($timeformat_article, $article[date]);
$article[date] = padate($dateformat_article, $article[date]);
if (!empty($article[imageid])) {
$article[img] = " ";
} else {
$article[img] = "";
}
if ($i==1){
echo "";
}
echo " | ";
echo "".$article[title]." | ";
$articletexts=$DB->query("select * from " . $db_prefix . "articletext");
$articletext = $DB->fetch_one_array("SELECT * FROM " .$db_prefix. "articletext WHERE articleid=$article[articleid]");
$articletext[articletext]=wordscut($articletext[articletext],96);
echo "".$articletext[articletext]." |
|
| ";
$i++;
if ($i>=3)
{
echo " ";
$i=1;
}
}
echo " ";
$article[description] = str_replace(" ", " ", nl2br($article[description]));
}
$pagelinks = makepagelink2("$phparticleurl/view.php?sortid=$sortid",$pagenum,$totalpages);
?>
共 =$totalresults?> ,显示 =$from?> -
=$to?> |
=$pagelinks?>
|
|
include ("./includes/jingdianfooter.inc.php");
?>
| | |