25 lines
1.3 KiB
PHP
25 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
$template = <<<END
|
||
|
You can send a letter to another player using the form below. Fields marked with a <span class="red">*</span> are required.
|
||
|
The Send Gold field allows you to attach money to the letter, which will be given to the recipient when they read it.<br /><br />
|
||
|
Note that there is a 5 Gold postage fee for sending all letters.<br /><br />
|
||
|
<form action="index.php?do=mailreply&id={{id}}" method="post">
|
||
|
<table width="95%">
|
||
|
<tr><td width="20%">To:</td><td>{{sendername}}</td></tr>
|
||
|
<tr><td width="20%">Subject:<span class="red">*</span></td><td><input type="text" name="title" size="40" maxlength="200" value="Re: {{title}}" /></td></tr>
|
||
|
<tr><td width="20%">Send Gold:</td><td><input type="text" name="gold" size="10" maxlength="10" /></td></tr>
|
||
|
<tr><td colspan="2">
|
||
|
Message:<br />
|
||
|
<textarea name="message" rows="7" cols="40"></textarea>
|
||
|
</td></tr>
|
||
|
<tr><td colspan="2"><input type="submit" name="submit" value="Send" /> <input type="reset" name="reset" value="Reset" /></td></tr>
|
||
|
</table>
|
||
|
</form><hr />
|
||
|
<b>Original Message:</b><br /><br />
|
||
|
{{message}}<br /><hr />
|
||
|
<a href="index.php?do=mailnew">New Letter</a> | <a href="index.php?do=mailbox">Inbox</a> | <a href="index.php?do=mailsent">Outbox</a><br /><br />
|
||
|
You may also return to <a href="index.php">town</a>.
|
||
|
END;
|
||
|
|
||
|
?>
|