| xqd
@@ -0,0 +1,1470 @@
|
|
|
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('group');
|
|
|
+0
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_index.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_list.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_memberlist.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_create.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_invite.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_manage.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_right.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seccheck.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
|
|
|
+;?>
|
|
|
+<?php include template('common/header_no_nav'); ?>
|
|
|
+ <link rel="stylesheet" type="text/css" href="data/cache/slick/slick.css"/>
|
|
|
+ <link rel="stylesheet" type="text/css" href="data/cache/slick/slick-theme.css"/>
|
|
|
+ <link rel="stylesheet" type="text/css" href="data/cache/font-awesome/css/fontawesome-all.min.css"/>
|
|
|
+ <script type="text/javascript" src="data/cache/jquery-3.3.1.min.js"></script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var sgjQuery= jQuery.noConflict();
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript" src="data/cache/slick/slick.min.js"></script>
|
|
|
+ <script type="text/javascript" src="/data/cache/area-select/area.js"></script>
|
|
|
+ <script src="static/js/forum_post.js?tDV" type="text/javascript"></script>
|
|
|
+ <style type="text/css">
|
|
|
+ .sg-group-link {
|
|
|
+ font-size: 2em;
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 15px 0;
|
|
|
+ }
|
|
|
+ .sg-group-link a {
|
|
|
+ text-decoration: none;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <div id="pt" class="bm cl" style="height: auto;">
|
|
|
+ <div class="z sg-group-link">
|
|
|
+ <a href="./" title="首页">首页</a>
|
|
|
+ <span>-</span>
|
|
|
+ <a href="/group.php">俱乐部</a>
|
|
|
+ <?php if($groupnav) { ?>
|
|
|
+ <span>-</span>
|
|
|
+ <?php echo $groupnav;?>
|
|
|
+ <?php } elseif($action == 'create') { ?>
|
|
|
+ <span>-</span>
|
|
|
+ <a href="#">创建</a>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <!--<div class="z">-->
|
|
|
+ <!--<a href="./" class="nvhm" title="首页">--><?php //echo $_G['setting']['bbname'];?><!--</a><em>›</em><a href="group.php">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</a>--><?php //if($groupnav) { ?><!----><?php //echo $groupnav;?><!----><?php //} elseif($action == 'create') { ?><!--<em>›</em>创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!----><?php //} ?>
|
|
|
+ <!--</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 week_ct2">
|
|
|
+ <?php if($action != 'create') { ?>
|
|
|
+ <div class="sg-carousel">
|
|
|
+ <div class="sg-group-slick">
|
|
|
+ <img src="/data/attachment/group/slick/111.png">
|
|
|
+ <img src="/data/attachment/group/slick/222.png">
|
|
|
+ <img src="/data/attachment/group/slick/333.png">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php }?>
|
|
|
+ <div class="mn wk_f_mn padding15 backfff">
|
|
|
+ <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
|
|
+ <?php if($action != 'create') { if($_G['forum']['banner']) { ?>
|
|
|
+ <div id="gh">
|
|
|
+ <img src="<?php echo $_G['forum']['banner'];?>" alt="" />
|
|
|
+ <div class="bm bmw bw0">
|
|
|
+ <div class="bm_h bw0 cl">
|
|
|
+ <h1 class="xs2"><?php echo $_G['forum']['name'];?></h1>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <?php if($_G['forum']['description']) { ?><div class="pbn"><?php echo $_G['forum']['description'];?></div><?php } ?>
|
|
|
+ <div>
|
|
|
+ <a href="home.php?mod=spacecp&ac=favorite&type=group&id=<?php echo $_G['forum']['fid'];?>&handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&fid=<?php echo $_G['fid'];?>&auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?>
|
|
|
+ <span class="pipe">|</span><?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a><?php } ?>
|
|
|
+ </div>
|
|
|
+ <?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
|
|
|
+ <div class="ptm pbn">
|
|
|
+ <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
|
|
|
+ </div>
|
|
|
+ <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
|
|
|
+ <p class="mtm">
|
|
|
+ 加入方式:
|
|
|
+ <?php if($_G['forum']['jointype'] == 1) { ?>
|
|
|
+ <strong>邀请加入</strong>
|
|
|
+ <?php } elseif($_G['forum']['jointype'] == 2) { ?>
|
|
|
+ <strong>审核加入</strong>
|
|
|
+ <?php } else { ?>
|
|
|
+ <strong>自由加入</strong>
|
|
|
+ <?php } ?>
|
|
|
+ 浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
|
|
|
+ </p>
|
|
|
+ <p class="mtm xi1">
|
|
|
+ <?php if($status == 3 || $status == 5) { ?>
|
|
|
+ 已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
|
|
|
+ <?php } elseif(helper_access::check_module('group')) { ?>
|
|
|
+ <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
|
|
|
+ <?php } ?>
|
|
|
+ </p>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } else { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <div class="bm_c xld xlda cl">
|
|
|
+ <dl>
|
|
|
+ <dd class="m"><img src="<?php echo $_G['forum']['icon'];?>" alt="<?php echo $_G['forum']['name'];?>" width="48" height="48" /></dd>
|
|
|
+ <dt><?php echo $_G['forum']['name'];?></dt>
|
|
|
+ <?php if($_G['forum']['description']) { ?><dd><?php echo $_G['forum']['description'];?></dd><?php } ?>
|
|
|
+ <dd class="cl">
|
|
|
+ <span class="y"><a href="home.php?mod=spacecp&ac=favorite&type=group&id=<?php echo $_G['forum']['fid'];?>&handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&fid=<?php echo $_G['fid'];?>&auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?></span>
|
|
|
+ <?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a> <?php } ?>
|
|
|
+ </dd>
|
|
|
+ <?php if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
|
|
|
+ <dd>
|
|
|
+ 加入方式:
|
|
|
+ <?php if($_G['forum']['jointype'] == 1) { ?>
|
|
|
+ <strong>邀请加入</strong>
|
|
|
+ <?php } elseif($_G['forum']['jointype'] == 2) { ?>
|
|
|
+ <strong>审核加入</strong>
|
|
|
+ <?php } else { ?>
|
|
|
+ <strong>自由加入</strong>
|
|
|
+ <?php } ?>
|
|
|
+ 浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
|
|
|
+ </dd>
|
|
|
+ <dd class="xi1">
|
|
|
+ <?php if($status == 3 || $status == 5) { ?>
|
|
|
+ 已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
|
|
|
+ <?php } elseif(helper_access::check_module('group')) { ?>
|
|
|
+ <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
|
|
|
+ <?php } ?>
|
|
|
+ </dd>
|
|
|
+ <?php } ?>
|
|
|
+ </dl>
|
|
|
+ <?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
|
|
|
+ <div class="ptm pbm">
|
|
|
+ <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
|
|
|
+ </div>
|
|
|
+ <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ <!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
|
|
|
+ <?php if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_top'])) echo $_G['setting']['pluginhooks']['group_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_top'];?><?php } if($status != 2 && $status != 3) { ?>
|
|
|
+ <div class="tb cl<?php if($action != 'manage') { ?> mbm<?php } ?>">
|
|
|
+ <?php if(in_array($_G['adminid'], array(1,2))) { ?><span class="a bw0_all y xi2"><a href="javascript:;" onclick="showWindow('grecommend<?php echo $_G['fid'];?>', 'forum.php?mod=group&action=recommend&fid=<?php echo $_G['fid'];?>');return false;">推荐到版块</a></span><?php } ?>
|
|
|
+ <ul id="groupnav">
|
|
|
+ <li <?php if($action == 'index') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&fid=<?php echo $_G['fid'];?>#groupnav" title="">首页</a></li>
|
|
|
+ <li <?php if($action == 'list') { ?>class="a"<?php } ?>><a href="forum.php?mod=forumdisplay&action=list&fid=<?php echo $_G['fid'];?>#groupnav" title="">讨论区</a></li>
|
|
|
+ <li <?php if($action == 'memberlist' || $action == 'invite') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&action=memberlist&fid=<?php echo $_G['fid'];?>#groupnav" title="">成员列表</a></li>
|
|
|
+ <?php if($_G['forum']['ismoderator']) { ?><li <?php if($action == 'manage') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&action=manage&fid=<?php echo $_G['fid'];?>#groupnav">管理<?php echo $_G['setting']['navs']['3']['navname'];?></a></li><?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_nav_extra'])) echo $_G['setting']['pluginhooks']['group_nav_extra'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_nav_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_nav_extra'];?><?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <?php } } if($action == 'index' && $status != 2 && $status != 3) { if($status != 2) { if($livethread) { ?>
|
|
|
+ <div id="livethread" class="tl bm bmw cl" style="padding:10px 15px;">
|
|
|
+ <div class="livethreadtitle vm">
|
|
|
+ <span class="replynumber xg1">回复 <span id="livereplies" class="xi1"><?php echo $livethread['replies'];?></span></span>
|
|
|
+ <a href="forum.php?mod=viewthread&tid=<?php echo $livethread['tid'];?>" target="_blank"><?php echo $livethread['subject'];?></a> <img src="<?php echo IMGDIR;?>/livethreadtitle.png" />
|
|
|
+ </div>
|
|
|
+ <div class="livethreadcon"><?php echo $livemessage;?></div>
|
|
|
+ <div id="livereplycontentout">
|
|
|
+ <div id="livereplycontent">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div id="liverefresh">有新的发言了,点击刷新</div>
|
|
|
+ <div id="livefastreply">
|
|
|
+ <form id="livereplypostform" method="post" action="forum.php?mod=post&action=reply&fid=<?php echo $_G['fid'];?>&tid=<?php echo $livethread['tid'];?>&replysubmit=yes&infloat=yes&handlekey=livereplypost&inajax=1" onsubmit="return livereplypostvalidate(this)">
|
|
|
+ <div id="livefastcomment">
|
|
|
+ <textarea id="livereplymessage" name="message" style="color:gray;<?php if(!$liveallowpostreply) { ?>display:none;<?php } ?>">#在这里快速回复#</textarea>
|
|
|
+ <?php if(!$liveallowpostreply) { ?>
|
|
|
+ <div>
|
|
|
+ <?php if(!$_G['uid']) { ?>
|
|
|
+ 您需要登录后才可以回帖 <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">登录</a> | <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2"><?php echo $_G['setting']['reglinkname'];?></a>
|
|
|
+ <?php } else { ?>
|
|
|
+ 您现在无权发帖。<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">点击查看原因</a>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <div id="livepostsubmit" style="display:none;">
|
|
|
+ <?php if($secqaacheck || $seccodecheck) { ?><?php
|
|
|
+ $sectpl = <<<EOF
|
|
|
+<sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
|
|
|
+EOF;
|
|
|
+ ?>
|
|
|
+ <div class="mtm sec" style="text-align:right;"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
|
|
|
+ $sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
|
|
|
+ <span id="secqaa_q<?php echo $sechash;?>"></span>
|
|
|
+ <script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
|
|
|
+ <?php } if($seccodecheck) { ?>
|
|
|
+ <span id="seccode_c<?php echo $sechash;?>"></span>
|
|
|
+ <script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
|
|
|
+ <?php } ?></div>
|
|
|
+ <?php } ?>
|
|
|
+ <p class="ptm pnpost" style="margin-bottom:10px;">
|
|
|
+ <button type="submit" name="replysubmit" class="pn pnc vm" style="float:right;" value="replysubmit" id="livereplysubmit">
|
|
|
+ <strong>发表</strong>
|
|
|
+ </button>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
|
|
|
+ <input type="hidden" name="subject" value=" ">
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <span id="livereplypostreturn"></span>
|
|
|
+ </div>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
|
|
|
+ var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
|
|
|
+ var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
|
|
|
+ var replycontentlist = new Array();
|
|
|
+ var addreplylist = new Array();
|
|
|
+ var timeoutid = timeid = movescrollid = waitescrollid = null;
|
|
|
+ var replycontentnum = 0;
|
|
|
+ getnewlivepostlist(1);
|
|
|
+ timeid = setInterval(getnewlivepostlist, 5000);
|
|
|
+ $('livereplycontent').style.width = ($('livereplycontentout').clientWidth - 50) + 'px';
|
|
|
+ $('livereplymessage').onfocus = function() {
|
|
|
+ if(this.style.color == 'gray') {
|
|
|
+ this.value = '';
|
|
|
+ this.style.color = 'black';
|
|
|
+ $('livepostsubmit').style.display = 'block';
|
|
|
+ this.style.height = '56px';
|
|
|
+ $('livefastcomment').style.height = '57px';
|
|
|
+ }
|
|
|
+ };
|
|
|
+ $('livereplymessage').onblur = function() {
|
|
|
+ if(this.value == '') {
|
|
|
+ this.style.color = 'gray';
|
|
|
+ this.value = '#在这里快速回复#';
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ $('liverefresh').onclick = function() {
|
|
|
+ $('livereplycontent').style.position = 'absolute';
|
|
|
+ getnewlivepostlist();
|
|
|
+ this.style.display = 'none';
|
|
|
+ };
|
|
|
+
|
|
|
+ $('livereplycontentout').onmouseover = function(e) {
|
|
|
+
|
|
|
+ if($('livereplycontent').style.position == 'absolute' && $('livereplycontent').clientHeight > 215) {
|
|
|
+ $('livereplycontent').style.position = 'static';
|
|
|
+ this.scrollTop = this.scrollHeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.scrollTop + this.clientHeight != this.scrollHeight) {
|
|
|
+ clearInterval(timeid);
|
|
|
+ clearTimeout(timeoutid);
|
|
|
+ clearInterval(movescrollid);
|
|
|
+ timeid = timeoutid = movescrollid = null;
|
|
|
+
|
|
|
+ if(waitescrollid == null) {
|
|
|
+ waitescrollid = setTimeout(function() {
|
|
|
+ $('liverefresh').style.display = 'block';
|
|
|
+ }, 60000 * 10);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ clearTimeout(waitescrollid);
|
|
|
+ waitescrollid = null;
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ $('livereplycontentout').onmouseout = function(e) {
|
|
|
+
|
|
|
+ if(this.scrollTop + this.clientHeight == this.scrollHeight) {
|
|
|
+ $('livereplycontent').style.position = 'absolute';
|
|
|
+ clearInterval(timeid);
|
|
|
+ timeid = setInterval(getnewlivepostlist, 10000);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ function getnewlivepostlist(first) {
|
|
|
+ var x = new Ajax('JSON');
|
|
|
+ x.getJSON('forum.php?mod=misc&action=livelastpost&fid=<?php echo $livethread['fid'];?>', function(s, x) {
|
|
|
+ var count = s.data.count;
|
|
|
+ $('livereplies').innerHTML = count;
|
|
|
+ var newpostlist = s.data.list;
|
|
|
+ for(i in newpostlist) {
|
|
|
+ var postid = i;
|
|
|
+ var postcontent = '';
|
|
|
+ postcontent += '<dt><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].avatar + '</a></dt>';
|
|
|
+ postcontent += '<dd><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].author + '</a></dd>';
|
|
|
+ postcontent += '<dd>' + newpostlist[i].message + '</dd>';
|
|
|
+ postcontent += '<dd class="dateline">' + newpostlist[i].dateline + '</dd>';
|
|
|
+ if(replycontentlist[postid]) {
|
|
|
+ $('livereply_' + postid).innerHTML = postcontent;
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ addreplylist[postid] = '<dl id="livereply_' + postid + '">' + postcontent + '</dl>';
|
|
|
+ }
|
|
|
+ if(first) {
|
|
|
+ for(i in addreplylist) {
|
|
|
+ replycontentlist[i] = addreplylist[i];
|
|
|
+ replycontentnum++;
|
|
|
+ var div = document.createElement('div');
|
|
|
+ div.innerHTML = addreplylist[i];
|
|
|
+ $('livereplycontent').appendChild(div);
|
|
|
+ delete addreplylist[i];
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ livecontentfacemove();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function livecontentfacemove() {
|
|
|
+//note 从队列中取出数据
|
|
|
+ var reply = '';
|
|
|
+ for(i in addreplylist) {
|
|
|
+ reply = replycontentlist[i] = addreplylist[i];
|
|
|
+ replycontentnum++;
|
|
|
+ delete addreplylist[i];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ if(reply) {
|
|
|
+ var div = document.createElement('div');
|
|
|
+ div.innerHTML = reply;
|
|
|
+ var oldclientHeight = $('livereplycontent').clientHeight;
|
|
|
+ $('livereplycontent').appendChild(div);
|
|
|
+ $('livereplycontentout').style.overflowY = 'hidden';
|
|
|
+ $('livereplycontent').style.bottom = oldclientHeight - $('livereplycontent').clientHeight + 'px';
|
|
|
+
|
|
|
+ if(replycontentnum > 20) {
|
|
|
+ $('livereplycontent').removeChild($('livereplycontent').firstChild);
|
|
|
+ for(i in replycontentlist) {
|
|
|
+ delete replycontentlist[i];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ replycontentnum--;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!movescrollid) {
|
|
|
+ movescrollid = setInterval(function() {
|
|
|
+ if(parseInt($('livereplycontent').style.bottom) < 0) {
|
|
|
+ $('livereplycontent').style.bottom =
|
|
|
+ ((parseInt($('livereplycontent').style.bottom) + 5) > 0 ? 0 : (parseInt($('livereplycontent').style.bottom) + 5)) + 'px';
|
|
|
+ } else {
|
|
|
+ $('livereplycontentout').style.overflowY = 'auto';
|
|
|
+ clearInterval(movescrollid);
|
|
|
+ movescrollid = null;
|
|
|
+ timeoutid = setTimeout(livecontentfacemove, 1000);
|
|
|
+ }
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function livereplypostvalidate(theform) {
|
|
|
+ var s;
|
|
|
+ if(theform.message.value == '' || $('livereplymessage').style.color == 'gray') {
|
|
|
+ s = '抱歉,您尚未输入内容';
|
|
|
+ }
|
|
|
+ if(s) {
|
|
|
+ showError(s);
|
|
|
+ doane();
|
|
|
+ $('livereplysubmit').disabled = false;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $('livereplysubmit').disabled = true;
|
|
|
+ theform.message.value = theform.message.value.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, '$1[img]$2[/img]');
|
|
|
+ theform.message.value = parseurl(theform.message.value);
|
|
|
+ ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ function succeedhandle_livereplypost(url, msg, param) {
|
|
|
+ $('livereplymessage').value = '';
|
|
|
+ $('livereplycontent').style.position = 'absolute';
|
|
|
+ if(param['sechash']) {
|
|
|
+ updatesecqaa(param['sechash']);
|
|
|
+ updateseccode(param['sechash']);
|
|
|
+ }
|
|
|
+ getnewlivepostlist();
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <?php } if(helper_access::check_module('group')) { ?>
|
|
|
+ <div id="pgt" class="bm bw0 pgs cl">
|
|
|
+ <div class="pg">
|
|
|
+ <a href="forum.php?mod=forumdisplay&action=list&fid=<?php echo $_G['fid'];?>" class="nxt">查看所有主题</a>
|
|
|
+ </div>
|
|
|
+ <a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ <div class="tl bm bml">
|
|
|
+ <div class="th">
|
|
|
+ <table cellpadding="0" cellspacing="0" border="0">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <td class="icn"> </td>
|
|
|
+ <th>最新主题</th>
|
|
|
+ <td class="by">作者/时间</td>
|
|
|
+ <td class="num">回复/查看</td>
|
|
|
+ <td class="by">最后发表</td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <?php if($newthreadlist['dateline']['data']) { ?>
|
|
|
+ <table cellpadding="0" cellspacing="0" border="0">
|
|
|
+ <tbody id="<?php echo $thread['id'];?>"><?php if(is_array($newthreadlist['dateline']['data'])) foreach($newthreadlist['dateline']['data'] as $thread) { ?><tr>
|
|
|
+ <td class="icn">
|
|
|
+ <a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>" title="新窗口打开" target="_blank">
|
|
|
+ <?php if($thread['folder'] == 'lock') { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/folder_lock.gif" />
|
|
|
+ <?php } elseif($thread['special'] == 1) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
|
|
|
+ <?php } elseif($thread['special'] == 2) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
|
|
|
+ <?php } elseif($thread['special'] == 3) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
|
|
|
+ <?php } elseif($thread['special'] == 4) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
|
|
|
+ <?php } elseif($thread['special'] == 5) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
|
|
|
+ <?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']];?>" />
|
|
|
+ <?php } else { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
|
|
|
+ <?php } ?>
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ <th>
|
|
|
+ <span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>" class="xst"><?php echo $thread['subject'];?></a></span>
|
|
|
+ </th>
|
|
|
+ <td class="by">
|
|
|
+ <cite>
|
|
|
+ <?php if($thread['authorid'] && $thread['author']) { ?>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a>
|
|
|
+ <?php } else { if($_G['forum']['ismoderator']) { ?>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $thread['authorid'];?>">匿名</a>
|
|
|
+ <?php } else { ?>
|
|
|
+ 匿名
|
|
|
+ <?php } } ?>
|
|
|
+ </cite>
|
|
|
+ <em><?php echo $thread['dateline'];?></em>
|
|
|
+ </td>
|
|
|
+ <td class="num">
|
|
|
+ <a class="xi2" href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>"><?php echo $thread['allreplies'];?></a><em><?php echo $thread['views'];?></em>
|
|
|
+ </td>
|
|
|
+ <td class="by">
|
|
|
+ <cite>
|
|
|
+ <?php if($thread['lastposterenc']) { ?>
|
|
|
+ <a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a>
|
|
|
+ <?php } else { ?>
|
|
|
+ 匿名
|
|
|
+ <?php } ?>
|
|
|
+ </cite>
|
|
|
+ <em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ </tbody>
|
|
|
+ <?php if($_G['forum']['threads'] > 10) { ?>
|
|
|
+ <tbody>
|
|
|
+ <tr class="bw0_all">
|
|
|
+ <td colspan="5" class="ptm"><a href="forum.php?mod=forumdisplay&action=list&fid=<?php echo $_G['fid'];?>#groupnav" class="y xi2">点击查看更多话题</a></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <?php } ?>
|
|
|
+ </table>
|
|
|
+ <?php } else { ?>
|
|
|
+ <p class="emp">本版块或指定的范围内尚无主题。</p>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bm bml">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>成员动态</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <?php if($groupfeedlist) { ?>
|
|
|
+ <ul class="el"><?php if(is_array($groupfeedlist)) foreach($groupfeedlist as $feed) { ?><li>
|
|
|
+ <img src="<?php echo $feed['icon_image'];?>" class="t" />
|
|
|
+ <?php if(!empty($feed['title_template'])) { ?><?php echo $feed['title_template'];?><?php } ?> <?php if(!empty($feed['body_data']['subject'])) { ?><?php echo $feed['body_data']['subject'];?><?php } ?>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } else { ?>
|
|
|
+ <p class="emp">本<?php echo $_G['setting']['navs']['3']['navname'];?>没有最新动态</p>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
|
|
|
+ <ul class="p_pop" id="newspecial_menu" style="display: none">
|
|
|
+ <?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
|
|
|
+ <li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
|
|
|
+ <?php } } } if($_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $id => $threadsorts) { if($_G['forum']['threadsorts']['show'][$id]) { ?>
|
|
|
+ <li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&extra=<?php echo $extra;?>&sortid=<?php echo $id;?>"><?php echo $threadsorts;?></a></li>
|
|
|
+ <?php } } } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } } } elseif($action == 'list') { if($_G['forum']['ismoderator']) { ?>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>forum_moderate.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <?php } ?>
|
|
|
+ <div id="pgt" class="bm bw0 pgs cl">
|
|
|
+ <?php echo $multipage;?>
|
|
|
+ <?php if(helper_access::check_module('group')) { ?>
|
|
|
+ <span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&fid=<?php echo $_G['fid'];?>">返回首页</a></span>
|
|
|
+
|
|
|
+ <a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
|
|
|
+ <?php } ?>
|
|
|
+ <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_top'];?>
|
|
|
+ </div>
|
|
|
+ <?php if($_G['forum']['threadtypes']) { ?>
|
|
|
+ <ul class="ttp bm cl">
|
|
|
+ <li id="ttp_all"<?php if(!$_GET['typeid']) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&action=list&fid=<?php echo $_G['fid'];?>">全部</a></li>
|
|
|
+ <?php if($_G['forum']['threadtypes']) { if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $id => $name) { ?><li<?php if($_GET['typeid'] == $id) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&action=list&fid=<?php echo $_G['fid'];?><?php if($_GET['typeid'] != $id) { ?>&filter=typeid&typeid=<?php echo $id;?><?php echo $forumdisplayadd['typeid'];?><?php } ?>"><?php echo $name;?></a>
|
|
|
+ <?php } } ?>
|
|
|
+ <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_filter_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_filter_extra'];?>
|
|
|
+ </ul>
|
|
|
+ <?php } ?>
|
|
|
+ <div id="threadlist" class="tl bm" style="position: relative;">
|
|
|
+ <div class="th">
|
|
|
+ <table cellpadding="0" cellspacing="0">
|
|
|
+ <tr>
|
|
|
+ <td class="icn"> </td>
|
|
|
+ <?php if($_G['forum']['ismoderator']) { ?><td class="o"> </td><?php } ?>
|
|
|
+ <th>帖子</th>
|
|
|
+ <td class="by">作者/时间</td>
|
|
|
+ <td class="num">回复/查看</td>
|
|
|
+ <td class="by">最后发表</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=<?php echo $_G['fid'];?>&infloat=yes&nopost=yes">
|
|
|
+ <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
|
|
|
+ <input type="hidden" name="listextra" value="<?php echo $extra;?>" />
|
|
|
+ <table cellpadding="0" cellspacing="0" border="0">
|
|
|
+ <?php if($_G['forum_threadcount']) { ?>
|
|
|
+ <tbody class="emptb"><tr><td class="icn"></td><?php if($_G['forum']['ismoderator']) { ?><td class="o"></td><?php } ?><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody><?php if(is_array($_G['forum_threadlist'])) foreach($_G['forum_threadlist'] as $key => $thread) { ?><?php echo adshow("threadlist");?><tbody id="<?php echo $thread['id'];?>">
|
|
|
+ <tr>
|
|
|
+ <td class="icn">
|
|
|
+ <a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&extra=<?php echo $extra;?>" title="新窗口打开" target="_blank">
|
|
|
+ <?php if($thread['folder'] == 'lock') { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/folder_lock.gif" />
|
|
|
+ <?php } elseif($thread['special'] == 1) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
|
|
|
+ <?php } elseif($thread['special'] == 2) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
|
|
|
+ <?php } elseif($thread['special'] == 3) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
|
|
|
+ <?php } elseif($thread['special'] == 4) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
|
|
|
+ <?php } elseif($thread['special'] == 5) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
|
|
|
+ <?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']];?>" />
|
|
|
+ <?php } else { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
|
|
|
+ <?php } ?>
|
|
|
+ </td>
|
|
|
+ <?php if($_G['forum']['ismoderator']) { ?>
|
|
|
+ <td class="o">
|
|
|
+ <?php if($thread['fid'] == $_G['fid']) { if($thread['displayorder'] <= 3 || $_G['adminid'] == 1) { ?>
|
|
|
+ <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" class="pc" value="<?php echo $thread['tid'];?>" />
|
|
|
+ <?php } else { ?>
|
|
|
+ <input type="checkbox" disabled="disabled" />
|
|
|
+ <?php } } else { ?>
|
|
|
+ <input type="checkbox" disabled="disabled" />
|
|
|
+ <?php } ?>
|
|
|
+ </td>
|
|
|
+ <?php } ?>
|
|
|
+ <th>
|
|
|
+ <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_thread'][$key])) echo $_G['setting']['pluginhooks']['forumdisplay_thread'][$key];?>
|
|
|
+ <?php if($thread['moved']) { if($_G['forum']['ismoderator']) { ?>
|
|
|
+ <a href="forum.php?mod=topicadmin&action=moderate&optgroup=3&operation=delete&tid=<?php echo $thread['moved'];?>" onclick="showWindow('mods', this.href);return false">移动:</a>
|
|
|
+ <?php } else { ?>
|
|
|
+ 移动:
|
|
|
+ <?php } } ?>
|
|
|
+ <?php echo $thread['typehtml'];?>
|
|
|
+ <span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&extra=<?php echo $extra;?>"<?php echo $thread['highlight'];?> class="xst"><?php echo $thread['subject'];?></a></span>
|
|
|
+ <?php if($thread['readperm']) { ?> - [阅读权限 <span class="xw1"><?php echo $thread['readperm'];?></span>]<?php } if($thread['price'] > 0) { if($thread['special'] == '3') { ?>
|
|
|
+ - <span style="color: #C60">[悬赏<span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['title'];?>]</span>
|
|
|
+ <?php } else { ?>
|
|
|
+ - [售价 <span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>]
|
|
|
+ <?php } } elseif($thread['special'] == '3' && $thread['price'] < 0) { ?>
|
|
|
+ - <span style="color: #269F11">[已解决]</span>
|
|
|
+ <?php } if($thread['attachment'] == 2) { ?>
|
|
|
+ <img src="<?php echo STATICURL;?>image/filetype/image_s.gif" alt="图片附件" align="absmiddle" />
|
|
|
+ <?php } elseif($thread['attachment'] == 1) { ?>
|
|
|
+ <img src="<?php echo STATICURL;?>image/filetype/common.gif" alt="附件" align="absmiddle" />
|
|
|
+ <?php } if($thread['displayorder'] == 0) { if($thread['recommendicon']) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/recommend_<?php echo $thread['recommendicon'];?>.gif" align="absmiddle" alt="recommend" title="评价指数 <?php echo $thread['recommends'];?>" />
|
|
|
+ <?php } if($thread['heatlevel']) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/hot_<?php echo $thread['heatlevel'];?>.gif" align="absmiddle" alt="heatlevel" title="<?php echo $thread['heatlevel'];?> 级热门" />
|
|
|
+ <?php } if($thread['digest'] > 0) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/digest_<?php echo $thread['digest'];?>.gif" align="absmiddle" alt="digest" title="精华 <?php echo $thread['digest'];?>" />
|
|
|
+ <?php } if($thread['rate'] > 0) { ?>
|
|
|
+ <img src="<?php echo IMGDIR;?>/agree.gif" align="absmiddle" alt="agree" title="帖子被加分" />
|
|
|
+ <?php } } if($thread['multipage']) { ?>
|
|
|
+ <span class="tps"><?php echo $thread['multipage'];?></span>
|
|
|
+ <?php } ?>
|
|
|
+ </th>
|
|
|
+ <td class="by">
|
|
|
+ <cite>
|
|
|
+ <?php if($thread['authorid'] && $thread['author']) { ?>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a><?php if(!empty($verify[$thread['authorid']])) { ?><?php echo $verify[$thread['authorid']];?><?php } } else { if($_G['forum']['ismoderator']) { ?>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $thread['authorid'];?>">匿名</a>
|
|
|
+ <?php } else { ?>
|
|
|
+ 匿名
|
|
|
+ <?php } } ?>
|
|
|
+ </cite>
|
|
|
+ <em><?php echo $thread['dateline'];?></em>
|
|
|
+ </td>
|
|
|
+ <td class="num">
|
|
|
+ <?php echo $thread['allreplies'];?><em><?php echo $thread['views'];?></em>
|
|
|
+ </td>
|
|
|
+ <td class="by">
|
|
|
+ <cite><?php if($thread['lastposter']) { ?><a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a></cite><?php } else { ?>匿名<?php } ?></cite><em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost<?php echo $highlight;?>#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <?php } } else { ?>
|
|
|
+ <tbody><tr><th colspan="6"><p class="emp">本版块或指定的范围内尚无主题。</p></th></tr></tbody>
|
|
|
+ <?php } ?>
|
|
|
+ </table>
|
|
|
+ <?php if($_G['forum']['ismoderator'] && $_G['forum_threadcount']) { include template('forum/topicadmin_modlayer'); } ?>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php if(helper_access::check_module('group')) { ?>
|
|
|
+ <div class="bm bw0 pgs cl">
|
|
|
+ <?php echo $multipage;?>
|
|
|
+ <span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&fid=<?php echo $_G['fid'];?>">返回首页</a></span>
|
|
|
+ <a href="javascript:;" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
|
|
|
+ <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'];?>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <?php if($_G['setting']['fastpost']) { include template('forum/forumdisplay_fastpost'); } if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
|
|
|
+ <ul class="p_pop" id="newspecial_menu" style="display: none">
|
|
|
+ <?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
|
|
|
+ <li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>&specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
|
|
|
+ <?php } } } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } } } elseif($action == 'memberlist') { if($op == 'alluser') { if($adminuserlist) { ?>
|
|
|
+ <div class="bm bml">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>管理成员</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
|
|
|
+ <?php if($user['level'] == 1) { ?>
|
|
|
+ <em class="gm"></em>
|
|
|
+ <?php } elseif($user['level'] == 2) { ?>
|
|
|
+ <em class="gm" style="filter:alpha(opacity=50); opacity: 0.5"></em>
|
|
|
+ <?php } if($user['online']) { ?>
|
|
|
+ <em class="gol" style="margin-top: 15px;"></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if($staruserlist || $alluserlist) { ?>
|
|
|
+ <div class="bm bml">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>成员</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <?php if($staruserlist) { ?>
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
|
|
|
+ <em class="gs"></em>
|
|
|
+ <?php if($user['online']) { ?>
|
|
|
+ <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?> title="在线"></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } if($alluserlist) { ?>
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($alluserlist)) foreach($alluserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" class="avt" c="1"><?php echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if($multipage) { ?><div class="pgs cl"><?php echo $multipage;?></div><?php } } } elseif($action == 'create') { ?><div class="bm bml" id="main_messaqge">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h1 class="xs2">创建我的俱乐部<?php //echo $_G['setting']['navs']['3']['navname'];?>
|
|
|
+ <?php if($_G['setting']['groupmod']) { ?> (需要审核开通)<?php } ?>
|
|
|
+ </h1>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" onsubmit="checkCategory();ajaxpost('groupform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="forum.php?mod=group&action=create" enctype="multipart/form-data">
|
|
|
+ <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
|
|
|
+ <input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
|
|
|
+ <input type="hidden" name="handlekey" value="creategroup" />
|
|
|
+ <table cellspacing="0" cellpadding="0" class="tfm" summary="创建<?php echo $_G['setting']['navs']['3']['navname'];?>">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td>
|
|
|
+ <style type="text/css">
|
|
|
+ #returnmessage4 { display: none; color: <?php echo NOTICETEXT;?>; font-weight: bold; }
|
|
|
+ #returnmessage4.onerror { display: block; }
|
|
|
+ </style>
|
|
|
+ <p id="returnmessage4"></p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><strong class="rq y">*</strong><?php //echo $_G['setting']['navs']['3']['navname'];?>俱乐部名称</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="name" id="name" class="px" size="36" tabindex="1" value="" autocomplete="off" onBlur="checkgroupname()" tabindex="1" />
|
|
|
+ <span id="groupnamecheck" class="xi1"></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><strong class="rq y">*</strong>所属地区</th>
|
|
|
+ <td>
|
|
|
+ <select id="s_province" name="province"></select>
|
|
|
+
|
|
|
+ <select id="s_city" name="city" ></select>
|
|
|
+
|
|
|
+ <select id="s_county" name="county"></select>
|
|
|
+ <em id="secondgroup"></em>
|
|
|
+ <span id="groupcategorycheck" class="xi1"></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <th><strong class="rq y">*</strong>所属分类:</th>-->
|
|
|
+<!-- <td>-->
|
|
|
+<!-- <select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">-->
|
|
|
+<!-- <option value="0">请选择</option>-->
|
|
|
+<!-- --><?php //echo $groupselect['first'];?>
|
|
|
+<!-- </select>-->
|
|
|
+<!-- <em id="secondgroup"></em>-->
|
|
|
+<!-- <span id="groupcategorycheck" class="xi1"></span>-->
|
|
|
+<!-- </td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>简介</th>
|
|
|
+ <td>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var allowbbcode = allowimgcode = parsetype = 1;
|
|
|
+ var allowhtml = forumallowhtml = allowsmilies = 0;
|
|
|
+ </script>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <div id="descriptionpreview"></div>
|
|
|
+ <div class="tedt">
|
|
|
+ <div class="bar">
|
|
|
+ <div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <div class="fpd">
|
|
|
+ <?php if(in_array('bold', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
|
|
|
+ <?php } if(in_array('color', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
|
|
|
+ <?php } if(in_array('img', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
|
|
|
+ <?php } if(in_array('link', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
|
|
|
+ <?php } if(in_array('quote', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
|
|
|
+ <?php } if(in_array('code', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
|
|
|
+ <?php } if(in_array('smilies', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
|
|
|
+ <?php if(empty($seditor['2'])) { ?>
|
|
|
+ <script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
|
|
|
+ <?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
|
|
|
+ <?php } ?>
|
|
|
+ <?php echo $seditor['3'];?>
|
|
|
+ </div></div>
|
|
|
+ <div class="area">
|
|
|
+ <textarea id="descriptionmessage" name="descriptionnew" tabindex="3" class="pt" rows="8"></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><strong class="rq y">*</strong>浏览权限</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="gviewperm" class="pr" tabindex="4" value="1" checked="checked" />所有人</label>
|
|
|
+ <label class="lb"><input type="radio" name="gviewperm" class="pr" value="0" />仅成员</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><strong class="rq y">*</strong>加入方式</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="jointype" class="pr" tabindex="5" value="0" checked="checked" />自由加入</label>
|
|
|
+ <label class="lb"><input type="radio" name="jointype" class="pr" value="2" />审核加入</label>
|
|
|
+ <label class="lb"><input type="radio" name="jointype" class="pr" value="1" />邀请加入</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>顶部图片</th>
|
|
|
+ <td>
|
|
|
+ <input type="file" name="bannernew" id="bannernew" class="pf" size="25" />
|
|
|
+ <p class="d">
|
|
|
+ <?php if($_G['setting']['group_imgsizelimit']) { ?>
|
|
|
+ 文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
|
|
|
+ <?php } ?>
|
|
|
+ 建议使用尺寸为 730×150 的图片以取得最佳效果
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>图标</th>
|
|
|
+ <td>
|
|
|
+ <input type="file" id="iconnew" class="pf vm" size="25" name="iconnew" />
|
|
|
+ <p class="d">
|
|
|
+ 自动缩略成 48 X 48 像素大小的图片
|
|
|
+ <?php if($_G['setting']['group_imgsizelimit']) { ?>
|
|
|
+ 文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
|
|
|
+ <?php } ?></p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td>
|
|
|
+ <input type="hidden" name="createsubmit" value="true"><button type="submit" class="pn pnc" tabindex="6"><strong>创建</strong></button>
|
|
|
+ <?php if($_G['group']['buildgroupcredits']) { ?> (<strong class="rq">创建<?php echo $_G['setting']['navs']['3']['navname'];?>需要消耗 <?php echo $_G['group']['buildgroupcredits'];?> <?php echo $_G['setting']['extcredits'][$creditstransextra]['unit'];?><?php echo $_G['setting']['extcredits'][$creditstransextra]['title'];?></strong>)<?php } ?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <script type="text/javascript">
|
|
|
+ function checkgroupname() {
|
|
|
+ var groupname = trim($('name').value);
|
|
|
+ ajaxget('forum.php?mod=ajax&forumcheck=1&infloat=creategroup&handlekey=creategroup&action=checkgroupname&groupname=' + (BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(groupname) : groupname), 'groupnamecheck');
|
|
|
+ }
|
|
|
+ function checkCategory(){
|
|
|
+ var groupcategory = trim($('fup').value);
|
|
|
+ if(groupcategory == ''){
|
|
|
+ $('groupcategorycheck').innerHTML = '请选择<?php echo $_G['setting']['navs']['3']['navname'];?>分类';
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ $('groupcategorycheck').innerHTML = '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ <?php if($_GET['fupid']) { ?>
|
|
|
+ ajaxget('forum.php?mod=ajax&action=secondgroup&fupid=<?php echo $_GET['fupid'];?><?php if($_GET['groupid']) { ?>&groupid=<?php echo $_GET['groupid'];?><?php } ?>', 'secondgroup');
|
|
|
+ <?php } ?>
|
|
|
+ if($('name')) {
|
|
|
+ $('name').focus();
|
|
|
+ }
|
|
|
+ </script><?php } elseif($action == 'invite') { ?><div class="bm" id="main_messaqge">
|
|
|
+ <form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" action="forum.php?mod=group&action=invite">
|
|
|
+ <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
|
|
|
+ <input type="hidden" name="fid" value="<?php echo $_G['fid'];?>" />
|
|
|
+ <input type="hidden" name="referer" value="<?php echo dreferer(); ?>" /><?php if(is_array($friendarray)) foreach($friendarray as $uid => $member) { ?><input type="checkbox" name="inviteuid[]" value="<?php echo $uid;?>"><?php echo $member['username'];?> <?php echo $member['avatar'];?>
|
|
|
+ <?php } ?>
|
|
|
+ <table cellspacing="0" cellpadding="0" class="tfm" summary="邀请加入">
|
|
|
+ <caption>请选择您要邀请的好友</caption>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th>邀请列表</th>
|
|
|
+ <td><textarea rows="4" cols="40" name="invitemsg" class="pt"></textarea></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td><button class="pn pnc" type="submit" name="invitesubmit" value="true" tabindex="1"><strong>完成</strong></button></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ </div><?php } elseif($action == 'manage') { ?><p class="tbmu">
|
|
|
+ <a href="forum.php?mod=group&action=manage&op=group&fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'group') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>设置</a>
|
|
|
+ <?php if(!empty($groupmanagers[$_G['uid']]) || $_G['adminid'] == 1) { ?>
|
|
|
+ <span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'checkuser') { ?> class="a"<?php } ?>>成员审核</a>
|
|
|
+ <span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=manageuser&fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'manageuser') { ?> class="a"<?php } ?>>成员管理</a>
|
|
|
+ <?php } if($_G['forum']['founderuid'] == $_G['uid'] || $_G['adminid'] == 1) { ?>
|
|
|
+ <span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=threadtype&fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'threadtype') { ?> class="a"<?php } ?>>主题分类</a>
|
|
|
+ <span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=demise&fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'demise') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>转让</a>
|
|
|
+ <?php } ?>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <?php if($_GET['op'] == 'group') { ?>
|
|
|
+ <div class="bm bw0">
|
|
|
+ <form enctype="multipart/form-data" action="forum.php?mod=group&action=manage&op=group&fid=<?php echo $_G['fid'];?>" name="manage" method="post" autocomplete="off">
|
|
|
+ <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
|
|
|
+ <table cellspacing="0" cellpadding="0" class="tfm vt" summary="<?php echo $_G['setting']['navs']['3']['navname'];?>管理面板">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td><strong class="rq"><em id="returnmessage4"></em></strong></td>
|
|
|
+ </tr>
|
|
|
+ <?php if(!empty($specialswitch['allowchangename']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
|
|
|
+ <tr>
|
|
|
+ <th><span class="rq">*</span><?php echo $_G['setting']['navs']['3']['navname'];?>名称</th>
|
|
|
+ <td><input type="text" id="name" name="name" class="px" size="36" tabindex="1" value="<?php echo $_G['forum']['name'];?>" autocomplete="off" tabindex="1" /></td>
|
|
|
+ </tr>
|
|
|
+ <?php } if(!empty($specialswitch['allowchangetype']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <th><span class="rq">*</span>所属分类</th>-->
|
|
|
+<!-- <td>-->
|
|
|
+<!-- <select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">-->
|
|
|
+<!-- --><?php //echo $groupselect['first'];?>
|
|
|
+<!-- </select>-->
|
|
|
+<!-- <em id="secondgroup">--><?php //if($groupselect['second']) { ?><!--<select id="fup" name="fup" class="ps" >--><?php //echo $groupselect['second'];?><!--</select>--><?php //} ?><!--</em>-->
|
|
|
+<!-- </td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+ <tr>
|
|
|
+ <th><strong class="rq y">*</strong>所属地区</th>
|
|
|
+ <td>
|
|
|
+ <select id="s_province" name="province"></select>
|
|
|
+
|
|
|
+ <select id="s_city" name="city" ></select>
|
|
|
+
|
|
|
+ <select id="s_county" name="county"></select>
|
|
|
+ <em id="secondgroup"></em>
|
|
|
+ <span id="groupcategorycheck" class="xi1"></span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>简介</th>
|
|
|
+ <td>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var allowbbcode = allowimgcode = parsetype = 1;
|
|
|
+ var allowhtml = forumallowhtml = allowsmilies = 0;
|
|
|
+ </script>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <div id="descriptionpreview"></div>
|
|
|
+ <div class="tedt">
|
|
|
+ <div class="bar">
|
|
|
+ <div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <div class="fpd">
|
|
|
+ <?php if(in_array('bold', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
|
|
|
+ <?php } if(in_array('color', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
|
|
|
+ <?php } if(in_array('img', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
|
|
|
+ <?php } if(in_array('link', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
|
|
|
+ <?php } if(in_array('quote', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
|
|
|
+ <?php } if(in_array('code', $seditor['1'])) { ?>
|
|
|
+ <a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
|
|
|
+ <?php } if(in_array('smilies', $seditor['1'])) { ?>
|
|
|
+ <a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
|
|
|
+ <?php if(empty($seditor['2'])) { ?>
|
|
|
+ <script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
|
|
|
+ <?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
|
|
|
+ <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
|
|
|
+ <a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
|
|
|
+ <?php } ?>
|
|
|
+ <?php echo $seditor['3'];?>
|
|
|
+ </div></div>
|
|
|
+ <div class="area">
|
|
|
+ <textarea id="descriptionmessage" name="descriptionnew" class="pt" rows="8"><?php echo $_G['forum']['descriptionnew'];?></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>浏览权限</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="1" <?php echo $gviewpermselect['1'];?> />所有人</label>
|
|
|
+ <label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="0" <?php echo $gviewpermselect['0'];?> />仅成员</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>加入方式</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="jointypenew" class="pr" value="0" <?php echo $jointypeselect['0'];?> />自由加入</label>
|
|
|
+ <label class="lb"><input type="radio" name="jointypenew" class="pr" value="2" <?php echo $jointypeselect['2'];?> />审核加入</label>
|
|
|
+ <label class="lb"><input type="radio" name="jointypenew" class="pr" value="1" <?php echo $jointypeselect['1'];?> />邀请加入</label>
|
|
|
+ <?php if(!empty($specialswitch['allowclosegroup'])) { ?>
|
|
|
+ <label class="lb"><input type="radio" name="jointypenew" class="pr" value="-1" <?php echo $jointypeselect['-1'];?> />关闭</label>
|
|
|
+ <p class="d">注:<?php echo $_G['setting']['navs']['3']['navname'];?>关闭后只有群主才可以浏览</p>
|
|
|
+ <?php } ?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && $domainlength) { ?>
|
|
|
+ <tr>
|
|
|
+ <th>二级域名</th>
|
|
|
+ <td>
|
|
|
+ http://<input type="text" name="domain" class="px" value="<?php echo $_G['forum']['domain'];?>" style="width: 100px;" />.<?php echo $_G['setting']['domain']['root']['group'];?>
|
|
|
+ <p class="d">
|
|
|
+ 域名可使用最少 <?php echo $domainlength;?> 个 ,最多 30 个的字母或数字组合,且必须字母开头。<br/>
|
|
|
+ <?php if($_G['forum']['domain'] && $consume) { ?>修改域名将需要支付积分<strong><?php echo $consume;?></strong>,您现在有拥有<strong><?php echo $credits;?></strong><?php } ?>
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } if(!empty($_G['group']['allowupbanner']) || $_G['adminid'] == 1) { ?>
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>顶部图片</th>
|
|
|
+ <td>
|
|
|
+ <input type="file" name="bannernew" id="bannernew" class="pf" size="25" />
|
|
|
+ <?php if($_G['forum']['banner']) { ?>
|
|
|
+ <label><input type="checkbox" name="deletebanner" class="pc" value="1" />不使用图片</label>
|
|
|
+ <p class="d">当‘<?php echo $_G['setting']['navs']['3']['navname'];?>图片’使用的话,<?php echo $_G['setting']['navs']['3']['navname'];?>图标在该<?php echo $_G['setting']['navs']['3']['navname'];?>页面不做显示</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td>
|
|
|
+ <img onload="thumbImg(this, 1)" _width="544" _height="400" src="<?php echo $_G['forum']['banner'];?>?<?php echo TIMESTAMP;?>" />
|
|
|
+ <?php } ?>
|
|
|
+ <p class="d">
|
|
|
+ <?php if($_G['setting']['group_imgsizelimit']) { ?>
|
|
|
+ 文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
|
|
|
+ <?php } ?>
|
|
|
+ 建议使用尺寸为 730×150 的图片以取得最佳效果
|
|
|
+ </p>
|
|
|
+
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ <tr>
|
|
|
+ <th><?php echo $_G['setting']['navs']['3']['navname'];?>图标</th>
|
|
|
+ <td>
|
|
|
+ <input type="file" id="iconnew" class="pf vm" size="25" name="iconnew" />
|
|
|
+ <p class="d">
|
|
|
+ 自动缩略成 48 X 48 像素大小的图片
|
|
|
+ <?php if($_G['setting']['group_imgsizelimit']) { ?>
|
|
|
+ 文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
|
|
|
+ <?php } ?></p>
|
|
|
+ <?php if($_G['forum']['icon']) { ?>
|
|
|
+ <img width="48" height="48" alt="" class="vm" style="margin-right: 1em;" src="<?php echo $_G['forum']['icon'];?>?<?php echo TIMESTAMP;?>" />
|
|
|
+ <?php } ?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td><button type="submit" name="groupmanage" class="pn pnc" value="1"><strong>提交</strong></button></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <?php } elseif($_GET['op'] == 'checkuser') { if($checkusers) { ?>
|
|
|
+ <p class="tbmu cl">
|
|
|
+<span class="y">
|
|
|
+<a href="forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&checkall=2">忽略全部</a><span class="pipe">|</span>
|
|
|
+<a href="forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&checkall=1">全部通过</a>
|
|
|
+</span>
|
|
|
+ </p>
|
|
|
+ <div class="xld xlda"><?php if(is_array($checkusers)) foreach($checkusers as $uid => $user) { ?><dl class="bbda cl">
|
|
|
+ <dd class="m avt"><?php echo avatar($user['uid'], 'small'); ?></dd>
|
|
|
+ <dt><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a> <span class="xw0">(<?php echo $user['joindateline'];?>)</span></dt>
|
|
|
+ <dd class="pns"><button type="submit" name="checkusertrue" class="pn pnc" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=1'"><em>通过</em></button> <button type="submit" name="checkuserfalse" class="pn" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=2'"><em>忽略</em></button></dd>
|
|
|
+ </dl>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <?php if($multipage) { ?><div class="pgs cl mtm"><?php echo $multipage;?></div><?php } } else { ?>
|
|
|
+ <p class="emp">暂无需要审核成员。</p>
|
|
|
+ <?php } } elseif($_GET['op'] == 'manageuser') { ?>
|
|
|
+ <script type="text/javascript">
|
|
|
+ function groupManageUser(targetlevel_val) {
|
|
|
+ $('targetlevel').value = targetlevel_val;
|
|
|
+ $('manageuser').submit();
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <?php if($_G['forum']['membernum'] > 50) { ?>
|
|
|
+ <div class="bm_c pns">
|
|
|
+ <form action="forum.php?mod=group&action=manage&op=manageuser&fid=<?php echo $_G['fid'];?>" method="post">
|
|
|
+ <input type="text" <?php if(empty($_GET['srchuser'])) { ?>onclick="$('groupsearch').value=''"<?php } ?> value="<?php if($_GET['srchuser']) { ?><?php echo $_GET['srchuser'];?><?php } else { ?>请输入成员名称<?php } ?>" size="15" class="px p_fre vm" id="groupsearch" name="srchuser">
|
|
|
+ <button class="pn vm" type="submit"><span>搜索</span></button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ <form action="forum.php?mod=group&action=manage&op=manageuser&fid=<?php echo $_G['fid'];?>&manageuser=true" name="manageuser" id="manageuser" method="post" autocomplete="off" class="ptm">
|
|
|
+ <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
|
|
|
+ <input type="hidden" value="0" name="targetlevel" id="targetlevel" />
|
|
|
+ <?php if($adminuserlist) { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>管理成员</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt">
|
|
|
+ <?php if($user['level'] == 1) { ?>
|
|
|
+ <em class="gm"></em>
|
|
|
+ <?php } elseif($user['level'] == 2) { ?>
|
|
|
+ <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
|
|
+ <?php } if($user['online']) { ?>
|
|
|
+ <em class="gol"></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ <p><?php if($_G['adminid'] == 1 || ($_G['uid'] != $user['uid'] && ($_G['uid'] == $_G['forum']['founderuid'] || $user['level'] > $groupuser['level']))) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if($staruserlist || $userlist) { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>成员</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <?php if($staruserlist) { ?>
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt">
|
|
|
+ <em class="gs"></em>
|
|
|
+ <?php if($user['online']) { ?>
|
|
|
+ <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ <p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } if($userlist) { ?>
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($userlist)) foreach($userlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ <p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if($multipage) { ?><div class="pgs cl mbm"><?php echo $multipage;?></div><?php } ?>
|
|
|
+ <div class="cl"><?php if(is_array($mtype)) foreach($mtype as $key => $name) { ?> <?php if($_G['forum']['founderuid'] == $_G['uid'] || $key > $groupuser['level'] || $_G['adminid'] == 1) { ?>
|
|
|
+ <button type="button" name="manageuser" value="true" class="pn" onclick="groupManageUser('<?php echo $key;?>')"><span><?php echo $name;?></span></button>
|
|
|
+ <?php } ?>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <?php } elseif($_GET['op'] == 'threadtype') { ?>
|
|
|
+ <div class="bm bw0">
|
|
|
+ <?php if(empty($specialswitch['allowthreadtype'])) { ?>
|
|
|
+ 目前您的<?php echo $_G['setting']['navs']['3']['navname'];?>等级不能使用此功能。
|
|
|
+ <?php } else { ?>
|
|
|
+ <script type="text/JavaScript">
|
|
|
+ var rowtypedata = [
|
|
|
+ [
|
|
|
+ [1,'<input type="checkbox" class="pc" disabled="disabled" />', ''],
|
|
|
+ [1,'<input type="checkbox" class="pc" name="newenable[]" checked="checked" value="1" />', ''],
|
|
|
+ [1,'<input class="px" type="text" size="2" name="newdisplayorder[]" value="0" />'],
|
|
|
+ [1,'<input class="px" type="text" name="newname[]" />']
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ var addrowdirect = 0;
|
|
|
+ var typenumlimit = <?php echo $typenumlimit;?>;
|
|
|
+ function addrow(obj, type) {
|
|
|
+ var table = obj.parentNode.parentNode.parentNode.parentNode;
|
|
|
+ if(typenumlimit <= obj.parentNode.parentNode.parentNode.rowIndex - 1) {
|
|
|
+ alert('最多只能有'+typenumlimit+'个主题分类。');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(!addrowdirect) {
|
|
|
+ var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex);
|
|
|
+ } else {
|
|
|
+ var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex + 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ var typedata = rowtypedata[type];
|
|
|
+ for(var i = 0; i <= typedata.length - 1; i++) {
|
|
|
+ var cell = row.insertCell(i);
|
|
|
+ cell.colSpan = typedata[i][0];
|
|
|
+ var tmp = typedata[i][1];
|
|
|
+ if(typedata[i][2]) {
|
|
|
+ cell.className = typedata[i][2];
|
|
|
+ }
|
|
|
+ tmp = tmp.replace(/\{(\d+)\}/g, function($1, $2) {return addrow.arguments[parseInt($2) + 1];});
|
|
|
+ cell.innerHTML = tmp;
|
|
|
+ }
|
|
|
+ addrowdirect = 0;
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <div id="threadtypes">
|
|
|
+ <form id="threadtypeform" action="forum.php?mod=group&action=manage&op=threadtype&fid=<?php echo $_G['fid'];?>" autocomplete="off" method="post" name="threadtypeform">
|
|
|
+ <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
|
|
|
+ <table cellspacing="0" cellpadding="0" class="tfm vt">
|
|
|
+ <tr>
|
|
|
+ <th>启用主题分类:</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="1" onclick="$('threadtypes_config').style.display = '';$('threadtypes_manage').style.display = '';" <?php echo $checkeds['status']['1'];?> />是</label>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="0" onclick="$('threadtypes_config').style.display = 'none';$('threadtypes_manage').style.display = 'none';" <?php echo $checkeds['status']['0'];?> />否</label>
|
|
|
+ <p class="d">设置是否启用主题分类功能,您需要同时设定相应的分类选项,才能启用本功能</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tbody id="threadtypes_config" style="display: <?php echo $display;?>">
|
|
|
+ <tr>
|
|
|
+ <th>发帖必须归类:</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="1" <?php echo $checkeds['required']['1'];?> />是</label>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="0" <?php echo $checkeds['required']['0'];?> />否</label>
|
|
|
+ <p class="d">是否强制用户发表新主题时必须选择分类</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>类别前缀:</th>
|
|
|
+ <td>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="0" <?php echo $checkeds['prefix']['0'];?> />不显示</label>
|
|
|
+ <label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="1" <?php echo $checkeds['prefix']['1'];?> />显示</label>
|
|
|
+ <p class="d">是否在主题前面显示分类的名称</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div id="threadtypes_manage" style="display: <?php echo $display;?>">
|
|
|
+ <h2 class="ptm pbm">主题分类</h2>
|
|
|
+ <table cellspacing="0" cellpadding="0" class="dt">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="25">删除</th>
|
|
|
+ <th>启用</th>
|
|
|
+ <th>顺序</th>
|
|
|
+ <th>分类名称</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <?php if($threadtypes) { if(is_array($threadtypes)) foreach($threadtypes as $val) { ?><tbody>
|
|
|
+ <tr>
|
|
|
+ <td><input type="checkbox" class="pc" name="threadtypesnew[options][delete][]" value="<?php echo $val['typeid'];?>" /></td>
|
|
|
+ <td><input type="checkbox" class="pc" name="threadtypesnew[options][enable][<?php echo $val['typeid'];?>]" value="1" class="pc" <?php echo $val['enablechecked'];?> /></td>
|
|
|
+ <td><input type="text" name="threadtypesnew[options][displayorder][<?php echo $val['typeid'];?>]" class="px" size="2" value="<?php echo $val['displayorder'];?>" /></td>
|
|
|
+ <td><input type="text" name="threadtypesnew[options][name][<?php echo $val['typeid'];?>]" class="px" value="<?php echo $val['name'];?>" /></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <?php } } ?>
|
|
|
+ <tr>
|
|
|
+ <td colspan="4"><img class="vm" src="<?php echo IMGDIR;?>/addicn.gif" /> <a href="javascript:;" onclick="addrow(this, 0)">添加分类</a></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <button type="submit" class="pn pnc mtm" name="groupthreadtype" value="1"><strong>提交</strong></button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <?php } elseif($_GET['op'] == 'demise') { ?>
|
|
|
+ <div class="bm bw0">
|
|
|
+ <?php if($groupmanagers) { ?>
|
|
|
+ <div class="tbmu">
|
|
|
+ <h2>接受转让资格:</h2><p>只能转让给本<?php echo $_G['setting']['navs']['3']['navname'];?>的管理成员。</p><p>接收者要具备可再创建新<?php echo $_G['setting']['navs']['3']['navname'];?>的资格。</p>
|
|
|
+ <div class="mtm"><h2>温馨提示:</h2><p><?php echo $_G['setting']['navs']['3']['navname'];?>转让成功后,您依然是该群的群主,但不再是<?php echo $_G['setting']['navs']['3']['navname'];?>创始人,所以可自由退出该<?php echo $_G['setting']['navs']['3']['navname'];?>。</p><p>转让后无法直接恢复群,需被接收者主动操作才可以再次转回,请谨慎操作。</p></div>
|
|
|
+ </div>
|
|
|
+ <form action="forum.php?mod=group&action=manage&op=demise&fid=<?php echo $_G['fid'];?>" name="groupdemise" method="post" class="exfm">
|
|
|
+ <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
|
|
|
+ <table cellspacing="0" cellpadding="0" class="tfm vt">
|
|
|
+ <tr>
|
|
|
+ <th>将<?php echo $_G['setting']['navs']['3']['navname'];?>转让给:</th>
|
|
|
+ <td>
|
|
|
+ <ul class="ml mls cl"><?php if(is_array($groupmanagers)) foreach($groupmanagers as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>设为群主<?php } elseif($user['level'] == 2) { ?>设为副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p><a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
|
|
|
+ <p><?php if($user['uid'] != $_G['uid']) { ?><input type="radio" class="pr" name="suid" value="<?php echo $user['uid'];?>" /><?php } ?></p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>请输入登录密码</th>
|
|
|
+ <td><input type="password" name="grouppwd" class="px p_fre" /></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <td>
|
|
|
+ <button type="submit" name="groupdemise" class="pn pnc" value="1"><strong>提交</strong></button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ <?php } else { ?>
|
|
|
+ <p class="emp"><?php echo $_G['setting']['navs']['3']['navname'];?>目前还没有管理成员。</p>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_bottom'])) echo $_G['setting']['pluginhooks']['group_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_bottom'];?><?php } ?>
|
|
|
+ <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
|
|
+ </div>
|
|
|
+ <div class="sd wk_sq_sd padding15 backfff">
|
|
|
+ <div class="drag">
|
|
|
+ <!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
|
|
|
+ </div><?php if($action == 'index') { ?>
|
|
|
+ <div class="bm bml tns">
|
|
|
+ <table cellpadding="4" cellspacing="0" border="0">
|
|
|
+ <tr>
|
|
|
+ <th><p><?php echo $_G['forum']['posts'];?></p>帖子</th>
|
|
|
+ <th><p><?php echo $_G['forum']['membernum'];?></p>成员</th>
|
|
|
+ <td><p><?php echo $groupcache['ranking']['data']['today'];?></p>排名</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <?php if(!empty($_G['setting']['pluginhooks']['group_index_side'])) echo $_G['setting']['pluginhooks']['group_index_side'];?>
|
|
|
+ <?php if($status != 2 && $status != 3) { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <ul class="tb tb_h cl">
|
|
|
+ <li class="a" id="new" onmouseover="this.className='a';$('top').className='';$('newuserlist').style.display='block';$('topuserlist').style.display='none';"><a href="javascript:;">新加入</a></li>
|
|
|
+ <li id="top" onmouseover="this.className='a';$('new').className='';$('topuserlist').style.display='block';$('newuserlist').style.display='none';"><a href="javascript:;">活跃成员</a></li>
|
|
|
+ </ul>
|
|
|
+ <div class="bm_c">
|
|
|
+ <ul class="ml mls cl" id="newuserlist" style="display:block;"><?php if(is_array($newuserlist)) foreach($newuserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
|
|
|
+ <?php if($user['level'] == 1) { ?>
|
|
|
+ <em class="gm"></em>
|
|
|
+ <?php } elseif($user['level'] == 2) { ?>
|
|
|
+ <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
|
|
+ <?php } elseif($user['level'] == 3) { ?>
|
|
|
+ <em class="gs"></em>
|
|
|
+ <?php } if($user['online']) { ?>
|
|
|
+ <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
|
|
|
+ </p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ <ul class="ml mls cl" id="topuserlist" style="display:none;"><?php if(is_array($activityuserlist)) foreach($activityuserlist as $user) { ?><li>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
|
|
|
+ <?php if($user['level'] == 1) { ?>
|
|
|
+ <em class="gm"></em>
|
|
|
+ <?php } elseif($user['level'] == 2) { ?>
|
|
|
+ <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
|
|
+ <?php } elseif($user['level'] == 3) { ?>
|
|
|
+ <em class="gs"></em>
|
|
|
+ <?php } if($user['online']) { ?>
|
|
|
+ <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
|
|
|
+ <?php } echo avatar($user['uid'], 'small'); ?></a>
|
|
|
+ <p>
|
|
|
+ <a href="home.php?mod=space&uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
|
|
|
+ </p>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <?php if($groupviewed_list) { ?>
|
|
|
+ <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($groupviewed_list)) foreach($groupviewed_list as $groupid => $group) { ?><li>
|
|
|
+ <a href="forum.php?mod=group&fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" class="avt"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
|
|
|
+ <p><a href="forum.php?mod=group&fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></p>
|
|
|
+ <span><?php echo $group['membernum'];?></span>
|
|
|
+ </li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } } } elseif($action == 'list') { if($groupcache['replies']['data']) { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>今天大家都在讨论的话题</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <ul class="xl xl1"><?php if(is_array($groupcache['replies']['data'])) foreach($groupcache['replies']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if($groupcache['digest']['data']) { ?>
|
|
|
+ <div class="bm">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>精华推荐</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <ul class="xl xl1"><?php if(is_array($groupcache['digest']['data'])) foreach($groupcache['digest']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
|
|
|
+ <?php } ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_top'])) echo $_G['setting']['pluginhooks']['group_side_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_top'];?><?php } if($action == 'create') { ?>
|
|
|
+ <div class="bm bmn">
|
|
|
+ <div class="bm_c xw1 xi1">您已有 <?php echo $groupnum;?> 个<?php echo $_G['setting']['navs']['3']['navname'];?>,还能创建 <?php echo $allowbuildgroup;?> 个。</div>
|
|
|
+ </div>
|
|
|
+ <?php } else { if($action != 'index' && ($status != 2 || $status != 3)) { ?>
|
|
|
+ <div class="bm bml">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2>在本<?php echo $_G['setting']['navs']['3']['navname'];?>中寻找帖子</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c hm pns">
|
|
|
+ <form method="post" action="search.php?mod=group&srchfid=<?php echo $_G['fid'];?>&searchsubmit=1">
|
|
|
+ <input type="text" name="srchtxt" id="groupsearch" class="px p_fre vm" size="15" value="请输入搜索关键字" onclick="$('groupsearch').value=''" />
|
|
|
+ <button type="submit" class="pn vm"><span>搜索</span></button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+
|
|
|
+ <div class="bm bml">
|
|
|
+ <div class="bm_h cl">
|
|
|
+ <h2><?php echo $_G['setting']['navs']['3']['navname'];?>地址</h2>
|
|
|
+ </div>
|
|
|
+ <div class="bm_c">
|
|
|
+ <p>
|
|
|
+ <?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && !empty($_G['forum']['domain'])) { ?>
|
|
|
+ <a href="http://<?php echo $_G['forum']['domain'];?>.<?php echo $_G['setting']['domain']['root']['group'];?>" id="group_link"></a>
|
|
|
+ <?php } else { ?>
|
|
|
+ <a href="forum.php?mod=group&fid=<?php echo $_G['fid'];?>" id="group_link"></a>
|
|
|
+ <?php } ?>
|
|
|
+ [<a href="javascript:;" onclick="setCopy($('group_link').href, '<?php echo $_G['setting']['navs']['3']['navname'];?>地址复制成功')" class="xi2">复制</a>]
|
|
|
+ </p>
|
|
|
+ <script type="text/javascript">$('group_link').innerHTML = $('group_link').href</script>
|
|
|
+ <p class="ptn xg1"><?php echo $_G['forum']['foundername'];?> 创建于 <?php echo $_G['forum']['dateline'];?></p>
|
|
|
+ <?php if($status == 'isgroupuser') { ?><p class="ptn"><a onclick="showDialog('您确定要退出该<?php echo $_G['setting']['navs']['3']['navname'];?>吗?', 'confirm', '', function(){location.href='forum.php?mod=group&action=out&fid=<?php echo $_G['fid'];?>'})" href="javascript:;" class="xi2">退出<?php echo $_G['setting']['navs']['3']['navname'];?></a><p><?php } ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_bottom'])) echo $_G['setting']['pluginhooks']['group_side_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_bottom'];?><?php } ?>
|
|
|
+
|
|
|
+ <div class="drag">
|
|
|
+ <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+
|
|
|
+ try {
|
|
|
+ _init_area();
|
|
|
+ } catch(e) {
|
|
|
+ console.log(e.name + ": " + e.message);
|
|
|
+ }
|
|
|
+ // var Gid = document.getElementById ;
|
|
|
+ // Gid('s_county').setAttribute('onchange','showArea()');
|
|
|
+ function updatecinemaattach(aid, url, attachurl) {
|
|
|
+ // $('activityaid').value = aid;
|
|
|
+ // console.log(aid, 'now');
|
|
|
+ $('activityattach_image').innerHTML = '<img width="200px" src="' + attachurl + '/' + url + '" class="spimg" />';
|
|
|
+ ATTACHORIMAGE = 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ function activityaid_upload(aid, url) {
|
|
|
+ $('activityaid_url').value = 'data/attachment/forum/' + url;
|
|
|
+ updatecinemaattach(aid, url, 'data/attachment/forum');
|
|
|
+ }
|
|
|
+
|
|
|
+ function bannernew_upload(aid, url) {
|
|
|
+ $('bannernew_url').value = 'data/attachment/forum/' + url;
|
|
|
+ attachurl = 'data/attachment/forum';
|
|
|
+ $('bannernew_image').innerHTML = '<img width="200px" src="' + attachurl + '/' + url + '" class="spimg" />';
|
|
|
+ ATTACHORIMAGE = 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ sgjQuery(function () {
|
|
|
+ sgjQuery('.sg-group-slick').slick({
|
|
|
+ autoplay: true,
|
|
|
+ arrows: false,
|
|
|
+ dots: true,
|
|
|
+ infinite: true,
|
|
|
+ speed: 300,
|
|
|
+ slidesToShow: 1,
|
|
|
+ adaptiveHeight: true
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ <?php if($_GET['op'] == 'group') { ?>
|
|
|
+ var province = "<?php echo $_G['forum']['province'] ?>";
|
|
|
+ sgjQuery('#s_province option[value=' + province + ']').attr('selected', true);
|
|
|
+ change(1);
|
|
|
+ var city = "<?php echo $_G['forum']['city'] ?>";
|
|
|
+ sgjQuery('#s_city option[value=' + city + ']').attr('selected', true);
|
|
|
+ change(2);
|
|
|
+ var county = "<?php echo $_G['forum']['county'] ?>";
|
|
|
+ sgjQuery('#s_county option[value=' + county + ']').attr('selected', true);
|
|
|
+ <?php } ?>
|
|
|
+
|
|
|
+ </script>
|
|
|
+ <div class="wp mtn">
|
|
|
+ <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
|
|
+ </div><?php include template('common/footer'); ?>
|