<!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><?php echo V('-:tpl/title');?>管理中心</title>
<link href="<?php echo W_BASE_URL;?>css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/admin.js"></script>
<script>
$(function(){
	admin.index.init();
});
</script>
<style>
	html{ overflow-y:hidden;}
</style>
</head>
<body id="index">

	<div id="wrapper">
    	<div id="header">
        	<div class="logo"></div>
            <div class="menu">
            	<a href="#">功能设置</a>
                <a href="#">微博管理</a>
                <a href="#">帐号设置</a>
            </div>
            <div class="log-info">
            	<span>欢迎回来：<?php echo $real_name;?></span><em>|</em><a href="<?php echo URL('admin/admin.logout');?>">退出系统</a>
            </div>
        </div>
        <div id="container">
        	<div class="sidebar">
				 <div class="sub-menu"> 
					<div>
						<a href="<?php echo URL('admin/setting.edit');?>#t_logo" target="mainframe">网站Logo</a>
                        <a href="<?php echo URL('admin/setting.edit');?>#t_write" target="mainframe">网址重定位</a>
						<!--<a href="<?php echo URL('admin/setting.edit');?>#t_header" target="mainframe">页头内容</a>-->
						<a href="<?php echo URL('admin/setting.edit');?>#t_footer" target="mainframe">页尾内容</a>
					</div>
				 </div>
                 <div class='sub-menu'> 
                    <strong>今日话题</strong> 
                    <div>
                    	<a href="<?php echo URL('admin/today_topic.add');?>" target="mainframe">添加话题</a>
                    	<a id="topicList" href="<?php echo URL('admin/today_topic.topicList');?>" target="mainframe">话题管理</a>
                        
                    </div>
                    <strong>名人推荐</strong>
                    <div>
                    	<a href="<?php echo URL('admin/celebrity.add');?>" target="mainframe">添加推荐</a>
                        <a id="celebrityList" href="<?php echo URL('admin/celebrity.celebrityList');?>" target="mainframe">推荐管理</a>
                    </div>
                    <strong>认证管理</strong>
                    <div>
                    	<a href="<?php echo URL('admin/user_verify.add');?>" target="mainframe">添加认证</a>
                        <a id="verifyuserList" href="<?php echo URL('admin/user_verify.userList');?>" target="mainframe">认证管理</a>
                    </div>
                    <strong>屏蔽微博</strong>
                    <div>
                    	<a href="<?php echo URL('admin/disabled_weibo.search');?>" target="mainframe">添加屏蔽项</a>
                        <a id="weiboList" href="<?php echo URL('admin/disabled_weibo.weiboList');?>" target="mainframe">屏蔽项管理</a>
                    </div>
                    <strong>屏蔽评论</strong>
                    <div>
                    	<a href="<?php echo URL('admin/disabled_comment.search');?>" target="mainframe">添加屏蔽项</a>
                        <a id="commentList" href="<?php echo URL('admin/disabled_comment.commentList');?>" target="mainframe">屏蔽项管理</a>
                    </div>
                    <strong>关键字管理</strong>
                    <div>
                    	<a href="<?php echo URL('admin/keyword.add');?>" target="mainframe">添加关键字</a>
                        <a id="keywordList" href="<?php echo URL('admin/keyword.keywordList');?>" target="mainframe">关键字管理</a>
                    </div>
				 </div>
				 <div class='sub-menu'> 
                    <strong>帐号管理</strong> 
                    <div>
                    	<a href="<?php echo URL('admin/user.add');?>" target="mainframe">用户添加</a>
                    	<a id="userlist" href="<?php echo URL('admin/user.userlist');?>" target="mainframe">用户列表</a>
                        <a target="mainframe" href="<?php echo URL('admin/user.repassword','id=' . $admin_id);?>">修改密码</a>
                    </div>
                 </div>
            </div>
            <div class="main">
                <iframe id="mainframe" width="100%" name="mainframe" frameborder="0" src="<?php echo URL('admin/today_topic.topicList');?>"  scrolling="yes"></iframe>
            </div>
        </div>
    </div>

	<?php if ($u_tips) {?>
		<div class="update-tips" id="xwb_update_tips">
			<div><?php echo $u_tips->text;?></div>
			<a class="update-link" href="<?php echo $u_tips->downurl?>">立即升级</a><a href="#" onclick="$('#xwb_update_tips').hide();">以后再说</a>
		</div>
	<?php }?>
</body>
</html>
<script>
	function setHeight(){
		document.getElementById("mainframe").style.height = document.documentElement.clientHeight - 53 +"px";
	};
	window.onload = setHeight;
	window.onresize = setHeight;
	

</script>
