t9026 8 anos atrás
pai
commit
5ec4521869

+ 5 - 0
data/template/3_3_forum_ajax_secondgroup.tpl.php

xqd
@@ -0,0 +1,5 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('ajax_secondgroup');?><?php include template('common/header'); if(!empty($groupselect['second'])) { ?>
+<select id="fup" name="fup" class="ps">
+<?php echo $groupselect['second'];?>
+</select>
+<?php } include template('common/footer'); ?>

+ 200 - 0
data/template/3_diy_group_group_my.tpl.php

xqd
@@ -0,0 +1,200 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('group_my');?><?php include template('common/header'); ?><div id="pt" class="bm cl">
+<div class="z">
+<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a><em>&rsaquo;</em><a href="group.php?mod=index"><?php echo $_G['setting']['navs']['3']['navname'];?></a><em>&rsaquo;</em><a href="group.php?mod=my"><?php echo $_G['username'];?>的<?php echo $_G['setting']['navs']['3']['navname'];?></a>
+</div>
+</div>
+
+<?php if(!empty($_G['setting']['pluginhooks']['my_header'])) echo $_G['setting']['pluginhooks']['my_header'];?>
+
+<style id="diy_style" type="text/css"></style>
+<div class="wp">
+<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
+</div>
+
+<div id="ct" class="ct2 wp cl week_ct2">
+<div class="mn wk_f_mn padding15 backfff">
+<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
+<div class="tb cl" style="margin-top: 0;">
+<ul>
+<li <?php echo $actives['groupthread'];?>><a href="group.php?mod=my&amp;view=groupthread"><?php echo $_G['setting']['navs']['3']['navname'];?>话题</a></li>
+<li <?php echo $actives['mythread'];?>><a href="group.php?mod=my&amp;view=mythread">我的话题</a></li>
+<li <?php echo $actives['join'];?>><a href="group.php?mod=my&amp;view=join">我参与的</a></li>
+<li <?php echo $actives['manager'];?>><a href="group.php?mod=my&amp;view=manager">我管理的</a></li>
+<li class="y"><a href="group.php?mod=index" class="groupbtn xi2"><span>所有<?php echo $_G['setting']['navs']['3']['navname'];?>&nbsp;&rsaquo;</span></a></li>
+
+<li class="y">
+                	<a onclick="showWindow('attentiongroup', 'group.php?mod=attentiongroup', 'get', 0);" class="groupbtn xi2"><span>关注<?php echo $_G['setting']['navs']['3']['navname'];?></span></a>
+                </li>
+<script language="javascript">
+function succeedhandle_attentiongroup(locationhref) {
+hideWindow('attentiongroup');
+location.href = locationhref;
+} 
+</script>
+
+</ul>
+</div>
+<?php if($view == 'groupthread' || $view == 'mythread') { ?>
+<ul class="ttp cl">
+<li id="ttp_all"<?php if(empty($typeid)) { ?> class="xw1 a"<?php } ?>><a href="group.php?mod=my&amp;view=<?php echo $view;?>">全部</a></li><?php if(is_array($usergroups['grouptype'])) foreach($usergroups['grouptype'] as $type) { ?><li<?php if($typeid == $type['fid']) { ?> class="xw1 a"<?php } ?>><a href="group.php?mod=my&amp;view=<?php echo $view;?><?php if($typeid != $type['fid']) { ?>&amp;typeid=<?php echo $type['fid'];?><?php } ?>"><?php echo $type['name'];?></a></li>
+<?php } ?>
+</ul>
+
+<?php if($attentionthread) { if(is_array($attentionthread)) foreach($attentionthread as $groupid => $threads) { ?><div class="bm tl">
+<div class="th">
+<table cellspacing="0" cellpadding="0" class="th">
+<tr>
+<td colspan="2"><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" target="_blank" class="xw1"><?php echo $usergroups['groups'][$groupid];?></a></td>
+<td class="num">回复/查看</td>
+<td class="by">最后发表</td>
+</tr>
+</table>
+</div>
+<div class="bm_c">
+<table cellspacing="0" cellpadding="0"><?php if(is_array($threads)) foreach($threads as $tid => $thread) { ?><tr>
+<td class="icn">
+<a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" title="!open_new_window!" target="_blank">
+<?php if($thread['folder'] == 'lock') { ?>
+<img src="<?php echo IMGDIR;?>/folder_lock.gif" /></a>
+<?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
+<img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" /></a>
+<?php } else { ?>
+<img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" /></a>
+<?php } ?>
+</td>
+<td><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" target="_blank"><?php echo $thread['subject'];?></a></td>
+<td class="num">
+<a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" class="xi2"><?php echo $thread['replies'];?></a>
+<em><?php echo $thread['views'];?></em>
+</td>
+<td class="by">
+<cite><?php if($thread['lastposter']) { ?><a href="home.php?mod=space&amp;username=<?php echo $thread['lastposter'];?>"><?php echo $thread['lastposter'];?></a><?php } else { ?>匿名<?php } ?></cite>
+<em><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>&amp;page=<?php echo max(1, $thread['pages']);; ?>"><?php echo $thread['lastpost'];?></a></em>
+</td>
+</tr>
+<?php } ?>
+</table>
+<div class="ptm"><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" class="xi2">更多...</a></div>
+</div>
+</div>
+<?php } } ?>
+
+<div class="bm tl">
+<div class="th">
+<table cellpadding="0" cellspacing="0" class="th">
+<tr>
+<td colspan="2">
+<?php if($view == 'groupthread') { ?>新话题(最近30天)<?php } else { ?>我在<?php echo $_G['setting']['navs']['3']['navname'];?>中发表的话题<?php } ?>
+</td>
+<td class="by"><?php echo $_G['setting']['navs']['3']['navname'];?></td>
+<td class="num">回复/查看</td>
+<td class="by">最后发表</td>
+</tr>
+</table>
+</div>
+<div class="bm_c">
+<table cellspacing="0" cellpadding="0">
+<?php if($groupthreadlist) { if(is_array($groupthreadlist)) foreach($groupthreadlist as $tid => $thread) { ?><tr>
+<td class="icn">
+<a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" title="!open_new_window!" target="_blank">
+<?php if($thread['folder'] == 'lock') { ?>
+<img src="<?php echo IMGDIR;?>/folder_lock.gif" /></a>
+<?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
+<img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" /></a>
+<?php } else { ?>
+<img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" /></a>
+<?php } ?>
+</td>
+<td><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" target="_blank"><?php echo $thread['subject'];?></a></td>
+<td class="by"><a href="forum.php?mod=group&amp;fid=<?php echo $thread['fid'];?>" target="_blank" class="xg1"><?php echo $thread['groupname'];?></a></td>
+<td class="num">
+<a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>" class="xi2"><?php echo $thread['replies'];?></a>
+<em><?php echo $thread['views'];?></em>
+</td>
+<td class="by">
+<cite><?php if($thread['lastposter']) { ?><a href="home.php?mod=space&amp;username=<?php echo $thread['lastposter'];?>"><?php echo $thread['lastposter'];?></a><?php } else { ?>匿名<?php } ?></cite>
+<em><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>&amp;page=<?php echo max(1, $thread['pages']);; ?>"><?php echo $thread['lastpost'];?></a></em>
+</td>
+</tr>
+<?php } } else { ?>
+<tr><td colspan="4"><div class="emp">还没有相关的帖子。</div></td></tr>
+<?php } ?>
+</table>
+</div>
+</div>
+
+<?php if($multipage) { ?><div class="pgs cl"><?php echo $multipage;?></div><?php } } elseif($view == 'manager' || $view == 'join') { if($grouplist) { ?>
+<div class="bm bml bw0">
+<div class="bm_h cl">
+<h2><?php if($view == 'manager') { ?>我管理的<?php echo $_G['setting']['navs']['3']['navname'];?> <?php } elseif($view == 'join') { ?>我加入的<?php echo $_G['setting']['navs']['3']['navname'];?> <?php } ?></h2>
+</div>
+<div class="bm_c">
+<ul class="ml mls cl"><?php if(is_array($grouplist)) foreach($grouplist as $groupid => $group) { ?><li>
+<a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" class="avt"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
+<p><?php if($group['flevel'] == '-1') { ?>(待审核)<?php } ?><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></p>
+</li>
+<?php } ?>
+</ul>
+</div>
+</div>
+<?php if($multipage) { ?><div class="pgs"><?php echo $multipage;?></div><?php } } else { ?>
+<div class="emp"><?php if($view == 'manager') { ?>您还没创建<?php echo $_G['setting']['navs']['3']['navname'];?>,<a href="forum.php?mod=group&amp;action=create">现在创建</a> <?php } elseif($view == 'join') { ?>您还没有加入任何<?php echo $_G['setting']['navs']['3']['navname'];?>,<a href="group.php?mod=index">找喜欢的<?php echo $_G['setting']['navs']['3']['navname'];?></a>。 <?php } ?></div>
+<?php } } ?>
+<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
+<?php if(!empty($_G['setting']['pluginhooks']['my_bottom'])) echo $_G['setting']['pluginhooks']['my_bottom'];?>
+
+</div>
+<div class="sd wk_sq_sd padding15 backfff">
+<div class="drag">
+<!--[diy=diysidebtntop]--><div id="diysidebtntop" class="area"></div><!--[/diy]-->
+</div>
+<?php if(helper_access::check_module('group')) { ?>
+<div class="hm pbm">
+<a href="forum.php?mod=group&amp;action=create" id="create_group_btn"><img src="<?php echo IMGDIR;?>/create_group.png" alt="创建<?php echo $_G['setting']['navs']['3']['navname'];?>" /></a>
+</div>
+<?php } ?>
+<div class="drag">
+<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
+</div>
+<?php if(!empty($_G['setting']['pluginhooks']['my_side_top'])) echo $_G['setting']['pluginhooks']['my_side_top'];?>
+<?php if($randgroup) { ?>
+<div class="bm">
+<div class="bm_h cl">
+<h2>热门<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
+</div>
+<div class="bm_c">
+<ul class="ml mls cl"><?php if(is_array($randgroup)) foreach($randgroup as $key => $group) { ?><li>
+<a href="forum.php?mod=group&amp;fid=<?php echo $group['fid'];?>" title="<?php echo $group['name'];?>" class="avt" target="_blank"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
+<p><a href="forum.php?mod=group&amp;fid=<?php echo $group['fid'];?>" title="<?php echo $group['name'];?>" target="_blank"><?php echo $group['name'];?></a></p>
+</li>
+<?php } ?>
+</ul>
+</div>
+</div>
+<?php } ?>
+<div class="drag">
+<!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
+</div>
+<div class="bm">
+<div class="bm_h cl">
+<h2>好友加入的<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
+</div>
+<div class="bm_c">
+<ul class="ml mls cl"><?php if(is_array($friendgrouplist)) foreach($friendgrouplist as $groupid => $group) { ?><li>
+<a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" class="avt" target="_blank"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
+<p><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" target="_blank"><?php echo $group['name'];?></a></p>
+</li>
+<?php } ?>
+</ul>
+</div>
+</div>
+<div class="drag">
+<!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
+</div>
+<?php if(!empty($_G['setting']['pluginhooks']['my_side_bottom'])) echo $_G['setting']['pluginhooks']['my_side_bottom'];?>
+</div>
+</div>
+
+<div class="wp mtn">
+<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
+</div><?php include template('common/footer'); ?>

