Files
orico-official-website-old/app/th/view/download/catelists_down.phtml
2024-10-29 14:04:59 +08:00

182 lines
9.0 KiB
PHTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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-black">
{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">
<a href="<?php //echo url_rewrite('download', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a>
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<!-- 搜索框 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 class="hd">
<ul class="hdone">
<li><a href="__ORICOROOT__<?php echo url('/Download/index?id=1')?>">驱动下载</a></li>
<li><a href="__ORICOROOT__<?php echo url('/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="swt-Container 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><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="load_destri">本次更新主要解决使用大于2TB容量有数据资料的硬盘不能正常识别显示为GPT保护分区 或 需要重新初始化硬盘。</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="__ORICOROOT__<?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: "__ORICOROOT__<?php echo url('/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>