<?php

/*
	[SupeSite/X-Space] (C)2001-2006 Comsenz Inc.
	個人管理頁面頁頭

	$RCSfile: spacecp_header_template.php,v $
	$Revision: 1.14 $
	$Date: 2006/11/01 01:52:11 $
*/

if(!defined('IN_SUPESITE')) {
	exit('Access Denied');
}
?>
<!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=<?=$_SCONFIG['charset']?>" />
<title>個人空間管理</title>
<link href="<?=IMG_DIR?>/style.css" rel="stylesheet" type="text/css" />
<link href="<?=S_URL?>/images/edit/edit.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var siteUrl = "<?=S_URL?>";
</script>
<script language="javascript" type="text/javascript" src="<?=S_URL?>/images/edit/edit.js"></script>
<script language="javascript" type="text/javascript" src="<?=S_URL?>/include/js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="<?=S_URL?>/include/js/common.js"></script>
<script language="javascript" type="text/javascript" src="<?=IMG_DIR?>/common.js"></script>
</head>

<body onload="addMouseEvent();">
<div class="wrap">

<table id="header" summary="header" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td>
			<div id="headertitle">
				<p>我的模版</p>
				<h1>返回到 <a href="<?=S_URL?>/?<?=$_SGLOBAL['supe_uid']?>"><?=$space['spacename']?></a></h1>
			</div>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>
			<table id="topmenu" summary="topmenu" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<?=str_replace('action=usertemplates"', 'action=usertemplates" class="current"', $menustr);?>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="headerbdr">&nbsp;</td>
	</tr>
</table>

<table summary="title and sidectrl" cellpadding="0" cellspacing="0" border="0" width="95%" align="center">
<tr>
	<td width="180" valign="top" height="40"><div id="sidectrl" onclick="showContent('sidebar','sidectrl','打開側邊欄','關閉側邊欄');"><?=$sidetitle?></div></td>
	<td align="right"><h2><?=$guide?></h2></td>
</tr>
</table>

<table summary="content" cellpadding="0" cellspacing="0" border="0" width="95%" align="center">
<tr>
	<td id="sidebar" style="display:<?=$sidedisplay?>;">
		<div>
			<ul>
				<li><a href="spacecp.php?action=usertemplates&op=theme">系統空間風格主題</a></li>
				<li><a href="spacecp.php?action=usertemplates&op=usercss">大家共享的CSS風格</a></li>
				<li><a href="spacecp.php?action=usertemplates&op=dragmenu">可視化模板DIY</a></li>
			</ul>
		</div>
		<div>
			<ul>
				<li><a href="spacecp.php?action=usertemplates&op=pro">我的CSS風格編輯</a></li>
				
				<li><a href="spacecp.php?action=usertemplates&op=myblock">我的空白模塊</a></li>
			</ul>
		</div>
<?php
if($_SGLOBAL['db']->fetch_array($_SGLOBAL['db']->query('SHOW TABLES LIKE \''.$stablepre.'templateitems\''))) {
?>
		<div>
			<ul>
				<li><a href="<?=CPURL?>?action=usertemplates&op=old">舊模板轉換</a></li>
			</ul>
		</div>
<?php
}
?>
		<div class="light">
			<ul>
				<li><a href="<?=S_URL?>/?<?=$_SGLOBAL['supe_uid']?>" target="_blank">我的空間首頁</a></li>
				<li><a href="<?=$newsiteurl?>" target="_blank">站點首頁</a></li>
				<li><a href="<?=B_URL?>" target="_blank">進入論壇</a></li>
				<li><a href="<?=S_URL?>/batch.login.php?action=logout">退出系統</a></li>
			</ul>
		</div>
	</td>
	<td id="mainarea">
