First commit
This commit is contained in:
175
template/default/group/group.htm
Normal file
175
template/default/group/group.htm
Normal file
@@ -0,0 +1,175 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang home}">$_G[setting][bbname]</a><em>›</em><a href="group.php">$_G[setting][navs][3][navname]</a><!--{if $groupnav}-->$groupnav<!--{elseif $action == 'create'}--><em>›</em>{lang group_create}<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{ad/text/wp a_t}-->
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
||||
<!--{if $action != 'create'}-->
|
||||
<!--{if $_G['forum']['banner']}-->
|
||||
<div id="gh">
|
||||
<img src="$_G[forum][banner]" alt="" />
|
||||
<div class="bm bmw bw0">
|
||||
<div class="bm_h bw0 cl">
|
||||
<h1 class="xs2">$_G[forum][name]</h1>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $_G['forum']['description']}--><div class="pbn">$_G['forum']['description']</div><!--{/if}-->
|
||||
<div>
|
||||
<!--{if helper_access::check_module('favorite')}--><a href="home.php?mod=spacecp&ac=favorite&type=group&id={$_G[forum][fid]}&handlekey=sharealbumhk_{$_G[forum][fid]}&formhash={FORMHASH}" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang favorite}" class="fa_fav">{lang favorite}</a><span class="pipe">|</span><!--{/if}--><!--{if $_G[setting][rssstatus] && !$_GET['archiveid']}--><a href="forum.php?mod=rss&fid=$_G[fid]&auth=$rssauth" target="_blank" title="RSS" class="fa_rss">RSS</a><!--{/if}--><!--{if $status == 'isgroupuser' && helper_access::check_module('group') && helper_access::check_module('friend')}--><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=$_G[fid]')" class="fa_ivt"><strong class="xi2">{lang my_buddylist_invite}</strong></a><!--{/if}-->
|
||||
<span class="pipe">|</span><!--{if $_G['current_grouplevel']['icon']}--><img src="$_G[current_grouplevel][icon]" title="{lang group_level}: $_G[current_grouplevel][leveltitle]" class="vm"> <!--{/if}-->{lang credits}: $_G[forum][commoncredits]<span class="pipe">|</span>{lang group_moderator_title}: <!--{eval $i = 1;}--><!--{loop $groupmanagers $manage}--><!--{if $i <= 0}-->, <!--{/if}--><!--{eval $i--;}--><a href="home.php?mod=space&uid=$manage[uid]" target="_blank" class="xi2">$manage[username]</a><!--{/loop}-->
|
||||
</div>
|
||||
<!--{if $status != 2 && $status != 3 && $status != 5}-->
|
||||
<!--{if helper_access::check_module('group') && $status != 'isgroupuser'}-->
|
||||
<div class="ptm pbn">
|
||||
<form action="forum.php?mod=group&action=join&fid=$_G[fid]" id="groupjoinform_{$_G['fid']}" method="post" autocomplete="off">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="groupjoin" value="1">
|
||||
<button type="submit" class="pn"><em>{lang group_join_group}</em></button>
|
||||
</form>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_navlink}--><!--{else}--><!--{hook/forumdisplay_navlink}--><!--{/if}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{if $action == 'index' && ($status == 2 || $status == 3 || $status == 5)}-->
|
||||
<p class="mtm">
|
||||
{lang group_join_type}:
|
||||
<!--{if $_G['forum']['jointype'] == 1}-->
|
||||
<strong>{lang group_join_type_invite}</strong>
|
||||
<!--{elseif $_G['forum']['jointype'] == 2}-->
|
||||
<strong>{lang group_join_type_moderate}</strong>
|
||||
<!--{else}-->
|
||||
<strong>{lang group_join_type_free}</strong>
|
||||
<!--{/if}-->
|
||||
{lang group_perm_visit}: <strong><!--{if $_G['forum']['gviewperm'] == 0}-->{lang group_perm_member_only}<!--{else}-->{lang group_perm_all_user}<!--{/if}--></strong>
|
||||
</p>
|
||||
<p class="mtm xi1">
|
||||
<!--{if $status == 3 || $status == 5}-->
|
||||
{lang group_has_joined}
|
||||
<!--{elseif helper_access::check_module('group')}-->
|
||||
<form action="forum.php?mod=group&action=join&fid=$_G[fid]" id="groupjoinform_{$_G['fid']}" method="post" autocomplete="off">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="groupjoin" value="1">
|
||||
<button type="submit" class="pn"><em>{lang group_join_group}</em></button>
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div class="bm">
|
||||
<div class="bm_c xld xlda cl">
|
||||
<dl>
|
||||
<dd class="m"><img src="$_G[forum][icon]" alt="$_G[forum][name]" width="48" height="48" /></dd>
|
||||
<dt>$_G[forum][name]</dt>
|
||||
<!--{if $_G[forum][description]}--><dd>$_G[forum][description]</dd><!--{/if}-->
|
||||
<dd class="cl">
|
||||
<span class="y"><!--{if helper_access::check_module('favorite')}--><a href="home.php?mod=spacecp&ac=favorite&type=group&id={$_G[forum][fid]}&handlekey=sharealbumhk_{$_G[forum][fid]}&formhash={FORMHASH}" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang favorite}" class="fa_fav">{lang favorite}</a><span class="pipe">|</span><!--{/if}--><!--{if $_G[setting][rssstatus] && !$_GET['archiveid']}--><a href="forum.php?mod=rss&fid=$_G[fid]&auth=$rssauth" target="_blank" title="RSS" class="fa_rss">RSS</a><!--{/if}--><!--{if $status == 'isgroupuser' && helper_access::check_module('group') && helper_access::check_module('friend')}--><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=$_G[fid]')" class="fa_ivt"><strong class="xi2">{lang my_buddylist_invite}</strong></a><!--{/if}--></span>
|
||||
<!--{if $_G['current_grouplevel']['icon']}--><img src="$_G[current_grouplevel][icon]" title="{lang group_level}: $_G[current_grouplevel][leveltitle]" class="vm"> <!--{/if}-->{lang credits}: $_G[forum][commoncredits]<span class="pipe">|</span>{lang group_moderator_title}: <!--{eval $i = 1;}--><!--{loop $groupmanagers $manage}--><!--{if $i <= 0}-->, <!--{/if}--><!--{eval $i--;}--><a href="home.php?mod=space&uid=$manage[uid]" target="_blank" class="xi2">$manage[username]</a> <!--{/loop}-->
|
||||
</dd>
|
||||
<!--{if $action == 'index' && ($status == 2 || $status == 3 || $status == 5)}-->
|
||||
<dd>
|
||||
{lang group_join_type}:
|
||||
<!--{if $_G['forum']['jointype'] == 1}-->
|
||||
<strong>{lang group_join_type_invite}</strong>
|
||||
<!--{elseif $_G['forum']['jointype'] == 2}-->
|
||||
<strong>{lang group_join_type_moderate}</strong>
|
||||
<!--{else}-->
|
||||
<strong>{lang group_join_type_free}</strong>
|
||||
<!--{/if}-->
|
||||
{lang group_perm_visit}: <strong><!--{if $_G['forum']['gviewperm'] == 0}-->{lang group_perm_member_only}<!--{else}-->{lang group_perm_all_user}<!--{/if}--></strong>
|
||||
</dd>
|
||||
<dd class="xi1">
|
||||
<!--{if $status == 3 || $status == 5}-->
|
||||
{lang group_has_joined}
|
||||
<!--{elseif helper_access::check_module('group')}-->
|
||||
<form action="forum.php?mod=group&action=join&fid=$_G[fid]" id="groupjoinform_{$_G['fid']}" method="post" autocomplete="off">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="groupjoin" value="1">
|
||||
<button type="submit" class="pn"><em>{lang group_join_group}</em></button>
|
||||
</form>
|
||||
<!--{/if}-->
|
||||
</dd>
|
||||
<!--{/if}-->
|
||||
</dl>
|
||||
<!--{if $status != 2 && $status != 3 && $status != 5}-->
|
||||
<!--{if helper_access::check_module('group') && $status != 'isgroupuser'}-->
|
||||
<div class="ptm pbm">
|
||||
<form action="forum.php?mod=group&action=join&fid=$_G[fid]" id="groupjoinform_{$_G['fid']}" method="post" autocomplete="off">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="groupjoin" value="1">
|
||||
<button type="submit" class="pn"><em>{lang group_join_group}</em></button>
|
||||
</form>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_navlink}--><!--{else}--><!--{hook/forumdisplay_navlink}--><!--{/if}-->
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if getgpc('extra') == 'join'}-->
|
||||
<script>showDialog('{lang group_join_confirm}', 'confirm', '', function(){$('groupjoinform_{$_G['fid']}').submit();});</script>
|
||||
<!--{/if}-->
|
||||
<!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_top}--><!--{else}--><!--{hook/forumdisplay_top}--><!--{/if}-->
|
||||
<!--{if $status != 2 && $status != 3}-->
|
||||
<div class="tb cl{if $action != 'manage'} mbm{/if}">
|
||||
<!--{if in_array($_G['adminid'], array(1,2))}--><span class="a bw0_all y xi2"><a href="javascript:;" onclick="showWindow('grecommend$_G[fid]', 'forum.php?mod=group&action=recommend&fid=$_G[fid]');return false;">{lang group_push_to_forum}</a></span><!--{/if}-->
|
||||
<ul id="groupnav">
|
||||
<li {if $action == 'index'}class="a"{/if}><a href="forum.php?mod=group&fid=$_G[fid]#groupnav" title="">{lang home}</a></li>
|
||||
<li {if $action == 'list'}class="a"{/if}><a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]#groupnav" title="">{lang group_discuss_area}</a></li>
|
||||
<li {if $action == 'memberlist' || $action == 'invite'}class="a"{/if}><a href="forum.php?mod=group&action=memberlist&fid=$_G[fid]#groupnav" title="">{lang group_member_list}</a></li>
|
||||
<!--{if $_G['forum']['ismoderator']}--><li {if $action == 'manage'}class="a"{/if}><a href="forum.php?mod=group&action=manage&fid=$_G[fid]#groupnav">{lang group_admin}</a></li><!--{/if}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_nav_extra}--><!--{else}--><!--{hook/forumdisplay_nav_extra}--><!--{/if}-->
|
||||
</ul>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $action == 'index' && $status != 2 && $status != 3}-->
|
||||
<!--{subtemplate group/group_index}-->
|
||||
<!--{elseif $action == 'list'}-->
|
||||
<!--{subtemplate group/group_list}-->
|
||||
<!--{elseif $action == 'memberlist'}-->
|
||||
<!--{subtemplate group/group_memberlist}-->
|
||||
<!--{elseif $action == 'create'}-->
|
||||
<!--{subtemplate group/group_create}-->
|
||||
<!--{elseif $action == 'invite'}-->
|
||||
<!--{subtemplate group/group_invite}-->
|
||||
<!--{elseif $action == 'manage'}-->
|
||||
<!--{subtemplate group/group_manage}-->
|
||||
<!--{/if}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_bottom}--><!--{else}--><!--{hook/forumdisplay_bottom}--><!--{/if}-->
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div class="sd">
|
||||
<div class="drag">
|
||||
<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{subtemplate group/group_right}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_side_bottom}--><!--{else}--><!--{hook/forumdisplay_side_bottom}--><!--{/if}-->
|
||||
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
78
template/default/group/group_attentiongroup.htm
Normal file
78
template/default/group/group_attentiongroup.htm
Normal file
@@ -0,0 +1,78 @@
|
||||
<!--{template common/header}-->
|
||||
<h3 class="flb">
|
||||
<em id="return_$_GET[handlekey]">{lang select_focus_group}</em>
|
||||
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
|
||||
</h3>
|
||||
<form method="post" autocomplete="off" id="attentionform" name="attentionform" action="group.php?mod=attentiongroup" onsubmit="ajaxpost('attentionform', 'return_attentiongroup', 'return_attentiongroup', 'onerror');return false;">
|
||||
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<div class="cl">
|
||||
<div class="bm_c attgroup cl">
|
||||
<ul>
|
||||
<!--{loop $usergroups['groups'] $groupid $groupname}-->
|
||||
<!--{if is_array($attentiongroup) && in_array($groupid, $attentiongroup)}-->
|
||||
<li id="li$groupid"><label for="attentiongroupid_$groupid"><input type="checkbox" name="attentiongroupid[]" id="attentiongroupid_$groupid" class="pc" value="$groupid" checked="checked" onclick="attention_checkbox(this, 'attentionform', 'attentiongroupid', 5)" />$groupname</label></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<li id="heightline"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<hr class="l" />
|
||||
<div class="bm_c attgroup cl">
|
||||
<ul>
|
||||
<!--{loop $usergroups['groups'] $groupid $groupname}-->
|
||||
<!--{if !is_array($attentiongroup) || !in_array($groupid, $attentiongroup)}-->
|
||||
<li id="li$groupid"><label for="attentiongroupid_$groupid"><input type="checkbox" name="attentiongroupid[]" id="attentiongroupid_$groupid" class="pc" value="$groupid" onclick="attention_checkbox(this, 'attentionform', 'attentiongroupid', 5)" />$groupname</label></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<li id="lowerline"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<input type="hidden" name="attentionsubmit" value="true" />
|
||||
<button type="submit" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</p>
|
||||
<script language="javascript">
|
||||
var p = $counttype;
|
||||
function attention_checkbox(obj, formid, checkname, max_obj) {
|
||||
if(obj.checked) {
|
||||
p++;
|
||||
for (var i = 0; i < $(formid).elements.length; i++) {
|
||||
var e = $(formid).elements[i];
|
||||
if(p == max_obj+1) {
|
||||
if(e.name.match(checkname) && !e.checked) {
|
||||
e.disabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
p--;
|
||||
for (var i = 0; i < $(formid).elements.length; i++) {
|
||||
var e = $(formid).elements[i];
|
||||
if(e.name.match(checkname) && e.disabled) {
|
||||
e.disabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(p > max_obj) {
|
||||
p--;
|
||||
obj.checked = false;
|
||||
alert('{lang max_can_select}'+max_obj+'{lang unit}.');
|
||||
return;
|
||||
}
|
||||
var oldNode = $('li'+obj.value);
|
||||
var realvalue = obj.checked;
|
||||
if(obj.checked) {
|
||||
var line = $('heightline');
|
||||
} else {
|
||||
var line = $('lowerline');
|
||||
}
|
||||
oldNode.parentNode.removeChild(oldNode);
|
||||
line.parentNode.insertBefore(oldNode,line);
|
||||
obj.checked = realvalue;
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
<!--{template common/footer}-->
|
109
template/default/group/group_create.htm
Normal file
109
template/default/group/group_create.htm
Normal file
@@ -0,0 +1,109 @@
|
||||
<div class="bm bml" id="main_messaqge">
|
||||
<div class="bm_h cl">
|
||||
<h1 class="xs2">{lang group_create_new}
|
||||
<!--{if $_G['setting']['groupmod']}--> ({lang group_create_mod})<!--{/if}-->
|
||||
</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">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="handlekey" value="creategroup" />
|
||||
<table cellspacing="0" cellpadding="0" class="tfm" summary="{lang group_create}">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td>
|
||||
<style type="text/css">
|
||||
#returnmessage4 { display: none; color: {$_G['style']['noticetext']}; font-weight: bold; }
|
||||
#returnmessage4.onerror { display: block; }
|
||||
</style>
|
||||
<p id="returnmessage4"></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong class="rq y">*</strong>{lang group_name}:</th>
|
||||
<td>
|
||||
<input type="text" name="name" id="name" class="px" size="36" value="" autocomplete="off" onBlur="checkgroupname()" />
|
||||
<span id="groupnamecheck" class="xi1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong class="rq y">*</strong>{lang group_category}:</th>
|
||||
<td>
|
||||
<select name="parentid" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
|
||||
<option value="0">{lang choose_please}</option>
|
||||
$groupselect[first]
|
||||
</select>
|
||||
<em id="secondgroup"></em>
|
||||
<span id="groupcategorycheck" class="xi1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang group_description}:</th>
|
||||
<td>
|
||||
<script type="text/javascript">
|
||||
var allowbbcode = allowimgcode = parsetype = 1;
|
||||
var allowhtml = forumallowhtml = allowsmilies = 0;
|
||||
</script>
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
|
||||
<div id="descriptionpreview"></div>
|
||||
<div class="tedt">
|
||||
<div class="bar">
|
||||
<div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">{lang group_description_preview}</a></div>
|
||||
<!--{eval $seditor = array('description', array('bold', 'color', 'img', 'link'));}-->
|
||||
<!--{subtemplate common/seditor}-->
|
||||
</div>
|
||||
<div class="area">
|
||||
<textarea id="descriptionmessage" name="descriptionnew" class="pt" rows="8"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong class="rq y">*</strong>{lang group_perm_visit}:</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="gviewperm" class="pr" value="1" checked="checked" />{lang group_perm_all_user}</label>
|
||||
<label class="lb"><input type="radio" name="gviewperm" class="pr" value="0" />{lang group_perm_member_only}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong class="rq y">*</strong>{lang group_join_type}:</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="jointype" class="pr" value="0" checked="checked" />{lang group_join_type_free}</label>
|
||||
<label class="lb"><input type="radio" name="jointype" class="pr" value="2" />{lang group_join_type_moderate}</label>
|
||||
<label class="lb"><input type="radio" name="jointype" class="pr" value="1" />{lang group_join_type_invite}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td>
|
||||
<input type="hidden" name="createsubmit" value="true"><button type="submit" class="pn pnc"><strong>{lang create}</strong></button>
|
||||
<!--{if $_G['group']['buildgroupcredits']}--> (<strong class="rq">{lang group_create_buildcredits} $_G['group']['buildgroupcredits'] $_G['setting']['extcredits'][$creditstransextra]['unit']{$_G['setting']['extcredits'][$creditstransextra]['title']}</strong>)<!--{/if}-->
|
||||
</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 = '{lang group_create_selete_categroy}';
|
||||
return false;
|
||||
} else {
|
||||
$('groupcategorycheck').innerHTML = '';
|
||||
}
|
||||
}
|
||||
<!--{if $_GET['fupid']}-->
|
||||
ajaxget('forum.php?mod=ajax&action=secondgroup&fupid=$_GET[fupid]<!--{if $_GET[groupid]}-->&groupid=$_GET[groupid]<!--{/if}-->', 'secondgroup');
|
||||
<!--{/if}-->
|
||||
if($('name')) {
|
||||
$('name').focus();
|
||||
}
|
||||
</script>
|
357
template/default/group/group_index.htm
Normal file
357
template/default/group/group_index.htm
Normal file
@@ -0,0 +1,357 @@
|
||||
<!--{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">{lang reply} <span id="livereplies" class="xi1">$livethread[replies]</span></span>
|
||||
<a href="forum.php?mod=viewthread&tid=$livethread[tid]" target="_blank">$livethread[subject]</a> <span class="liveicon">{lang group_live}</span>
|
||||
</div>
|
||||
<div class="livethreadcon">$livemessage</div>
|
||||
<div id="livereplycontentout">
|
||||
<div id="livereplycontent">
|
||||
</div>
|
||||
</div>
|
||||
<div id="liverefresh">{lang group_live_newreply_refresh}</div>
|
||||
<div id="livefastreply">
|
||||
<form id="livereplypostform" method="post" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$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;<!--{if !$liveallowpostreply}-->display:none;<!--{/if}-->">{lang group_live_fastreply_notice}</textarea>
|
||||
<!--{if !$liveallowpostreply}-->
|
||||
<div>
|
||||
<!--{if !$_G[uid]}-->
|
||||
{lang login_to_reply} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a>
|
||||
<!--{else}-->
|
||||
{lang no_permission_to_post}<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">{lang click_to_show_reason}</a>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<div id="livepostsubmit" style="display:none;">
|
||||
<!--{if $secqaacheck || $seccodecheck}-->
|
||||
<!--{block sectpl}--><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><!--{/block}-->
|
||||
<div class="mtm sec" style="text-align:right;"><!--{subtemplate common/seccheck}--></div>
|
||||
<!--{/if}-->
|
||||
<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>{lang group_live_post}</strong>
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}">
|
||||
<input type="hidden" name="subject" value=" ">
|
||||
</form>
|
||||
</div>
|
||||
<span id="livereplypostreturn"></span>
|
||||
</div>
|
||||
<script type="text/javascript" src="{$_G['setting']['jspath']}seditor.js?{VERHASH}"></script>
|
||||
<script type="text/javascript">
|
||||
var postminchars = parseInt('$_G['setting']['minpostsize']');
|
||||
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
|
||||
var postminsubjectchars = parseInt('$_G['setting']['minsubjectsize']');
|
||||
var postmaxsubjectchars = parseInt('$_G['setting']['maxsubjectsize']');
|
||||
var disablepostctrl = parseInt('{$_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 = '{lang group_live_fastreply_notice}';
|
||||
}
|
||||
};
|
||||
|
||||
$('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=$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 = '{lang group_live_nocontent_error}';
|
||||
}
|
||||
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|webp))/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>
|
||||
<!--{/if}-->
|
||||
<!--{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=$_G[fid]" class="nxt">{lang view_all_threads}</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=$_G[fid]')" title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="tl bm bml">
|
||||
<div class="th">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="icn"> </td>
|
||||
<th>{lang latest_threads}</th>
|
||||
<td class="by">{lang author}/{lang dateline_range}</td>
|
||||
<td class="num">{lang replies}</td>
|
||||
<td class="by">{lang lastpost}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $newthreadlist['dateline']['data']}-->
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tbody id="$thread[id]">
|
||||
<!--{loop $newthreadlist['dateline']['data'] $thread}-->
|
||||
<tr>
|
||||
<td class="icn">
|
||||
<a href="forum.php?mod=viewthread&tid=$thread[tid]" title="{lang target_blank}" target="_blank">
|
||||
<!--{if $thread[folder] == 'lock'}-->
|
||||
<i class="fico-lock fic6 fc-s"></i>
|
||||
<!--{elseif $thread['special'] == 1}-->
|
||||
<i class="fico-vote fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_poll}"></i>
|
||||
<!--{elseif $thread['special'] == 2}-->
|
||||
<i class="fico-cart fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_trade}"></i>
|
||||
<!--{elseif $thread['special'] == 3}-->
|
||||
<i class="fico-reward fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_reward}"></i>
|
||||
<!--{elseif $thread['special'] == 4}-->
|
||||
<i class="fico-group fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_activity}"></i>
|
||||
<!--{elseif $thread['special'] == 5}-->
|
||||
<i class="fico-vs fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_debate}"></i>
|
||||
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
|
||||
<i class="tpin tpin{$thread[displayorder]}" alt="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
|
||||
<!--{else}-->
|
||||
<i class="fico-thread fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
|
||||
<!--{/if}-->
|
||||
</a>
|
||||
</td>
|
||||
<th>
|
||||
<span id="thread_$thread[tid]"><a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xst">$thread[subject]</a></span>
|
||||
</th>
|
||||
<td class="by">
|
||||
<cite>
|
||||
<!--{if $thread['authorid'] && $thread['author']}-->
|
||||
<a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a>
|
||||
<!--{else}-->
|
||||
<!--{if $_G['forum']['ismoderator']}-->
|
||||
<a href="home.php?mod=space&uid=$thread[authorid]">{$_G['setting']['anonymoustext']}</a>
|
||||
<!--{else}-->
|
||||
{$_G['setting']['anonymoustext']}
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
</cite>
|
||||
<em>$thread[dateline]</em>
|
||||
</td>
|
||||
<td class="num">
|
||||
<a class="xi2" href="forum.php?mod=viewthread&tid=$thread[tid]">$thread[allreplies]</a><em>$thread[views]</em>
|
||||
</td>
|
||||
<td class="by">
|
||||
<cite>
|
||||
<!--{if $thread['lastposterenc']}-->
|
||||
<a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastposter]</a>
|
||||
<!--{else}-->
|
||||
{$_G['setting']['anonymoustext']}
|
||||
<!--{/if}-->
|
||||
</cite>
|
||||
<em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</tbody>
|
||||
<!--{if $_G['forum']['threads'] > 10}-->
|
||||
<tbody>
|
||||
<tr class="bw0_all">
|
||||
<td colspan="5" class="ptm"><a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]#groupnav" class="y xi2">{lang click_to_readmore}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang forum_nothreads}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_member_status}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $groupfeedlist}-->
|
||||
<ul class="el">
|
||||
<!--{loop $groupfeedlist $feed}-->
|
||||
<li>
|
||||
<img src="$feed[icon_image]" class="t" />
|
||||
<!--{if !empty($feed[title_template])}-->$feed[title_template]<!--{/if}--> <!--{if !empty($feed[body_data][subject])}-->$feed[body_data][subject]<!--{/if}-->
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang group_no_latest_feeds}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{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">
|
||||
<!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" onclick="showWindow('newthread', this.href);doane(event)">{lang post_newthread}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
|
||||
<!--{if $_G['setting']['threadplugins']}-->
|
||||
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
|
||||
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && is_array($_G['group']['allowthreadplugin']) && in_array($tpid, $_G['group']['allowthreadplugin'])}-->
|
||||
<li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url($_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
|
||||
<!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
|
||||
<!--{if $_G['forum']['threadsorts']['show'][$id]}-->
|
||||
<li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&extra=$extra&sortid=$id">$threadsorts</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
23
template/default/group/group_invite.htm
Normal file
23
template/default/group/group_invite.htm
Normal file
@@ -0,0 +1,23 @@
|
||||
<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="{FORMHASH}" />
|
||||
<input type="hidden" name="fid" value="$_G[fid]" />
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<!--{loop $friendarray $uid $member}-->
|
||||
<input type="checkbox" name="inviteuid[]" value="$uid">$member[username] $member[avatar]
|
||||
<!--{/loop}-->
|
||||
<table cellspacing="0" cellpadding="0" class="tfm" summary="{lang group_join_type_invite}">
|
||||
<caption>{lang group_choose_friend_to_invite}</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{lang group_invite_list}</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"><strong>{lang finished}</strong></button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
188
template/default/group/group_list.htm
Normal file
188
template/default/group/group_list.htm
Normal file
@@ -0,0 +1,188 @@
|
||||
<!--{if $_G['forum']['ismoderator']}-->
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
|
||||
<!--{/if}-->
|
||||
<div id="pgt" class="bm bw0 pgs cl">
|
||||
$multipage
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<span {if $_G[setting][visitedforums]}id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"{/if} class="pgb y"><a href="forum.php?mod=group&fid=$_G[fid]">{lang return_index}</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=$_G[fid]')" title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a>
|
||||
<!--{/if}-->
|
||||
<!--{hook/forumdisplay_postbutton_top}-->
|
||||
</div>
|
||||
<!--{if $_G['forum']['threadtypes']}-->
|
||||
<ul class="ttp bm cl">
|
||||
<li id="ttp_all"{if !$_GET['typeid']} class="xw1 a"{/if}><a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]">{lang forum_viewall}</a></li>
|
||||
<!--{if $_G['forum']['threadtypes']}-->
|
||||
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
|
||||
<li{if $_GET['typeid'] == $id} class="xw1 a"{/if}><a href="forum.php?mod=forumdisplay&action=list&fid=$_G[fid]{if $_GET['typeid'] != $id}&filter=typeid&typeid=$id$forumdisplayadd[typeid]{/if}">$name</a></li>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<!--{hook/forumdisplay_filter_extra}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<div id="threadlist" class="tl bm" style="position: relative;">
|
||||
<div class="th">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="icn"> </td>
|
||||
<!--{if $_G['forum']['ismoderator']}--><td class="o"> </td><!--{/if}-->
|
||||
<th>{lang thread}</th>
|
||||
<td class="by">{lang author}/{lang time}</td>
|
||||
<td class="num">{lang replies}</td>
|
||||
<td class="by">{lang lastpost}</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=$_G[fid]&infloat=yes&nopost=yes">
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<input type="hidden" name="listextra" value="$extra" />
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<!--{if $_G['forum_threadcount']}-->
|
||||
<tbody class="emptb"><tr><td class="icn"></td><!--{if $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
|
||||
<!--{loop $_G['forum_threadlist'] $key $thread}-->
|
||||
<!--{ad/threadlist}-->
|
||||
<tbody id="$thread[id]">
|
||||
<tr>
|
||||
<td class="icn">
|
||||
<a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank">
|
||||
<!--{if $thread[folder] == 'lock'}-->
|
||||
<i class="fico-lock fic6 fc-s"></i>
|
||||
<!--{elseif $thread['special'] == 1}-->
|
||||
<i class="fico-vote fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_poll}"></i>
|
||||
<!--{elseif $thread['special'] == 2}-->
|
||||
<i class="fico-cart fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_trade}"></i>
|
||||
<!--{elseif $thread['special'] == 3}-->
|
||||
<i class="fico-reward fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_reward}"></i>
|
||||
<!--{elseif $thread['special'] == 4}-->
|
||||
<i class="fico-group fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_activity}"></i>
|
||||
<!--{elseif $thread['special'] == 5}-->
|
||||
<i class="fico-vs fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}" alt="{lang thread_debate}"></i>
|
||||
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
|
||||
<i class="tpin tpin{$thread[displayorder]}" alt="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
|
||||
<!--{else}-->
|
||||
<i class="fico-thread fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
|
||||
<!--{/if}-->
|
||||
</a>
|
||||
</td>
|
||||
<!--{if $_G['forum']['ismoderator']}-->
|
||||
<td class="o">
|
||||
<!--{if $thread['fid'] == $_G[fid]}-->
|
||||
<!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
|
||||
<input onclick="tmodclick(this)" type="checkbox" name="moderate[]" class="pc" value="$thread[tid]" />
|
||||
<!--{else}-->
|
||||
<input type="checkbox" disabled="disabled" class="pc" />
|
||||
<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<input type="checkbox" disabled="disabled" class="pc" />
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
<!--{/if}-->
|
||||
<th>
|
||||
<!--{hook/forumdisplay_thread $key}-->
|
||||
<!--{if $thread['moved']}-->
|
||||
<!--{if $_G['forum']['ismoderator']}-->
|
||||
<a href="forum.php?mod=topicadmin&action=moderate&optgroup=3&operation=delete&tid=$thread[moved]" onclick="showWindow('mods', this.href);return false">{lang thread_moved}:</a>
|
||||
<!--{else}-->
|
||||
{lang thread_moved}:
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
$thread[typehtml]
|
||||
<span id="thread_$thread[tid]"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"$thread[highlight] class="xst">$thread[subject]</a></span>
|
||||
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
|
||||
<!--{if $thread['price'] > 0}-->
|
||||
<!--{if $thread['special'] == '3'}-->
|
||||
- <span style="color: #C60">[{lang thread_reward}<span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span>
|
||||
<!--{else}-->
|
||||
- [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
|
||||
<!--{/if}-->
|
||||
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
|
||||
- <span style="color: #269F11">[{lang reward_solved}]</span>
|
||||
<!--{/if}-->
|
||||
<!--{if $thread['attachment'] == 2}-->
|
||||
<i class="fico-image fic4 fc-p fnmr vm" title="{lang attach_img}"></i>
|
||||
<!--{elseif $thread['attachment'] == 1}-->
|
||||
<i class="fico-attachment fic4 fc-p fnmr vm" title="{lang attachment}"></i>
|
||||
<!--{/if}-->
|
||||
<!--{if $thread['displayorder'] == 0}-->
|
||||
<!--{if $thread[recommendicon]}-->
|
||||
<span class="tbox trecic" title="{lang thread_recommend} $thread[recommends]">{lang thread_recommend_icon}</span>
|
||||
<!--{/if}-->
|
||||
<!--{if $thread[heatlevel]}-->
|
||||
<span class="tbox theatlevel" title="$thread[heatlevel] {lang heats}">{lang heats_icon}{if $thread[heatlevel]>1}..{/if}{if $thread[heatlevel]>2}.{/if}</span>
|
||||
<!--{/if}-->
|
||||
<!--{if $thread['digest'] > 0}-->
|
||||
<span class="tbox tdigest">{lang thread_digest}$thread[digest]</span>
|
||||
<!--{/if}-->
|
||||
<!--{if $thread['rate'] > 0}-->
|
||||
<i class="fico-thumbup fic4 fc-l fnmr vm" title="{lang rate_credit_add}"></i>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if $thread[multipage]}-->
|
||||
<span class="tps">$thread[multipage]</span>
|
||||
<!--{/if}-->
|
||||
</th>
|
||||
<td class="by">
|
||||
<cite>
|
||||
<!--{if $thread['authorid'] && $thread['author']}-->
|
||||
<a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}-->$verify[$thread[authorid]]<!--{/if}-->
|
||||
<!--{else}-->
|
||||
<!--{if $_G['forum']['ismoderator']}-->
|
||||
<a href="home.php?mod=space&uid=$thread[authorid]">{$_G['setting']['anonymoustext']}</a>
|
||||
<!--{else}-->
|
||||
{$_G['setting']['anonymoustext']}
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
</cite>
|
||||
<em>$thread[dateline]</em>
|
||||
</td>
|
||||
<td class="num">
|
||||
$thread[allreplies]<em>$thread[views]</em>
|
||||
</td>
|
||||
<td class="by">
|
||||
<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastposter]</a></cite><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></cite><em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<!--{/loop}-->
|
||||
<!--{else}-->
|
||||
<tbody><tr><th colspan="6"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
<!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
|
||||
<!--{template forum/topicadmin_modlayer}-->
|
||||
<!--{/if}-->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<div class="bm bw0 pgs cl">
|
||||
$multipage
|
||||
<span {if $_G[setting][visitedforums]}id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"{/if} class="pgb y"><a href="forum.php?mod=group&fid=$_G[fid]">{lang return_index}</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=$_G[fid]')" title="{lang send_posts}" class="pgsbtn showmenu">{lang send_posts}</a>
|
||||
<!--{hook/forumdisplay_postbutton_bottom}-->
|
||||
</div>
|
||||
|
||||
<!--{if $_G['setting']['fastpost']}-->
|
||||
<!--{template forum/forumdisplay_fastpost}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<!--{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">
|
||||
<!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" onclick="showWindow('newthread', this.href);doane(event)">{lang post_newthread}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
|
||||
<!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
|
||||
<!--{if $_G['setting']['threadplugins']}-->
|
||||
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
|
||||
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && is_array($_G['group']['allowthreadplugin']) && in_array($tpid, $_G['group']['allowthreadplugin'])}-->
|
||||
<li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url($_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
399
template/default/group/group_manage.htm
Normal file
399
template/default/group/group_manage.htm
Normal file
@@ -0,0 +1,399 @@
|
||||
<p class="tbmu">
|
||||
<a href="forum.php?mod=group&action=manage&op=group&fid=$_G[fid]"{if $_GET['op'] == 'group'} class="a"{/if}>{lang group_setup}</a>
|
||||
<!--{if !empty($groupmanagers[$_G[uid]]) || $_G['adminid'] == 1}-->
|
||||
<span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=checkuser&fid=$_G[fid]"{if $_GET['op'] == 'checkuser'} class="a"{/if}>{lang group_member_moderate}</a>
|
||||
<span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=manageuser&fid=$_G[fid]"{if $_GET['op'] == 'manageuser'} class="a"{/if}>{lang group_member_management}</a>
|
||||
<!--{/if}-->
|
||||
<!--{if $_G['forum']['founderuid'] == $_G['uid'] || $_G['adminid'] == 1}-->
|
||||
<span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=threadtype&fid=$_G[fid]"{if $_GET['op'] == 'threadtype'} class="a"{/if}>{lang group_threadtype}</a>
|
||||
<span class="pipe">|</span><a href="forum.php?mod=group&action=manage&op=demise&fid=$_G[fid]"{if $_GET['op'] == 'demise'} class="a"{/if}>{lang group_demise}</a>
|
||||
<!--{/if}-->
|
||||
</p>
|
||||
|
||||
<!--{if $_GET['op'] == 'group'}-->
|
||||
<div class="bm bw0">
|
||||
<form enctype="multipart/form-data" action="forum.php?mod=group&action=manage&op=group&fid=$_G[fid]" name="manage" method="post" autocomplete="off">
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
||||
<table cellspacing="0" cellpadding="0" class="tfm vt" summary="{lang group_admin_panel}">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td><strong class="rq"><em id="returnmessage4"></em></strong></td>
|
||||
</tr>
|
||||
<!--{if !empty($specialswitch['allowchangename']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)}-->
|
||||
<tr>
|
||||
<th><span class="rq">*</span>{lang group_name}:</th>
|
||||
<td><input type="text" id="name" name="name" class="px" size="36" value="$_G[forum][name]" autocomplete="off" /></td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if !empty($specialswitch['allowchangetype']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)}-->
|
||||
<tr>
|
||||
<th><span class="rq">*</span>{lang group_category}:</th>
|
||||
<td>
|
||||
<select name="parentid" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
|
||||
$groupselect[first]
|
||||
</select>
|
||||
<em id="secondgroup"><!--{if $groupselect['second']}--><select id="fup" name="fup" class="ps" >$groupselect[second]</select><!--{/if}--></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<tr>
|
||||
<th>{lang group_description}</th>
|
||||
<td>
|
||||
<script type="text/javascript">
|
||||
var allowbbcode = allowimgcode = parsetype = 1;
|
||||
var allowhtml = forumallowhtml = allowsmilies = 0;
|
||||
</script>
|
||||
<script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
|
||||
<div id="descriptionpreview"></div>
|
||||
<div class="tedt">
|
||||
<div class="bar">
|
||||
<div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">{lang group_description_preview}</a></div>
|
||||
<!--{eval $seditor = array('description', array('bold', 'color', 'img', 'link'));}-->
|
||||
<!--{subtemplate common/seditor}-->
|
||||
</div>
|
||||
<div class="area">
|
||||
<textarea id="descriptionmessage" name="descriptionnew" class="pt" rows="8">$_G[forum][descriptionnew]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang group_perm_visit}</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="1" $gviewpermselect[1] />{lang group_perm_all_user}</label>
|
||||
<label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="0" $gviewpermselect[0] />{lang group_perm_member_only}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang group_join_type}</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="jointypenew" class="pr" value="0" $jointypeselect[0] />{lang group_join_type_free}</label>
|
||||
<label class="lb"><input type="radio" name="jointypenew" class="pr" value="2" $jointypeselect[2] />{lang group_join_type_moderate}</label>
|
||||
<label class="lb"><input type="radio" name="jointypenew" class="pr" value="1" $jointypeselect[1] />{lang group_join_type_invite}</label>
|
||||
<!--{if !empty($specialswitch['allowclosegroup'])}-->
|
||||
<label class="lb"><input type="radio" name="jointypenew" class="pr" value="-1" $jointypeselect[-1] />{lang close}</label>
|
||||
<p class="d">{lang group_close_notice}</p>
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<!--{if $_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && $domainlength}-->
|
||||
<tr>
|
||||
<th>{lang subdomain}</th>
|
||||
<td>
|
||||
{$_G['scheme']}://<input type="text" name="domain" class="px" value="$_G[forum][domain]" style="width: 100px;" />.{$_G['setting']['domain']['root']['group']}
|
||||
<p class="d">
|
||||
{lang group_domain_message}<br/>
|
||||
<!--{if $_G[forum][domain] && $consume}-->{lang group_edit_domain_message}<!--{/if}-->
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<!--{if !empty($_G['group']['allowupbanner']) || $_G['adminid'] == 1}-->
|
||||
<tr>
|
||||
<th>{lang group_image}</th>
|
||||
<td>
|
||||
<input type="file" name="bannernew" id="bannernew" class="pf" size="25" />
|
||||
<!--{if $_G['forum']['banner']}-->
|
||||
<label><input type="checkbox" name="deletebanner" class="pc" value="1" />{lang group_no_image}</label>
|
||||
<p class="d">{lang group_no_image_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td>
|
||||
<img onload="thumbImg(this, 1)" _width="544" _height="400" src="$_G[forum][banner]?{TIMESTAMP}" />
|
||||
<!--{/if}-->
|
||||
<p class="d">
|
||||
<!--{if $_G[setting][group_imgsizelimit]}-->
|
||||
{lang group_image_filesize_limit}
|
||||
<!--{/if}-->
|
||||
{lang group_image_filesize_advise}
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/if}-->
|
||||
<tr>
|
||||
<th>{lang group_icon}</th>
|
||||
<td>
|
||||
<input type="file" id="iconnew" class="pf vm" size="25" name="iconnew" />
|
||||
<p class="d">
|
||||
{lang group_icon_resize}
|
||||
<!--{if $_G[setting][group_imgsizelimit]}-->
|
||||
{lang group_image_filesize_limit}
|
||||
<!--{/if}--></p>
|
||||
<!--{if $_G['forum']['icon']}-->
|
||||
<img width="48" height="48" alt="" class="vm" style="margin-right: 1em;" src="$_G[forum][icon]?{TIMESTAMP}" />
|
||||
<!--{/if}-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td><button type="submit" name="groupmanage" class="pn pnc" value="1"><strong>{lang submit}</strong></button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<!--{elseif $_GET['op'] == 'checkuser'}-->
|
||||
<!--{if $checkusers}-->
|
||||
<p class="tbmu cl">
|
||||
<span class="y">
|
||||
<a href="forum.php?mod=group&action=manage&op=checkuser&fid=$_G[fid]&checkall=2">{lang ignore_all}</a><span class="pipe">|</span>
|
||||
<a href="forum.php?mod=group&action=manage&op=checkuser&fid=$_G[fid]&checkall=1">{lang pass_all}</a>
|
||||
</span>
|
||||
</p>
|
||||
<div class="xld xlda">
|
||||
<!--{loop $checkusers $uid $user}-->
|
||||
<dl class="bbda cl">
|
||||
<dd class="m avt"><!--{echo avatar($user['uid'], 'small')}--></dd>
|
||||
<dt><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a> <span class="xw0">($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=$_G[fid]&uid=$user[uid]&checktype=1'"><em>{lang pass}</em></button> <button type="submit" name="checkuserfalse" class="pn" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=$_G[fid]&uid=$user[uid]&checktype=2'"><em>{lang ignore}</em></button></dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
<!--{if $multipage}--><div class="pgs cl mtm">$multipage</div><!--{/if}-->
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang group_no_member_moderated}</p>
|
||||
<!--{/if}-->
|
||||
<!--{elseif $_GET['op'] == 'manageuser'}-->
|
||||
<script type="text/javascript">
|
||||
function groupManageUser(targetlevel_val) {
|
||||
$('targetlevel').value = targetlevel_val;
|
||||
$('manageuser').submit();
|
||||
}
|
||||
</script>
|
||||
<!--{if $_G['forum']['membernum'] > 50}-->
|
||||
<div class="bm_c pns">
|
||||
<form action="forum.php?mod=group&action=manage&op=manageuser&fid=$_G[fid]" method="post">
|
||||
<input type="text" {if empty($_GET['srchuser'])}onclick="$('groupsearch').value=''"{/if} value="{if $_GET['srchuser']}$_GET[srchuser]{else}{lang enter_member_user}{/if}" size="15" class="px p_fre vm" id="groupsearch" name="srchuser">
|
||||
<button class="pn vm" type="submit"><span>{lang search}</span></button>
|
||||
</form>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<form action="forum.php?mod=group&action=manage&op=manageuser&fid=$_G[fid]&manageuser=true" name="manageuser" id="manageuser" method="post" autocomplete="off" class="ptm">
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
||||
<input type="hidden" value="0" name="targetlevel" id="targetlevel" />
|
||||
<!--{if $adminuserlist}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_admin_member}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $adminuserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator_title}{elseif $user['level'] == 2}{lang group_moderator_vice_title}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt">
|
||||
<!--{if $user['level'] == 1}-->
|
||||
<em class="gm"></em>
|
||||
<!--{elseif $user['level'] == 2}-->
|
||||
<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
||||
<!--{/if}-->
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol"></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
<p><!--{if $_G['adminid'] == 1 || ($_G['uid'] != $user['uid'] && ($_G['uid'] == $_G['forum']['founderuid'] || $user['level'] > $groupuser['level']))}--><input type="checkbox" class="pc" name="muid[{$user[uid]}]" value="$user[level]" /><!--{/if}--></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if $staruserlist || $userlist}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang member}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $staruserlist}-->
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $staruserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{lang group_star_member_title}{if $user['online']} {lang login_normal_mode}{/if}" class="avt">
|
||||
<em class="gs"></em>
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if}></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
<p><!--{if $_G['adminid'] == 1 || $user['level'] > $groupuser['level']}--><input type="checkbox" class="pc" name="muid[{$user[uid]}]" value="$user[level]" /><!--{/if}--></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{if $userlist}-->
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $userlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" class="avt"><!--{echo avatar($user['uid'], 'small')}--></a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
<p><!--{if $_G['adminid'] == 1 || $user['level'] > $groupuser['level']}--><input type="checkbox" class="pc" name="muid[{$user[uid]}]" value="$user[level]" /><!--{/if}--></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if $multipage}--><div class="pgs cl mbm">$multipage</div><!--{/if}-->
|
||||
<div class="cl">
|
||||
<!--{loop $mtype $key $name}-->
|
||||
<!--{if $_G['forum']['founderuid'] == $_G['uid'] || $key > $groupuser['level'] || $_G['adminid'] == 1}-->
|
||||
<button type="button" name="manageuser" value="true" class="pn" onclick="groupManageUser('{$key}')"><span>$name</span></button>
|
||||
<!--{/if}-->
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</form>
|
||||
<!--{elseif $_GET['op'] == 'threadtype'}-->
|
||||
<div class="bm bw0">
|
||||
<!--{if empty($specialswitch['allowthreadtype'])}-->
|
||||
{lang group_level_cannot_do}
|
||||
<!--{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 = $typenumlimit;
|
||||
function addrow(obj, type) {
|
||||
var table = obj.parentNode.parentNode.parentNode.parentNode;
|
||||
if(typenumlimit <= obj.parentNode.parentNode.parentNode.rowIndex - 1) {
|
||||
alert('{lang group_threadtype_limit_1}'+typenumlimit+'{lang group_threadtype_limit_2}');
|
||||
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=$_G[fid]" autocomplete="off" method="post" name="threadtypeform">
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
||||
<table cellspacing="0" cellpadding="0" class="tfm vt">
|
||||
<tr>
|
||||
<th>{lang threadtype_turn_on}:</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="1" onclick="$('threadtypes_config').style.display = '';$('threadtypes_manage').style.display = '';" $checkeds[status][1] />{lang yes}</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';" $checkeds[status][0] />{lang no}</label>
|
||||
<p class="d">{lang threadtype_turn_on_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody id="threadtypes_config" style="display: $display">
|
||||
<tr>
|
||||
<th>{lang threadtype_required}:</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="1" $checkeds[required][1] />{lang yes}</label>
|
||||
<label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="0" $checkeds[required][0] />{lang no}</label>
|
||||
<p class="d">{lang threadtype_required_force}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang threadtype_prefix}:</th>
|
||||
<td>
|
||||
<label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="0" $checkeds[prefix][0] />{lang threadtype_prefix_off}</label>
|
||||
<label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="1" $checkeds[prefix][1] />{lang threadtype_prefix_on}</label>
|
||||
<p class="d">{lang threadtype_prefix_comment}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="threadtypes_manage" style="display: $display">
|
||||
<h2 class="ptm pbm">{lang threadtype}</h2>
|
||||
<table cellspacing="0" cellpadding="0" class="dt">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25">{lang delete}</th>
|
||||
<th>{lang enable}</th>
|
||||
<th>{lang displayorder}</th>
|
||||
<th>{lang threadtype_name}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!--{if $threadtypes}-->
|
||||
<!--{loop $threadtypes $val}-->
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="pc" name="threadtypesnew[options][delete][]" value="{$val[typeid]}" /></td>
|
||||
<td><input type="checkbox" class="pc" name="threadtypesnew[options][enable][{$val[typeid]}]" value="1" $val[enablechecked] /></td>
|
||||
<td><input type="text" name="threadtypesnew[options][displayorder][{$val[typeid]}]" class="px" size="2" value="$val[displayorder]" /></td>
|
||||
<td><input type="text" name="threadtypesnew[options][name][{$val[typeid]}]" class="px" value="$val[name]" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
<tr>
|
||||
<td colspan="4"><img class="vm" src="{IMGDIR}/addicn.gif" /> <a href="javascript:;" onclick="addrow(this, 0)">{lang threadtype_add}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<button type="submit" class="pn pnc mtm" name="groupthreadtype" value="1"><strong>{lang submit}</strong></button>
|
||||
</form>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{elseif $_GET['op'] == 'demise'}-->
|
||||
<div class="bm bw0">
|
||||
<!--{if $groupmanagers}-->
|
||||
<div class="tbmu">
|
||||
{lang group_demise_comment}
|
||||
<div class="mtm">{lang group_demise_notice}</div>
|
||||
</div>
|
||||
<form action="forum.php?mod=group&action=manage&op=demise&fid=$_G[fid]" name="groupdemise" method="post" class="exfm">
|
||||
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
||||
<table cellspacing="0" cellpadding="0" class="tfm vt">
|
||||
<tr>
|
||||
<th>{lang transfer_group_to}:</th>
|
||||
<td>
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $groupmanagers $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator}{elseif $user['level'] == 2}{lang group_moderator_vice}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt">
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
<p><!--{if $user['uid'] != $_G['uid']}--><input type="radio" class="pr" name="suid" value="$user[uid]" /><!--{/if}--></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{lang group_input_password}</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>{lang submit}</strong></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!--{else}-->
|
||||
<p class="emp">{lang group_no_admin_member}</p>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{/if}-->
|
65
template/default/group/group_memberlist.htm
Normal file
65
template/default/group/group_memberlist.htm
Normal file
@@ -0,0 +1,65 @@
|
||||
<!--{if $op == 'alluser'}-->
|
||||
<!--{if $adminuserlist}-->
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_admin_member}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $adminuserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator_title}{elseif $user['level'] == 2}{lang group_moderator_vice_title}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt" c="1">
|
||||
<!--{if $user['level'] == 1}-->
|
||||
<em class="gm"></em>
|
||||
<!--{elseif $user['level'] == 2}-->
|
||||
<em class="gm" style="filter:alpha(opacity=50); opacity: 0.5"></em>
|
||||
<!--{/if}-->
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol" style="margin-top: 15px;"></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if $staruserlist || $alluserlist}-->
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang member}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{if $staruserlist}-->
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $staruserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{lang group_star_member_title}{if $user['online']} {lang login_normal_mode}{/if}" class="avt" c="1">
|
||||
<em class="gs"></em>
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if} title="{lang login_normal_mode}"></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
<!--{if $alluserlist}-->
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $alluserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" class="avt" c="1"><!--{echo avatar($user['uid'], 'small')}--></a>
|
||||
<p><a href="home.php?mod=space&uid=$user[uid]">$user[username]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if $multipage}--><div class="pgs cl">$multipage</div><!--{/if}-->
|
||||
<!--{/if}-->
|
227
template/default/group/group_my.htm
Normal file
227
template/default/group/group_my.htm
Normal file
@@ -0,0 +1,227 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang home}">$_G[setting][bbname]</a><em>›</em><a href="group.php?mod=index">{lang group}</a><em>›</em><a href="group.php?mod=my">{$_G[username]}{lang somebody_group}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{hook/my_header}-->
|
||||
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="tb cl" style="margin-top: 0;">
|
||||
<ul>
|
||||
<li $actives[groupthread]><a href="group.php?mod=my&view=groupthread">{lang group_thread}</a></li>
|
||||
<li $actives[mythread]><a href="group.php?mod=my&view=mythread">{lang my_thread}</a></li>
|
||||
<li $actives[join]><a href="group.php?mod=my&view=join">{lang my_join}</a></li>
|
||||
<li $actives[manager]><a href="group.php?mod=my&view=manager">{lang my_manage}</a></li>
|
||||
<li class="y"><a href="group.php?mod=index" class="groupbtn xi2"><span>{lang all_group} ›</span></a></li>
|
||||
|
||||
<li class="y">
|
||||
<a onclick="showWindow('attentiongroup', 'group.php?mod=attentiongroup', 'get', 0);" class="groupbtn xi2"><span>{lang attention_group}</span></a>
|
||||
</li>
|
||||
<script language="javascript">
|
||||
function succeedhandle_attentiongroup(locationhref) {
|
||||
hideWindow('attentiongroup');
|
||||
location.href = locationhref;
|
||||
}
|
||||
</script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--{if $view == 'groupthread' || $view == 'mythread'}-->
|
||||
<ul class="ttp cl">
|
||||
<li id="ttp_all"{if empty($typeid)} class="xw1 a"{/if}><a href="group.php?mod=my&view=$view">{lang all}</a></li>
|
||||
<!--{loop $usergroups['grouptype'] $type}-->
|
||||
<li{if $typeid == $type['fid']} class="xw1 a"{/if}><a href="group.php?mod=my&view=$view{if $typeid != $type['fid']}&typeid=$type[fid]{/if}">$type[name]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
|
||||
<!--{if $attentionthread}-->
|
||||
<!--{loop $attentionthread $groupid $threads}-->
|
||||
<div class="bm tl">
|
||||
<div class="th">
|
||||
<table cellspacing="0" cellpadding="0" class="th">
|
||||
<tr>
|
||||
<td colspan="2"><a href="forum.php?mod=group&fid=$groupid" target="_blank" class="xw1">{$usergroups['groups'][$groupid]}</a></td>
|
||||
<td class="num">{lang replies}</td>
|
||||
<td class="by">{lang last_post}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<!--{loop $threads $tid $thread}-->
|
||||
<tr>
|
||||
<td class="icn">
|
||||
<a href="forum.php?mod=viewthread&tid=$tid" title="{lang open_new_window}" target="_blank">
|
||||
<!--{if $thread[folder] == 'lock'}-->
|
||||
<i class="fico-lock fic6 fc-s"></i>
|
||||
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
|
||||
<i class="tpin tpin{$thread[displayorder]}" alt="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
|
||||
<!--{else}-->
|
||||
<i class="fico-thread fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
|
||||
<!--{/if}-->
|
||||
</a>
|
||||
</td>
|
||||
<td><a href="forum.php?mod=viewthread&tid=$tid" target="_blank">$thread[subject]</a></td>
|
||||
<td class="num">
|
||||
<a href="forum.php?mod=viewthread&tid=$tid" class="xi2">$thread[replies]</a>
|
||||
<em>$thread[views]</em>
|
||||
</td>
|
||||
<td class="by">
|
||||
<cite><!--{if $thread['lastposter']}--><a href="home.php?mod=space&username=$thread[lastposter]">$thread[lastposter]</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></cite>
|
||||
<em><a href="forum.php?mod=viewthread&tid=$tid&page={echo max(1, $thread[pages]);}">$thread[lastpost]</a></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</table>
|
||||
<div class="ptm"><a href="forum.php?mod=group&fid=$groupid" class="xi2">{lang more}...</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/loop}-->
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="bm tl">
|
||||
<div class="th">
|
||||
<table cellpadding="0" cellspacing="0" class="th">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<!--{if $view == 'groupthread'}-->{lang last_topic_in_group}<!--{else}-->{lang my_last_topic_in_group}<!--{/if}-->
|
||||
</td>
|
||||
<td class="by">{lang group}</td>
|
||||
<td class="num">{lang replies}</td>
|
||||
<td class="by">{lang last_post}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<!--{if $groupthreadlist}-->
|
||||
<!--{loop $groupthreadlist $tid $thread}-->
|
||||
<tr>
|
||||
<td class="icn">
|
||||
<a href="forum.php?mod=viewthread&tid=$tid" title="{lang open_new_window}" target="_blank">
|
||||
<!--{if $thread[folder] == 'lock'}-->
|
||||
<i class="fico-lock fic6 fc-s"></i>
|
||||
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
|
||||
<i class="tpin tpin{$thread[displayorder]}" alt="$_G[setting][threadsticky][3-$thread[displayorder]]"><svg width="18" height="18"><path d="M9 0l9 9H14v9H4V9H0z"></path></svg></i>
|
||||
<!--{else}-->
|
||||
<i class="fico-thread fic6 {if $thread[folder]=='new'}fc-l{else}fc-n{/if}"></i>
|
||||
<!--{/if}-->
|
||||
</a>
|
||||
</td>
|
||||
<td><a href="forum.php?mod=viewthread&tid=$tid" target="_blank">$thread[subject]</a></td>
|
||||
<td class="by"><a href="forum.php?mod=group&fid=$thread[fid]" target="_blank" class="xg1">$thread[groupname]</a></td>
|
||||
<td class="num">
|
||||
<a href="forum.php?mod=viewthread&tid=$tid" class="xi2">$thread[replies]</a>
|
||||
<em>$thread[views]</em>
|
||||
</td>
|
||||
<td class="by">
|
||||
<cite><!--{if $thread['lastposter']}--><a href="home.php?mod=space&username=$thread[lastposter]">$thread[lastposter]</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--></cite>
|
||||
<em><a href="forum.php?mod=viewthread&tid=$tid&page={echo max(1, $thread[pages]);}">$thread[lastpost]</a></em>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
<!--{else}-->
|
||||
<tr><td colspan="4"><div class="emp">{lang no_related_posts}</div></td></tr>
|
||||
<!--{/if}-->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{if $multipage}--><div class="pgs cl">$multipage</div><!--{/if}-->
|
||||
|
||||
<!--{elseif $view == 'manager' || $view == 'join'}-->
|
||||
<!--{if $grouplist}-->
|
||||
<div class="bm bml bw0">
|
||||
<div class="bm_h cl">
|
||||
<h2><!--{if $view == 'manager'}-->{lang my_manage_group} <!--{elseif $view == 'join'}-->{lang my_join_group} <!--{/if}--></h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $grouplist $groupid $group}-->
|
||||
<li>
|
||||
<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
|
||||
<p><!--{if $group['flevel'] == '-1'}-->({lang group_wait_mod})<!--{/if}--><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{if $multipage}--><div class="pgs">$multipage</div><!--{/if}-->
|
||||
<!--{else}-->
|
||||
<div class="emp"><!--{if $view == 'manager'}-->{lang no_group_create_now} <!--{elseif $view == 'join'}-->{lang no_group_join} <!--{/if}--></div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
<!--{hook/my_bottom}-->
|
||||
|
||||
</div>
|
||||
<div class="sd">
|
||||
<div class="drag">
|
||||
<!--[diy=diysidebtntop]--><div id="diysidebtntop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<div class="hm pbm">
|
||||
<a href="forum.php?mod=group&action=create" id="create_group_btn" class="pgsbtn">{lang group_create}</a>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="drag">
|
||||
<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{hook/my_side_top}-->
|
||||
<!--{if $randgroup}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang hot_group}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $randgroup $key $group}-->
|
||||
<li>
|
||||
<a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" class="avt" target="_blank"><img src="$group[icon]" alt="$group[name]" /></a>
|
||||
<p><a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank">$group[name]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="drag">
|
||||
<!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang friend_join_group}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $friendgrouplist $groupid $group}-->
|
||||
<li>
|
||||
<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt" target="_blank"><img src="$group[icon]" alt="$group[name]" /></a>
|
||||
<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]" target="_blank">$group[name]</a></p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drag">
|
||||
<!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{hook/my_side_bottom}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
22
template/default/group/group_recommend.htm
Normal file
22
template/default/group/group_recommend.htm
Normal file
@@ -0,0 +1,22 @@
|
||||
<!--{template common/header}-->
|
||||
<h3 class="flb">
|
||||
<em>{lang group_push_to_forum}</em>
|
||||
<span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span>
|
||||
</h3>
|
||||
<form method="post" autocomplete="off" id="form_$_GET[handlekey]" name="form_$_GET[handlekey]" action="forum.php?mod=group&action=recommend&fid=$_G[fid]" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'form_$_GET[handlekey]');"{/if}>
|
||||
<input type="hidden" name="referer" value="{echo dreferer()}" />
|
||||
<input type="hidden" name="grouprecommend" value="true" />
|
||||
<input type="hidden" name="inajax" value="$_G[inajax]" />
|
||||
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
|
||||
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
||||
<div class="c" id="return_$_GET[handlekey]">
|
||||
<select id="recommend" name="recommend" class="ps mtw mbw">
|
||||
<option value="0">{lang group_do_not_push}</option>
|
||||
$forumselect
|
||||
</select>
|
||||
</div>
|
||||
<p class="o pns">
|
||||
<button type="submit" value="true" class="pn pnc"><strong>{lang confirms}</strong></button>
|
||||
</p>
|
||||
</form>
|
||||
<!--{template common/footer}-->
|
153
template/default/group/group_right.htm
Normal file
153
template/default/group/group_right.htm
Normal file
@@ -0,0 +1,153 @@
|
||||
<!--{if $action == 'index'}-->
|
||||
<div class="bm bml tns">
|
||||
<table cellpadding="4" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th><p>$_G[forum][posts]</p>{lang posts}</th>
|
||||
<th><p>$_G[forum][membernum]</p>{lang member}</th>
|
||||
<td><p>$groupcache[ranking][data][today]</p>{lang group_member_rank}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--{hook/group_index_side}-->
|
||||
<!--{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:;">{lang group_member_new}</a></li>
|
||||
<li id="top" onmouseover="this.className='a';$('new').className='';$('topuserlist').style.display='block';$('newuserlist').style.display='none';"><a href="javascript:;">{lang group_member_active}</a></li>
|
||||
</ul>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl" id="newuserlist" style="display:block;">
|
||||
<!--{loop $newuserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator_title}{elseif $user['level'] == 2}{lang group_moderator_vice_title}{elseif $user['level'] == 3}{lang group_star_member_title}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt" c="1">
|
||||
<!--{if $user['level'] == 1}-->
|
||||
<em class="gm"></em>
|
||||
<!--{elseif $user['level'] == 2}-->
|
||||
<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
||||
<!--{elseif $user['level'] == 3}-->
|
||||
<em class="gs"></em>
|
||||
<!--{/if}-->
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if}></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p>
|
||||
<a href="home.php?mod=space&uid=$user[uid]">$user[username]</a>
|
||||
</p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
<ul class="ml mls cl" id="topuserlist" style="display:none;">
|
||||
<!--{loop $activityuserlist $user}-->
|
||||
<li>
|
||||
<a href="home.php?mod=space&uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator_title}{elseif $user['level'] == 2}{lang group_moderator_vice_title}{elseif $user['level'] == 3}{lang group_star_member_title}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt" c="1">
|
||||
<!--{if $user['level'] == 1}-->
|
||||
<em class="gm"></em>
|
||||
<!--{elseif $user['level'] == 2}-->
|
||||
<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
|
||||
<!--{elseif $user['level'] == 3}-->
|
||||
<em class="gs"></em>
|
||||
<!--{/if}-->
|
||||
<!--{if $user['online']}-->
|
||||
<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if}></em>
|
||||
<!--{/if}-->
|
||||
<!--{echo avatar($user['uid'], 'small')}-->
|
||||
</a>
|
||||
<p>
|
||||
<a href="home.php?mod=space&uid=$user[uid]">$user[username]</a>
|
||||
</p>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--{if $groupviewed_list}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_visited}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="ml mls cl">
|
||||
<!--{loop $groupviewed_list $groupid $group}-->
|
||||
<li>
|
||||
<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
|
||||
<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
|
||||
<span>$group[membernum]</span>
|
||||
</li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{elseif $action == 'list'}-->
|
||||
<!--{if $groupcache['replies']['data']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_hot_topics_today}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $groupcache['replies']['data'] $tid $thread}-->
|
||||
<li><a href="forum.php?mod=viewthread&tid=$tid">$thread[subject]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{if $groupcache['digest']['data']}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_digest_recommend}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul class="xl xl1">
|
||||
<!--{loop $groupcache['digest']['data'] $tid $thread}-->
|
||||
<li><a href="forum.php?mod=viewthread&tid=$tid">$thread[subject]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--{if CURMODULE == 'group'}--><!--{hook/group_side_top}--><!--{else}--><!--{hook/forumdisplay_side_top}--><!--{/if}-->
|
||||
<!--{if $action == 'create'}-->
|
||||
<div class="bm bmn">
|
||||
<div class="bm_c xw1 xi1">{lang group_you_have}</div>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<!--{if $action != 'index' && ($status != 2 || $status != 3)}-->
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_find_topics}</h2>
|
||||
</div>
|
||||
<div class="bm_c hm pns">
|
||||
<form method="post" action="search.php?mod=group&srchfid=$_G[fid]&searchsubmit=1">
|
||||
<input type="text" name="srchtxt" id="groupsearch" class="px p_fre vm" size="15" value="{lang input_search_key_words}" onclick="$('groupsearch').value=''" />
|
||||
<button type="submit" class="pn vm"><span>{lang search}</span></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
|
||||
<div class="bm bml">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_url}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<p>
|
||||
<!--{if $_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && !empty($_G['forum']['domain'])}-->
|
||||
<a href="{$_G['scheme']}://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['group']}" id="group_link"></a>
|
||||
<!--{else}-->
|
||||
<a href="forum.php?mod=group&fid={$_G[fid]}" id="group_link"></a>
|
||||
<!--{/if}-->
|
||||
[<a href="javascript:;" onclick="setCopy($('group_link').href, '{lang group_url_copy_finished}')" class="xi2">{lang copy}</a>]
|
||||
</p>
|
||||
<script type="text/javascript">$('group_link').innerHTML = $('group_link').href</script>
|
||||
<p class="ptn xg1">$_G[forum][foundername] {lang create_on} $_G[forum][dateline]</p>
|
||||
<!--{if $status == 'isgroupuser'}--><p class="ptn"><form action="forum.php?mod=group&action=out&fid=$_G[fid]" id="groupexitform_{$_G['fid']}" method="post" autocomplete="off"><input type="hidden" name="formhash" value="{FORMHASH}"><input type="hidden" name="groupexit" value="1"><button type="button" onclick="showDialog('{lang group_exit_confirm}', 'confirm', '', function(){$('groupexitform_{$_G['fid']}').submit();});doane();" class="pn"><strong>{lang group_exit}</strong></button></form><p><!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
124
template/default/group/index.htm
Normal file
124
template/default/group/index.htm
Normal file
@@ -0,0 +1,124 @@
|
||||
<!--{template common/header}-->
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z">
|
||||
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>»</em><a href="group.php">{$_G[setting][navs][3][navname]}</a>$navigation
|
||||
</div>
|
||||
</div>
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm bmw">
|
||||
<div class="bm_h cl">
|
||||
<span class="y xw1"><a href="group.php?mod=my">{lang my_group} ›</a></span>
|
||||
<h2>{lang group_focus}</h2>
|
||||
</div>
|
||||
<!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--[diy=diycommendtop]--><div id="diycommendtop" class="area"></div><!--[/diy]-->
|
||||
<!--{hook/index_header}-->
|
||||
<div id="g_commend" class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang recommend_group}</h2>
|
||||
</div>
|
||||
<div class="bm_c cl">
|
||||
<!--{loop dunserialize($_G['setting']['group_recommend']) $val}-->
|
||||
<dl class="xld">
|
||||
<dd class="m"><a href="forum.php?mod=group&fid=$val[fid]"><img src="$val[icon]" alt="$val[name]" width="48" height="48" /></a></dd>
|
||||
<dt><a href="forum.php?mod=group&fid=$val[fid]">$val[name]</a></dt>
|
||||
<dd class="xg1">$val[description]</dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--[diy=diycategorytop]--><div id="diycategorytop" class="area"></div><!--[/diy]-->
|
||||
<!--{hook/index_top}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_categories}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<!--{loop $first $groupid $group}-->
|
||||
<dl class="mbm pbm bbda">
|
||||
<dt class="pbn">
|
||||
<span class="y xi2"><!--{loop $group['secondlist'] $fid}--><a href="group.php?sgid=$fid">$second[$fid][name]</a> <!--{/loop}--><a href="group.php?gid=$groupid">{lang more} ›</a></span>
|
||||
<strong class="xs2"><a href="group.php?gid=$groupid">$group[name]</a></strong><!--{if $group[groupnum]}--><span class="xg1">($group[groupnum])</span><!--{/if}-->
|
||||
</dt>
|
||||
<dd>
|
||||
<!--{loop $lastupdategroup[$groupid] $val}-->
|
||||
<a href="forum.php?mod=group&fid=$val[fid]">$val[name]</a>
|
||||
<!--{/loop}-->
|
||||
</dd>
|
||||
</dl>
|
||||
<!--{/loop}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
<!--{hook/index_bottom}-->
|
||||
</div>
|
||||
|
||||
<div class="sd">
|
||||
<div class="drag">
|
||||
<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{hook/index_side_top}-->
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<!--{if empty($gid) && empty($sgid)}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang create_group_step}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul id="g_guide" class="mbm">
|
||||
<li><label><strong class="xi1">{lang group_create}</strong><span class="xg1">{lang create_group_message1}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang personality_setting}</strong><span class="xg1">{lang create_group_message2}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang invite_friend}</strong><span class="xg1">{lang create_group_message3}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang group_upgrade}</strong><span class="xg1">{lang create_group_message4}</span></label></li>
|
||||
</ul>
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<a href="forum.php?mod=group&action=create" id="create_group_btn" class="pgsbtn">{lang group_create}</a>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div class="bm bw0">
|
||||
<div class="bm_c">
|
||||
<a href="forum.php?mod=group&action=create&fupid=$fup&groupid=$sgid" id="create_group_btn" class="pgsbtn">{lang group_create}</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<div class="drag">
|
||||
<!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{if $topgrouplist}-->
|
||||
<div id="g_top" class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_hot}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ol class="xl">
|
||||
<!--{loop $topgrouplist $fid $group}-->
|
||||
<li class="top1"><span class="y xi2 xg1"> $group[commoncredits]</span><a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]">$group[name]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="drag">
|
||||
<!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{hook/index_side_bottom}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
154
template/default/group/type.htm
Normal file
154
template/default/group/type.htm
Normal file
@@ -0,0 +1,154 @@
|
||||
<!--{template common/header}-->
|
||||
|
||||
<div id="pt" class="bm cl">
|
||||
<div class="z"><a href="./" class="nvhm" title="{lang home}">$_G[setting][bbname]</a><em>›</em><a href="group.php">$_G[setting][navs][3][navname]</a>$groupnav</div>
|
||||
</div>
|
||||
|
||||
<!--{ad/text/wp a_t}-->
|
||||
<style id="diy_style" type="text/css"></style>
|
||||
<div class="wp">
|
||||
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div id="ct" class="ct2 wp cl">
|
||||
<div class="mn">
|
||||
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
|
||||
<div class="bm fl cl">
|
||||
<div class="bm_h">
|
||||
<h1 class="xs2">$curtype[name]</h1>
|
||||
</div>
|
||||
<!--{if $typelist}-->
|
||||
<div class="bm_c pbm ptm bbs">
|
||||
<p><!--{loop $typelist $fid $type}--><a href="group.php?sgid=$fid">$type[name]</a><!--{if $type[groupnum]}--><span class="xg1">($type[groupnum])</span><!--{/if}--> <!--{/loop}--></p>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div class="bbs"></div>
|
||||
<!--{/if}-->
|
||||
<!--{hook/index_top}-->
|
||||
<!--{if $list}-->
|
||||
<div class="tbmu cl bw0">
|
||||
<span class="y">
|
||||
<select title="{lang orderby}" onchange="location.href=this.value" class="ps">
|
||||
<option value="$url" $selectorder[default]>{lang orderby_default}</option>
|
||||
<option value="$url&orderby=thread" $selectorder[thread]>{lang stats_main_threads_count}</option>
|
||||
<option value="$url&orderby=membernum" $selectorder[membernum]>{lang group_member_count}</option>
|
||||
<option value="$url&orderby=dateline" $selectorder[dateline]>{lang group_create_time}</option>
|
||||
<option value="$url&orderby=activity" $selectorder[activity]>{lang group_activities}</option>
|
||||
</select>
|
||||
</span>
|
||||
{lang group_total_numbers}
|
||||
</div>
|
||||
<!--{if $curtype['forumcolumns'] > 1}-->
|
||||
<div class="bm_c">
|
||||
<table cellspacing="0" cellpadding="0" class="fl_tb">
|
||||
<tr class="fl_row">
|
||||
<!--{loop $list $fid $val}-->
|
||||
<!--{if $val['orderid'] && ($val['orderid'] % $curtype['forumcolumns'] == 0)}-->
|
||||
</tr>
|
||||
<tr class="fl_row">
|
||||
<!--{/if}-->
|
||||
<td class="fl_g" style="width: $curtype[forumcolwidth]">
|
||||
<div class="fl_icn_g"><a href="forum.php?mod=group&fid=$fid" title="$val[name]"><img width="48" height="48" src="$val[icon]" alt="$val[name]" /></a></div>
|
||||
<dl>
|
||||
<dt><a href="forum.php?mod=group&fid=$fid" title="$val[name]">$val[name]</a></dt>
|
||||
<dd>{lang group_total_members_threads}</dd>
|
||||
<dd><a href="forum.php?mod=group&fid=$fid">{lang group_founded_in}: $val[dateline]</a></dd>
|
||||
</dl>
|
||||
</td>
|
||||
<!--{/loop}-->
|
||||
$endrows
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div class="bm_c">
|
||||
<table cellspacing="0" cellpadding="0" class="fl_tb">
|
||||
<!--{loop $list $fid $val}-->
|
||||
<tr class="fl_row">
|
||||
<td class="fl_icn"><a href="forum.php?mod=group&fid=$fid" title="$val[name]"><img width="48" height="48" src="$val[icon]" alt="$val[name]" /></a></td>
|
||||
<td>
|
||||
<!--{hook/index_grouplist $fid}-->
|
||||
<strong><a href="forum.php?mod=group&fid=$fid" title="$val[name]">$val[name]</a></strong>
|
||||
<p class="xg1">$val[description]</p>
|
||||
</td>
|
||||
<td class="fl_i">
|
||||
<span class="i_z z"><strong>$val[membernum]</strong><em class="xg1">{lang group_member}</em></span>
|
||||
<span class="i_y z"><strong>$val[threads]</strong><em class="xg1">{lang threads}</em></span>
|
||||
</td>
|
||||
</tr>
|
||||
<!--{/loop}-->
|
||||
</table>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{hook/index_bottom}-->
|
||||
<!--{else}-->
|
||||
<div class="bm emp">
|
||||
<h2>{lang group_category_no_groups}</h2>
|
||||
<p>{lang group_category_no_groups_detail}</p>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
</div>
|
||||
<!--{if $list}-->
|
||||
<div class="pgs cl">
|
||||
$multipage
|
||||
<span class="pgb y"><a href="group.php">{lang return_index}</a></span>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<div class="sd">
|
||||
<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
|
||||
<!--{hook/index_side_top}-->
|
||||
<!--{if helper_access::check_module('group')}-->
|
||||
<!--{if empty($gid) && empty($sgid)}-->
|
||||
<div class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang create_group_step}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ul id="g_guide" class="mbm">
|
||||
<li><label><strong class="xi1">{lang group_create}</strong><span class="xg1">{lang create_group_message1}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang personality_setting}</strong><span class="xg1">{lang create_group_message2}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang invite_friend}</strong><span class="xg1">{lang create_group_message3}</span></label></li>
|
||||
<li><label><strong class="xi1">{lang group_upgrade}</strong><span class="xg1">{lang create_group_message4}</span></label></li>
|
||||
</ul>
|
||||
<a href="forum.php?mod=group&action=create" id="create_group_btn" class="pgsbtn">{lang group_create}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drag">
|
||||
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{else}-->
|
||||
<div class="bm bw0">
|
||||
<div class="bm_c">
|
||||
<a href="forum.php?mod=group&action=create&fupid=$fup&groupid=$sgid" id="create_group_btn" class="pgsbtn">{lang group_create}</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<!--{/if}-->
|
||||
<!--[diy=diytopgrouptop]--><div id="diytopgrouptop" class="area"></div><!--[/diy]-->
|
||||
<!--{if $topgrouplist}-->
|
||||
<div id="g_top" class="bm">
|
||||
<div class="bm_h cl">
|
||||
<h2>{lang group_hot}</h2>
|
||||
</div>
|
||||
<div class="bm_c">
|
||||
<ol class="xl">
|
||||
<!--{loop $topgrouplist $fid $group}-->
|
||||
<li class="top1"><span class="y xi2 xg1"> $group[commoncredits]</span><a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]">$group[name]</a></li>
|
||||
<!--{/loop}-->
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!--{/if}-->
|
||||
<div class="drag">
|
||||
<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
<!--{hook/index_side_bottom}-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wp mtn">
|
||||
<!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
|
||||
</div>
|
||||
|
||||
<!--{template common/footer}-->
|
Reference in New Issue
Block a user