<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
if (true === $argOpts['isSystem']) {
	$spacetitle = $spaceConfig_System['s_name'];
	$spacechildtitle = $spaceSystemSetting[17];
	$spacename = '';
	$spaceurl = $spaceConfig_System['s_url'];
} else {
	$spacetitle = $spaceUserInfo['spacetitle'].'';
	$spacechildtitle = $spaceUserInfo['spacechildtitle'].'';
	$spacename = $spaceUserInfo['spacename'];
	$spaceurl = $spaceConfig_Syste['s_url'].$GLOBALS['ModHtmlLinked'].$spaceUserInfo['spacename'].'.html';
}
$webcharset = $GLOBALS['charset'] ? $GLOBALS['charset'] : 'gbk';
$stats = $argopts['stats'].'';
$copyright = $argopts['copyright'];
$skinpath = $spaceConfig_System['s_path'];
if( $spaceUserID > 0 ){
	$rssurl = getScriptUrl().$GLOBALS['spaceurl_r'].$GLOBALS['spaceName'].'.rss.xml';
} else{
	$rssurl = '';
}
print <<<EOT
<!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">
EOT;
if (defined('THIS_SCRIPT')) {
	if ('spacemanage' === THIS_SCRIPT OR 'spacepostings' === THIS_SCRIPT) {
		print <<<EOT
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset={$GLOBALS['charset']}" />
		<title>My Space Manage</title>
		<style type="text/css">
		<!--
		/*常规样式*/
		input, textarea { border: 1px solid #1d6292; background: #fff; margin-left: 5px; line-height: 16px; height: 18px; font-size:12px; }
		textarea { height: auto; font-size:12px; }
		body { font-size: 12px; color: #333; font-family: arial, helvetica, sans-serif, "宋体"; padding:0px; background:#ebf3fb; width:100%; margin:0px; overflow-x:hidden;}
		div,p,td,ul,li,span{ text-align:center; margin:0px; badding:0px;}
		a { color: #0065b2; text-decoration: none }
		a:hover { color: #ff6600; text-decoration: underline }
		a.menu { color: #ffffff; text-decoration: none; font-size:12px; }
		a.menu:hover { color: #ffff77; text-decoration: underline }
		img { border-width: 0px; vertical-align: middle; }
		.chkbox, .radio {border: 0px;background: none;vertical-align: middle; }
		hr { height:1px; color:#dddddd }
		button { background: #1d6292; margin:0px; padding:0px; height:23px;  font-size:12px; border-right: #063060 1px solid;  border-top: #4c96bb 1px solid; border-left: #4c96bb 1px solid; border-bottom: #063060 1px solid; color:#ffffff;}

		/*顶部样式*/
		.header { background:#3C7CC3; width:100%; float:left; margin:0px; padding:0px; }
		.header h1 { font-size:24px; color:#ffffff; margin:0px; height:50px; text-align:left; padding-left:40px; padding-top:10px; float: left; }
		.line { height:12px; background:#9CCEF1; border-top:#004592 3px solid; width:100%; float:left;}
		.magmenu { height:22px; line-height:20px; margin:16px 6px 0px 0px; float: right; border: 0px solid red; }
		.magmenu ul { padding-left:0px;width:auto; height:20px; float:left; list-style-type:none;}
		.magmenu li {font-size:12px; font-weight:100; vertical-align:middle; background:#639CDA; border: #004592 1px solid; border-left: #9CCEF1 1px solid; border-top: #9CCEF1 1px solid; height:16px!important; height:12px; width:60px; float:left;  padding-top:0px!important; padding:3px; margin:0px;color:#ffffff;}
		.magmenu a { color: white; }

		/*中间主题部分*/
		.magpage { width:100%; margin-bottom:10px; height: auto !important; height: 325px; }
		.magpage .LeftContainer { display: table-cell !important; display: block; float: none !important; float: left; padding: 8px; padding-right: 6px; margin: 0px; }
		.magpage .RightContainer { display: table-cell !important; width: 100% !important; width: auto; height: auto; margin: 0px !important; margin-left: 206px; padding: 8px; padding-left: 4px; }
		.magleft { width: auto; }
		.magmenu_left { width:188px; border:#3C7CC3 1px solid; background:#EEF3F6;}
		.magmenu_left h1 { height:22px; background: #639CDA; font-size:12px; color:#ffffff;padding-top:6px; margin-top:0px !important;}
		.magmenu_left ul { list-style-type:none; line-height:24px; width:160px; padding:0px; margin-left:20px !important; margin-left:10px; }
		.magmenu_left li { height:24px;line-height:24px; text-align:left; list-style-type:none; }
		.magright { width: auto; padding: 0px; margin: 0px; color: #004A7B;}
		.magmenu_right { width: auto; margin: 0px; padding: 0px; border: #3C7CC3 1px solid; background: #ffffff; }
		.magmenu_right h1 { font-size: 12px; padding-top: 6px; padding-bottom: 6px; text-align: left; margin-top: 0px; background: #639CDA; color:#ffffff }

		/*中间表格部分*/
		.magtable { border:1px solid #cccccc; margin:10px; padding:0px;}
		.magtable h1 { background:#eeeeee; height:24px; padding-top:4px; text-align:left; border-bottom: 1px solid #dddddd; color:#222222; margin:0px; }
		.magtable h2 { height:28px; background: #ffffff; font-size:14px; color:#ffffff; padding-top:3px; margin-top:0px !important; margin:0px; font-size:12px; font-weight:normal; color:#222222;}
		.magtable ul { list-style-type:none; text-algin:left; margin:0px; padding:0px;}
		.magtable li { width:auto; height:24px; border-bottom:1px solid #dddddd; margin:0px; padding:0px; }
		.magtable li span { height:20px; margin:0px; }
		.magline { border-right:1px solid #dddddd; float:left; padding-top:4px;}
		.magline2 { float:left; padding-top:4px;}

		/*导航按钮样式*/
		#Head { width:auto; padding-left:0px; float:left; background:#3C7CC3;}
		#Head ul{ display:inline;height:40px;margin:0; padding:0; background:#3C7CC3; list-style-type:none;}
		#Head #ChannelMenuItems li{ float:left; height:34px; margin:0px 1px 0px 0px; cursor: hand; }
		#Head #ChannelMenuItems a{ float:left; width:61px; height:24px; background: url("{$skinpath}images/systemtopbg2.gif"); text-decoration:none; padding-top:10px; }
		#Head #ChannelMenuItems li.MenuHome a:hover{ background: url("{$skinpath}images/systemtopbg22.gif");}

		/*管理表格样式*/
		.system_table {  margin:0px auto 0px auto ; width:96%; padding:0px; }
		.system_table h1 { height: auto !important; height:24px; margin:0px; padding:1px; border-bottom:1px solid #ddd; color:#0065B2; background:#fff; }
		.system_table h1 div { width: 150px; word-break: keep-all; margin:0px 0px 0px 0px; padding:0px; height: auto !important; height:24px; float:left; line-height:22px; text-align:right; }
		.topic { height:24px; width:94%; margin-left:auto; margin-right:auto; line-height:24px; font-weight:bold; text-align:left; padding-left:10px; margin-bottom:5px; border:1px solid #98BBD7; background:#DDEBF6; }
		#mainlist { border:1px solid white;padding:0px; width:auto; margin:10px auto 10px auto; }
        #mainlist h1 { height:24px; border:1px solid #98BBD7; width:98%; margin:0px auto 0px auto; line-height:24px; background:#DDEBF6; text-align:left; color:#000; padding:0px;}
		#mainlist h2 { height:24px; border-bottom:1px solid #ddd; background:#f9f9f9; width:96%; margin:0px auto 0px auto; line-height:24px; font-size:12px; padding:0px; font-weight:100;  }
		.Set1 { width:100%; margin:0px; padding:0px; text-align: center;}
		.Set2 { width:20%; float:left; margin:0px; padding:0px;}
		.Set3 { width:30%; float:left; margin:0px; padding:0px;}
		.Set5 { width:40%; float:left; margin:0px; padding:0px;}
		/* 个人空间相册显示部分 */
			.mytag_photo { width:auto; height:200px; margin:10px 0px 0px 0px;}
			.mytag_photo h1 { width:30%; margin:0px 0px 0px 10px; font-size:12px; float:left; background:#fff;border:1px solid #B1C6DA;}
			.mytag_photo h1 div { width:100%; margin:0px; font-size:12px; background:#F4F8FC;height:24px;line-height:24px;border-top:1px solid #C8D9E8;font-weight:normal;color:black;}
			#myphoto { padding:5px;}
			.mytag_list { width:auto; height:auto; margin:0px auto 0px auto;font-size:12px; text-align:left; padding:0px 10px 0px 10px;}
			.mytag_list em { float:right; font-style:normal;}
			.mytag_list h1 { height:24px; line-height:24px; font-size:12px; margin:0px; border:1px solid #B1C6DA; background:#ffffff; padding-left:10px;}
			.mytag_list h2 { height:24px; line-height:24px; font-size:12px; margin:5px auto 0px auto;padding-left:10px; width:80%}

	.tag_list { width:780px; height:auto; font-family:"宋体"; }
	.tag_list h1 { width:770px; height:20px; margin:0px; padding:10px 5px 0px 5px; font-size:14px; text-align:left; font-weight:100; }
	.tag_list h1 em { float:right; font-size:12px; font-style:normal; color:#666; }
	.tag_list h2 { height:20px; margin:0px; width:770px; padding:5px; font-size:12px; text-align:left; font-weight:100; border-bottom:1px solid #ddd; }
	.tag_list h2 span { color:#999; }
	.tag_list h3 { height:20px; background:#f9f9f9; margin:10px 0px 0px 0px; padding:6px; text-align:left; border:1px solid #ccc; font-size:12px; font-weight:100; }
	.tag_list h3 em { float:right; font-style:normal; }
	.tag_list h4 { height:16px; background:#f9f9f9; margin:10px 0px 5px 0px; padding:8px; text-align:left; border:1px solid #ccc; font-size:12px; font-weight:100; }

		/* 通用分页 */		
			.mytag_list { width:auto; height:auto; margin:0px auto 0px auto;font-size:12px; text-align:left; padding:0px 10px 0px 10px;}
			.mytag_list em { float:right; font-style:normal;}
			.mytag_list h1 { height:24px; line-height:24px; font-size:12px; margin:0px; border:1px solid #B1C6DA; background:#ffffff; padding-left:10px;}
			.mytag_list h2 { height:24px; line-height:24px; font-size:12px; margin:5px auto 0px auto;padding-left:10px; width:80%}

		/*底部版权信息*/
		.FooterContainer { width: 100%; height: 60px;  margin: 0px; padding: 0px; border-top: #004FB0 2px solid; background: #3C7CC3; color: #ffffff; }
		.copyright { border: 0px solid red; width: 98%; float: left; text-align: left; margin: 0px; padding-left: 20px; padding-top: 6px; }
		.copyright em { float: right; padding-right: 40px; padding-top: 10px; }
		-->
		</style>
		<script type="text/javascript" src="space/script/dv_main.js"></script>
		 <script src="templates/lang/{$GLOBALS['fsetting']['lang']}/js/main.js" type="text/javascript" language='JavaScript' charset='gbk'></script>
	</head>
	<body>
		<!-- 页首部分开始 -->
		<div class="HeaderContainer" style="height: 110px;">
			<div class="header">
				<h1>{$spaceUserInfo['nickname']}的空间管理</h1>
				<div class="magmenu">
					<ul>
						<li><img src="{$skinpath}images/arrow.gif" align="middle" /><a href="spaceindex.php">站点首页</a></li>
						<li><img src="{$skinpath}images/arrow.gif" align="middle" /><a href="spacemanage.php">管理首页</a></li>
						<li><img src="{$skinpath}images/arrow.gif" align="middle" /><a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.index.html" target="_top">空间首页</a></li>
						<li><img src="{$skinpath}images/arrow.gif" align="middle" /><a href="spaceapply.php?action=Logout">退出管理</a></li>
					</ul>
				</div>
			</div>
			<div class="header">
				<div id="Head">
					<div id="ChannelMenu">
						<ul id="ChannelMenuItems">
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=1" target="_top" class="menu">
							  <center>文章</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=2" target="_top" class="menu">
							  <center>收藏</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=3" target="_top" class="menu">
							  <center>链接</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=6" target="_top" class="menu">
							  <center>播客</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=4" target="_top" class="menu">
							  <center>交易</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=1&t=5" ta rget="_top" class="menu">
							  <center>相册</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=2" target="_top" class="menu">
							  <center>评论</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=3" target="_top" class="menu">
							  <center>文件</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=5" target="_top" class="menu">
							  <center>配置</center></a></li>
							<li class="MenuHome"><a href="spacemanage.php?s=4" target="_top" class="menu">
							  <center>模板</center></a></li>
						</ul>
					</div> 
				</div>
			</div>
			<div class="line"></div>
		</div>
		<!-- 页首部分结束 -->
EOT;
	} elseif ('space' === THIS_SCRIPT OR 'spacesearch' === THIS_SCRIPT) {
		$spaceurl = $GLOBALS['ModHtmlLinked'];
		$ispaceurl = $GLOBALS['mArchiveLink'];
		$spacename = $GLOBALS['spaceName'];
		$LastUpTime = gmdate('Y年m月d日', $spaceUserInfo['lastuptime']+getUserTimeZoneOffset());
		$skinpath = $spaceUserInfo['s_path'];
		if (true === $argOpts['isSystem']) {
			$spacetitle = $spaceConfig_System['s_name'];
			$spacechildtitle = $spaceSystemSetting[17];
			$spacename = '';
			$spaceurl = $spaceConfig_System['s_url'];
		} else {
			$spacetitle = $spaceUserInfo['spacetitle'].'';
			$spacechildtitle = $spaceUserInfo['spacechildtitle'].'';
			$spacename = $spaceUserInfo['spacename'];
			$spaceurl = $spaceUserInfo['s_url'].$GLOBALS['ModHtmlLinked'].$spaceUserInfo['spacename'].'.html';
		}
		if (empty($argopts['htmltitle'])) {
			/*
			if (!empty($GLOBALS['SPACE_HTMLTITLE'])) {
				$argopts['htmltitle'] = $GLOBALS['SPACE_HTMLTITLE'];
			} else {
				$argopts['htmltitle'] = "{$spacetitle}-{$spacename}{$stats}";
			}//*/
			$argopts['htmltitle'] = '{$DV_HTML_TITLE}';
		}
		print <<<EOT
	<head>
		<!--<title> 我的空间-首页 </title>-->
		<title>{$argopts['htmltitle']}</title>
		<meta http-equiv="Content-Type" content="text/html; charset={$GLOBALS['charset']}" />
		<link href="{$skinpath}css/myspace_style.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="space/script/dv_main.js"></script>
		 <script src="templates/lang/{$GLOBALS['fsetting']['lang']}/js/main.js" type="text/javascript" language='JavaScript' charset='gbk'></script>
	</head>
	<body>
		<!-- 个人空间页首开始 -->
		<div class="TopHeader">
			<h1>{$spaceUserInfo['nickname']}的空间</h1>
			<h2>
				<span><img alt="" src="$skinpath/images/arrow.gif" /><a class="menu" href="spacemanage.php" target="_top">控制面板</a></span>
				<span><img alt="" src="$skinpath/images/arrow.gif" /><a class="menu" href="spaceindex.php" target="_top">站点首页</a></span>
				<span><img alt="" src="$skinpath/images/arrow.gif" /><a class="menu" href="index.php" target="_top">论坛</a></span>
				<!--<span><img alt="" src="$skinpath/images/arrow.gif" /><a class="menu" href="index.php" target="_top">发表日志</a></span>-->
			</h2>
			<h3>
				<span class="menu_left">
					<span class="menu_center"><img alt="" src="$skinpath/images/mymenucenter.gif" /></span>
				</span>
				<span class="menu_right">
					<em>{$spaceUserInfo['topicnum']}篇文章，{$spaceUserInfo['favnum']}篇收藏，今日信息{$spaceUserInfo['todaynum']}篇,最后更新:{$LastUpTime}</em>
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.index.html" target="_top">空间首页</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.0.html">文章</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.1.html">收藏</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.4.html">相册</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.2.html">书签</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.3.html">交易</a> | 
					<a href="{$GLOBALS['ModHtmlLinked']}{$GLOBALS['spaceName']}.showchannel.5.html">播客</a>
				</span>
			</h3>
		</div>
		<!-- 个人空间页首结束 -->
EOT;
	}
}
?>