+ 130 - 0
data/template/5_5_common_footer.tpl.php

xqd
@@ -0,0 +1,130 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
+	</div>
+<?php if(empty($topic) || ($topic['usefooter'])) { $focusid = getfocus_rand($_G[basescript]);?><?php if($focusid !== null) { $focus = $_G['cache']['focus']['data'][$focusid];?><?php $focusnum = count($_G['setting']['focus'][$_G[basescript]]);?><div class="focus" id="sitefocus">
+<div class="bm">
+<div class="bm_h cl">
+<a href="javascript:;" onclick="setcookie('nofocus_<?php echo $_G['basescript'];?>', 1, <?php echo $_G['cache']['focus']['cookie'];?>*3600);$('sitefocus').style.display='none'" class="y" title="关闭">关闭</a>
+<h2>
+<?php if($_G['cache']['focus']['title']) { ?><?php echo $_G['cache']['focus']['title'];?><?php } else { ?>站长推荐<?php } ?>
+<span id="focus_ctrl" class="fctrl"><img src="<?php echo IMGDIR;?>/pic_nv_prev.gif" alt="上一条" title="上一条" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/<?php echo $focusnum;?></em> <img src="<?php echo IMGDIR;?>/pic_nv_next.gif" alt="下一条" title="下一条" id="focusnext" class="cur1" onclick="showfocus('next')" /></span>
+</h2>
+</div>
+<div class="bm_c" id="focus_con">
+</div>
+</div>
+</div><?php $focusi = 0;?><?php if(is_array($_G['setting']['focus'][$_G['basescript']])) foreach($_G['setting']['focus'][$_G['basescript']] as $id) { ?><div class="bm_c" style="display: none" id="focus_<?php echo $focusi;?>">
+<dl class="xld cl bbda">
+<dt><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2" target="_blank"><?php echo $_G['cache']['focus']['data'][$id]['subject'];?></a></dt>
+<?php if($_G['cache']['focus']['data'][$id]['image']) { ?>
+<dd class="m"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" target="_blank"><img src="<?php echo $_G['cache']['focus']['data'][$id]['image'];?>" alt="<?php echo $_G['cache']['focus']['data'][$id]['subject'];?>" /></a></dd>
+<?php } ?>
+<dd><?php echo $_G['cache']['focus']['data'][$id]['summary'];?></dd>
+</dl>
+<p class="ptn cl"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2 y" target="_blank">查看 &raquo;</a></p>
+</div><?php $focusi ++;?><?php } ?>
+<script type="text/javascript">
+var focusnum = <?php echo $focusnum;?>;
+if(focusnum < 2) {
+$('focus_ctrl').style.display = 'none';
+}
+if(!$('focuscur').innerHTML) {
+var randomnum = parseInt(Math.round(Math.random() * focusnum));
+$('focuscur').innerHTML = Math.max(1, randomnum);
+}
+showfocus();
+var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
+</script>
+<?php } if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) { ?>
+<div class="focus patch" id="patch_notice"></div>
+<?php } ?><?php echo adshow("footerbanner/wp a_f/1");?><?php echo adshow("footerbanner/wp a_f/2");?><?php echo adshow("footerbanner/wp a_f/3");?><?php echo adshow("float/a_fl/1");?><?php echo adshow("float/a_fr/2");?><?php echo adshow("couplebanner/a_fl a_cb/1");?><?php echo adshow("couplebanner/a_fr a_cb/2");?><?php echo adshow("cornerbanner/a_cn");?><?php if(!empty($_G['setting']['pluginhooks']['global_footer'])) echo $_G['setting']['pluginhooks']['global_footer'];?>
+<div id="ft" class="wp cl">
+<div id="flk" class="y">
+<p>
+<?php if($_G['setting']['site_qq']) { ?><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $_G['setting']['site_qq'];?>&amp;site=<?php echo $_G['setting']['bbname'];?>&amp;menu=yes&amp;from=discuz" target="_blank" title="QQ"><img src="<?php echo IMGDIR;?>/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><?php } if(is_array($_G['setting']['footernavs'])) foreach($_G['setting']['footernavs'] as $nav) { if($nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) ||
+!$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))) { ?><?php echo $nav['code'];?><span class="pipe">|</span><?php } } ?>
+<strong><a href="<?php echo $_G['setting']['siteurl'];?>" target="_blank"><?php echo $_G['setting']['sitename'];?></a></strong>
+<?php if($_G['setting']['icp']) { ?>( <a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo $_G['setting']['icp'];?></a> )<?php } ?>
+<?php if(!empty($_G['setting']['pluginhooks']['global_footerlink'])) echo $_G['setting']['pluginhooks']['global_footerlink'];?>
+<?php if($_G['setting']['statcode']) { ?><?php echo $_G['setting']['statcode'];?><?php } ?>
+</p>
+<p class="xs0">
+GMT<?php echo $_G['timenow']['offset'];?>, <?php echo $_G['timenow']['time'];?>
+<span id="debuginfo">
+<?php if(debuginfo()) { ?>, Processed in <?php echo $_G['debuginfo']['time'];?> second(s), <?php echo $_G['debuginfo']['queries'];?> queries
+<?php if($_G['gzipcompress']) { ?>, Gzip On<?php } if(C::memory()->type) { ?>, <?php echo C::memory()->type; ?> On<?php } ?>.
+<?php } ?>
+</span>
+</p>
+</div>
+<div id="frt">
+<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?php echo $_G['setting']['version'];?></em><?php if(!empty($_G['setting']['boardlicensed'])) { ?> <a href="http://license.comsenz.com/?pid=1&amp;host=<?php echo $_SERVER['HTTP_HOST'];?>" target="_blank">Licensed</a><?php } ?></p>
+<p class="xs0">&copy; 2001-2017 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
+</div><?php updatesession();?><?php if($_G['uid'] && $_G['group']['allowinvisible']) { ?>
+<script type="text/javascript">
+var invisiblestatus = '<?php if($_G['session']['invisible']) { ?>隐身<?php } else { ?>在线<?php } ?>';
+var loginstatusobj = $('loginstatusid');
+if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus;
+</script>
+<?php } ?>
+</div>
+<?php } if(!$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry']) { if($_G['uid'] && !isset($_G['cookie']['checkpm'])) { ?>
+<script src="home.php?mod=spacecp&ac=pm&op=checknewpm&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script>
+<?php } if($_G['uid'] && helper_access::check_module('follow') && !isset($_G['cookie']['checkfollow'])) { ?>
+<script src="home.php?mod=spacecp&ac=follow&op=checkfeed&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script>
+<?php } if(!isset($_G['cookie']['sendmail'])) { ?>
+<script src="home.php?mod=misc&ac=sendmail&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script>
+<?php } if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkpatch'])) { ?>
+<script src="misc.php?mod=patch&action=checkpatch&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script>
+<?php } } if($_GET['diy'] == 'yes') { if(check_diy_perm($topic) && (empty($do) || $do != 'index')) { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>common_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<script src="<?php echo $_G['setting']['jspath'];?>portal_diy<?php if(!check_diy_perm($topic, 'layout')) { ?>_data<?php } ?>.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } if($space['self'] && CURMODULE == 'space' && $do == 'index') { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>common_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<script src="<?php echo $_G['setting']['jspath'];?>space_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } } if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && empty($_G['cookie']['pluginnotice'])) { ?>
+<div class="focus plugin" id="plugin_notice"></div>
+<script type="text/javascript">pluginNotice();</script>
+<?php } if(!$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry'] && $_G['setting']['disableipnotice'] != 1 && $_G['uid'] && !empty($_G['cookie']['lip'])) { ?>
+<div class="focus plugin" id="ip_notice"></div>
+<script type="text/javascript">ipNotice();</script>
+<?php } if($_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G['uid']]) || $_G['cookie']['promptstate_'.$_G['uid']] != $_G['member']['newprompt']) && $_GET['do'] != 'notice') { ?>
+<script type="text/javascript">noticeTitle();</script>
+<?php } if(($_G['member']['newpm'] || $_G['member']['newprompt']) && empty($_G['cookie']['ignore_notice'])) { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>html5notification.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<script type="text/javascript">
+var h5n = new Html5notification();
+if(h5n.issupport()) {
+<?php if($_G['member']['newpm'] && $_GET['do'] != 'pm') { ?>
+h5n.shownotification('pm', '<?php echo $_G['siteurl'];?>home.php?mod=space&do=pm', '<?php echo avatar($_G[uid],small,true);?>', '新的短消息', '有新的短消息,快去看看吧');
+<?php } if($_G['member']['newprompt'] && $_GET['do'] != 'notice') { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { $noticetitle = lang('template', 'notice_'.$key);?>h5n.shownotification('notice_<?php echo $key;?>', '<?php echo $_G['siteurl'];?>home.php?mod=space&do=notice&view=<?php echo $key;?>', '<?php echo avatar($_G[uid],small,true);?>', '<?php echo $noticetitle;?> (<?php echo $val;?>)', '有新的提醒,快去看看吧');
+<?php } } ?>
+}
+</script>
+<?php } userappprompt();?><?php if($_G['basescript'] != 'userapp') { ?>
+<div id="scrolltop">
+<?php if($_G['fid'] && $_G['mod'] == 'viewthread') { ?>
+<span><a href="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>&amp;page=<?php echo $page;?><?php if($_GET['from']) { ?>&amp;from=<?php echo $_GET['from'];?><?php } ?>" onclick="showWindow('reply', this.href)" class="replyfast" title="快速回复"><b>快速回复</b></a></span>
+<?php } ?>
+<span hidefocus="true"><a title="返回顶部" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>返回顶部</b></a></span>
+<?php if($_G['fid']) { ?>
+<span>
+<?php if($_G['mod'] == 'viewthread') { ?>
+<a href="forum.php?mod=forumdisplay&amp;fid=<?php echo $_G['fid'];?>" hidefocus="true" class="returnlist" title="返回列表"><b>返回列表</b></a>
+<?php } else { ?>
+<a href="forum.php" hidefocus="true" class="returnboard" title="返回论坛"><b>返回论坛</b></a>
+<?php } ?>
+</span>
+<?php } ?>
+</div>
+<script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script>
+<?php } if(isset($_G['makehtml'])) { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>html2dynamic.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<script type="text/javascript">
+var html_lostmodify = <?php echo TIMESTAMP;?>;
+htmlGetUserStatus();
+<?php if(isset($_G['htmlcheckupdate'])) { ?>
+htmlCheckUpdate();
+<?php } ?>
+</script>
+<?php } output();?></body>
+</html>

