99 lines
3.3 KiB
PHTML
Executable File
99 lines
3.3 KiB
PHTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>search</title>
|
|
<meta name="Keywords" content=""/>
|
|
<meta name="Description" content=""/> {include file="include/head" /}
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
|
|
|
|
|
|
|
|
<body>
|
|
<div id="content">
|
|
<!--top-->
|
|
{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-blog-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
|
|
<button id="blog-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 else: ?>
|
|
<div class="content">No Result!</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<!-- Blog列表 e -->
|
|
<script>
|
|
var type = 'Blog';
|
|
$(function(){
|
|
|
|
$("#bg-blog-in").keyup(function(event) {
|
|
if (event && event.keyCode === 13) {
|
|
$("#blog-btnput").trigger("click");
|
|
}
|
|
});
|
|
|
|
|
|
//$("#search-btnput").click(function() {
|
|
$("#blog-btnput").bind("click", function(event) {
|
|
console.log('Blog');
|
|
var keywords = $("#bg-blog-in").val();
|
|
if(keywords){
|
|
var href = "?name=" + encodeURIComponent(keywords);
|
|
location.href = href;
|
|
}
|
|
else{
|
|
var href = "/usmobile/blog";
|
|
location.href = href;
|
|
}
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
<br class="bottom-margin">
|
|
|
|
<!--底部-->
|
|
{include file="include/bottom" /}
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|