回复 11# yunsiabert
这是模板 文件的 主体部分 应该把 {eval request('边栏模块_Google搜索');} 放在哪儿呢?- {subtemplate header}
- <div id="foruminfo">
- <div id="userinfo">
- <div id="nav">
- <!--{if $gid || !$discuz_uid}--><a href="$siteurl" target="_blank">$sitename</a> » <a href="$indexname">$bbname</a> » {lang home}</a><!--{/if}-->
- </div>
- <p>
- <!--{if $discuz_uid}-->
- <!--{if $allowinvisible}-->{lang online_status}:
- <span id="loginstatus"><!--{if !empty($invisible)}--><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_invisible_mode}</a><!--{else}--><a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_normal_mode}</a><!--{/if}--></span>
- <!--{/if}-->
- {lang your_lastvisit}: <em>$lastvisittime</em>
- <!--{if !empty($google) && ($google & 1)}--><!--{/if}-->
- <a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a>
- <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)">{lang mark_read}</a>
- <!--{elseif !empty($_DCOOKIE['loginuser'])}-->
- <em>$_DCOOKIE['loginuser']</em>, <a href="logging.php?action=login">{lang index_activation}</a>
- <!--{else}-->
- <form id="loginform" method="post" name="login" action="logging.php?action=login&loginsubmit=true">
- <input type="hidden" name="formhash" value="{FORMHASH}" />
- <input type="hidden" name="cookietime" value="2592000" />
- <input type="hidden" name="loginfield" value="username" />
- <input type="text" id="username" name="username" size="15" maxlength="40" tabindex="1" value="{lang username}" onclick="this.value = ''" />
- <input type="password" id="password" name="password" size="10" tabindex="2" onkeypress="if((event.keyCode ? event.keyCode : event.charCode) == 13) $('loginform').submit()" />
- <button name="userlogin" type="submit" value="true">{lang login}</button>
- </form>
- <!--{/if}-->
- </p>
- </div>
- <div id="forumstats">
- <p>
- {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_maxday}: <em>$postdata[1]</em> <a href="digest.php">{lang digest}</a>
- <!--{if $rssstatus}--><a href="rss.php?auth=$rssauth" title="{lang rss_subscribe_all}" target="_blank"><img src="images/common/xml.gif" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
- </p>
- <p>{lang index_threads}: <em>$threads</em>, {lang index_posts}: <em>$posts</em>, {lang index_members}: <em>$totalmembers</em>, {lang welcome_newmember} <cite><a href="space.php?username=$memberenc">$lastmember</a></cite></p>
- </div>
- <!--{if !empty($google) && ($google & 1)}-->
- <div id="headsearch" style="clear: both">
- <script type="text/javascript" src="forumdata/cache/google_var.js"></script>
- <script type="text/javascript" src="include/javascript/google.js"></script>
- </div>
- <!--{/if}-->
- </div>
- <div class="foruminfo s_clear">
- <!--{if empty($gid) && $announcements}-->
- <div id="ann" onmouseover="annstop = 1" onmouseout="annstop = 0">
- <dl>
- <dt>{lang announcements}:</dt>
- <dd>
- <div id="annbody"><ul id="annbodylis">$announcements</ul></div>
- </dd>
- </dl>
- </div>
- <script type="text/javascript">
- var anndelay = 3000;
- var annst = 0;
- var annstop = 0;
- var annrowcount = 0;
- var anncount = 0;
- var annlis = $('annbody').getElementsByTagName("LI");
- var annrows = new Array();
- var annstatus;
- function announcementScroll() {
- if(annstop) {
- annst = setTimeout('announcementScroll()', anndelay);
- return;
- }
- if(!annst) {
- var lasttop = -1;
- for(i = 0;i < annlis.length;i++) {
- if(lasttop != annlis[i].offsetTop) {
- if(lasttop == -1) {
- lasttop = 0;
- }
- annrows[annrowcount] = annlis[i].offsetTop - lasttop;
- annrowcount++;
- }
- lasttop = annlis[i].offsetTop;
- }
- if(annrows.length == 1) {
- $('ann').onmouseover = $('ann').onmouseout = null;
- } else {
- annrows[annrowcount] = annrows[1];
- $('annbodylis').innerHTML += $('annbodylis').innerHTML;
- annst = setTimeout('announcementScroll()', anndelay);
- }
- annrowcount = 1;
- return;
- }
- if(annrowcount >= annrows.length) {
- $('annbody').scrollTop = 0;
- annrowcount = 1;
- annst = setTimeout('announcementScroll()', anndelay);
- } else {
- anncount = 0;
- announcementScrollnext(annrows[annrowcount]);
- }
- }
- function announcementScrollnext(time) {
- $('annbody').scrollTop++;
- anncount++;
- if(anncount != time) {
- annst = setTimeout('announcementScrollnext(' + time + ')', 10);
- } else {
- annrowcount++;
- annst = setTimeout('announcementScroll()', anndelay);
- }
- }
- </script>
- <!--{/if}-->
- </div>
- <!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])}--><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1">$advlist[text]</table></div><!--{else}--><div id="ad_text"></div><!--{/if}-->
- {template xshow}
- <div id="wrap"{if $infosidestatus['allow'] < 2} class="wrap s_clear"{else} class="wrap with_side s_clear"{/if}>
- <!--{if $infosidestatus[allow] == 2}-->
- <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['{lang sidebar_collapsed_yes}', '{lang sidebar_collapsed_no}']);" class="$collapseimg[sidebar]"><!--{if $collapseimg[sidebar] == 'collapsed_yes'}-->{lang sidebar_collapsed_yes}<!--{else}-->{lang sidebar_collapsed_no}<!--{/if}--></a>
- <!--{elseif $infosidestatus[allow] == 1}-->
- <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '{lang sidebar_collapsed_no}']);" class="collapsed_yes">{lang sidebar_collapsed_yes}</a>
- <!--{/if}-->
- <div class="main"><div class="content">
- <!--{if !empty($insenz['vfstatus']) && $insenz['vfpos'] == 'first'}--><script type="text/javascript" src="campaign.php?action=list"></script><!--{/if}-->
- <!--{eval $rkey=array_rand($catlist);}-->
- <!--{loop $catlist $key $cat}-->
- <!--{if $cat['forumscount']}-->
- <div class="mainbox list">
- <span class="headactions">
- <!--{if $cat['moderators']}-->{lang forum_category_modedby}: $cat[moderators]<!--{/if}-->
- <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
- </span>
- <h3><a href="$indexname?gid=$cat[fid]">$cat[name]</a></h3>
- <table id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
- <!--{if !$cat['forumcolumns']}-->
- <!--{loop $cat[forums] $forumid}-->
- <!--{eval $forum=$forumlist[$forumid];}-->
- <tbody id="forum$forum[fid]">
- <tr>
- <th$forum[folder]>
- $forum[icon]
- <div class="left">
- <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
- <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
- <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
- <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p>{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
- </div>
- </th>
- <td class="forumnums">
- <!--{if $forum['redirect']}-->N/A<!--{else}--><em>$forum[threads]</em> / $forum[posts]<!--{/if}-->
- </td>
- <td class="forumlast">
- <!--{if $forum['permission'] == 1}-->
- {lang private_forum}
- <!--{else}-->
- <!--{if $forum['redirect']}-->
- <a href="forumdisplay.php?fid=$forum[fid]">{lang url_link}</a>
- <!--{elseif is_array($forum['lastpost'])}-->
- <p><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
- <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </td>
- </tr>
- </tbody>
- <!--{/loop}-->
- <!--{else}-->
- <tr class="narrowlist">
- <!--{loop $cat['forums'] $forumid}-->
- <!--{eval $forum=$forumlist[$forumid];}-->
- <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
- </tr></tbody>
- <!--{if $forum['orderid'] < $cat['forumscount']}-->
- <tbody><tr>
- <!--{/if}-->
- <!--{/if}-->
- <th width="$cat[forumcolwidth]"{$forum[folder]}>
- <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
- <!--{if !$forum[redirect]}-->
- <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
- <!--{if $forum['permission'] == 1}-->
- <p>{lang private_forum}
- <!--{else}-->
- <p>{lang forum_lastpost}:
- <!--{if is_array($forum['lastpost'])}-->
- <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if} ">$forum[lastpost][dateline]</a>
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- </p>
- <!--{/if}-->
- <!--{else}-->
- <p>{lang url_link}</p>
- <!--{/if}-->
- </th>
- <!--{/loop}-->
- $cat['endrows']
- <!--{/if}-->
- </table>
- </div>
- <!--{if !empty($insenz['vfstatus']) && $insenz['vfpos'] == 'rand' && $key == $rkey}--><script type="text/javascript" src="campaign.php?action=list"></script><!--{/if}-->
- <!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat'][0] ? $advlist['intercat'][0] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))}--><div class="ad_column" id="ad_intercat_$key"><!--{echo $advitems[$advlist['intercat'][$key][array_rand($advlist['intercat'][$key])]]}--></div><!--{else}--><div id="ad_intercat_$key"></div><!--{/if}-->
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if !empty($insenz['vfstatus']) && $insenz['vfpos'] == 'last'}--><script type="text/javascript" src="campaign.php?action=list"></script><!--{/if}-->
- <!--{if $_DCACHE['forumlinks'][0] || $_DCACHE['forumlinks'][1] || $_DCACHE['forumlinks'][2]}-->
- <div class="mainbox list">
- <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks].gif" alt="" onclick="toggle_collapse('forumlinks');" /></span>
- <h3>{lang board_links}</h3>
- <div id="forumlinks" style="$collapse[forumlinks]">
- <!--{if $_DCACHE['forumlinks'][0]}-->
- <div class="forumlinks">
- <ul class="s_clear">$_DCACHE['forumlinks'][0]</ul>
- </div>
- <!--{/if}-->
- <!--{if $_DCACHE['forumlinks'][1]}-->
- <div class="forumimglink">
- $_DCACHE['forumlinks'][1]
- </div>
- <!--{/if}-->
- <!--{if $_DCACHE['forumlinks'][2]}-->
- <div class="forumtxtlink">
- <ul class="s_clear">
- $_DCACHE['forumlinks'][2]
- </ul>
- </div>
- <!--{/if}-->
- </div>
- </div>
- <!--{/if}-->
- <!--{if empty($gid) && $maxbdays &&$_DCACHE['birthdays_index']['todaysbdays']}-->
- <div class="mainbox list" id="online">
- <h3 id="bdayslist">
- <a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a>: $_DCACHE[birthdays_index][todaysbdays]
- </h3>
- </div>
- <!--{/if}-->
- <!--{if empty($gid) && $whosonlinestatus}-->
- <div class="mainbox list" id="online">
- <!--{if $whosonlinestatus}-->
- <!--{if $detailstatus}-->
- <span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span>
- <h3>
- <strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- - <em>$onlinenum</em> {lang onlines}
- - <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}),
- <em>$guestcount</em> {lang index_guests}
- - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
- </h3>
- <!--{else}-->
- <span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
- <h3>
- <strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- - {lang total} <em>$onlinenum</em> {lang onlines}
- - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
- </h3>
- <!--{/if}-->
- <!--{else}-->
- <h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4>
- <!--{/if}-->
- <!--{if $whosonlinestatus && $detailstatus}-->
- <dl id="onlinelist">
- <dt>$_DCACHE[onlinelist][legend]</dt>
- <!--{if $detailstatus}-->
- <dd>
- <ul class="s_clear">
- <!--{if $whosonline}-->
- <!--{loop $whosonline $key $online}-->
- <li title="{lang time}: $online[lastactivity]{LF}{lang action}: $online[action] <!--{if $online['fid']}-->{LF}{lang forum}: $online[fid]<!--{/if}-->">
- <img src="images/common/$online[icon]" alt="" />
- <!--{if $online['uid']}-->
- <a href="space.php?uid=$online[uid]">$online[username]</a>
- <!--{else}-->
- $online[username]
- <!--{/if}-->
- </li>
- <!--{/loop}-->
- <!--{else}-->
- <li style="width: auto">{lang online_only_guests}</li>
- <!--{/if}-->
- </ul>
- </dd>
- <!--{/if}-->
- </dl>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{if empty($gid) && $announcements}-->
- <script type="text/javascript">announcementScroll();</script>
- <!--{/if}-->
- </div></div>
- <!--{if $infosidestatus[allow] == 2}-->
- <div id="sidebar" class="side" style="$collapse[sidebar]">
- <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}-->
- <div id="qihoosearch" class="sidebox">
- <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}-->
- <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
- <input type="hidden" name="searchsubmit" value="yes" />
- <input type="text" class="txt" name="srchtxt" value="$qihoo_searchboxtxt" size="20" />
- <select name="stype">
- <option value="" selected="selected">{lang qihoo_search_filltext}</option>
- <option value="1">{lang qihoo_search_title}</option>
- <option value="2">{lang qihoo_search_author}</option>
- </select>
- <button name="searchsubmit" type="submit" value="true">{lang search}</button>
- </form>
- <!--{if !empty($qihoo['links']['keywords'])}-->
- <strong>{lang qihoo_hot_searches}</strong>
- <!--{loop $qihoo['links']['keywords'] $link}-->
- $link
- <!--{/loop}-->
- <!--{/if}-->
- <!--{if $customtopics}-->
- <strong>{lang qihoo_custom_topics}</strong> $customtopics [<a href="javascript:;" onclick="floatwin('open_customtopics', 'misc.php?action=customtopics', 600, 410)">{lang edit}</a>]<br />
- <!--{/if}-->
- <!--{if !empty($qihoo['links']['topics'])}-->
- <strong>{lang qihoo_topics}</strong>
- <!--{loop $qihoo['links']['topics'] $url}-->
- {$url}
- <!--{/loop}-->
- <!--{/if}-->
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{if $infosidestatus[2]}-->
- <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}-->
- <hr class="shadowline"/>
- <!--{/if}-->
- <div id="infoside">
- <!--{if empty($gid)}-->
- {eval request($infosidestatus, 0, 2);}
- <!--{else}-->
- {eval request($infosidestatus, 1, 2);}
- <!--{/if}-->
- </div>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- {subtemplate footer}
复制代码 |