有问题可以和我联系
qq:5210001
需要修改的内容有
header.htm
这是我的header文件:
- <!--<?php
- $forumstr='';
- $formustr_n=0;
- foreach($cache_forums as $h_forum){
- if(intval($h_forum['pid'])==0){
- if(++$formustr_n>5){break;}
- $forumstr.="<li class=\"header_121_a\" id=\"hmenu_fid{$h_forum['id']}\"><a href=\"index.php?fid={$h_forum['id']}\">{$h_forum['forumname']}</a></li>";
- }
- }
- $tmp_str='';
- foreach($cache_template as $tmp){
- $tmp_str.="<li><a href=\"index.php?styleid={$tmp['id']}\" style=\"color:{$tmp['color1']}\"><span style=\"background:{$tmp['color1']}; display:block; margin-top:11px; width:10px; height:10px; float:left; overflow:hidden;\"></span>{$tmp['name']}</a></li>";
- }
- $plugins_str='';
- foreach($cache_plugins as $plg){
- $plugins_str.="<li><a href=\"{$plg[link]}\">{$plg['name']}</a></li>";
- $pluginscode.=$plg['code'];
- }
- if(!empty($cache_plugins)){
- $plugins_menu="<li class=\"header_121_a\" id=\"hmenu_plugins\" onmouseover=\"selectMenu(this.id)\"><a href=\"#\">插件</a></li>";
- }
- if($cache_settings['openportal']=='1'){
- $sys_menu="<a href=\"{$_SYS['portalurl']}\">门户</a> | <a href=\"{$_SYS['indexurl']}\">论坛</a>";
- }else{
- $sys_menu="<a href=\"{$_SYS['indexurl']}\">论坛首页</a>";
- }
- 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">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>{$headtitle}</title>
- {$headmeta}
- {$cache_settings['headcontent']}
- <link href="{$_SYS['TP']}/css.php?t=templatecss&s={$_SYS['styleid']}&v={$_SYS['VERSION']}&f=global" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div class="header_top">
- <div class="div_out_onbg header_center">
- <div class="header_top_left">{$sys_menu}</div>
- <div class="header_top_right">
- <!--
- EOT;
- if(isLogin()){
- print <<<EOT
- -->
- <a href="member.php">欢迎您: {$lg['displayname']}</a> | {$msg_link} | <a href="member.php">个人中心</a> | <a href="logout.php">退出</a>
- <!--
- EOT;
- if($lg['groupid']==GROUP_ADMIN){
- print <<<EOT
- -->
- | <a href="admin" target="_blank">后台管理</a>
- <!--
- EOT;
- }
- }else{
- print <<<EOT
- -->
- <a href="login.php">会员登录</a> | <a href="{$cache_settings['signupfilename']}">会员注册</a>
- <!--
- EOT;
- }
- print <<<EOT
- -->
- </div>
- </div>
- </div>
- <div class="header">
- <table class="header_table"><tr><td class="header_table_left"><a href="{$_SYS['indexurl']}"><img src="logo/logo.gif" border="0" /></a></td><td class="header_table_right"><div class="logoright">{$adcode[1]}</div></td></tr></table>
- </div>
- <div class="div_out_onbg">
- <table class="header_1_table"><tr><td class="header_11"></td><td class="header_121">
- <ul><li class="header_121_a"><a href="http://shen.me/">论坛首页</a></li>{$forumstr}{$plugins_menu}</ul>
- </td>
- <td class="header_13"></td></tr></table>
- <table class="header_2_table"><tr><td class="header_21"></td>
- <td class="header_22" id="secmenu"><table border="0" cellpadding="0" cellspacing="0"><tr><form action="http://shen.me/search.php" id="cse-search-box"><td> 站内搜索:</td><td width="250pt">
- <input type="hidden" name="cx" value="partner-pub-9372656533990607:gtq2ktyi79p" />
- <input type="hidden" name="cof" value="FORID:10" />
- <input type="hidden" name="ie" value="UTF-8" />
- <input type="text" name="q" style="border: 1px solid #D4D0C8; width: 250px;"/></td><td>
- <input type="submit" name="sa" value="找什么" style="BORDER-RIGHT: #7b9ebd 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde); BORDER-LEFT: #7b9ebd 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7b9ebd 1px solid
- "/></td></form><td>
- <span id="sec_hmenu_bbs" style="display:none;"><ul><li><a href="search.php?action=new">今日新帖</a></li><li><a href="search.php?action=good">精华帖子</a></li><li><a href="search.php">论坛搜索</a></li><li><a href="userlist.php">会员列表</a></li></ul></span>
- <span id="sec_hmenu_member" style="display:none;"><ul><li><a href="member.php?action=pic">我的头像</a></li><li><a href="member.php?action=details">个人资料</a></li><li><a href="member.php?action=password">密码设置</a></li><li><a href="member.php?action=msg">站内短信</a></li><li><a href="member.php?action=group">我的用户组/积分</a></li><li><a href="member.php?action=mytopic">我发表的帖子</a></li><li><a href="member.php?action=replytopic">我参与的帖子</a></li></ul></span>
- <span id="sec_hmenu_template" style="display:none;"><ul>{$tmp_str}</ul></span>
- <span id="sec_hmenu_plugins" style="display:none;"><ul>{$plugins_str}</ul></span></td></tr></table></td><td class="header_23"></td></tr></table>
- </div>
- {$pluginscode}
- <!--body container BEGIN--><table class="container_0"><tr><td class="topleft"></td><td class="topcenter"></td><td class="topright"></td></tr>
- <tr><td class="middleleft"></td><td class="middlecenter">
- <!--
- EOT;
- ?>
这是search.htm文件
- <!--<?php
- $forum=$cache_forums[$fid];
- print <<<EOT
- -->
- <div class="position"><span>当前位置:</span> {$_SYS['positionindex']} » <a href="search.php">搜索</a></div>
- <!--//检索-->
- <div id="cse-search-results"></div>
- <script type="text/javascript">
- var googleSearchIframeName = "cse-search-results";
- var googleSearchFormName = "cse-search-box";
- var googleSearchFrameWidth = 900;
- var googleSearchDomain = "www.google.cn";
- var googleSearchPath = "/cse";
- </script>
- <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
- <!--//检索-->
- <div class="div_clear" style="height:6px;"></div>
- <div class="pagediv">
- <table class="pagetable"><tr><td class="left"></td><td class="right">{$pager->getPageStr()}</td></tr></table>
- </div>
- </div>
- <script type="text/javascript" src="getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|choosedate|popwin|ajax|search"></script>
- <script type="text/javascript">
- var action="{$action}";
- var fid="{$fid}";
- var area="{$area}";
- var topictypestr="{$topictypestr}";
- var topicspc="{$topicspc}";
- window.onload = search_InitPage;
- </script>
- <!--
- EOT;
- ?>
- -->