+ 1 - 0
data/template/5_5_common_footer_ajax.tpl.php

xqd
@@ -0,0 +1 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); echo output_ajax(); ?>]]></root><?php exit;?>

+ 13 - 0
data/template/5_5_common_header_diynav.tpl.php

xqd
@@ -0,0 +1,13 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
+$__STATICURL = STATICURL;$diynav = <<<EOF
+
+<a id="diy-tg" href="javascript:openDiy();" title="打开 DIY 面板" class="xi1 xw1" onmouseover="showMenu(this.id)"><img src="{$__STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
+<div id="diy-tg_menu" style="display: none;">
+<ul>
+<li><a href="javascript:saveUserdata('diy_advance_mode', '');openDiy();" class="xi2">简洁模式</a></li>
+<li><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();" class="xi2">高级模式</a></li>
+</ul>
+</div>
+
+EOF;
+?>

+ 249 - 0
data/template/5_5_common_header_group_index.tpl.php

xqd
@@ -0,0 +1,249 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); 
+0
+|| checktplrefresh('./template/default/common/header.htm', './template/default/common/header_common.htm', 1524802031, '5', './data/template/5_5_common_header_group_index.tpl.php', './template/week_touch', 'common/header_group_index')
+|| checktplrefresh('./template/default/common/header.htm', './template/default/common/header_qmenu.htm', 1524802031, '5', './data/template/5_5_common_header_group_index.tpl.php', './template/week_touch', 'common/header_group_index')
+|| checktplrefresh('./template/default/common/header.htm', './template/default/common/pubsearchform.htm', 1524802031, '5', './data/template/5_5_common_header_group_index.tpl.php', './template/week_touch', 'common/header_group_index')
+;?>
+<!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=<?php echo CHARSET;?>" />
+<?php if($_G['config']['output']['iecompatible']) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE<?php echo $_G['config']['output']['iecompatible'];?>" /><?php } ?>
+<title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> - <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?> - <?php } ?> Powered by Discuz!</title>
+<?php echo $_G['setting']['seohead'];?>
+
+<meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
+<meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
+<meta name="generator" content="Discuz! <?php echo $_G['setting']['version'];?>" />
+<meta name="author" content="Discuz! Team and Comsenz UI Team" />
+<meta name="copyright" content="2001-2017 Comsenz Inc." />
+<meta name="MSSmartTagsPreventParsing" content="True" />
+<meta http-equiv="MSThemeCompatible" content="Yes" />
+<base href="<?php echo $_G['siteurl'];?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_5_common.css?<?php echo VERHASH;?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_5_group_index.css?<?php echo VERHASH;?>" /><?php if($_G['uid'] && isset($_G['cookie']['extstyle']) && strpos($_G['cookie']['extstyle'], TPLDIR) !== false) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['cookie']['extstyle'];?>/style.css" /><?php } elseif($_G['style']['defaultextstyle']) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['style']['defaultextstyle'];?>/style.css" /><?php } ?><script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>', CSSPATH = '<?php echo $_G['setting']['csspath'];?>', DYNAMICURL = '<?php echo $_G['dynamicurl'];?>';</script>
+<script src="<?php echo $_G['setting']['jspath'];?>common.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php if(empty($_GET['diy'])) { $_GET['diy'] = '';?><?php } if(!isset($topic)) { $topic = array();?><?php } ?>
+<meta name="application-name" content="<?php echo $_G['setting']['bbname'];?>" />
+<meta name="msapplication-tooltip" content="<?php echo $_G['setting']['bbname'];?>" />
+<?php if($_G['setting']['portalstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['1']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G['siteurl'].'portal.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/portal.ico" /><?php } ?>
+<meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['2']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G['siteurl'].'forum.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/bbs.ico" />
+<?php if($_G['setting']['groupstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['3']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G['siteurl'].'group.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/group.ico" /><?php } if(helper_access::check_module('feed')) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['4']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G['siteurl'].'home.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/home.ico" /><?php } if($_G['basescript'] == 'forum' && $_G['setting']['archiver']) { ?>
+<link rel="archives" title="<?php echo $_G['setting']['bbname'];?>" href="<?php echo $_G['siteurl'];?>archiver/" />
+<?php } if(!empty($rsshead)) { ?><?php echo $rsshead;?><?php } if(widthauto()) { ?>
+<link rel="stylesheet" id="css_widthauto" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_widthauto.css?<?php echo VERHASH;?>' />
+<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
+<?php } if($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>forum.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } elseif($_G['basescript'] == 'home' || $_G['basescript'] == 'userapp') { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } elseif($_G['basescript'] == 'portal') { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } if($_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+<script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+<link rel="stylesheet" type="text/css" id="diy_common" href="<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_css_diy.css?<?php echo VERHASH;?>" />
+<?php } ?>
+</head>
+
+<body id="nv_<?php echo $_G['basescript'];?>" class="pg_<?php echo CURMODULE;?><?php if($_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)) { ?> <?php echo $cat['bodycss'];?><?php } ?>" onkeydown="if(event.keyCode==27) return false;">
+<div id="append_parent"></div><div id="ajaxwaitid"></div>
+<?php if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { include template('common/header_diy'); } if(check_diy_perm($topic)) { include template('common/header_diynav'); } if(CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)) { ?>
+<?php echo $diynav;?>
+<?php } if(empty($topic) || $topic['useheader']) { if($_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')) { ?>
+<div class="xi1 bm bm_c">
+    请选择 <a href="<?php echo $_G['siteurl'];?>forum.php?mobile=yes">进入手机版</a> <span class="xg1">|</span> <a href="<?php echo $_G['setting']['mobile']['nomobileurl'];?>">继续访问电脑版</a>
+</div>
+<?php } if($_G['setting']['shortcut'] && $_G['member']['credits'] >= $_G['setting']['shortcut']) { ?>
+<div id="shortcut">
+<span><a href="javascript:;" id="shortcutcloseid" title="关闭">关闭</a></span>
+您经常访问 <?php echo $_G['setting']['bbname'];?>,试试添加到桌面,访问更方便!
+<a href="javascript:;" id="shortcuttip">添加 <?php echo $_G['setting']['bbname'];?> 到桌面</a>
+
+</div>
+<script type="text/javascript">setTimeout(setShortcut, 2000);</script>
+<?php } ?>
+<div id="toptb" class="cl">
+<?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_top'])) echo $_G['setting']['pluginhooks']['global_cpnav_top'];?>
+<div class="wp">
+<div class="z"><?php if(is_array($_G['setting']['topnavs']['0'])) foreach($_G['setting']['topnavs']['0'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><?php echo $nav['code'];?><?php } } ?>
+<?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_extra1'])) echo $_G['setting']['pluginhooks']['global_cpnav_extra1'];?>
+</div>
+<div class="y">
+<a id="switchblind" href="javascript:;" onclick="toggleBlind(this)" title="开启辅助访问" class="switchblind">开启辅助访问</a>
+<?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_extra2'])) echo $_G['setting']['pluginhooks']['global_cpnav_extra2'];?><?php if(is_array($_G['setting']['topnavs']['1'])) foreach($_G['setting']['topnavs']['1'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><?php echo $nav['code'];?><?php } } if(empty($_G['disabledwidthauto']) && $_G['setting']['switchwidthauto']) { ?>
+<a href="javascript:;" id="switchwidth" onclick="widthauto(this)" title="<?php if(widthauto()) { ?>切换到窄版<?php } else { ?>切换到宽版<?php } ?>" class="switchwidth"><?php if(widthauto()) { ?>切换到窄版<?php } else { ?>切换到宽版<?php } ?></a>
+<?php } if($_G['uid'] && !empty($_G['style']['extstyle'])) { ?><a id="sslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});">切换风格</a><?php } if(check_diy_perm($topic)) { ?>
+<?php echo $diynav;?>
+<?php } ?>
+</div>
+</div>
+</div>
+
+<?php if(!IS_ROBOT) { if($_G['uid']) { ?>
+<ul id="myprompt_menu" class="p_pop" style="display: none;">
+<li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news<?php if(empty($_G['member']['newpm'])) { ?>_0<?php } ?>"></em>消息</a></li>
+<li><a href="home.php?mod=follow&amp;do=follower"><em class="prompt_follower<?php if(empty($_G['member']['newprompt_num']['follower'])) { ?>_0<?php } ?>"></em>新听众<?php if($_G['member']['newprompt_num']['follower']) { ?>(<?php echo $_G['member']['newprompt_num']['follower'];?>)<?php } ?></a></li>
+<?php if($_G['member']['newprompt'] && $_G['member']['newprompt_num']['follow']) { ?>
+<li><a href="home.php?mod=follow"><em class="prompt_concern"></em>我关注的(<?php echo $_G['member']['newprompt_num']['follow'];?>)</a></li>
+<?php } if($_G['member']['newprompt']) { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { ?><li><a href="home.php?mod=space&amp;do=notice&amp;view=<?php echo $key;?>"><em class="notice_<?php echo $key;?>"></em><?php echo lang('template', 'notice_'.$key); ?>(<span class="rq"><?php echo $val;?></span>)</a></li>
+<?php } } if(empty($_G['cookie']['ignore_notice'])) { ?>
+<li class="ignore_noticeli"><a href="javascript:;" onclick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="暂不提醒"><em class="ignore_notice"></em></a></li>
+<?php } ?>
+</ul>
+<?php } if($_G['uid'] && !empty($_G['style']['extstyle'])) { ?>
+<div id="sslct_menu" class="cl p_pop" style="display: none;">
+<?php if(!$_G['style']['defaultextstyle']) { ?><span class="sslct_btn" onclick="extstyle('')" title="默认"><i></i></span><?php } if(is_array($_G['style']['extstyle'])) foreach($_G['style']['extstyle'] as $extstyle) { ?><span class="sslct_btn" onclick="extstyle('<?php echo $extstyle['0'];?>')" title="<?php echo $extstyle['1'];?>"><i style='background:<?php echo $extstyle['2'];?>'></i></span>
+<?php } ?>
+</div>
+<?php } if($_G['uid']) { ?>
+<ul id="myitem_menu" class="p_pop" style="display: none;">
+<li><a href="forum.php?mod=guide&amp;view=my">帖子</a></li>
+<li><a href="home.php?mod=space&amp;do=favorite&amp;view=me">收藏</a></li>
+<li><a href="home.php?mod=space&amp;do=friend">好友</a></li>
+<?php if(!empty($_G['setting']['pluginhooks']['global_myitem_extra'])) echo $_G['setting']['pluginhooks']['global_myitem_extra'];?>
+</ul>
+<?php } ?><div id="qmenu_menu" class="p_pop <?php if(!$_G['uid']) { ?>blk<?php } ?>" style="display: none;">
+<?php if(!empty($_G['setting']['pluginhooks']['global_qmenu_top'])) echo $_G['setting']['pluginhooks']['global_qmenu_top'];?>
+<?php if($_G['uid']) { ?>
+<ul class="cl nav"><?php if(is_array($_G['setting']['mynavs'])) foreach($_G['setting']['mynavs'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?>
+<li><?php echo $nav['code'];?></li>
+<?php } } ?>
+</ul>
+<?php } elseif($_G['connectguest']) { ?>
+<div class="ptm pbw hm">
+请先<br /><a class="xi2" href="member.php?mod=connect"><strong>完善帐号信息</strong></a> 或 <a href="member.php?mod=connect&amp;ac=bind" class="xi2 xw1"><strong>绑定已有帐号</strong></a><br />后使用快捷导航
+</div>
+<?php } else { ?>
+<div class="ptm pbw hm">
+请 <a href="javascript:;" class="xi2" onclick="lsSubmit()"><strong>登录</strong></a> 后使用快捷导航<br />没有帐号?<a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2 xw1"><?php echo $_G['setting']['reglinkname'];?></a>
+</div>
+<?php } if($_G['setting']['showfjump']) { ?><div id="fjump_menu" class="btda"></div><?php } ?>
+<?php if(!empty($_G['setting']['pluginhooks']['global_qmenu_bottom'])) echo $_G['setting']['pluginhooks']['global_qmenu_bottom'];?>
+</div><?php } ?><?php echo adshow("headerbanner/wp a_h");?><div id="hd">
+<div class="wp">
+<div class="hdc cl"><?php $mnid = getcurrentnav();?><h2><?php if(!isset($_G['setting']['navlogos'][$mnid])) { ?><a href="<?php if($_G['setting']['domain']['app']['default']) { ?>http://<?php echo $_G['setting']['domain']['app']['default'];?>/<?php } else { ?>./<?php } ?>" title="<?php echo $_G['setting']['bbname'];?>"><?php echo $_G['style']['boardlogo'];?></a><?php } else { ?><?php echo $_G['setting']['navlogos'][$mnid];?><?php } ?></h2><?php include template('common/header_userstatus'); ?></div>
+
+<div id="nv">
+<a href="javascript:;" id="qmenu" onmouseover="delayShow(this, function () {showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});showForummenu(<?php echo $_G['fid'];?>);})">快捷导航</a>
+<ul><?php if(is_array($_G['setting']['navs'])) foreach($_G['setting']['navs'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><li <?php if($mnid == $nav['navid']) { ?>class="a" <?php } ?><?php echo $nav['nav'];?>></li><?php } } ?>
+</ul>
+<?php if(!empty($_G['setting']['pluginhooks']['global_nav_extra'])) echo $_G['setting']['pluginhooks']['global_nav_extra'];?>
+</div>
+<?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
+<ul class="p_pop h_pop" id="plugin_menu" style="display: none"><?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?> <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
+ <li><?php echo $module['url'];?></li>
+ <?php } } ?>
+</ul>
+<?php } ?>
+<?php echo $_G['setting']['menunavs'];?>
+<div id="mu" class="cl">
+<?php if($_G['setting']['subnavs']) { if(is_array($_G['setting']['subnavs'])) foreach($_G['setting']['subnavs'] as $navid => $subnav) { if($_G['setting']['navsubhover'] || $mnid == $navid) { ?>
+<ul class="cl <?php if($mnid == $navid) { ?>current<?php } ?>" id="snav_<?php echo $navid;?>" style="display:<?php if($mnid != $navid) { ?>none<?php } ?>">
+<?php echo $subnav;?>
+</ul>
+<?php } } } ?>
+</div><?php echo adshow("subnavbanner/a_mu");?><?php if($_G['setting']['search']) { $slist = array();?><?php if($_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group') { ?><?php
+$slist[forumfid] = <<<EOF
+<li><a href="javascript:;" rel="curforum" fid="{$_G['fid']}" >本版</a></li>
+EOF;
+?><?php } if($_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)) { ?><?php
+$slist[portal] = <<<EOF
+<li><a href="javascript:;" rel="article">文章</a></li>
+EOF;
+?><?php } if($_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)) { ?><?php
+$slist[forum] = <<<EOF
+<li><a href="javascript:;" rel="forum" class="curtype">帖子</a></li>
+EOF;
+?><?php } if(helper_access::check_module('blog') && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)) { ?><?php
+$slist[blog] = <<<EOF
+<li><a href="javascript:;" rel="blog">日志</a></li>
+EOF;
+?><?php } if(helper_access::check_module('album') && $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)) { ?><?php
+$slist[album] = <<<EOF
+<li><a href="javascript:;" rel="album">相册</a></li>
+EOF;
+?><?php } if($_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)) { ?><?php
+$slist[group] = <<<EOF
+<li><a href="javascript:;" rel="group">{$_G['setting']['navs']['3']['navname']}</a></li>
+EOF;
+?><?php } ?><?php
+$slist[user] = <<<EOF
+<li><a href="javascript:;" rel="user">用户</a></li>
+EOF;
+?>
+<?php } if($_G['setting']['search'] && $slist) { ?>
+<div id="scbar" class="<?php if($_G['setting']['srchhotkeywords'] && count($_G['setting']['srchhotkeywords']) > 5) { ?>scbar_narrow <?php } ?>cl">
+<form id="scbar_form" method="<?php if($_G['fid'] && !empty($searchparams['url'])) { ?>get<?php } else { ?>post<?php } ?>" autocomplete="off" onsubmit="searchFocus($('scbar_txt'))" action="<?php if($_G['fid'] && !empty($searchparams['url'])) { ?><?php echo $searchparams['url'];?><?php } else { ?>search.php?searchsubmit=yes<?php } ?>" target="_blank">
+<input type="hidden" name="mod" id="scbar_mod" value="search" />
+<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
+<input type="hidden" name="srchtype" value="title" />
+<input type="hidden" name="srhfid" value="<?php echo $_G['fid'];?>" />
+<input type="hidden" name="srhlocality" value="<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>" />
+<?php if(!empty($searchparams['params'])) { if(is_array($searchparams['params'])) foreach($searchparams['params'] as $key => $value) { $srchotquery .= '&' . $key . '=' . rawurlencode($value);?><input type="hidden" name="<?php echo $key;?>" value="<?php echo $value;?>" />
+<?php } ?>
+<input type="hidden" name="source" value="discuz" />
+<input type="hidden" name="fId" id="srchFId" value="<?php echo $_G['fid'];?>" />
+<input type="hidden" name="q" id="cloudsearchquery" value="" />
+
+<style>
+#scbar { overflow: visible; position: relative; }
+#sg{ background: #FFF; width:456px; border: 1px solid #B2C7DA; }
+.scbar_narrow #sg { width: 316px; }
+#sg li { padding:0 8px; line-height:30px; font-size:14px; }
+#sg li span { color:#999; }
+.sml { background:#FFF; cursor:default; }
+.smo { background:#E5EDF2; cursor:default; }
+            </style>
+            <div style="display: none; position: absolute; top:37px; left:44px;" id="sg">
+                <div id="st_box" cellpadding="2" cellspacing="0"></div>
+            </div>
+<?php } ?>
+<table cellspacing="0" cellpadding="0">
+<tr>
+<td class="scbar_icon_td"></td>
+<td class="scbar_txt_td"><input type="text" name="srchtxt" id="scbar_txt" value="请输入搜索内容" autocomplete="off" x-webkit-speech speech /></td>
+<td class="scbar_type_td"><a href="javascript:;" id="scbar_type" class="xg1" onclick="showMenu(this.id)" hidefocus="true">搜索</a></td>
+<td class="scbar_btn_td"><button type="submit" name="searchsubmit" id="scbar_btn" sc="1" class="pn pnc" value="true"><strong class="xi2">搜索</strong></button></td>
+<td class="scbar_hot_td">
+<div id="scbar_hot">
+<?php if($_G['setting']['srchhotkeywords']) { ?>
+<strong class="xw1">热搜: </strong><?php if(is_array($_G['setting']['srchhotkeywords'])) foreach($_G['setting']['srchhotkeywords'] as $val) { if($val=trim($val)) { $valenc=rawurlencode($val);?><?php
+$__FORMHASH = FORMHASH;$srchhotkeywords[] = <<<EOF
+
+
+EOF;
+ if(!empty($searchparams['url'])) { 
+$srchhotkeywords[] .= <<<EOF
+
+<a href="{$searchparams['url']}?q={$valenc}&source=hotsearch{$srchotquery}" target="_blank" class="xi2" sc="1">{$val}</a>
+
+EOF;
+ } else { 
+$srchhotkeywords[] .= <<<EOF
+
+<a href="search.php?mod=forum&amp;srchtxt={$valenc}&amp;formhash={$__FORMHASH}&amp;searchsubmit=true&amp;source=hotsearch" target="_blank" class="xi2" sc="1">{$val}</a>
+
+EOF;
+ } 
+$srchhotkeywords[] .= <<<EOF
+
+
+EOF;
+?>
+<?php } } echo implode('', $srchhotkeywords);; } ?>
+</div>
+</td>
+</tr>
+</table>
+</form>
+</div>
+<ul id="scbar_type_menu" class="p_pop" style="display: none;"><?php echo implode('', $slist);; ?></ul>
+<script type="text/javascript">
+initSearchmenu('scbar', '<?php echo $searchparams['url'];?>');
+</script>
+<?php } ?></div>
+</div>
+
+<?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?>
+<?php } ?>
+
+<div id="wp" class="wp">

+ 51 - 0
data/template/5_5_common_header_userstatus.tpl.php

xqd
@@ -0,0 +1,51 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); if($_G['uid']) { ?>
+<div id="um">
+<div class="avt y"><a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>"><?php echo avatar($_G[uid],small);?></a></div>
+<p>
+<strong class="vwmy<?php if($_G['setting']['connect']['allow'] && $_G['member']['conisbind']) { ?> qq<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>" target="_blank" title="访问我的空间"><?php echo $_G['member']['username'];?></a></strong>
+<?php if($_G['group']['allowinvisible']) { ?>
+<span id="loginstatus">
+<a id="loginstatusid" href="member.php?mod=switchstatus" title="切换在线状态" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
+</span>
+<?php } ?>
+<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
+<span class="pipe">|</span><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra4'])) echo $_G['setting']['pluginhooks']['global_usernav_extra4'];?><a href="javascript:;" id="myitem" class="showmenu" onmouseover="showMenu({'ctrlid':'myitem'});">我的</a>
+<span class="pipe">|</span><a href="home.php?mod=spacecp">设置</a>
+<span class="pipe">|</span><a href="home.php?mod=space&amp;do=pm" id="pm_ntc"<?php if($_G['member']['newpm']) { ?> class="new"<?php } ?>>消息</a>
+<span class="pipe">|</span><a href="home.php?mod=space&amp;do=notice" id="myprompt" class="a showmenu<?php if($_G['member']['newprompt']) { ?> new<?php } ?>" onmouseover="showMenu({'ctrlid':'myprompt'});">提醒<?php if($_G['member']['newprompt']) { ?>(<?php echo $_G['member']['newprompt'];?>)<?php } ?></a><span id="myprompt_check"></span>
+<?php if(empty($_G['cookie']['ignore_notice']) && ($_G['member']['newpm'] || $_G['member']['newprompt_num']['follower'] || $_G['member']['newprompt_num']['follow'] || $_G['member']['newprompt'])) { ?><script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><?php } if($_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])) { ?><span class="pipe">|</span><a href="home.php?mod=task&amp;item=doing" id="task_ntc" class="new">进行中的任务</a><?php } if(($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))) { ?>
+<span class="pipe">|</span><a href="portal.php?mod=portalcp"><?php if($_G['setting']['portalstatus'] ) { ?>门户管理<?php } else { ?>模块管理<?php } ?></a>
+<?php } if($_G['uid'] && $_G['group']['radminid'] > 1) { ?>
+<span class="pipe">|</span><a href="forum.php?mod=modcp&amp;fid=<?php echo $_G['fid'];?>" target="_blank"><?php echo $_G['setting']['navs']['2']['navname'];?>管理</a>
+<?php } if($_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)) { ?>
+<span class="pipe">|</span><a href="admin.php" target="_blank">管理中心</a>
+<?php } ?>
+<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?>
+<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
+</p>
+<p>
+<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?>
+<a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1" id="extcreditmenu"<?php if(!$_G['setting']['bbclosed']) { ?> onmouseover="delayShow(this, showCreditmenu);" class="showmenu"<?php } ?>>积分: <?php echo $_G['member']['credits'];?></a>
+<span class="pipe">|</span><a href="home.php?mod=spacecp&amp;ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">用户组: <?php echo $_G['group']['grouptitle'];?><?php if($_G['member']['freeze']) { ?><span class="xi1">(已冻结)</span><?php } ?></a>
+</p>
+</div>
+<?php } elseif(!empty($_G['cookie']['loginuser'])) { ?>
+<p>
+<strong><a id="loginuser" class="noborder"><?php echo dhtmlspecialchars($_G['cookie']['loginuser']); ?></a></strong>
+<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)">激活</a>
+<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
+</p>
+<?php } elseif(!$_G['connectguest']) { include template('member/login_simple'); } else { ?>
+<div id="um">
+<div class="avt y"><?php echo avatar(0,small);?></div>
+<p>
+<strong class="vwmy qq"><?php echo $_G['member']['username'];?></strong>
+<?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?>
+<span class="pipe">|</span><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a>
+</p>
+<p>
+<a href="home.php?mod=spacecp&amp;ac=credit&amp;showcredit=1">积分: 0</a>
+<span class="pipe">|</span>用户组: <?php echo $_G['group']['grouptitle'];?>
+</p>
+</div>
+<?php } ?>

