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

127 lines
4.9 KiB
PHTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件下载_ORICO/奥睿科官网</title>
<meta name="Keywords" content="软件下载">
<meta name="Description" content="软件下载">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.clearfix:after {content: ".";display: block;height:0;clear:both; visibility:hidden; }
.clearfix {*zoom:1;}
.mobile-search { background:linear-gradient(to right,#009fdf, #1eb7f3);width:100%;padding-top:8px;}
.download-title {font-size:28px; text-align: center; color:#333;margin:15px 0;}
.download-bg {background: #fff;border-radius:10px; margin:8px 25px;box-shadow: 0px 2px 40px 0px #E6EAF4;-moz-box-shadow: 0px 2px 40px 0px #E6EAF4;-webkit-box-shadow:0px 2px 40px 0px #E6EAF4; padding:1.333rem;}
.download-left {width:30%; float: left;}
.download-left img {width:100%;}
.download-right {width:65%; float: right; font-size: 0.64rem;}
.down-btn {border:2px solid #009fdf; padding:5px; text-align: center; color:009fdf; font-size: 0.64rem; width:4.26rem;margin:5px 0;display: inline-block;}
.down-btn a { color:#009fdf;}
.down-btn a:hover {background:#009fdf; color:#fff;font-size: 0.64rem;}
.down-gray {color:#666; margin: 5px 0;}
.margin-top-60{
margin-top: 52px;
}
</style>
</head>
<body>
<!--头部-->
{include file="include/top_back1" /}
<!--search-->
<div class="margin-top-60"></div>
<div class="menu mobile-search margin-top-90">
<div class="search">
<!-- <a href="__ORICOROOT__/search">-->
<form action="__ORICOROOT__/group/download" method="get">
<div class="search margin-bottom-30">
<button class="updown_search_btn" type="sumbit" id="bnt_email"><span class="icon-search"></span></button>
<input class="form-control" name="keywords" placeholder="全站搜索" value="<?php if(isset($keywords)){ echo $keywords;} ?>" type="text">
</div>
</form>
<!-- </a>-->
</div>
</div>
<!--软件驱动下载-->
<div class="download-title">手册下载</div>
<!--循环-->
<?php if($downloads):?>
<?php foreach ($downloads as $key => $value): ?>
<div class="download-bg clearfix">
<div class="download-left">
<?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 class="download-right">
<div class="font-48"> <?php echo $value['name']; ?></div>
<div class="down-gray">
<p>适合型号:<?php echo $value['app_model']; ?></p>
</div>
<div class="down-btn">
<?php
$downloadpath = explode(',', $value['downloadpath']);
$downloadpath64 = explode(',', $value['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a class="l_button" href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $value['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<?php else:?>
<div class="list clearfix">查询无此说明书!</div>
<?php endif;?>
<!--底部-->
{include file="include/bottom1" /}
<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=3')?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "<?php echo url('Download/catelists_down?id=3')?>";
location.href = href;
}
});
$("#search-in").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>
</body></html>