<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>{{$WEBNAME}}</title>
		<meta name="keywords" content="{{$KEYWORDS}}">
		<meta name="description" content="{{$DESCRIPTION}}">
		<link rel="stylesheet" href="/public/global/layui/css/layui.css"  media="all">
		<link rel="stylesheet" type="text/css" href="/public/global/css/style.css"/>
		<script src="/public/global/jquery/1.11.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/public/global/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script language="javascript">
			document.domain = "{{C('cookie_domain')}}";
		</script>
		{{hook_listen('tpl_head')}}
		<style>
			.search{
				width: 400px !important;
			}
			.search input{
				width: 300px !important;
				height: 45px !important;
				line-height: 45px !important;
			}
			.search .layui-btn-sm{
				padding:0 20px ;
				height: 45px !important;
				line-height: 45px !important;
				font-size: 14px;
			}
		</style>
	</head>
	<body>
		<div id="header">
			<div class="header_left" id="logins">
				<script type="text/javascript" id="login" src="{{WEBURL}}/login/index/small_login/tpl/default" ></script>
			</div>
			<div class="header_right">
				<A onclick="SetHome(this,window.location);" href="#">设为首页</A>
				<A onclick="AddFavorite(window.location,document.title);" href="#">加入收藏</A>
			</div>
		</div>
		<div id="logo">
			<div class="header_left">
				<a><img src="/public/global/images/logo.png"></a>
			</div>
			<div class="header_right">
				<div class="search">
					<form method="post" action="/{{MODULE}}/search/index/index.{{C('html')}}">
						<input type="text" name="keyword" placeholder="请输入要搜索的关键词" value="{{$keyword}}"/>
						<button class="layui-btn layui-btn-sm">查找</button>
					</form>
				</div>
			</div>
		</div>
		<div id="nav">
			<ul class="layui-nav">
				<li class="layui-nav-item  layui-this" >
					<a href="{{WEBURL}}">网站首页</a>
				</li>
				<foreach array="HOME_MENU">
				<li class="layui-nav-item" >
					<a href="{{$row.link}}" style="color: {{$row.color}};" target="{{$row.target}}">{{$row.name}}</a>
					<if condition="$row['list']">
						<dl class="layui-nav-child">
						<foreach array="row['list']" value="_row">
							<dd>
								<a href="{{$_row['link']}}" style="color: {{$_row.color}};" target="{{$_row.target}}">{{$_row['name']}}</a>
							</dd>
						</foreach>
						</dl>
					</if>
				</li>
				</foreach>
			</ul>
		</div>
		<div class="Crumbs layui-breadcrumb">
			  {{$Crumbs}}
		</div>