+ 9 - 0
data/template/5_5_common_ipnotice.tpl.php

xqd
@@ -0,0 +1,9 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
+<div class="bm"><div class="bm_h cl"><a href="javascript:;" onclick="$('ip_notice').style.display='none';setcookie('lip', '', -1);" class="y" title="关闭">关闭</a>
+<h2>安全提醒</h2></div><div class="bm_c">
+<dl class="xld cl bbda">
+<dd>本次登录位置 <?php echo $status['lastip'];?> <?php echo $nowipConvert;?><br />上次登录位置 <?php echo $lip['0'];?> <?php echo $lastipConvert;?><br />上次登录时间 <?php echo $lastipDate;?></dd>
+</dl>
+<p class="ptn cl"><a href="home.php?mod=spacecp&amp;ac=profile&amp;op=password" onclick="$('ip_notice').style.display='none';setcookie('lip', '', -1);" class="xi2 y" target="_blank">登录地点异常,建议立即更改密码 &raquo;</a></p>
+</div>
+</div>

+ 1 - 0
data/template/5_5_touch_common_footer_ajax.tpl.php

xqd
@@ -0,0 +1 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); echo output_ajax(); ?>]]></root><?php exit;?>

+ 7 - 0
data/template/5_5_touch_common_header_ajax.tpl.php

