<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />

<title>top</title>
<link rel="stylesheet" type="text/css" href="<!--{$cppath}-->css/top.css" />
<script type="text/javascript" src="<!--{$urlpath}-->tpl/static/js/jquery.min.js"></script>
<script type="text/javascript" src="<!--{$cppath}-->js/top.js"></script>
<script type='text/javascript' src='<!--{$urlpath}-->tpl/static/laydate/laydate.js'></script>
  <script type="text/javascript" src="<!--{$urlpath}-->tpl/admincp/js/layer/layer.js"></script>
<!--[if lte IE 6]>
<script type='text/javascript' src='<!--{$urlpath}-->tpl/staticjs/DD_belatedPNG-min.js'></script>
<script language="javascript">DD_belatedPNG.fix('.logo');</script>
<![endif]-->
</head>
<style>
	.lang-all {
		z-index:100;position:absolute;
		float: right;
		width: 128px;
		padding: 2px;
		background: #48bed8;
		color: #fff;
		border-radius: 6px;
		text-align: center;
		right: 193px;
	}
	.lang-all li {
		border-bottom: 1px solid #d9d9d9;
	}
	.lang-all li a {
		color: #fff;
	}
</style>
<body>
<div id="top">
  <div class="logo"></div>
  <div id="navs">
	<ul>
	  <li><a class="liico" href="<!--{$cpfile}-->?c=frame&a=left&mod=setting"><span class="liico1"><!--{$lang.system}--></span></a></li>
	  <li><a href="<!--{$cpfile}-->?c=frame&a=left&mod=content"><span class="liico2"><!--{$lang.mokuai}--></span></a></li>
	  <li><a href="<!--{$cpfile}-->?c=frame&a=left&mod=skin"><span class="liico3"><!--{$lang.template}--></span></a></li>
	  <li><a href="<!--{$cpfile}-->?c=frame&a=left&mod=app"><span class="liico4"><!--{$lang.shop}--></span></a></li>
           <!--{assign var='plugin_data' value=XHook::doAction('adm_member_top')}-->
	  <li><a href="<!--{$cpfile}-->?c=frame&a=mynav"><span class="liico5"><!--{$lang.daohao}--></span></a></li>
	  <div class="c"></div>
	</ul>  
  </div>
  <div id="right">
    <p>
	欢迎回来：<!--{$adminname}-->&nbsp;&nbsp;|&nbsp;&nbsp;
	<a href="index.php" target="_blank">网站首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;
		<a href="javascript:void(0);" class="lang"><!--{$language}-->
		</a>&nbsp;&nbsp;|&nbsp;&nbsp;

	<a href="<!--{$cpfile}-->?c=login&a=logout" target='_top'>退出登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
	<a href="<!--{$cpfile}-->?c=setting&a=clearcache" target='main'>清除页面缓存</a>&nbsp;&nbsp;|&nbsp;&nbsp;
	<a href="<!--{$cpfile}-->?c=setting&a=updatecache" target='main'>更新数据缓存</a>

	</p>
  </div>
  <div style="clear:both;"></div>
  
</div>
        <script>


                           $(".lang").bind("click", function() { //提交
                           	    console.log(parent.window.document.getElementById('main-frame').contentWindow.test());
							  // $(parent.frames["main-frame"]).test();
                           	return false;
                                var lang=$(this).text();
                                if(lang=='English'){
									var name=2;
								}
                                   $.ajax({
                                    url:"index.php?c=index&a=qielang",
                                    type:"post",
                                    data:{lang:name},
                                    dataType: "json",
                                    success:function(data){


                                       window.location.reload();
                                    },
                                    error:function(e){
                                        alert("错误！！");

                                    }
                                });

			});

        </script>
</body>

</html>