<?php
require("../class/connect.php");
if(!defined('InEmpireCMS'))
{
exit();
}
require("../class/db_sql.php");
require("../data/dbcache/class.php");
require LoadLang("pub/fun.php");
require("../class/schallfun.php");
$link=db_connect();
$empire=new mysqlquery();
eCheckCloseMods('sch');//关闭模块
$searchtime=time();
$totalnum=(int)$_GET['totalnum'];
$firstsearch=0;
if($totalnum<1)
{
$firstsearch=1;
//搜索间隔
$lastsearchtime=(int)getcvar('lastschalltime');
if($lastsearchtime)
{
if($searchtime-$lastsearchtime<$public_r[schalltime])
{
printerror('SchallOutTime','',1);
}
}
//设置最后搜索时间
esetcookie('lastschalltime',$searchtime,$searchtime+3600*24);
}
$page=(int)$_GET['page'];
$page=RepPIntvar($page);
$start=0;
$page_line=$public_r['schallpagenum'];//每页显示链接数
$line=$public_r['schallnum'];//每页显示记录数
$offset=$start+$page*$line;//总偏移量
//编码
$iconv='';
$char='';
$targetchar='';
if($ecms_config['sets']['pagechar']!='gb2312')
{
include_once(ECMS_PATH.'e/class/doiconv.php');
$iconv=new Chinese('');
$char=$ecms_config['sets']['pagechar']=='big5'?'BIG5':'UTF8';
$targetchar='GB2312';
}
$schallr=ReturnSearchAllSql($_GET);
require("../data/dbcache/SearchAllTb.php");
$keyboard=$schallr['keyboard'];
$query="select id,classid from {$dbtbpre}enewssearchall where ".$schallr['where'];
if($totalnum<1)
{
$totalquery="select count(*) as total from {$dbtbpre}enewssearchall where ".$schallr['where'];
$num=$empire->gettotal($totalquery);
if(empty($num))
{
printerror('SchallNotRecord','',1);
}
}
else
{
$num=$totalnum;
}
$search=$schallr['search']."&totalnum=".$num;
$query.=" order by infotime desc limit $offset,$line";
$sql=$empire->query($query);
$listpage=page1($num,$line,$page_line,$start,$page,$search);
$url="<a href='".ReturnSiteIndexUrl()."'>".$fun_r['index']."</a> > ".$fun_r['SearchAllNav'];
?>
<!--empire.listtemp.top-->
<?php
$no=$offset;
$subnum=<!--empire.listtemp.subnum-->;
$formatdate="<!--empire.listtemp.formatdate-->";
while($r=$empire->fetch($sql))
{
$tbname=$class_r[$r[classid]]['tbname'];
if(empty($tbname))
{
continue;
}
$titlefield=$schalltb_r[$tbname]['titlefield'];
$smalltextfield=$schalltb_r[$tbname]['smalltextfield'];
$infor=$empire->fetch1("select id,classid,titlepic,newstime,isurl,titleurl,".$titlefield.",".$smalltextfield." from {$dbtbpre}ecms_".$tbname." where id='$r[id]' limit 1");
if(empty($infor['id']))
{
continue;
}
$no++;
$titleurl=sys_ReturnBqTitleLink($infor);
$titlepic=$infor['titlepic']?$infor['titlepic']:$public_r['newsurl']."e/data/images/notimg.gif";
$smalltext=SubSchallSmalltext($infor[$smalltextfield],$subnum);
$title=DoReplaceFontRed($infor[$titlefield],$keyboard);
$smalltext=DoReplaceFontRed($smalltext,$keyboard);
$newstime=date($formatdate,$infor['newstime']);
?>
<!--empire.listtemp.center-->
<?php
}
db_close();
$empire=null;
?>
<!--empire.listtemp.footer-->
没有合适的资源?快使用搜索试试~ 我知道了~
百度轻博客帝国cms模板是一款精仿hi百度轻博客的蓝色大气帝国cms模板.rar
共80个文件
php:38个
png:20个
txt:8个
需积分: 0 0 下载量 8 浏览量
2023-09-10
11:00:27
上传
评论
收藏 340KB RAR 举报
温馨提示
html
资源推荐
资源详情
资源评论
收起资源包目录
百度轻博客帝国cms模板是一款精仿hi百度轻博客的蓝色大气帝国cms模板.rar (80个子文件)
login.php 2KB
FavaClass.php 2KB
1.php 3KB
EditInfo.php 2KB
ChangeRegister.php 1KB
安装方法.txt 905B
AddMsg.php 2KB
ViewMsg.php 2KB
topbar.png 3KB
msg.php 4KB
boke.temp 201KB
my.php 2KB
GetPassword.php 1KB
card.php 2KB
art_ico.png 4KB
banner.png 108KB
register.php 5KB
act_bg.png 5KB
ico1.gif 44B
bodybg.jpg 29KB
img_have.png 5KB
gbook.php 4KB
user_img.png 4KB
bg_qcenter_top.jpg 20KB
bg_qcenter_repeat.png 2KB
img_ico.png 5KB
FriendClass.php 3KB
masonry_loading_1.gif 4KB
pl.png 4KB
fav_icon_word_new_1220.png 5KB
SetSpace.php 1KB
vid_have.png 5KB
cp_1.php 10KB
gotop.png 3KB
follow_btn.gif 88B
downbak.php 2KB
u.jpg 24KB
AddFriend.php 2KB
jquery.infinitescroll.js 24KB
pltemp.txt 701B
pubu.css 4KB
regsend.php 2KB
li.gif 94B
sprite.gif 2KB
ShowInfo.php 3KB
feedback.php 2KB
art_have.png 4KB
bg.jpg 25KB
hot.png 1011B
ShowFeedback.php 2KB
jquery.masonry.js 15KB
index.php 1KB
buybak.php 2KB
AddFava.php 2KB
vid_ico.png 4KB
bg_postdate.png 4KB
buygroup.php 2KB
ReGbook.php 2KB
qimi_bdindex.css 11KB
getpass.php 2KB
schalltemp.txt 3KB
cp_2.php 559B
EditSafeInfo.php 2KB
ChangeStyle.php 2KB
loginopen.php 2KB
logo-1.png 11KB
ChangeFriend.php 1KB
dtindexpage.txt 952B
loginjs.php 3KB
fava.php 3KB
page.png 2KB
gbooktemp.txt 2KB
downpagetemp.php 883B
friend.php 3KB
pljstemp.txt 2KB
cp.php 5KB
printtemp.txt 75B
bg_qcenter_top_wraper.png 399B
tags.png 2KB
loginiframetemp.txt 2KB
共 80 条
- 1
资源评论
Q_97095639
- 粉丝: 379
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功