xqd
@@ -0,0 +1,7 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ob_end_clean();
+ob_start();
+@header("Expires: -1");
+@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
+@header("Pragma: no-cache");
+@header("Content-type: text/xml; charset=".CHARSET);
+echo '<?xml version="1.0" encoding="utf-8"?>'."\r\n";?><root><![CDATA[

+ 50 - 0
data/template/5_5_touch_common_showmessage.tpl.php

xqd
@@ -0,0 +1,50 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('showmessage');?>
+<?php if($param['login']) { if($_G['inajax']) { dheader('Location:member.php?mod=logging&action=login&inajax=1&infloat=1');exit;?><?php } else { dheader('Location:member.php?mod=logging&action=login');exit;?><?php } } include template('common/header'); if($_G['inajax']) { ?>
+<div class="tip" style="height:150px;">
+<dt id="messagetext">
+<p><?php echo $show_message;?></p>
+        <?php if($_G['forcemobilemessage']) { ?>
+        	<p >
+            	<a href="<?php echo $_G['setting']['mobile']['pageurl'];?>" class="mtn">继续访问</a><br />
+                <a href="javascript:history.back();">返回上一页</a>
+            </p>
+        <?php } if($url_forward && !$_GET['loc']) { ?>
+<!--<p><a class="grey" href="<?php echo $url_forward;?>">点击此链接进行跳转</a></p>-->
+<script type="text/javascript">
+setTimeout(function() {
+window.location.href = '<?php echo $url_forward;?>';
+}, '3000');
+</script>
+<?php } elseif($allowreturn) { ?>
+<p><input type="button" class="button" onclick="popup.close();" value="关闭"></p>
+<?php } ?>
+</dt>
+</div>
+<?php } else { ?>
+
+<!-- header start -->
+<div class="wk_header">
+<header class="width100">
+        <h1 class="wk_fl"><a href="portal.php?mod=index"><img alt="<?php echo $_G['setting']['bbname'];?>" src="<?php echo $_G['style']['styleimgdir'];?>/logo.png" class="width100"/></a></h1>
+        <div class="wk_fr wk_nav"><div class="toggle-btn wk_hmenu"><span class="icon-i"></span><span class="icon-i"></span><span class="icon-i"></span></div></div>
+    </header>
+</div>
+<div class="clear"></div>
+<!-- header end -->
+<!-- main jump start -->
+<div class="wk_shjump">
+<div><?php echo $show_message;?></div>
+    <?php if($_G['forcemobilemessage']) { ?>
+<p class="cl">
+            <a href="<?php echo $_G['setting']['mobile']['pageurl'];?>"  class="wk_jump_c" style="color:#FFF;">继续访问</a><br />
+            <a href="javascript:history.back();" class="wk_jump_ba" style="color:#FFF;">返回上一页</a>
+        </p>
+    <?php } if($url_forward) { ?>
+<p><a href="<?php echo $url_forward;?>" class="wk_jump_b" style="color:#FFF;">点击此链接进行跳转</a></p>
+<?php } elseif($allowreturn) { ?>
+<p><a href="javascript:history.back();" class="wk_jump_b" style="color:#FFF;">[ 点击这里返回上一页 ]</a></p>
+<?php } ?>
+</div>
+<!-- main jump end -->
+
+<?php } include template('common/footer'); ?>

+ 887 - 0
data/template/5_cloudsearch_module.tpl.php

xqd
@@ -0,0 +1,887 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); function tpl_cloudsearch_index_top($recwords, $searchparams, $srchotquery, $position = 'hotopicf') {
+global $_G;
+if($recwords) {
+$recwords_tmp = $recwords;
+$recwords = array();
+foreach ($recwords_tmp as $k => $v) {
+$recwords[$k+1] = $v;?><?php }?><?php }?><?php
+$return = <<<EOF
+
+
+EOF;
+ if(is_array($recwords) && count($recwords) > 0 && !empty($searchparams['url'])) { 
+$return .= <<<EOF
+
+<div class="fl bm">
+<div class="bm bmw hottopic cl">
+<div class="bm_h cl">
+<span class="y"></span>
+<h2>
+EOF;
+ if($_G['fid']) { 
+$return .= <<<EOF
+本版
+EOF;
+ } 
+$return .= <<<EOF
+热门话题</h2>
+</div>
+<style>
+.filter { padding: 10px; border-bottom: none; font-size: 12px; color: #999; }
+.filter ul {}
+.filter li { float: left; margin-right: 16px; height: 22px; line-height: 22px; white-space:nowrap; width:12.5%; }
+.filter li a { margin-right: 2px; text-decoration: none; color: #369; }
+.filter li.clewcolor a { background:url(source/plugin/cloudsearch/template/keyword_hot.gif) no-repeat 100% 2px; margin-right: 2px; text-decoration: none; color: #F00; padding-right:18px; }
+.filter li a:hover { text-decoration: underline; }
+.filter li a:visited { text-decoration: none; color: #666; }
+.filter li.clewcolor a:visited { text-decoration: none; color: #F00; }
+.filter .number { color: #666; } 
+.filter li.clewcolor .number { color:#F00; }
+</style>
+<div class="filter">
+<ul class="cl">
+EOF;
+ if(is_array($recwords)) foreach($recwords as $key => $recword) { if($encodeWord=rawurlencode(trim($recword['word']))) { if(empty($recword['inc_num'])) { 
+$return .= <<<EOF
+
+<li><a href="{$searchparams['url']}?q={$encodeWord}&source=word.{$position}.{$key}{$srchotquery}&num={$recword['result_num']}" sc="1" target="_blank">{$recword['word']}<span class="number">({$recword['result_num']})</span></a></li>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<li class="clewcolor"><a href="{$searchparams['url']}?q={$encodeWord}&source=word.{$position}.{$key}{$srchotquery}&num={$recword['result_num']}" sc="1"  target="_blank">{$recword['word']}<span class="number">({$recword['result_num']})</span></a></li>
+
+EOF;
+ } } } 
+$return .= <<<EOF
+
+</ul>
+</div>
+</div>
+</div>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_global_footer_formula_output() {
+global $_G;
+$formHash = FORMHASH;
+$cookie = $_G['cookie']['ffids' . $_G['uid']];?><?php
+$return = <<<EOF
+
+
+EOF;
+ if(!$cookie) { 
+$return .= <<<EOF
+
+<script type="text/javascript">
+_attachEvent(window, 'load', getForbiddenFormula, document);
+function getForbiddenFormula() {
+var toGetForbiddenFormulaFIds = function () {
+ajaxget('plugin.php?id=cloudsearch&formhash={$formHash}');
+};
+var a = document.body.getElementsByTagName('a');
+for(var i = 0;i < a.length;i++){
+if(a[i].getAttribute('sc')) {
+a[i].setAttribute('mid', hash(a[i].href));
+a[i].onmousedown = function() {toGetForbiddenFormulaFIds();};
+}
+}
+var btn = document.body.getElementsByTagName('button');
+for(var i = 0;i < btn.length;i++){
+if(btn[i].getAttribute('sc')) {
+btn[i].setAttribute('mid', hash(btn[i].id));
+btn[i].onmousedown = function() {toGetForbiddenFormulaFIds();};
+}
+}
+}
+</script>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_viewthread_postbottom_output() {?><?php
+$return = <<<EOF
+
+<div id="relate_subject"></div>
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_forumdisplay_threadtype_extra_output($recwords) {
+global $_G;?><?php
+$__IMGDIR = IMGDIR;$return = <<<EOF
+
+<style>
+.sort_ttp { padding-top: 0;margin-bottom:5px;}
+.sort_tit { padding:4px 8px 3px 0; color:#999; }
+.loadingCloud { text-align:center;line-height:50px; }
+</style>
+<script>
+var currentKeyword = '';
+var currentOrder = '';
+function switchkeyword(keyword, order, page) {
+page = page ? page : 1;
+order = order ? order : '';
+if (currentKeyword == keyword && order == '' && page == 1) {
+window.location = 'forum.php?mod=forumdisplay&fid={$_G['fid']}';
+return true;
+}
+if (currentKeyword != '') {
+$("ckw_"+currentKeyword).className = '';
+}
+$("ckw_"+keyword).className = 'xw1 a';
+currentKeyword = keyword;
+currentOrder = order;
+getclouddata(keyword, order, page);
+}
+function switchPage(page) {
+getclouddata(currentKeyword, currentOrder, page);
+}
+function switchOrder(order) {
+currentOrder = order;
+getclouddata(currentKeyword, order, 1);
+}
+function getclouddata(keyword, order, page) {
+$("threadlist").innerHTML = '<div class="loadingCloud"><img src="{$__IMGDIR}/loading.gif" alt="loading..." class="vm" /> 正在加载……</div>';
+ajaxget('forum.php?mod=forumdisplay&fid={$_G['fid']}&cloudop=relatedthread&page='+page+'&of='+order+'&keyword='+keyword);
+}
+function succeedhandle_getRelatedData(url, msg, data) {
+if(data['threaddiv']) { 
+$("threadlist").innerHTML = data['threaddiv'];
+$("fd_page_top").innerHTML = $("fd_page_bottom").innerHTML = data['page'];
+}
+}
+function errorhandle_getRelatedData(msg, data) {
+showError(msg);
+}
+</script>
+<ul class="ttp cl" id="thread_types2" style="padding-top:0px;">
+<li class="sort_tit">热门话题</li>
+EOF;
+ if(is_array($recwords)) foreach($recwords as $keyword) { 
+$return .= <<<EOF
+<li id="ckw_{$keyword['0']}"><a href="javascript:void(0);return false;" onclick="switchkeyword('{$keyword['0']}');">{$keyword['0']}</a></li>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</ul>
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_forumdisplay_threadtype_inner_output() {
+global $_G;?><?php
+$return = <<<EOF
+
+<style>
+.sort_tit { padding:4px 8px 3px 0; color:#999; }
+</style>
+<li class="sort_tit">主题分类</li>
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_collection_viewoptions_output() {
+global $_G;?><?php
+$return = <<<EOF
+
+<a href="forum.php?mod=collection&amp;action=view&amp;ctid={$_G['collection']['ctid']}&amp;op=related" class="xi2">搜索相关主题</a>
+<span class="pipe">|</span>
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_collection_relatedop_output($threadlist, $multipage) {
+global $_G;?><?php
+$__IMGDIR = IMGDIR;$__FORMHASH = FORMHASH;$return = <<<EOF
+
+
+<ul class="ttp bm cl cttp">
+<li
+EOF;
+ if(!$_GET['keyword']) { 
+$return .= <<<EOF
+ class="xw1 a"
+EOF;
+ } 
+$return .= <<<EOF
+>
+<a href="forum.php?mod=collection&amp;action=view&amp;ctid={$_G['collection']['ctid']}&amp;op=related" class="xi2">{$_G['collection']['name']}</a>
+</li>
+EOF;
+ if(is_array($_G['collection']['arraykeyword'])) foreach($_G['collection']['arraykeyword'] as $kid => $unique_keyword) { 
+$return .= <<<EOF
+<li
+EOF;
+ if($unique_keyword == $_GET['keyword']) { 
+$return .= <<<EOF
+ class="xw1 a"
+EOF;
+ } 
+$return .= <<<EOF
+>
+<a href="forum.php?mod=collection&amp;action=view&amp;ctid={$_G['collection']['ctid']}&amp;op=related&amp;keyword={$_G['collection']['urlkeyword'][$kid]}" class="xi2">{$unique_keyword}</a>
+</li>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</ul>
+<div class="tl bm">
+
+EOF;
+ if($threadlist) { 
+$return .= <<<EOF
+
+<form action="forum.php?mod=collection&amp;action=edit&amp;op=addthread" method="POST">
+<div class="th">
+<table cellspacing="0" cellpadding="0">
+<tr>
+<td class="icn"></td>
+<td class="o"><label class="z" onclick="checkall(this.form, 'tids')"><input class="pc" type="checkbox" name="chkall" title="!checkall!" /></label></td>
+<td class="common">帖子</td>
+<td class="forum">版块</td>
+<td class="by">作者</td>
+</tr>
+</table>
+</div>
+
+<div class="bm_c">
+<table cellspacing="0" cellpadding="0">
+EOF;
+ if(is_array($threadlist)) foreach($threadlist as $thread) { 
+$return .= <<<EOF
+<tr>
+<td class="icn">
+
+EOF;
+ if($thread['icon']) { 
+$return .= <<<EOF
+
+<img src="{$thread['icon']}" />
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<img src="{$__IMGDIR}/folder_common.gif" />
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+<td class="o">
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<input type="checkbox" value="{$thread['tThreadId']}" name="tids[]" />
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+<th>
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<a href="forum.php?mod=viewthread&amp;tid={$thread['tThreadId']}" target="_blank" class="xst">{$thread['pSubject']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<a href="{$thread['mTargetUrl']}" target="_blank" class="xst">{$thread['mTitle']}</a>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</th>
+<td class="forum">
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<a href="forum.php?mod=forumdisplay&amp;fid={$thread['pForumId']}">{$thread['pForumName']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+{$thread['mShowUrl']}
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+<td class="by">
+<cite>
+
+EOF;
+ if($thread['pAuthorId'] && $thread['pAuthorName']) { 
+$return .= <<<EOF
+
+<a href="home.php?mod=space&amp;uid={$thread['pAuthorId']}">{$thread['pAuthorName']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+匿名
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</cite>
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<em class="xi1">{$thread['dateline']}</em>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+</tr>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</table>
+</div>
+
+<div class="bm_c cl">
+<input type="hidden" value="{$_G['collection']['ctid']}" name="ctid" />
+    <input type="hidden" name="formhash" id="formhash" value="{$__FORMHASH}" />
+<input type="hidden" name="addthread" id="addthread" value="1" />
+<button type="submit" class="pn pnc"><span>添加到淘专辑</span></button>
+</div>
+</form>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<p class="emp">
+暂时还没有内容
+</p>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</div>
+
+EOF;
+ if($multipage) { 
+$return .= <<<EOF
+<div class="pgs mtm cl">{$multipage}</div>
+EOF;
+ } 
+$return .= <<<EOF
+
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_relate_threadlist_output($kw) {
+global $_G;?><?php
+$__IMGDIR = IMGDIR;$return = <<<EOF
+
+<div id="cloudsearch_relate"><img src="{$__IMGDIR}/loading.gif" alt="loading..." class="vm" /> 正在加载……</div>
+<script>
+ajaxget('plugin.php?id=cloudsearch:forumdisplay&cloudop=relatelist&fid={$_G['fid']}&keyword={$kw}&page={$_G['page']}', 'cloudsearch_relate');
+</script>
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_relate_threadlist_js_output($relatethreadlist, $urlkw, $searchparams, $srchotquery) {
+global $_G;?><?php
+$__IMGDIR = IMGDIR;$return = <<<EOF
+
+
+EOF;
+ if($relatethreadlist) { 
+$return .= <<<EOF
+
+<div class="th">
+<table cellspacing="0" cellpadding="0">
+<tr>
+<td class="icn"></td>
+<td class="common">相关主题</td>
+<td class="by">版块</td>
+<td class="by">作者</td>
+</tr>
+</table>
+</div>
+
+<div class="bm_c">
+<table cellspacing="0" cellpadding="0">
+EOF;
+ if(is_array($relatethreadlist)) foreach($relatethreadlist as $thread) { 
+$return .= <<<EOF
+<tbody id="{$thread['id']}">
+<tr>
+<td class="icn">
+
+EOF;
+ if($thread['icon']) { 
+$return .= <<<EOF
+
+<img src="{$thread['icon']}" />
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<img src="{$__IMGDIR}/folder_common.gif" />
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+<th>
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<a href="forum.php?mod=viewthread&amp;tid={$thread['tThreadId']}" target="_blank" class="xst">{$thread['pSubject']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+<a href="{$thread['mTargetUrl']}" target="_blank" class="xst">{$thread['mTitle']}</a>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</th>
+<td class="by">
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<a href="forum.php?mod=forumdisplay&amp;fid={$thread['pForumId']}">{$thread['pForumName']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+{$thread['mShowUrl']}
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+<td class="by">
+<cite>
+
+EOF;
+ if($thread['pAuthorId'] && $thread['pAuthorName']) { 
+$return .= <<<EOF
+
+<a href="home.php?mod=space&amp;uid={$thread['pAuthorId']}">{$thread['pAuthorName']}</a>
+
+EOF;
+ } else { 
+$return .= <<<EOF
+
+匿名
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</cite>
+
+EOF;
+ if(!isset($thread['icon'])) { 
+$return .= <<<EOF
+
+<em class="xi1">{$thread['dateline']}</em>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+</td>
+</tr>
+</tbody>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+<tr>
+<td colspan="4" align="center" style="line-height:25px;">
+<a href="{$searchparams['url']}?q={$urlkw}&source=word.tao_more.a{$srchotquery}">查看更多</a>
+</td>
+</tr>
+</table>
+</div>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_global_footer_related() {
+global $_G;
+$rel_title = urlencode($_G['forum_thread']['subject']);
+$widthauto = widthauto();
+$get_reltid = dintval($_GET[reltid]);
+$get_pre_pos = dhtmlspecialchars(trim($_GET[pre_pos]));?><?php
+$return = <<<EOF
+
+
+EOF;
+ if(empty($_G['inajax'])) { 
+$return .= <<<EOF
+
+<script type="text/javascript">
+var rel_tid = "{$_G['tid']}";
+var rel_title = "{$rel_title}";
+var rel_reltid = "{$get_reltid}";
+var rel_prepos = "{$get_pre_pos}";
+var my_siteid = "{$_G['setting']['my_siteid']}";
+var rel_uid = "{$_G['uid']}";
+var rel_views = "{$_G['forum_thread']['views']}";
+var rel_replies = "{$_G['forum_thread']['replies']}";
+var rel_page = "{$_G['page']}";
+var rel_show = "{$widthauto}";
+</script>
+<script src="http://cache.soso.com/30d/js/discuz/relate_subject.js" type="text/javascript" charset="GBK"></script>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_global_footer_mini() {
+global $_G;
+$utilService = Cloud::loadClass('Service_Util');
+$params = array(
+'s_site_gid' => $_G['groupid'],
+'response_type' => 'JSONP',
+);
+$params = $utilService->generateSiteSignUrl($params, false, true);
+$signUrlParams = json_encode($params);
+$discuz_mini_js_url = 'http://discuz.gtimg.cn/search/scripts/discuz_mini.js';
+$referer = htmlspecialchars($_SERVER['HTTP_REFERER']);?><?php
+$return = <<<EOF
+
+
+EOF;
+ if(empty($_GET['inajax'])) { 
+$return .= <<<EOF
+
+<script src="{$discuz_mini_js_url}" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+if (typeof DiscuzMini != 'undefined' && typeof DiscuzMini == 'object') {
+DiscuzMini.showMini('{$referer}', {$signUrlParams});
+}
+</script>
+
+EOF;
+ } 
+$return .= <<<EOF
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_index_forum_extra_output($forum_recwords) {
+global $_G;?><?php
+$return = <<<EOF
+
+    
+EOF;
+ if($forum_recwords) { 
+$return .= <<<EOF
+
+    <dd class="fl_g_hot">
+        <strong>热点: </strong>
+        
+EOF;
+ if(is_array($forum_recwords)) foreach($forum_recwords as $k => $frecword) { 
+$return .= <<<EOF
+<a class="xi2" href="{$frecword['url']}" target="_blank">{$frecword['word']}</a>
+EOF;
+ } 
+$return .= <<<EOF
+
+    </dd>
+    
+EOF;
+ } 
+$return .= <<<EOF
+
+
+EOF;
+?><?php return $return;?><?php }
+
+function tpl_cloudsearch_global_footer_suggest($queryString) {
+global $_G;?><?php
+$return = <<<EOF
+
+    <script type="text/javascript">
+    var cloudsearch_suggest = {};
+    cloudsearch_suggest.cache = {}; // 缓存
+    cloudsearch_suggest.sId = "{$_G['setting']['my_siteid']}";
+    cloudsearch_suggest.keyInterval = null; // 按住上下键时的setTimeout时间值
+    cloudsearch_suggest.requestTimeout = null; // 发送jsonp请求时的setTimeout时间值
+    cloudsearch_suggest.responseTimeout = null; // jsonp请求超时时的setTimeout时间值
+    cloudsearch_suggest.slideSpeed = 700; // 按住上下键时的滚动速度
+    cloudsearch_suggest.linenow = 0; // 当前所在行
+    cloudsearch_suggest.queryString = "{$queryString}"; // 当前所在行
+    
+    function cloudsearch_suggest_preventEnter(oEvent) {
+
+    	var code = oEvent.keyCode;
+        var lines = $('sg').getElementsByTagName('li');
+        
+        if ((38 == code || 40 == code) && !cloudsearch_suggest.keyInterval) {
+        	cloudsearch_suggest_moveOneStep(code, lines);
+        }
+    }
+    
+    function cloudsearch_suggest_moveOneStep(code, lines) {
+        
+    	if (38 == code || 40 == code) {
+            var panel = $('sg');
+            if ('block' == panel.style.display) {
+            	
+            	cloudsearch_suggest_clearStyle(); // 清掉所有li的选中状态
+                var suggestNum = lines.length;
+
+                if (38 == code) {
+                    if (cloudsearch_suggest.linenow > 1) {
+                    	cloudsearch_suggest.linenow--;
+                    } else {
+                    	cloudsearch_suggest.linenow = suggestNum;
+                    }
+                }
+
+                if (40 == code) {
+                	cloudsearch_suggest.linenow = (cloudsearch_suggest.linenow == suggestNum) ? 1 : (cloudsearch_suggest.linenow + 1);
+                }
+                lines[cloudsearch_suggest.linenow - 1].className = 'smo';
+            }
+            
+            cloudsearch_suggest.keyInterval = setTimeout(function() {cloudsearch_suggest_moveOneStep(code, lines);}, cloudsearch_suggest.slideSpeed);
+            cloudsearch_suggest.slideSpeed = 80;
+        }
+    }
+    
+    function cloudsearch_suggest_suggest(oEvent) {
+        
+    	var q = trim($('scbar_txt').value); // 输入框的输入
+        
+        var code = oEvent.keyCode; // 键盘按键值
+        var lines = $('sg').getElementsByTagName('li');
+
+        if (38 == code || 40 == code) { // up down
+            if (null != cloudsearch_suggest.keyInterval) {
+                clearTimeout(cloudsearch_suggest.keyInterval);
+                cloudsearch_suggest.keyInterval = null;
+                cloudsearch_suggest.slideSpeed = 700;
+            }
+            // 把所选值放入输入框(去除html标签)
+            $('scbar_txt').value = lines[cloudsearch_suggest.linenow - 1].innerHTML.replace(/<\s*(\/)?\s*[0-9a-zA-Z]+\s*>/g, '');
+        } else if (27 == code) { // ESC
+        	
+        	if (null != cloudsearch_suggest.requestTimeout) {
+                clearTimeout(cloudsearch_suggest.requestTimeout);
+            }
+        
+        	cloudsearch_suggest_hide();
+        } else {
+            if ('' != q) {
+                var data = cloudsearch_suggest_getCache(q);
+                if (data) {
+                	cloudsearch_suggest_menuMaker(data);
+                } else {
+                    if (null != cloudsearch_suggest.requestTimeout) {
+                        clearTimeout(cloudsearch_suggest.requestTimeout);
+                    }
+                    // 请求延时0.3秒执行,因为有可能用户是在持续输入
+                    cloudsearch_suggest.requestTimeout = setTimeout(function() {cloudsearch_suggest_sendRequest(q);}, 500); 
+                }
+            } else {
+            	
+            	if (null != cloudsearch_suggest.requestTimeout) {
+                    clearTimeout(cloudsearch_suggest.requestTimeout);
+                }
+            	
+            	cloudsearch_suggest_hide();
+            }
+        }
+    }
+
+    function cloudsearch_suggest_sendRequest(q) {
+    	
+    	// 删掉之前的请求(包括超时处理)
+    	if ($('cloudsearch_suggest') != null) {
+    		document.getElementsByTagName('head')[0].removeChild($('cloudsearch_suggest'));
+    		if (null != cloudsearch_suggest.responseTimeout) {
+                clearTimeout(cloudsearch_suggest.responseTimeout);
+            }
+    	}
+    	
+    	var script = document.createElement('script');
+        with (script) {
+        	src = 'http://search.discuz.qq.com/api/suggest?q=' + encodeURIComponent(q) + '&' + cloudsearch_suggest.queryString;
+        	id = 'cloudsearch_suggest';
+        	charset = 'utf-8';
+        }
+        
+        document.getElementsByTagName('head')[0].appendChild(script); // jsonp加载外域接口数据
+        cloudsearch_suggest.responseTimeout = setTimeout(function() {cloudsearch_suggest_clearRequest();}, 1000); // 0.5秒后没返回就抛弃
+    }
+    
+    function cloudsearch_suggest_clearRequest() {
+    	// 删掉之前的请求(包括超时处理)
+        if ($('cloudsearch_suggest') != null) {
+            document.getElementsByTagName('head')[0].removeChild($('cloudsearch_suggest'));
+        }
+    }
+
+    function cloudsearch_suggest_callback(data) {
+    	
+    	if (typeof data != undefined && 0 == data.status) {
+    		
+cloudsearch_suggest_menuMaker(data.result);
+
+    		cloudsearch_suggest_setCache(data.q, data.result);
+    	}
+    }
+
+function cloudsearch_suggest_menuMaker(data) {
+
+if (data.length > 0) {
+
+var list = '<ul>';
+    		for (var i = 0; i < data.length; i++) {
+    			  list += '<li class="sml" onmouseover="cloudsearch_suggest_mouseOver(this);" onclick="cloudsearch_suggest_mouseClick(this);">' + data[i] + '</li>';
+    		}
+    		list += '</ul>';
+$('st_box').innerHTML = list;
+    		
+    		cloudsearch_suggest_show();
+}
+}
+    
+    function cloudsearch_suggest_mouseClick(obj) {
+    	$('scbar_txt').value = obj.innerHTML.replace(/<\s*(\/)?\s*[0-9a-zA-Z]+\s*>/g, '');
+    	$('scbar_btn').click();
+    }
+    
+    function cloudsearch_suggest_mouseOver(obj) {
+    	cloudsearch_suggest_clearStyle(); // 清掉之前的选中状态
+    	obj.className = "smo"; // 当前的li设置为选中状态
+    	
+    	// 把linenow设置为当前悬停的值
+        var lis = $('st_box').getElementsByTagName('li');
+        if (typeof lis != undefined && lis.length > 0) {
+            for (var i = 0; i < lis.length; i++) {
+                if (lis[i] == obj) {
+                	cloudsearch_suggest.linenow = i + 1;
+                	break;
+                }
+            }
+        }
+    }
+    
+    function cloudsearch_suggest_show(oEvent) {
+    	cloudsearch_suggest.linenow = 0;
+    	cloudsearch_suggest.slideSpeed = 700;
+        $('sg').style.display = 'block';
+$('scbar_txt').focus();
+    }
+    
+    function cloudsearch_suggest_hide() {
+    	$('sg').style.display = 'none';
+    }
+    
+    function cloudsearch_suggest_setCache(key, data) {
+    	cloudsearch_suggest.cache[key] = data;
+    }
+    
+    function cloudsearch_suggest_getCache(key) {
+        return cloudsearch_suggest.cache[key];
+    }
+    
+    function cloudsearch_suggest_clearStyle() {
+    	var lis = $('st_box').getElementsByTagName('li');
+    	if (typeof lis != undefined && lis.length > 0) {
+    		for (var i = 0; i < lis.length; i++) {
+    			lis[i].className = 'sml';
+    		}
+    	}
+    }
+
+function cloudsearch_suggest_sgMouseOver() {
+$('scbar_txt').focus();
+_detachEvent($('scbar_txt'), 'blur', cloudsearch_suggest_hide);
+}
+
+function cloudsearch_suggest_sgMouseOut() {
+cloudsearch_suggest_clearStyle();
+_attachEvent($('scbar_txt'), 'blur', cloudsearch_suggest_hide);
+}
+    
+if (!BROWSER.ie || BROWSER.ie > 6) {
+// 输入框绑定onkeydown和onkeyup事件
+_attachEvent($('scbar_txt'), 'keydown', cloudsearch_suggest_preventEnter);
+_attachEvent($('scbar_txt'), 'keyup', cloudsearch_suggest_suggest);
+_attachEvent($('scbar_txt'), 'blur', cloudsearch_suggest_hide);
+_attachEvent($('sg'), 'mouseover', cloudsearch_suggest_sgMouseOver);
+_attachEvent($('sg'), 'mouseout', cloudsearch_suggest_sgMouseOut);
+}
+    </script>
+
+EOF;
+?><?php return $return;?><?php }?>

+ 109 - 0
data/template/5_diy_group_index.tpl.php

xqd
@@ -0,0 +1,109 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');?><?php include template('common/header'); ?><div id="pt" class="bm cl">
+<div class="z">
+<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a><em>&raquo;</em><a href="group.php"><?php echo $_G['setting']['navs']['3']['navname'];?></a><?php echo $navigation;?>
+</div>
+</div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
+<div class="wp">
+<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
+</div>
+<div id="ct" class="ct2 wp cl">
+<div class="mn">
+<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
+<div class="bm bmw">
+<div class="bm_h cl">
+<span class="y xw1"><a href="group.php?mod=my">我的<?php echo $_G['setting']['navs']['3']['navname'];?> &rsaquo;</a></span>
+<h2><?php echo $_G['setting']['navs']['3']['navname'];?>焦点</h2>
+</div>
+<!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
+</div>
+<!--[diy=diycommendtop]--><div id="diycommendtop" class="area"></div><!--[/diy]-->
+<?php if(!empty($_G['setting']['pluginhooks']['index_header'])) echo $_G['setting']['pluginhooks']['index_header'];?>
+<div id="g_commend" class="bm">
+<div class="bm_h cl">
+<h2>推荐<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
+</div>
+<div class="bm_c cl"><?php if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?><dl class="xld">
+<dd class="m"><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><img src="<?php echo $val['icon'];?>" alt="<?php echo $val['name'];?>" width="48" height="48" /></a></dd>
+<dt><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><?php echo $val['name'];?></a></dt>
+<dd class="xg1"><?php echo $val['description'];?></dd>
+</dl>
+<?php } ?>
+</div>
+</div>
+
+<!--[diy=diycategorytop]--><div id="diycategorytop" class="area"></div><!--[/diy]-->
+<?php if(!empty($_G['setting']['pluginhooks']['index_top'])) echo $_G['setting']['pluginhooks']['index_top'];?>
+<div class="bm">
+<div class="bm_h cl">
+<h2><?php echo $_G['setting']['navs']['3']['navname'];?>分类</h2>
+</div>
+<div class="bm_c"><?php if(is_array($first)) foreach($first as $groupid => $group) { ?><dl class="mbm pbm bbda">
+<dt class="pbn">
+<span class="y xi2"><?php if(is_array($group['secondlist'])) foreach($group['secondlist'] as $fid) { ?><a href="group.php?sgid=<?php echo $fid;?>"><?php echo $second[$fid]['name'];?></a> <?php } ?><a href="group.php?gid=<?php echo $groupid;?>">更多 &rsaquo;</a></span>
+<strong class="xs2"><a href="group.php?gid=<?php echo $groupid;?>"><?php echo $group['name'];?></a></strong><?php if($group['groupnum']) { ?><span class="xg1">(<?php echo $group['groupnum'];?>)</span><?php } ?>
+</dt>
+<dd><?php if(is_array($lastupdategroup[$groupid])) foreach($lastupdategroup[$groupid] as $val) { ?><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><?php echo $val['name'];?></a> &nbsp;&nbsp;
+<?php } ?>
+</dd>
+</dl>
+<?php } ?>
+</div>
+</div>
+<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
+<?php if(!empty($_G['setting']['pluginhooks']['index_bottom'])) echo $_G['setting']['pluginhooks']['index_bottom'];?>
+</div>
+
+<div class="sd">
+<div class="drag">
+<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
+</div>
+<?php if(!empty($_G['setting']['pluginhooks']['index_side_top'])) echo $_G['setting']['pluginhooks']['index_side_top'];?>
+<?php if(helper_access::check_module('group')) { if(empty($gid) && empty($sgid)) { ?>
+<div class="bm">
+<div class="bm_h cl">
+<h2>创建<?php echo $_G['setting']['navs']['3']['navname'];?>步骤</h2>
+</div>
+<div class="bm_c">
+<ul id="g_guide" class="mbm">
+<li><label><strong class="xi1">创建<?php echo $_G['setting']['navs']['3']['navname'];?></strong><span class="xg1">创建自己的地盘</span></label></li>
+<li><label><strong class="xi1">个性设置</strong><span class="xg1">精心打造<?php echo $_G['setting']['navs']['3']['navname'];?>空间</span></label></li>
+<li><label><strong class="xi1">邀请好友</strong><span class="xg1">邀请好友加入我的<?php echo $_G['setting']['navs']['3']['navname'];?></span></label></li>
+<li><label><strong class="xi1"><?php echo $_G['setting']['navs']['3']['navname'];?>升级</strong><span class="xg1"><?php echo $_G['setting']['navs']['3']['navname'];?>积分升级赢得社区推荐</span></label></li>
+</ul>
+<?php if(helper_access::check_module('group')) { ?>
+<a href="forum.php?mod=group&amp;action=create" id="create_group_btn"><img src="<?php echo IMGDIR;?>/create_group.png" alt="创建<?php echo $_G['setting']['navs']['3']['navname'];?>" /></a>
+<?php } ?>
+</div>
+</div>
+<?php } else { ?>
+<div class="bm bw0">
+<div class="bm_c">
+<a href="forum.php?mod=group&amp;action=create&amp;fupid=<?php echo $fup;?>&amp;groupid=<?php echo $sgid;?>" id="create_group_btn"><img src="<?php echo IMGDIR;?>/create_group.png" alt="创建<?php echo $_G['setting']['navs']['3']['navname'];?>" /></a>
+</div>
+</div>
+<?php } } ?>
+<div class="drag">
+<!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
+</div>
+<?php if($topgrouplist) { ?>
+<div id="g_top" class="bm">
+<div class="bm_h cl">
+<h2><?php echo $_G['setting']['navs']['3']['navname'];?>积分排行</h2>
+</div>
+<div class="bm_c">
+<ol class="xl"><?php if(is_array($topgrouplist)) foreach($topgrouplist as $fid => $group) { ?><li class="top1"><span class="y xi2 xg1"> <?php echo $group['commoncredits'];?></span><a href="forum.php?mod=group&amp;fid=<?php echo $group['fid'];?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></li>
+<?php } ?>
+</ol>
+</div>
+</div>
+<?php } ?>
+<div class="drag">
+<!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
+</div>
+<?php if(!empty($_G['setting']['pluginhooks']['index_side_bottom'])) echo $_G['setting']['pluginhooks']['index_side_bottom'];?>
+</div>
+</div>
+
+<div class="wp mtn">
+<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
+</div><?php include template('common/footer'); ?>

Diferenças do arquivo suprimidas por serem muito extensas
+ 474 - 0
zijia.sql


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff