Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
{IF Message}
2
  <div class="PhorumUserError">{Message}</div>
3
{/IF}
4
{IF GROUP->name}
5
  <div class="PhorumStdBlockHeader PhorumHeaderText" style="text-align: left;">{LANG->AddToGroup} {GROUP->name}</div>
6
  <div class="PhorumStdBlock" style="text-align: left;">
7
    <form method="post" action="{GROUP->url}">
8
      <input type="hidden" name="forum_id" value="{PROFILE->forum_id}" />
9
      {IF NEWMEMBERS}
10
        <select name="adduser">
11
          <option value="0">&nbsp;</option>
12
          {LOOP NEWMEMBERS}
13
            <option value="{NEWMEMBERS->username}">{NEWMEMBERS->displayname}</option>
14
          {/LOOP NEWMEMBERS}
15
        </select>
16
      {ELSE}
17
        <input type="text" name="adduser" />
18
      {/IF}
19
      <input type="submit" value="{LANG->Add}" />
20
    </form>
21
  </div><br />
22
  <div class="PhorumStdBlockHeader PhorumHeaderText" style="text-align: left;">{LANG->GroupMemberList} {GROUP->name}</div>
23
  <div class="PhorumStdBlock" style="text-align: left;">
24
    {LANG->Filter}:
25
    {LOOP FILTER}
26
      [{IF FILTER->enable}<a href="{FILTER->url}">{/IF}{FILTER->name}{IF FILTER->enable}</a>{/IF}]
27
    {/LOOP FILTER}
28
    <br /><br />
29
    <form method="post" action="{GROUP->url}">
30
      <table class="PhorumFormTable" cellspacing="0" border="0">
31
        <input type="hidden" name="forum_id" value="{PROFILE->forum_id}" />
32
        <tr>
33
          <th>{LANG->Username}</th>
34
          <th>{LANG->MembershipType}</th>
35
        </tr>
36
        {LOOP USERS}
37
          <tr>
38
            <td>
39
              {IF USERS->flag}<strong><em>{/IF}<a href="{USERS->profile}">{USERS->displayname}</a>{IF USERS->flag}</em></strong>{/IF}
40
            </td>
41
            <td>
42
              {IF USERS->disabled}
43
                {USERS->statustext}
44
              {ELSE}
45
                <select name="status[{USERS->userid}]">
46
                  {LOOP STATUS_OPTIONS}
47
                    <?php
48
                    // to get around a minor templating problem, we'll figure
49
                    // out if we have this line selected here
50
                    $PHORUM['TMP']['STATUS_OPTIONS']['selected'] = ($PHORUM['TMP']['STATUS_OPTIONS']['value'] == $PHORUM['TMP']['USERS']['status']);
51
                    ?>
52
                    <option value="{STATUS_OPTIONS->value}"{IF STATUS_OPTIONS->selected} selected="selected"{/IF}>{STATUS_OPTIONS->name}</option>
53
                  {/LOOP STATUS_OPTIONS}
54
                </select>
55
              {/IF}
56
            </td>
57
          </tr>
58
        {/LOOP USERS}
59
        <tr>
60
          <td colspan="2"><input type="submit" value="{LANG->SaveChanges}" /></td>
61
        </tr>
62
      </table>
63
    </form>
64
  </div>
65
{ELSE}
66
  <div class="PhorumStdBlockHeader PhorumHeaderText" style="text-align: left;">{LANG->SelectGroupMod}</div>
67
  <div class="PhorumStdBlock" style="text-align: left;">
68
    <table class="PhorumFormTable" cellspacing="0" border="0">
69
      {LOOP GROUPS}
70
        <tr>
71
          <td><a href="{GROUPS->url}">{GROUPS->name}</a></td>
72
          <td><a href="{GROUPS->unapproved_url}">{GROUPS->unapproved} {LANG->Unapproved}</a></td>
73
        </tr>
74
      {/LOOP GROUPS}
75
    </table>
76
  </div>
77
{/IF}