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.
173 lines
6.9 KiB
173 lines
6.9 KiB
<?php
|
|
|
|
if(!defined('InEmpireCMS'))
|
|
|
|
{
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
$public_diyr['pagetitle']='收藏夹';
|
|
|
|
$url="<a href=../../../>首页</a> > <a href=../cp/>会员中心</a> > 收藏夹";
|
|
|
|
require(ECMS_PATH.'e/template/incfile/header.php');
|
|
|
|
?>
|
|
|
|
<link rel="stylesheet" href="/video/css/video_v1.css" />
|
|
|
|
<link rel="stylesheet" href="/audio/css/audio_v1.css" />
|
|
|
|
<!-- vip充值记录 -->
|
|
|
|
<style>
|
|
|
|
.category{height:30px;width:1200px;margin-top:20px;font-size:14px;}
|
|
|
|
.category ul{width:90%;display:block;}
|
|
|
|
.category ul li{width:100px;float:left;display:block;margin-right:20px;}
|
|
|
|
.category ul li a{text-align:center;width:100%;display:block;line-height:30px;border-radius:5px;}
|
|
|
|
.category ul li a:hover{background:#6085e3;color:white;border-radius:5px;}
|
|
|
|
.category ul .on{background:#6085e3;color:white;border-radius:5px;}
|
|
|
|
.flex-images { overflow: hidden; }
|
|
|
|
.flex-images .item { float: left; margin: 4px; border: 1px solid #eee; box-sizing: content-box; overflow: hidden; position: relative; }
|
|
|
|
.flex-images .item img { width: 100%; height: 100%; }
|
|
|
|
#demo1{margin-bottom:50px;}
|
|
|
|
</style>
|
|
|
|
<div class="wlimit category">
|
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
$newsclass=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid=0 and showclass=0 order by myorder,classid asc limit 10");
|
|
|
|
while($classr=$empire->fetch($newsclass))
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<li><a<?if ($classid==$classr[classid]){?> class="on"<?}?> href="?classid=<?=$classr[classid]?>"><?=$classr[classname]?></a></li>
|
|
|
|
<?}?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?if ($num){?>
|
|
|
|
<!-- 个人主页 -->
|
|
|
|
<div class='you-like'>
|
|
|
|
|
|
|
|
<div class='wlimit' style="margin-top:20px;">
|
|
|
|
<div class='b-box'>
|
|
|
|
<?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;}
|
|
|
|
$newsnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfava where id='".$r['id']."' and classid='".$r['classid']."' and userid='".$userid."'");
|
|
|
|
$mid=$class_r[$classid]['modid'];
|
|
|
|
if ($mid==9||$mid==10||$mid==11||$mid==13||$mid==14||$mid==15){
|
|
|
|
?>
|
|
|
|
<div data-id="<?=$r['id']?>" class='cbox s-box ' >
|
|
|
|
|
|
|
|
<a target="_blank" href="<?=$titlelink?>">
|
|
|
|
<img alt="<?=$r['title']?>" class='s-pic lazy' data-original="<?=$r['titlepic']?>" src="/common/image/background.png">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<span style="display:block;" class='explain'>
|
|
|
|
<span style="display:block;" class='p-title'><a target="_blank" href="<?=$titlelink?>"><?=$r['title']?></a></span>
|
|
|
|
<span style="display:block;" class='coll'>
|
|
|
|
<span class="dianzan-num"><i></i><span class="dzs"><?=$r['diggtop']?></span></span>
|
|
|
|
<span title="收藏" class='coll-num'><i></i><?=$r['fav']?></span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<a rel="nofollow" target="_blank" href="<?=$titlelink?>"><span class='mark' ></span></a>
|
|
|
|
|
|
|
|
<a rel="nofollow" href="<?=$titlelink?>" target="_blank" class='b-down' cid="<?=$r['classid']?>" id="<?=$r['id']?>">立即下载</a>
|
|
|
|
|
|
|
|
<?if ($newsnum){?>
|
|
|
|
<span class='b-collect chose' user="1" cid="<?=$r['classid']?>" id="<?=$r['id']?>" isfrom="0" issc="1">已收藏 </span>
|
|
|
|
<?}else{?>
|
|
|
|
<span class='b-collect ' user="0" cid="<?=$r['classid']?>" id="<?=$r['id']?>" isfrom="0" issc="0">收藏 </span>
|
|
|
|
<?}?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?}else if ($mid==12){?>
|
|
|
|
|
|
|
|
<div data-id="<?=$r['id']?>" class='cbox s-box video' style="border-radius:5px" >
<div class='video-view'>
<a href="<?=$titlelink?>" target="_blank">
<video class="onetwoqpepkgxk" src="<?=$r['swf']?>" onmousemove="var imgUrl=this.getAttribute('imgUrl');if(imgUrl==0){return false;} else {this.setAttribute('poster',imgUrl);this.setAttribute('imgUrl','0');}" imgurl="<?=$r['titlepic']?>" preload="none" loop="loop">
</video>
</a>
<a href="<?=$titlelink?>" target="_blank" class='img-none'>
<img alt="<?=$r['title']?>" class='s-pic lazy' data-original="<?=$r['titlepic']?>" src="/common/image/background.png" >
</a>
<a rel="nofollow" href="<?=$titlelink?>" target="_blank" class='v-down' cid="<?=$r['classid']?>" id="<?=$r['id']?>">下载</a>
<?if ($newsnum){?>
<span class='v-collect b-collect ' user="1" cid="<?=$r['classid']?>" id="<?=$r['id']?>" isfrom="2" issc="1"></span>
<?}else{?>
<span class='v-collect b-collect ' user="0" cid="<?=$r['classid']?>" id="<?=$r['id']?>" isfrom="2" issc="0"></span>
<?}?>
<span class="title "><?=$r['title']?></span>
<span class="mc-bottom"></span>
</div>
</div>
<?}else if ($mid==16){
if ($newsnum){
$fav='<a class="collect b-collect chose" cid="'.$r['classid'].'" id="'.$r['id'].'" isfrom="3" issc="1"></a>';
}else{
$fav='<a class="collect b-collect" cid="'.$r['classid'].'" id="'.$r['id'].'" isfrom="3" issc="0"></a>';
}
function user_changeTime($seconds){
if ($seconds >3600){
$hours =intval($seconds/3600);
$minutes = $seconds % 3600;
$time = $hours.":".gmstrftime('%M:%S',$minutes);
}else{
$time = gmstrftime('%M:%S',$seconds);
}
return $time;
}
?>
<div data-id="<?=$r['id']?>" class="cbox audio-box">
<i class="icon-bofang"></i>
<div class="info">
<a class="title" target="_blank" href="<?=$titlelink?>"><?=$r['title']?></a>
<a target="_blank" href="<?=$titlelink?>" class="down"><i></i>下载</a>
<?=$fav?>
</div>
<audio preload="none" id="<?=$r['id']?>" data-time="<?=$r['time']?>">
<source src="<?=$r['mp3']?>" type="audio/mpeg">
</audio>
<span class="star-time">00:00</span>
<div class="time-bar">
<span class="progressBar"></span>
<i class="move-color"></i>
<p class="timetip"></p>
</div>
<span class="end-time"><?=user_changeTime($r[time])?></span>
</div>
<?}?>
<?}?>
</div>
</div>
</div>
<div class='page'>
<?=$returnpage?>
</div>
<?}else{?>
<div class='tips'>
<div class='tips1'>您还未收藏任何作品</div>
<div class='tips2'>立即获得VIP服务,畅享一站式精品内容无限下载特权</div>
<a href='/e/member/buygroup/' target="_blank" class='tips3'>立即开通</a>
</div>
<!-- 个人主页 -->
<div class='you-like'>
</div>
<?}?>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>
<script src="/video/js/video_v1.2.js"></script>
<script src="/lib/store.legacy.min.js"></script>
|