<!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=utf-8" />
<title><?=tag('tpl','title')?></title>                                
<link rel="stylesheet" type="text/css" href="css/theme1.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/ayaya.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
<?php echo do_apply('head','string');?>
</head>
<body>
	<div id="container">
    <?php echo do_apply('header','string');?>
    	<div id="header">
        	<h2><?php echo tag('tpl','webname')?></h2>
    <div id="topmenu">
            	<ul>
                <?php echo admin::topmenu();?>
              </ul>
          </div>
      </div>
        <div id="top-panel">
          <div id="panel">
                <ul>
                <li><a href="<?=RP?>" target="_blank"><?php echo tag('tpl','webname')?></a></li>
                <?php if($user['id']>0 && IS_ADMIN){?>
                    <li>欢迎您,<?=$user['name']?></li>
                    <li><a href="javascript:void(0)" onclick="return yun_send('<?=url(RPGM.'logout/?ajax')?>','确定退出吗?');return false;" class="report">退出</a></li>
                   <?php }else{?>
                    <li><a href="<?=url(RPGM.'login/')?>" class="report">请先登陆</a></li>
                     <?php }?>
                </ul>
            </div>
      </div>
        <div id="wrapper">
            <div id="content">
				<?php echo do_apply('content','string');?>
            </div>
            <div id="sidebar">
  				<?php echo admin::sidebarmenu()?>
          </div>
      </div>
        <div id="footer">
        <div id="credits">
   		 版权:<?php echo tag('tpl','webname')?>
        </div>
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
            </ul>
        </div><br />

        </div>
        <?php echo do_apply('footer','string');?> 
        
</div>
<?php echo do_apply('foot','string');?> 
</body>
</html>
