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

View File

@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Software Drives</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" /}
{include file="include/top-header" /}
</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">Software and Drivers</div>
</div>
<!--banner-->
<div class="contact_c">
<!--搜索-->
<div class="search_all">
<input type="text" name="textfield" placeholder="Search model" id="search_software">
<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 on">Software Drives</a>
<a href="<?php echo url('us/download/catelists_down?id=45')?>" class="list">Manual</a>
<a href="__ORICOROOT__/video/category/36.html" class="list">Videos</a>
</div>
<!--tab切换-->
<div class="boxs">
<!--Software Drives-->
<div class="software">
<?php if($list):?>
<?php foreach ($list as $detail): ?>
<div class="list">
<div class="left_img"><img src="<?php echo getImage($detail['picture']); ?>" alt="" /></div>
<div>
<p class="title"><?php echo $detail['name']; ?></p>
<p class="sub_title">Supported Models: </p>
<p class="des"><?php echo $detail['app_model']; ?></p>
<p class="sub_title">Supported Systems: </p>
<p class="des"><?php echo $detail['support_os']; ?></p>
<p>
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? 'Download' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo $dl; ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><span class="l_button"><?php echo $dlname; ?></span></a>
<?php endforeach; ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php else:?>
<div class="list clearfix">No Software!</div>
<?php endif;?>
</div>
<!--Software Drives-->
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
<!--Manual-->
<!--video-->
<!--video-->
</div>
</div>
<!--内容 -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search_software').focus();
$(function() {
//
$("#search-btn").bind("click", function(event) {
var skeyword = $("#search_software").val();
console.log(skeyword)
if (skeyword) {
var href = "<?php echo url('/us/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "<?php echo url('/us/download'); ?>";
location.href = href;
}
});
$("#search_software").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
//搜索框
$(".Searchbox .icon").click(function() {
$(".Search").slideToggle();
});
});
</script>

View File

@@ -0,0 +1,136 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Manual</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" /}
{include file="include/top-header" /}
</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">Software and Drivers</div>
</div>
<!--banner-->
<div class="contact_c">
<!--搜索-->
<div class="search_all">
<input type="text" name="textfield" placeholder="Search model" id="search_input">
<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">Software Drives</a>
<a href="<?php echo url('us/download/catelists_down?id=45')?>" class="list on">Manual</a>
<a href="__ORICOROOT__/video/category/36.html" class="list">Videos</a>
</div>
<!--tab切换-->
<!--Manual-->
<div class="manual">
<?php if($list):?>
<?php foreach ($list as $detail): ?>
<div class="list">
<div class="left_img">
<?php if($detail['picture']):?>
<img src="<?php echo $detail['picture']; ?>" alt="" />
<?php else:?>
<img src="__PUBLIC__/weben/images/software/manual.png" alt="" />
<?php endif;?>
</div>
<div>
<p class="title"><?php echo $detail['name']; ?></p>
<p class="m-t-24">
<span class="sub_title">Supported Models: </span>
<span class="des"><?php echo $detail['app_model']; ?></span>
</p>
<p>
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
//$dlname = empty($downloadpath64[$k]) ? 'Download' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><span class="l_button"><?php echo 'Download'; ?></span></a>
<?php endforeach; ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php else:?>
<div class="list clearfix">No Manual!</div>
<?php endif;?>
<!--Manual-->
</div>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<!--内容 -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search_input').focus();
$(function() {
//
$("#search-btn").bind("click", function(event) {
var skeyword = $("#search_input").val();
if (skeyword) {
var href = "<?php echo url('Download/catelists_down?id=45')?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "<?php echo url('Download/catelists_down?id=45')?>";
location.href = href;
}
});
$("#search_input").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
});
</script>

View File

@@ -0,0 +1,44 @@
<!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">
<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>
<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>

175
app/us/view/download/index.phtml Executable file
View File

@@ -0,0 +1,175 @@
<!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-black" /}
<!--top End-->
<?php if ($category['picture']): ?>
<!-- 轮播 s -->
<div class="homeban">
<a href="<?php //echo url_rewrite('download', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a>
<!-- 搜索框 s
<div class="lsea">
<input id="dl-search-in" type="text" value="<?php echo $skeyword; ?>" name="skeyword" placeholder="输入关键字查找">
<a id="dl-search-btn" href="#"></a>
</div>-->
<!-- 搜索框 e -->
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="hd">
<ul class="hdone">
<li>驱动下载</li>
<li><a href="<?php echo url('us/Download/catelists_down?id=3')?>">说明书下载</a></li>
<li>Orico期刊</li>
<li>其他</li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title">软件驱动下载</div>
<!-- title e -->
<div class="w1440 bd">
<?php if ($list): ?>
<ul class="bdone">
<?php foreach ($list as $detail): ?>
<li>
<div class="loadfl">
<img src="<?php echo getImage($detail['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><a href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $detail['name']; ?></a></div>
<div class="load_destri"><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $detail['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $detail['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<?php if ($downloadCategory): ?>
<ul class="bdtwo">
<?php foreach ($downloadCategory as $k => $dc): ?>
<li>
<p class="datatitle"><?php echo $dc['name']; ?></p>
<?php
$downloads = getDifferentDownload('ishot', 8, ['cid' => $dc['id']]);
if ($downloads):
?>
<dl>
<?php foreach ($downloads as $download): ?>
<dd>
<div class="datafl">
<img src="<?php echo getImage($download['picture']); ?>">
</div>
<div class="datarh">
<div class="datams1"><?php echo $download['name']; ?></div>
<div class="datams2"><?php echo msubstr($download['description'], 0, 200); ?></div>
<div class="datams3">格式:<?php echo $download['format']; ?></div>
<div class="datams4">
<?php
$downloadpath = explode(',', $download['downloadpath']);
$downloadpath64 = explode(',', $download['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
</dl>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".load").slide({trigger: "click", defaultIndex: 0, });
$(function() {
$("#dl-search-btn").bind("click", function(event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function(event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function(event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/us/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>