This commit is contained in:
2024-10-29 14:04:59 +08:00
commit 48bf3e6f33
2839 changed files with 762707 additions and 0 deletions

160
app/th/view/video/catelists.phtml Executable file
View File

@@ -0,0 +1,160 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<?php if ($category['picture']): ?>
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<li><a href="<?php echo url_rewrite('us/video', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 视频列表 s -->
<div class="vmain">
<div class="swt-Container">
<?php if ($videoCategory): ?>
<div class="History2">
<div class="hd">
<ul>
<?php foreach ($videoCategory as $k => $vc): ?>
<li<?php if ($category['id'] == $vc['id']): ?> class="on"<?php endif; ?>><?php echo $vc['name']; ?></li>
<?php endforeach; ?>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<div class="bd">
<?php foreach ($videoCategory as $k => $vc): ?>
<ul data-cid="<?php echo $vc['id']; ?>">
<div class="vtext">
<p class="tl1"><?php echo $vc['name']; ?></p>
</div>
<?php
?>
<dl class="hotul" id="dl<?php echo $vc['id']; ?>">
<?php
if ($vc['id'] == $category['id'] && !empty($list)):
foreach ($list as $video):
?>
<dd>
<div class="hot1">
<video preload="none" controls="controls" poster="<?php echo getImage($video['picture']); ?>">
<source src="<?php echo $video['videopath'];?>" type="video/mp4">
</video>
</div>
<div class="htit1"><?php echo $video['name']; ?></div>
<div class="htit2"><?php echo msubstr($video['description'], 0, 160, 'utf-8'); ?></div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
<?php endif; ?>
</dl>
<div id="page<?php echo $vc['id']; ?>">
<!-- 分页 s -->
<?php
if ($vc['id'] == $category['id'] && !empty($list) && $page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
</ul>
<?php endforeach; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".History2 .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".History2").slide({trigger: "click", defaultIndex: 0, startFun: startFun, });
var thiscid = "<?php echo $category['id']; ?>";
$(function() {
$("#page" + thiscid + " a[href^='__ORICOROOT__/video']").click(aPageClick);
});
function startFun(i, c, slider) {
var $current = $(".bd ul", slider).eq(i);
if ($current.length) {
var cid = $current.data('cid'), url = '__ORICOROOT__/video/category/' + cid + '.html';
if ($("#dl" + cid + " dd", $current).length == 0) {
getPageContent(url);
}
}
console.log(i);
}
function aPageClick(event) {
event.preventDefault()
var url = this.href;
if (url) {
getPageContent(url);
}
}
function getPageContent(url) {
$.ajax({
url: url,
async: false,
dataType: "json",
success: function(data) {
if (data.code && data.data.list) {
var html = '', list = data.data.list, len = list.length, i, cid = data.data.category.id;
for (i = 0; i < len; i++) {
html += '<dd>';
// html += '<a href="/us/video/detail/' + list[i].id + '.html">';
//html += '<div class="hot1"><div class="himg"><img src="' + list[i].picture + '"></div></div>';
html += '<video preload="none" controls="controls" poster="' + list[i].picture + '"><source src="' + list[i].videopath + '" type="video/mp4"></video>';
html += '<div class="htit1">' + list[i].name + '</div>';
html += '<div class="htit2">' + list[i].description.substring(0, 160) + '</div>';
html += '</dd>';
}
html += '<div class="clear"></div>';
$("#dl" + cid).html(html);
$("#page" + cid).html(data.data.page);
$("#page" + cid + " a[href^='/us/video']").click(aPageClick);
$("html, body").animate({scrollTop: $("#dl" + cid).offset().top}, 1000);
}
},
error: function() {
//alert("请求超时,请重试!");
}
});
}
</script>
</div>
<?php endif; ?>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

52
app/th/view/video/detail.phtml Executable file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
{include file="include/top-product" /}
<!--top End-->
<!-- 视频播放页 s -->
<div class="play">
<?php if ($detail['videourl']): ?>
<div class="playv">
<div class="plvimg">
<iframe allowfullscreen="" frameborder="0" width="100%" height="320" src="<?php echo $detail['videourl']; ?>"></iframe>
</div>
</div>
<?php elseif ($detail['videopath']): ?>
<div class="playv">
<div class="plvimg">
<video width="100%" height="auto" controls poster="<?php echo $detail['picture']; ?>">
<source src="<?php echo $detail['videopath']; ?>">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
<?php endif; ?>
<div class="playt">
<div class="plcon">
<div class="vtext">
<p class="tl1"><?php echo $detail['name']; ?><i><img src="__PUBLIC__/web/images/dot1.png"></i></p>
<p class="date">发布日期:<?php echo date('Y-m-d', $detail['createtime']); ?></p>
<p class="tl2"></p>
</div>
<div class="pltext">
<?php echo $detail['content']; ?>
</div>
</div>
</div>
</div>
<!-- 视频播放页 e -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

94
app/th/view/video/lists.phtml Executable file
View File

@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<li><a href="#"><img src="__PUBLIC__/weben/uploadfiles/image/video-list-banner.jpg"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<!-- 视频列表总 s -->
<div class="vicon">
<div class="swt-Container">
<!-- 视频 list s -->
<?php if ($videoCategory): ?>
<ul class="viul">
<?php foreach ($videoCategory as $k => $vc): ?>
<a class="public_box_pictrue" href="__ORICOROOT__<?php echo url_rewrite('video', ['id' => $vc['id']]); ?>">
<li>
<img src="<?php echo getImage($vc['image1']); ?>">
<p class="public_title"><?php echo $vc['name']; ?></p>
<!-- <p class="public_rect"><img src="__PUBLIC__/web/images/video_icon_03.png"></p> -->
<p class="public_cover"></p>
<p class="public_titlemoveshow">
<?php echo $vc['name']; ?>
</p>
<div class="public_border">
<span class="line-top"></span>
<span class="line-bottom"></span>
<span class="line-left"></span>
<span class="line-right"></span>
</div>
</li>
</a>
<?php endforeach; ?>
<div class="clear"></div>
</ul>
<?php endif; ?>
<!-- 视频 list e -->
<div class="hotv">
<div class="vtext">
<p class="tl1">Hot Video</p>
</div>
<?php
$videos = getDifferentVideo('ishot', 2);
if ($videos):
?>
<ul class="hotul">
<?php foreach ($videos as $video): ?>
<li>
<div class="hot1">
<video preload="none" controls poster="<?php echo getImage($video['picture']); ?>">
<source src="<?php echo $video['videopath'];?>" type="video/mp4">
</video>
</div>
<div class="htit1"><?php echo $video['name']; ?></div>
<div class="htit2"><?php echo msubstr($video['description'], 0, 160, 'utf-8'); ?></div>
</li>
<?php endforeach; ?>
<div class="clear"></div>
</ul>
<?php endif; ?>
</div>
</div>
</div>
<!-- 视频列表总 e -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>