header.temp.php 6.7 KB

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