{include file="head.html"}
<style>
* {
	margin:0;
	padding:0;
	border:0;
}
html, body {
	height:100%;
	overflow: hidden;
}
.top_head {
	line-height: 25px;
	background-color: #f5f5f5;
	height: 25px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #ddd;
	text-align: right;
	padding-right: 20px;
	padding-left: 10px;
}
.top_head a {
	margin-left:5px;
	margin-right:5px;
}
</style>
<body>
<div style="width:100%; height:100%; background-color:#f9f9f9">
  <table width="100%" height="100%" border="0"  style="margin-left:auto; margin-right:auto;" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="74" valign="top"><!-- top开始 -->
        
        <div id="jyhead">
          <div style="width:100%;">
            <div class="logo">dlcms</div>
            <div class="nav">
              <ul>
                <li><a href="__APP__" >{lang='首页'}</a></li>
                <?php $list=module('menu')->menu(0);if (!empty($list)){ foreach ($list as $vo) { ?>
                <?php if($vo['target']==1) { ?>
                <li><a href="#" onClick="menu_load('__APP__{$vo['url']}-{$vo['id']}')" > <?php echo module('common')->getlang($vo['name']) ?></a> </li>
                <?php } ?>
                <?php if($vo['target']==2) { ?>
                <li><a href="__APP__{$vo['url']}?lang=__LANG__" target="frame_content" >{$vo['name']}</a></li>
                <?php } ?>
                <?php }} ?>
              </ul>
            </div>
            <div class="toptool"> <a href="__APP__/admin" target="frame_content"><?php echo module('common')->getlang($admin_name) ?></a> [<?php echo module('common')->getlang($group) ?>] <a href="#" onClick="logout()">[{lang='退出'}]</a> </div>
          </div>
        </div>
        <div class="top_head"> <span style="float:left">
 <?php $langid=module('common')->getlangid(); if($sys['LANG_OPEN']==1){ ?>
{lang='语言切换'}：
<?php if(!empty($lang_list)) foreach($lang_list as $lang_list) { ?>
<a <?php if($langid==$lang_list['id']){ ?> style="color:#F00" <?php } ?> href="?lang={$lang_list['lang']}" >{$lang_list['name']}</a>
<?php }?>
<?php } ?></span> <span style="float:right"> <a href="__APP__/index/home" target="frame_content">{lang='管理首页'}</a>| <a href="__APP__/clear" target="frame_content">{lang='更新缓存'}</a>| <a href="__ROOTURL__/" target="_blank">{lang='网站首页'}</a>| <a href="http://www.dlcms.net/" target="_blank">{lang='官方网站'}</a>  </span> </div>
        
        <!-- top结束 --></td>
    </tr>
    
      <TD height="100%" valign="top"  ><table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" style="table-layout:fixed;">
          <tr>
            <td width="200px" valign="top" style="border-right:1px #ddd solid"><div id="sidebar"> </div></td>
            <td height="100%" valign="top" ><iframe id="frame_content" name="frame_content" src="__URL__/home" frameborder=0 style="width:100%; height:100%;"></iframe></td>
          </tr>
        </table></TD>
    </TR>
  </TABLE>
</div>

<!--[if IE]>
<script>
function frameheight() {
	var mainheight = $(window).height()-77;   
    $('#frame_content').height(mainheight); 
};

$(function() {
frameheight();
$(window).resize(frameheight);
});
</script>
<![endif]-->
<script>
$("#sidebar").load("__APP__/menu/index_left");
function logout() {
   asyncbox.confirm("<?php echo module('common')->getlang('确认要退出吗？') ?>","<?php echo module('common')->getlang('提示信息') ?>",function(action){
　　　if(action == 'ok'){
　　　　　window.location.href = "__APP__/login/logout";
　　　}
　});
};
</script>
</body>
</html>