hot.php

来自「1.增加了近40项后台核心设置」· PHP 代码 · 共 26 行

PHP
26
字号
<?php
require "./global.php";
$lid = (int)$lid;
include_once R_P.'header.php';
include_once R_P.'mydb.php';
$page ? "" : $page=1;
$sql = '';
if($lanmuindex[$lid][type]==1){
   foreach($lanmuindexb[$lid] as $lanmus){
           $sql .= "lid='$lanmus' OR ";
   }
   $sql = substr($sql,0,-4);
   $sql && $sql = "WHERE ($sql) AND xianshi='1'";
} else $sql = "WHERE lid='$lid' AND xianshi='1'";
$lid or $sql = '';
$lanmu['n'] = $lanmuindex[$lid]['name'];           //栏目名称
$lanmu['s'] = OutPut("SELECT wid,name,date,good,lid,visit,comment,color FROM xydw_art $sql ORDER BY visit DESC LIMIT ".($page-1)*$rootindex['lists'].",".$rootindex['lists']."",1,1,'',1); //栏目内容
$listpage = listpage('xydw_art','',$rootindex['lists']," $sql ");

// $newest = OutPut(GetSql("$lid",$rootindex[listn],0,0),0,0);  //最近更新
// $good = OutPut(GetSql("$lid",$rootindex[listg],2,0),0,0);   //最新推荐
// $hot = OutPut(GetSql("$lid",$rootindex[listh],3,0),0,0);   //热门文章
include_once R_P."include/left.php";
include_once temp('hot');
include_once R_P.'footer.php';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?