init
This commit is contained in:
159
app/index/view/video/catelists-old.phtml
Executable file
159
app/index/view/video/catelists-old.phtml
Executable file
@@ -0,0 +1,159 @@
|
||||
<!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-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
|
||||
{include file="include/top-header2023" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
<?php if ($category['picture']): ?>
|
||||
<!-- 轮播 s -->
|
||||
<div class="homeban">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="<?php echo url_rewrite('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^='/video']").click(aPageClick);
|
||||
});
|
||||
function startFun(i, c, slider) {
|
||||
var $current = $(".bd ul", slider).eq(i);
|
||||
if ($current.length) {
|
||||
var cid = $current.data('cid'), url = '/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="/uk/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.substring(0, 24) + '</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^='/uk/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/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
223
app/index/view/video/catelists.phtml
Executable file
223
app/index/view/video/catelists.phtml
Executable file
@@ -0,0 +1,223 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>视频</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/software.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body class="bg-gray">
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
|
||||
{include file="include/top-head2023" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
<!--内容-->
|
||||
<!--banner-->
|
||||
<div class="Swt-Banner position-r">
|
||||
<img src="__PUBLIC__/weben/images/software/banner_01.png" alt="" />
|
||||
<div class="banner_title">软件和驱动程序</div>
|
||||
</div>
|
||||
<!--banner-->
|
||||
<div class="contact_c">
|
||||
<!--搜索-->
|
||||
<div class="search_all">
|
||||
<input type="text" name="textfield" placeholder="搜索" id="search_video">
|
||||
<div class="searchbtn" id="search-btn"><img src="__PUBLIC__/weben/images/software/search.png"></div>
|
||||
</div>
|
||||
<!--搜索-->
|
||||
<!--tab切换-->
|
||||
<div class="tab">
|
||||
<a href="__ORICOROOT__/download.html" class="list">软件驱动</a>
|
||||
<a href="<?php echo url('download/catelists_down?id=3')?>" class="list">手册</a>
|
||||
<a href="__ORICOROOT__/video/category/1.html" class="list on">视频</a>
|
||||
</div>
|
||||
<!--tab切换-->
|
||||
<!--video-->
|
||||
<?php if ($videoCategory): ?>
|
||||
<div class="video">
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($videoCategory as $k => $vc): ?>
|
||||
<li data-cid='<?php echo $vc['id']; ?>' <?php if ($category['id'] == $vc['id']): ?> class="on" <?php endif; ?>><a href='__ORICOROOT__/video/category/<?php echo $vc['id']; ?>.html'><?php echo $vc['name']; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="bd">
|
||||
|
||||
|
||||
<?php foreach ($videoCategory as $k => $vc): ?>
|
||||
<ul data-cid="<?php echo $vc['id']; ?>" style="display:block">
|
||||
<?php
|
||||
?>
|
||||
<dl class="video_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="htit">
|
||||
<div class="htit1"><?php echo $video['name']; ?></div>
|
||||
<div class="htit2">
|
||||
<?php echo msubstr($video['description'], 0, 160, 'utf-8'); ?> </div>
|
||||
</div>
|
||||
</dd>
|
||||
<?php endforeach; ?>
|
||||
<div class="clear"></div>
|
||||
<?php else: ?>
|
||||
<div class="list clearfix">查询无此视频!</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 type="text/javascript">
|
||||
$(function() {
|
||||
$("#search-btn").on("click", function(event) {
|
||||
console.log(11122);
|
||||
var skeyword = $("#search_video").val();
|
||||
console.log(skeyword);
|
||||
var cid = $(".video .on").data('cid');
|
||||
if (skeyword) {
|
||||
var href = "__ORICOROOT__/video/category/"+cid+".html?skeyword=" + encodeURIComponent(skeyword);
|
||||
location.href = href;
|
||||
}
|
||||
else{
|
||||
var href = "__ORICOROOT__/video/category/"+cid+".html";
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
$("#search_video").keyup(function(event) {
|
||||
if (event && event.keyCode === 13) {
|
||||
$("#search-btn").trigger("click");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery(".video .hd").slide({
|
||||
mainCell: "ul",
|
||||
autoPlay: false,
|
||||
effect: "left",
|
||||
vis: 8,
|
||||
scroll: 1,
|
||||
autoPage: false,
|
||||
prevCell: ".prev",
|
||||
nextCell: ".next"
|
||||
});
|
||||
$(".video").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="htit">'
|
||||
html += '<div class="htit1">' + list[i].name + '</div>';
|
||||
html += '<div class="htit2">' + list[i].description.substring(0, 160) + '</div>';
|
||||
html += '</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 class="height_130"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--video-->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--内容 -->
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
57
app/index/view/video/detail-old.phtml
Executable file
57
app/index/view/video/detail-old.phtml
Executable file
@@ -0,0 +1,57 @@
|
||||
<!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-->
|
||||
<header class="header-PC header-Product">
|
||||
<div id="header" class="theme-black">
|
||||
|
||||
{include file="include/top-header2023" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--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/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
59
app/index/view/video/detail.phtml
Executable file
59
app/index/view/video/detail.phtml
Executable file
@@ -0,0 +1,59 @@
|
||||
<!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-Product">
|
||||
<div id="header" class="theme-black">
|
||||
|
||||
{include file="include/top-head2023" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
<!--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/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
196
app/index/view/video/items.phtml
Executable file
196
app/index/view/video/items.phtml
Executable file
@@ -0,0 +1,196 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>视频</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/software.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body class="bg-gray">
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
|
||||
{include file="include/top-header2023" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
<!--内容-->
|
||||
<!--banner-->
|
||||
<div class="Swt-Banner position-r">
|
||||
<img src="__PUBLIC__/weben/images/software/banner_01.png" alt="" />
|
||||
<div class="banner_title">软件和驱动程序</div>
|
||||
</div>
|
||||
<!--banner-->
|
||||
<div class="contact_c">
|
||||
<!--搜索-->
|
||||
<div class="search_all">
|
||||
<input type="text" name="textfield" placeholder="搜索">
|
||||
<div class="searchbtn" id="search-btn"><img src="__PUBLIC__/weben/images/software/search.png"></div>
|
||||
</div>
|
||||
<!--搜索-->
|
||||
<!--tab切换-->
|
||||
<div class="tab">
|
||||
<a href="__ORICOROOT__/download.html" class="list">软件驱动</a>
|
||||
<a href="<?php echo url('download/catelists_down?id=45')?>" class="list">手册</a>
|
||||
<a href="__ORICOROOT__/video/category/1.html" class="list on">视频</a>
|
||||
</div>
|
||||
<!--tab切换-->
|
||||
<!--video-->
|
||||
<?php if ($videoCategory): ?>
|
||||
<div class="video">
|
||||
<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>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<?php foreach ($videoCategory as $k => $vc): ?>
|
||||
<ul data-cid="<?php echo $vc['id']; ?>">
|
||||
<?php
|
||||
?>
|
||||
<dl class="video_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="htit">
|
||||
<div class="htit1"><?php echo $video['name']; ?></div>
|
||||
<div class="htit2">
|
||||
<?php echo msubstr($video['description'], 0, 160, 'utf-8'); ?>ORICO 2169U3 full mesh 2.5 inch hard
|
||||
drive enclosure, all-round heat-dissipation; compatible with SATA HDD below 9.5mm. </div>
|
||||
</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(".video .hd").slide({
|
||||
mainCell: "ul",
|
||||
autoPlay: false,
|
||||
effect: "left",
|
||||
vis: 8,
|
||||
scroll: 1,
|
||||
autoPage: false,
|
||||
prevCell: ".prev",
|
||||
nextCell: ".next"
|
||||
});
|
||||
$(".video").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="htit">'
|
||||
html += '<div class="htit1">' + list[i].name + '</div>';
|
||||
html += '<div class="htit2">' + list[i].description.substring(0, 160) + '</div>';
|
||||
html += '</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 class="height_130"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--video-->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--内容 -->
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
93
app/index/view/video/lists-old.phtml
Executable file
93
app/index/view/video/lists-old.phtml
Executable file
@@ -0,0 +1,93 @@
|
||||
<!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-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
|
||||
{include file="include/top-header2023" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
<!-- 轮播 s -->
|
||||
<div class="homeban">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="#"><img src="__PUBLIC__/web/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="<?php echo url_rewrite('video', ['id' => $vc['id']]); ?>">
|
||||
<li>
|
||||
<img src="<?php echo getImage($vc['image1']); ?>">
|
||||
<p class="public_title position-a"><?php echo $vc['name']; ?></p>
|
||||
<!-- <p class="public_rect position-a"><img src="__PUBLIC__/web/images/video_icon_03.png"></p> -->
|
||||
<p class="public_cover position-a"></p>
|
||||
<p class="public_titlemoveshow position-a">
|
||||
<?php echo $vc['name']; ?>
|
||||
</p>
|
||||
<div class="public_border position-a">
|
||||
<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">热门视频</p>
|
||||
</div>
|
||||
<?php
|
||||
$videos = getDifferentVideo('ishot', 2);
|
||||
if ($videos):
|
||||
?>
|
||||
<ul class="hotul">
|
||||
<?php foreach ($videos as $video): ?>
|
||||
<li>
|
||||
<a href="<?php echo url_rewrite('videodetail', ['id' => $video['id']]); ?>" target="_blank">
|
||||
<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>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<div class="clear"></div>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- 视频列表总 e -->
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
94
app/index/view/video/lists.phtml
Executable file
94
app/index/view/video/lists.phtml
Executable 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-header2023" /}
|
||||
</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/bottom2023" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user