-
Notifications
You must be signed in to change notification settings - Fork 5
/
cc_groupmod.tpl
98 lines (92 loc) · 3.86 KB
/
cc_groupmod.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!-- BEGIN TEMPLATE cc_groupmod.tpl -->
{IF ERROR}<div class="attention">{ERROR}</div>{/IF}
{IF OKMSG}<div class="information">{OKMSG}</div>{/IF}
{IF GROUP->name}
<h2>{LANG->Moderating} {GROUP->name}</h2>
<div class="generic">
<h4>{LANG->AddToGroup}</h4>
<form method="post" action="{URL->ACTION}">
{POST_VARS}
{IF NEWMEMBERS}
<select name="adduser">
<option value="0"> </option>
{LOOP NEWMEMBERS}
<option value="{NEWMEMBERS->user_id}">{NEWMEMBERS->display_name}</option>
{/LOOP NEWMEMBERS}
</select>
{ELSE}
<input type="text" name="adduser" />
{/IF}
<input type="submit" value="{LANG->Add}" />
</form>
</div>
<div class="generic">
<h4>{LANG->GroupMemberList}</h4>
<form action="{URL->ACTION}" method="post">
{POST_VARS}
{LANG->Filter}:
<select name="filter">
{LOOP FILTER}
<option value="{FILTER->id}"{IF FILTER->enable} selected="selected"{/IF}>{FILTER->name}</option>
{/LOOP FILTER}
</select>
<input type="submit" value="{LANG->Go}" />
</form>
<br />
{IF USERS}
<form method="post" action="{URL->ACTION}">
{POST_VARS}
<table class="list" cellspacing="0" border="0">
<tr>
<th align="left">{LANG->Member}</th>
<th align="left">{LANG->MembershipType}</th>
</tr>
{LOOP USERS}
<tr>
<td>
{IF USERS->flag}<strong><em>{/IF}<a href="{USERS->url}">{USERS->display_name}</a>{IF USERS->flag}</em></strong>{/IF}
</td>
<td>
{IF USERS->disabled}
{USERS->statustext}
{ELSE}
<select name="status[{USERS->userid}]">
{LOOP STATUS_OPTIONS}
<?php
// to get around a minor templating problem, we will figure
// out if we have this line selected here
$PHORUM['TMP']['STATUS_OPTIONS']['selected'] = ($PHORUM['TMP']['STATUS_OPTIONS']['value'] == $PHORUM['TMP']['USERS']['status']);
?>
<option value="{STATUS_OPTIONS->value}"{IF STATUS_OPTIONS->selected} selected="selected"{/IF}>{STATUS_OPTIONS->name}</option>
{/LOOP STATUS_OPTIONS}
</select>
{/IF}
</td>
</tr>
{/LOOP USERS}
</table>
<input type="submit" value="{LANG->SaveChanges}" />
</form>
{ELSE}
{LANG->NoUserMatchFilter}
{/IF}
</div>
{ELSE}
<div class="generic">
<h4>{LANG->SelectGroupMod}</h4>
<br />
<dl>
{LOOP GROUPS}
<dt><a href="{GROUPS->URL->VIEW}">{GROUPS->name}</a></dt>
<dd>
{IF GROUPS->unapproved}
<a href="{GROUPS->URL->UNAPPROVED}">{GROUPS->unapproved} {LANG->Unapproved}</a>
{ELSE}
{LANG->NoUnapprovedUsers}
{/IF}
</dd>
{/LOOP GROUPS}
</dl>
</div>
{/IF}
<!-- END TEMPLATE cc_groupmod.tpl -->