header.temp.php
6.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
//公告
$spacegg='';
if($addur['spacegg'])
{
$spacegg='<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#96C8F1">
<tr>
<td background="template/default/images/bg_title_sider.gif"><b>公告</b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
'.$addur['spacegg'].'
</td>
</tr>
</table></td>
</tr>
</table>
<br>';
}
//導航菜單
$dhmenu='';
$modsql=$empire->query("select mid,qmname from {$dbtbpre}enewsmod where usemod=0 and showmod=0 and qenter<>'' order by myorder,mid");
while($modr=$empire->fetch($modsql))
{
$dhmenu.="<td width=70 height=24 onmouseover='ChangeMenuBg(this,mod".$modr[mid].")' onmouseout='ChangeMenuBg2(this,mod".$modr[mid].")' align='center' onclick=\"self.location.href='list.php?userid=$userid&mid=$modr[mid]';\"><font color='#FFFFFF' id='mod".$modr[mid]."'><strong>".$modr[qmname]."</strong></font></td>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$spacename?> - Powered by EmpireCMS</title>
<meta content="<?=$spacename?>" name="keywords" />
<meta content="<?=$spacename?>" name="description" />
<link href="template/default/images/style.css" rel="stylesheet" type="text/css" />
<script>
function ChangeMenuBg(doobj,dofont){
doobj.style.cursor="hand";
doobj.style.background='url(template/default/images/nav_a_bg3.gif)';
dofont.style.color='#000000';
}
function ChangeMenuBg2(doobj,dofont){
doobj.style.background='';
dofont.style.color='#ffffff';
}
</script>
</head>
<body topmargin="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="F7F7F7">
<tr>
<td height="20"> <font color="#666666">
<?=$spacename?>
</font></td>
<td align="right"><a href="<?=$public_r[newsurl]?>">網站首頁</a> | <a onClick="window.external.addFavorite('<?=$spaceurl?>','<?=$spacename?>')" href="#ecms">加入收藏</a>
| <a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?=$spaceurl?>')" href="#ecms">設為首頁</a></td>
</tr>
</table>
<table width="778" height="108" border="0" align="center" cellpadding="0" cellspacing="8" background="template/default/images/head_bg.gif">
<tr>
<td valign="middle"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"></td>
<td><font style="font-family:細明體;font-size:20px;color:FFFFFF;font-weight:normal;font-style:normal;"><strong><?=$spacename?></strong></font><br><span style='line-height=15pt'><a href="<?=$spaceurl?>"><font color="ffffff"><?=$spaceurl?></font></a></span></td>
</tr>
</table></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="32" background="template/default/images/nav_bg2.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"> </td>
<td width="70" height="24" onMouseOver="ChangeMenuBg(this,mhome)" onMouseOut="ChangeMenuBg2(this,mhome)" align="center" onClick="self.location.href='index.php?userid=<?=$userid?>';"><font color="#FFFFFF" id="mhome"><strong>空間首頁</strong></font></td>
<?=$dhmenu?>
<td width="70" height="24" onMouseOver="ChangeMenuBg(this,muserinfo)" onMouseOut="ChangeMenuBg2(this,muserinfo)" align="center" onClick="self.location.href='UserInfo.php?userid=<?=$userid?>';"><font color="#FFFFFF" id="muserinfo"><strong>公司介紹</strong></font></td>
<td width="70" height="24" onMouseOver="ChangeMenuBg(this,mfeedback)" onMouseOut="ChangeMenuBg2(this,mfeedback)" align="center" onClick="self.location.href='feedback.php?userid=<?=$userid?>';"><font color="#FFFFFF" id="mfeedback"><strong>反饋信息</strong></font></td>
<td width="70" height="24" onMouseOver="ChangeMenuBg(this,mgbook)" onMouseOut="ChangeMenuBg2(this,mgbook)" align="center" onClick="self.location.href='gbook.php?userid=<?=$userid?>';"><font color="#FFFFFF" id="mgbook"><strong>留言板</strong></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="23" bgcolor="B3DBF5"> 您現在的位置:
<?=$url?>
</td>
</tr>
</table>
<table width="778" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="2"><table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="220" valign="top"> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#96C8F1">
<tr>
<td background="template/default/images/bg_title_sider.gif"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="6" cellpadding="0">
<tr>
<td height="25"><div align="center"><img src="<?=$userpic?>" width="158" height="158" style="border:1px solid #cccccc;" /></div></td>
</tr>
<tr>
<td height="25"><div align="center"><a href="UserInfo.php?userid=<?=$userid?>">
<?=$username?>
</a></div></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#96C8F1">
<tr>
<td background="template/default/images/bg_title_sider.gif"><strong>用戶菜單</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="6" cellpadding="3">
<tr>
<td height="25"><a href="../member/friend/add/?fname=<?=$username?>" target="_blank">加為好友</a></td>
<td><a href="../member/msg/AddMsg/?username=<?=$username?>" target="_blank">發短消息</a></td>
</tr>
<tr>
<td height="25"><a href="UserInfo.php?userid=<?=$userid?>">用戶資料</a></td>
<td><a href="../member/cp">管理面板</a></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#96C8F1">
<tr>
<td background="template/default/images/bg_title_sider.gif">訪問統計:<?=$addur[viewstats]?></td>
</tr>
</table>
</td>
<td valign="top"><table width="98%" height="360" border="0" align="right" cellpadding="0" cellspacing="0" bgcolor="#F4F9FD">
<tr>
<td valign="top">