Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
{IF PREVIEW}
2
  <div class="PhorumStdBlockHeader PhorumHeaderText" style="text-align: left;">{LANG->Preview}</div>
3
  <div class="PhorumStdBlock" style="text-align: left;">
4
    <div class="PhorumReadBodySubject">{PREVIEW->subject}</div>
5
    <div class="PhorumReadBodyHead">{LANG->From}: <strong><a href="#">{PREVIEW->from_username}</a></strong></div>
6
    <div class="PhorumReadBodyHead">
7
      {LANG->To}:
8
      {ASSIGN ISFIRST true}
9
      {LOOP PREVIEW->recipients}
10
        <div style="display:inline; white-space: nowrap">
11
          {IF NOT ISFIRST} / {/IF}
12
          <strong><a href="#">{PREVIEW->recipients->username}</a></strong>
13
          {ASSIGN ISFIRST false}
14
        </div>
15
      {/LOOP PREVIEW->recipients}
16
    </div><br />
17
    <div class="PhorumReadBodyText">{PREVIEW->message}</div><br />
18
  </div><br />
19
{/IF}
20
<form action="{ACTION}" method="post">
21
  {POST_VARS}
22
  <input type="hidden" name="action" value="post" />
23
  <input type="hidden" name="forum_id" value="{FORUM_ID}" />
24
  <input type="hidden" name="hide_userselect" value="{HIDE_USERSELECT}" />
25
  <div class="PhorumStdBlockHeader" style="text-align: left; width:99%">
26
    <table class="PhorumFormTable" cellspacing="0" border="0" style="width:99%">
27
      <tr>
28
        <td>{LANG->From}:&nbsp;</td>
29
        <td>{MESSAGE->from_username}</td>
30
      </tr>
31
      <tr>
32
        <td valign="top">{LANG->To}:&nbsp;</td>
33
        <td valign="top" width="100%">
34
          {! Show user selection}
35
          {IF SHOW_USERSELECTION}
36
            <div class="phorum-pmuserselection">
37
              {IF USERS}
38
                <select id="userselection" name="to_id" size="1" align="middle">
39
                  <option value=""> {LANG->PMSelectARecipient}</option>
40
                  {LOOP USERS}
41
                    <option value="{USERS->user_id}" <?php if (isset($_POST['to_id']) && $_POST['to_id'] == $PHORUM['TMP']['USERS']['user_id']) echo 'selected="selected"'?>>{USERS->displayname}</option>
42
                  {/LOOP USERS}
43
                </select>
44
              {ELSE}
45
                <input type="text" id="userselection" name="to_name" value="<?php if (isset($_POST['to_name'])) echo htmlspecialchars($_POST['to_name'])?>" />
46
              {/IF}
47
              <input type="submit" class="PhorumSubmit" style="font-size: {smallfontsize}" name="rcpt_add" value="{LANG->PMAddRecipient}" />
48
              {! Always show recipient list on a separate line}
49
              {IF RECIPIENT_COUNT}<br style="clear:both" />{/IF}
50
            </div>
51
          {/IF}
52
          {! Display the current list of recipients}
53
          {LOOP MESSAGE->recipients}
54
            <div class="phorum-recipientblock">
55
              {MESSAGE->recipients->username}
56
              <input type="hidden" name="recipients[{MESSAGE->recipients->user_id}]" value="{MESSAGE->recipients->username}" />
57
              <input type="image" src="{delete_image}" name="del_rcpt::{MESSAGE->recipients->user_id}" style="margin-left: 3px;vertical-align:top">
58
            </div>
59
          {/LOOP MESSAGE->recipients}
60
        </td>
61
      </tr>
62
      <tr>
63
        <td>{LANG->Subject}:&nbsp;</td>
64
        <td><input type="text" id="subject" name="subject" size="50" value="{MESSAGE->subject}" /></td>
65
      </tr>
66
      <tr>
67
        <td colspan="2"><input type="checkbox" name="keep" value="1"{IF MESSAGE->keep} checked="checked" {/IF} /> {LANG->KeepCopy}</td>
68
      </tr>
69
    </table>
70
  </div>
71
  <div class="PhorumStdBlock" style="width:99%; text-align: center">
72
    <textarea id="message" name="message" rows="20" cols="50" style="width: 98%">{MESSAGE->message}</textarea>
73
    <div style="margin-top: 3px; width:99%" align="right">
74
      <input name="preview" type="submit" class="PhorumSubmit" value=" {LANG->Preview} " />
75
      <input type="submit" class="PhorumSubmit" value=" {LANG->Post} " />
76
    </div>
77
  </div>
78
</form>