144 lines
4.9 KiB
PHTML
Executable File
144 lines
4.9 KiB
PHTML
Executable File
<!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_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">软件驱动</a>
|
|
<a href="<?php echo url('download/catelists_down?id=3')?>" class="list">手册</a>
|
|
<a href="__ORICOROOT__/video/category/1.html" class="list">视频</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">支持型号: </p>
|
|
<p class="des"><?php echo $detail['app_model']; ?></p>
|
|
<p class="sub_title">支持的系统: </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]) ? '下载' : $downloadpath64[$k];
|
|
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
|
|
?>
|
|
<a href="<?php echo trim($dl, '/'); ?>" class="l_button" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
|
|
<?php endforeach; ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php else:?>
|
|
<div class="list clearfix">查询无此驱动!</div>
|
|
<?php endif;?>
|
|
</div>
|
|
<!--Software Drives-->
|
|
<!-- 分页 s -->
|
|
<?php
|
|
if ($page) {
|
|
echo $page;
|
|
}
|
|
?>
|
|
<!-- 分页 e -->
|
|
<!--Manual-->
|
|
<!--video-->
|
|
<!--video-->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!--内容 -->
|
|
|
|
<!-- bottom s -->
|
|
{include file="include/bottom2023" /}
|
|
<!-- bottom e -->
|
|
</body>
|
|
|
|
</html>
|
|
<script type="text/javascript">
|
|
/*定位光标*/
|
|
document.querySelector('#search_software').focus();
|
|
$(function() {
|
|
//
|
|
$("#search-btn").bind("click", function(event) {
|
|
console.log(111111)
|
|
var skeyword = $("#search_software").val();
|
|
console.log(skeyword)
|
|
if (skeyword) {
|
|
var href = "<?php echo url('/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
|
|
location.href = href;
|
|
}
|
|
else{
|
|
var href = "__ORICOROOT__/download.html";
|
|
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>
|
|
<style>
|
|
.list .des {
|
|
word-break: break-all;
|
|
}
|
|
</style>
|