Files
2024-10-29 14:04:59 +08:00

110 lines
3.6 KiB
PHTML
Executable File
Raw Permalink 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-->
<!--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" /}
<!--top End-->
<div class="homeban">
<div class="bd">
<ul>
<li><img src="/frontend/weben/images/eng-blog.jpg"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="swt-Container">
<div class="news-vertu">
<div class="tab">
<?php if(!empty($cate_list)): ?>
<?php foreach ($cate_list as $key => $value): ?>
<a href="__ORICOROOT__/article/category/<?php echo $value['id'] ?>.html" class="<?php if ($category['id'] == $value['id']): ?> on <?php endif; ?>"><?php echo $value['name']; ?></a>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="search_box">
<i class="search_icon"></i>
<input type="text" placeholder="Search" class="search" id="article-search-in" value="">
</div>
<div class="content">
<?php if ($list):?>
<ul>
<li>
<div class="blog_list ">
<?php foreach ($list as $detail):?>
<?php
if($detail['jump_link'] == ''){
$alink = "__ORICOROOT__/article/detail/".$detail['id'].".html";
}
else{
$alink = $detail['jump_link'];
}
?>
<div class="clearfix">
<a href="<?php echo $alink;?>">
<img src="<?php echo getImage($detail['picture'], 1500, 1000, 6); ?>">
<h3><?php echo $detail['name']; ?></h3>
<p><?php echo msubstr($detail['description'], 0, 200); ?></p>
</a>
<span class="blue"><?php echo date("M j, Y",$detail['createtime']); ?></span>
</div>
<?php endforeach;?>
</div>
</li>
</ul>
<?php else:?>
<div class="clearfix"> No Result</div>
<?php endif;?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
<script>
$(function(){
//新闻搜索
var article_search_input = $("#article-search-in");
$(article_search_input).on("keyup", function(e){
$("#article-search-in").keyup(function(event) {
if (event && event.keyCode === 13) {
var keywords = $("#article-search-in").val();
var href = "?skeyword=" + encodeURIComponent(keywords);
location.href = href;
}
});
});
});
</script>
</body>
</html>