You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
5.5 KiB
143 lines
5.5 KiB
<?php
|
|
if(!defined('InEmpireCMS'))
|
|
{
|
|
exit();
|
|
}
|
|
?>
|
|
<?php
|
|
$callback=$_GET['callback'];
|
|
if ($ajax){
|
|
while($fr=$empire->fetch($sql))
|
|
{
|
|
if(empty($class_r[$fr[classid]][tbname]))
|
|
{continue;}
|
|
$r=$empire->fetch1("select * from {$dbtbpre}ecms_".$class_r[$fr[classid]][tbname]." where id='$fr[id]' limit 1");
|
|
//标题链接
|
|
$titlelink=sys_ReturnBqTitleLink($r);
|
|
if(!$r['id'])
|
|
{continue;}
|
|
$classname=$class_r[$classid]['classname'];
|
|
$list.='{"id":'.$r['id'].',"mid":'.$r['id'].',"title":"'.$r['title'].'","keywords":"","cate":"'.$classname.'","img":"http://'.$public_r['add_www'].$r['titlepic'].'","thumb":"http://'.$public_r['add_www'].$r['titlepic'].'","cateid":'.$classid.',"subcateid":20,"thrcateid":31,"downcount":'.$r['totaldown'].',"favcount":"'.$r['fav'].'","hasppt":1,"online":1,"pages":6,"uploadtime":1543991976,"ordernum":0,"style":0,"uid":6103,"isshell":0,"isweili":0,"catepath":"pptmoban","@expr":1933.7999267578125,"hasfav":0,"url":"'.$titlelink.'","preview_path":"http://'.$public_r['add_www'].$r['titlepic'].'"},';
|
|
}
|
|
$list=substr($list,0,strlen($list)-1);
|
|
echo $callback.'({"data":['.$list.'],"more":1,"nextpageurl":"?classid='.$classid.'&page='.($page+1).'&ajax=1"})';
|
|
}else{
|
|
$public_diyr['pagetitle']='收藏夹';
|
|
$url="<a href=../../../>首页</a> > <a href=../cp/>会员中心</a> > 收藏夹";
|
|
require(ECMS_PATH.'e/template/incfile/header.php');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta content="telephone=no" name="format-detection">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta content="True" name="HandheldFriendly">
|
|
<meta name="full-screen" content="true">
|
|
<meta name="screen-orientation" content="portrait">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
|
|
<meta name="applicable-device" content="mobile">
|
|
<link rel="canonical" href=""/>
|
|
<title><?=$thispagetitle?>-<?=$public_r[sitename]?></title>
|
|
<link href="/Mobile/Public/css/mc.css?v=20181128" rel="stylesheet" type="text/css">
|
|
<link href="/Mobile/Public/css/index.css?v=20181128" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" src="/Mobile/Public/js/rem.js?v=20181128"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
var now=new Date();
|
|
var beginTime=now.getTime();
|
|
var searchType = "1";
|
|
var mainHost = "http://<?=$public_r['add_m']?>/";
|
|
var apiHost = "http://<?=$public_r['add_www']?>/";
|
|
var user = "<?=$username?>";
|
|
var uid = "<?=$userid?>";
|
|
var isvip = <?if ($vip){?><?=$vip?><?}else{?>0<?}?>; </script>
|
|
<div id="top">
|
|
<div id="top-content">
|
|
<a href="/" class="referer" ></a>
|
|
<div class="pagename margin-center center">我的收藏</div>
|
|
|
|
<div class="menu center"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="topSearchBar">
|
|
<div class="cancelIcon"></div>
|
|
<div class="searchInput">
|
|
<input type="text" id="searchWord" class="fn14" value="" />
|
|
<div class="clearInput"></div>
|
|
</div>
|
|
<a class="searchBtn color-miz-violet center" href="javascript:;">搜索</a>
|
|
</div>
|
|
|
|
<div id="mask"></div>
|
|
|
|
<div id="rightSlide">
|
|
<div class="face center">
|
|
<div class="face-img">
|
|
<a href="/e/member/cp/"><img src="<?=$userpic?>" /></a>
|
|
</div>
|
|
<div class="click-login"><a href="/e/member/cp/"><?=$username?></a></div>
|
|
</div>
|
|
|
|
<div class="plate-list center color-888">
|
|
<ul>
|
|
<a href="/" class="color-miz-violet"><li>首页</li></a>
|
|
<a href="/list/1-0-0-0-0.html" class="color-888"><li>PPT模板</li></a>
|
|
<a href="/list/40-0-0-0-0.html" class="color-888"><li>PPT图表</li></a>
|
|
<a href="/list/16-0-0-0-0.html" class="color-888"><li>Word文档</li></a>
|
|
<a href="/list/31-0-0-0-0.html" class="color-888"><li>Excel表格</li></a>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div id="main" >
|
|
<link href="/tpl/Mobile/Public/css/user.css?v=20181128" rel="stylesheet" type="text/css">
|
|
|
|
<div id="main-content">
|
|
|
|
<div class="nav-box">
|
|
<a href="?classid=1"<?if ($classid==1){?> class="color-miz-violet"<?}?>>PPT模板</a>
|
|
<a href="?classid=40"<?if ($classid==40){?> class="color-miz-violet"<?}?>>Word模板</a>
|
|
<a href="?classid=16"<?if ($classid==16){?> class="color-miz-violet"<?}?>>Excel表格</a>
|
|
<a href="?classid=31"<?if ($classid==31){?> class="color-miz-violet"<?}?>>PPT元素</a>
|
|
</div>
|
|
|
|
<div class="pic-list">
|
|
<?php
|
|
|
|
while($fr=$empire->fetch($sql))
|
|
{
|
|
if(empty($class_r[$fr[classid]][tbname]))
|
|
{continue;}
|
|
$r=$empire->fetch1("select * from {$dbtbpre}ecms_".$class_r[$fr[classid]][tbname]." where id='$fr[id]' limit 1");
|
|
//标题链接
|
|
$titlelink=sys_ReturnBqTitleLink($r);
|
|
if(!$r['id'])
|
|
{continue;}
|
|
?>
|
|
<div class="pic-box pic-box1" name="pic-box">
|
|
<a href="<?=$titlelink?>" alt="<?=$r['title']?>" >
|
|
<img name="pic" src="http://<?=$public_r['add_www'].$r['titlepic']?>" />
|
|
<h3 class="pic-title text2"><?=$r['title']?></h3>
|
|
</a>
|
|
</div>
|
|
<?}?>
|
|
</div>
|
|
<script>
|
|
//分页
|
|
var nextpageurl = '?classid=<?=$classid?>&page=<?=($page+1)?>&ajax=1';
|
|
</script>
|
|
<a href="javascript:;" class="show-more color-miz-violet" id="show-more">载入更多</a> </div>
|
|
|
|
</div>
|
|
<?php
|
|
require(ECMS_PATH.'e/template/incfile/footer.php');
|
|
?>
|
|
<script type="text/javascript" src="/Mobile/Public/js/common.js?v=20181128"></script>
|
|
</body>
|
|
</html>
|
|
<?}?>
|