summaryrefslogtreecommitdiff
path: root/htroot/MessageSend_p.html
blob: 6a8496ff567547b59ddd3d95803b616868e07988 (plain)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>YaCy '#[clientname]#': Send message</title>
    #%env/templates/metas.template%#
  </head>
  <body id="MessageSend">
    #%env/templates/header.template%#
    #(mode)#
    <!-- (mode=0) =========================== write message =========================== -->
    <h2>Send message</h2>
      #(permission)#
      <!-- we have no permission to send the message -->
      <p>You cannot send a message to <strong>#[peerName]#</strong>.<br />
      The peer does not respond. It was now removed from the peer-list.
      </p>
      ::
      <!-- we have the permission to send the message -->
      <p>The peer <b>#[peerName]#</b> is alive and responded:</p>
      <p><tt class="MessageBackground">#[response]#
        You are allowed to send me a message &le; #[messagesize]# kb and an 
        attachment &le; #[attachmentsize]#.</tt>
      </p>

      <form action="MessageSend_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
      <fieldset>
        <legend>Your Message</legend>
        <dl>
          <dt>
            <label for="subject">Subject:</label>
          </dt>
          <dd>
            <input name="subject" id="subject" type="text" size="80" maxlength="80" value="#[subject]#" />
          </dd>
          <dt>
            <label for="message">Text:</label>
          </dt>
          <dd>
            <textarea name="message" id="message" cols="80" rows="8">#[message]#</textarea>
            <p class="help">
              You can use <a href="WikiCodeHelp.html" onclick="window.open('WikiCodeHelp.html','WikiCodeHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">WikiCode formatting</a> here.
            </p>
          </dd>
          <dt></dt>
          <dd>
            <input type="hidden" name="hash" value="#[hash]#" />
            <input type="hidden" name="messagesize" value="#[messagesize]#" />
            <input type="hidden" name="attachmentsize" value="#[attachmentsize]#" />
            <input name="new" type="submit" value="Enter" class="btn btn-primary" />
            <input type="submit" name="preview" value="Preview" class="btn btn-default" />
          </dd>
        </dl>
      </fieldset>
      </form>
    ::
    <!-- peer cannot respond -->
    <p>
      You cannot send a message to <strong>#[peerName]#</strong>.<br />
      The peer is alive but cannot respond. Sorry.
    </p>	
    #(/permission)#
    ::
    <!-- (mode=1) =========================== preview message =========================== -->
    <h2>Preview message</h2>
    #(permission)#
    <!-- we have no permission to send the message -->
    <p>You cannot send a message to <strong>#[peerName]#</strong>.<br />
      The peer does not respond. It was now removed from the peer-list.
    </p>
    ::
    <!-- we have the permission to send the message -->
    <p>The peer <b>#[peerName]#</b> is alive and responded:</p>
    <p><tt class="MessageBackground">#[response]#
        You are allowed to send me a message &le; #[messagesize]# kb and an 
        attachment &le; #[attachmentsize]#.</tt>
    </p>

    <p>The message has not been sent yet!</p>
    <!--[if IE]>
    <div class="gainlayout">
    <![endif]-->
    <dl class="pairs">
      <dt>Subject:</dt><dd>#[subject]#</dd>
      <dt>Message:</dt>
      <dd>
        #[previewmessage]#
      </dd>
    </dl>
    <!--[if IE]>
    </div>
    <![endif]-->

    <br style="clear:left;" />

    <form action="MessageSend_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
      <fieldset>
        <legend>Your Message</legend>
        <dl>
          <dt>
            <label for="subject">Subject:</label>
          </dt>
          <dd>
            <input name="subject" id="subject" type="text" size="80" maxlength="80" value="#[subject]#" />
          </dd>
          <dt>
            <label for="message">Text:</label>
          </dt>
          <dd>
            <textarea name="message" id="message" cols="80" rows="8">#[message]#</textarea>
            <p class="help">
              You can use <a href="WikiCodeHelp.html" onclick="window.open('WikiCodeHelp.html','WikiCodeHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">WikiCode formatting</a> here.
            </p>
          </dd>
          <dt></dt>
          <dd>
            <input type="hidden" name="hash" value="#[hash]#" />
            <input type="hidden" name="messagesize" value="#[messagesize]#" />
            <input type="hidden" name="attachmentsize" value="#[attachmentsize]#" />
            <input name="new" type="submit" value="Enter" class="btn btn-primary" />
            <input type="submit" name="preview" value="Preview" class="btn btn-default" />
          </dd>
        </dl>
      </fieldset>
    </form>
    ::
    <!-- peer cannot respond -->
    <p>
      You cannot send a message to <strong>#[peerName]#</strong>.<br />
      The peer is alive but cannot respond. Sorry.
    </p>	
    #(/permission)#
    ::
    <!-- (mode=2) =========================== send message =========================== -->
    <h2>Send message</h2>
    #(status)#
    <!-- Message send successfully -->

    <p>Your message has been sent. The target peer responded:</p>
    <p class="Message"><tt>#[response]#</tt></p>

    :: <!-- Message could not be send -->

    <p>The target peer is alive but did not receive your message. Sorry.</p>
    <p>
      Here is a copy of your message, so you can copy it to save it for further attempts:
    </p>
    <p class="Message">
      <tt>#[message]#</tt>
    </p>
    #(/status)#

    ::
    <!-- (mode=3) ==== illegal usage of this page ==== -->
      <p>You cannot call this page directly. Instead, use a link on the <a href="Network.html?page=1&maxCount=1000">Network</a> page.</p>
    #(/mode)#

    #%env/templates/footer.template%#
  </body>
</html>