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

96 lines
3.5 KiB
PHTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!-- 轮播 s -->
<div class="homeban banner-other" style="margin-top: 40px;">
<div class="bd">
<ul>
<li><a href="#"><img style="width:100%" src="__PUBLIC__/m_weben/images/blog/mblog.png"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="m_Container">
<!-- Blog列表 s -->
<div class="search_box">
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
<button id="search-btnput" class="search-button-blog">Search</button>
</div>
<div class="blog_list">
<?php if ($list): ?>
<ul class="clearfix">
<?php foreach ($list as $detail): ?>
<li>
<a href="<?php echo '/usmobile/blog/detail/id/'.$detail['id'];?>.html">
<img src="<?php echo getImage($detail['icon'], 951, 459, 6); ?>" />
<h3><?php echo $detail['title']; ?></h3>
<p><?php echo $detail['seo_description']; ?></p>
</a>
<span class="blue"><?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
</div>
<!-- Blog列表 e -->
<script>
var type = 'Blog';
//点击创建申请块
$(function(){
$('.search_box input').on("keyup", function(){
var skeyword = $("#bg-search-in").val();
if (skeyword) {
var href = "?name=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "/usmobile/blog";
location.href = href;
}
});
console.log('aaa');
$("#search-btnput").bind("click", function(event) {
console.log('Blog');
var keywords = $("#bg-search-in").val();
if(keywords){
var href = "?name=" + encodeURIComponent(keywords);
location.href = href;
}
});
});
</script>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>