summaryrefslogtreecommitdiff
path: root/htroot/MessageSend_p.html
diff options
context:
space:
mode:
authorlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2007-08-08 18:23:45 +0000
committerlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2007-08-08 18:23:45 +0000
commitc8e5a4a6b79399113189c40c138dc101e9e4b132 (patch)
tree003ae5fcd4e21ad3cf03c29a8551a475189f7704 /htroot/MessageSend_p.html
parentf77898748bb56b1346ef36424eb0b6f7dfa8c21a (diff)
*) fixed bug described by Huppi in http://forum.yacy-websuche.de/viewtopic.php?t=239
*) added a preview function to message system *) removed some old comments, I hope that's OK git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4036 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/MessageSend_p.html')
-rw-r--r--htroot/MessageSend_p.html66
1 files changed, 64 insertions, 2 deletions
diff --git a/htroot/MessageSend_p.html b/htroot/MessageSend_p.html
index 795181d19..1abab826a 100644
--- a/htroot/MessageSend_p.html
+++ b/htroot/MessageSend_p.html
@@ -6,9 +6,9 @@
</head>
<body id="MessageSend">
#%env/templates/header.template%#
- <h2>Send message</h2>
#(mode)#
<!-- =========================== 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 />
@@ -21,7 +21,7 @@
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>
@@ -46,6 +46,67 @@
<input type="hidden" name="messagesize" value="#[messagesize]#" />
<input type="hidden" name="attachmentsize" value="#[attachmentsize]#" />
<input name="new" type="submit" value="Enter" />
+ <input type="submit" name="preview" value="Preview" />
+ </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)#
+ ::
+ <!-- =========================== 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>
+
+ <dl class="pairs">
+ <dt>Subject:</dt><dd>#[subject]#</dd>
+ <dt>Message:</dt>
+ <dd>
+ #[previewmessage]#
+ </dd>
+ </dl>
+
+ <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="WikiHelp.html" onclick="window.open('WikiHelp.html','WikiHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">Wiki Code</a> here.
+ </p>
+ </dd>
+ </dl>
+ <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" />
+ <input type="submit" name="preview" value="Preview" />
</fieldset>
</form>
::
@@ -57,6 +118,7 @@
#(/permission)#
::
<!-- =========================== send message =========================== -->
+ <h2>Send message</h2>
#(status)#
<!-- Message send successfully -->