<?php
$baseUrl = setting('basehost') . setting('path');
$iorange_id = $GLOBALS['iorange_id'];
$username = $GLOBALS['username'];
$iorange = $GLOBALS['_IORANGE'];
?>
<!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" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $title;?></title>
<meta name="keywords" content="<?php echo $keywords;?>" />
<meta name="description" content="<?php echo $description;?>" />
<link rel="stylesheet" type="text/css" href="<?php echo getCssFile('common.css');?>" />
<script type="text/javascript" src="<?php echo getJsFile('jquery/jquery.min.js');?>"></script>
<script type="text/javascript" src="http://cbjs.baidu.com/js/m.js"></script>
<script type="text/javascript">
BAIDU_CLB_preloadSlots("220755", "220758", "220757", "220756", "220741");
</script>
<script type="text/javascript">
var loginUrl = '<?php echo url('system', array('s' => 'member', 'a' => 'login'));?>';
var registerUrl = '<?php echo url('system', array('s' => 'member', 'a' => 'register'));?>';
var baseUrl = '<?php echo $baseUrl;?>';
var userHomeUrl = '<?php echo url('system', array('s' => 'member'));?>';
var progressUrl = '<?php echo url('system', array('s' => 'member', 'c' => 'my', 'a' => 'progress'));?>';
var isLogin = <?php if ($iorange_id):?>true<?php else:?>false<?php endif;?>;
var siteName = '<?php echo setting('webname');?>';
</script>
</head>
<body>
<script type="text/javascript" src="<?php echo getJsFile('common.js');?>"></script>
<div id="container">
<!-- 头部 -->
<div id="header">
	<div id="user"><a href="javascript:void(0);" id="homepage">设为首页</a> <a href="javascript:void(0);" id="homemark">收藏本站</a> <a target="_blank" href="http://25800.net/?st=2">手机访问</a></div> <div id="suser"><?php if ($iorange_id):?><?php echo ilink($username, url('system',array('s'=>'member')));?> <?php echo ilink('书架', url('system',array('s'=>'member','c'=>'my','a'=>'progress')));?> 站内信(<?php echo $iorange['user']['newpm'];?>) <a href="javascript:void(0);" id="logout">退出</a><?php else:?><?php if (preg_match('/read/i', $_SERVER['SCRIPT_NAME'])):?><a href="<?php echo url('system', array('s'=>'member','a'=>'login'));?>">登录</a> <a href="<?php echo url('system', array('s'=>'member','a'=>'register'));?>">注册</a><?php else:?><a href="javascript:void(0);" onclick="login(event);">登陆</a> <a href="javascript:void(0);" onclick="register(event);">注册</a><?php endif;?><?php endif;?></div>
</div>
<!-- end -->
<div class="clear"></div>