<!DOCTYPE html>

<html>

<head>

{template head}

</head>

<body>

	{template header}

			{template here}

				<div class="search">
					<form id="form1" name="form1" method="get" action="coms.php">
						<input type="text" name="keyword" id="keyword" value="{$keyword}" placeholder="输入商家名称关键字" />
						<input type="hidden" name="order" value="new" />
						<input type="submit" value=" " name="dosubmit" />
					</form>
				</div>
				{if $hiss}
				<div class="pad1" style="background:#fff;" id="timecookie">
				<div class="clear h_1"></div>
				{loop $hiss $val}
					<a href="{url_rewrite('list',array('keyword'=>urlencode($val)))}" class="layui-btn layui-btn-primary layui-btn-small f99s" style="background:#f9f9f9;border:0;margin:.5rem .5rem 0 0;">{$val}</a>
				{/loop}
				<a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:void(0);" id="clearcookie" style="margin:.5rem .5rem 0 0;">清空</a>
				</div>
				{/if}
				
{template footer}
<script>
layui.use('jquery', function(){
  var $ = layui.jquery;
		$('#clearcookie').on('click', function(){
		   $.post("search.php?act=clearhis", {},function(data){
			   if(data.data=='0'){
				  $('#timecookie').hide();
				  layer.msg('清空成功');
				}
		   }, "json");	 
		});
});
</script>

</body>

</html>