{INCLUDE header.html}
		<b>Channels you have access in:</b><br/>
		{FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES}
			<a href="/memoserv/memos?channel={ECH}" class="channel">{CH}</a> 
		{END FOR}
		<br/><br/>
		{FOR M IN MESSAGES}
			{M}</br>
		{END FOR}
		<br/>
		{IF EXISTS NUMBER}
			<script type="text/javascript">
				$("#memoTable").ready(function() \{
					$(".reply").click(function(e) \{
						e.preventDefault();
						var recv = $(this).attr('href');
						$("#receiver").val(recv);
					\});
				\});
			</script>
			<b>Memos List:</b>
			<table width="100%" height="100%" id="memoTable">
				<tr>
					<th class="akillR1">Number</th>
					<th class="akillR3">Sender</th>
					<th class="akillR2">Time/Message</th>
				</tr>
				{FOR I,S,T,TXT,U IN NUMBER,SENDER,TIME,TEXT,UNREAD}
				{IF EQ U YES}
				<tr class="read">
				{ELSE}
				<tr class="unread">
				{END IF}
					<td class="akillR1">{I}</td>
					<td class="akillR3">{S}</td>
					<td class="akillR2"><abbr title="{T}">{TXT}</abbr></td>
				</tr>
				{IF EQ U YES}
				<tr class="read">
					<td></td>
					<td></td>
					<td class="right"><a href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&read=1">Mark as Read</a> &nbsp;
					<a href="{S}" class="reply" id="memo{I}">Reply</a>&nbsp;
					<a href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&del=1">Delete</a></td>
				{ELSE}
				<tr class="unread">
					<td></td>
					<td></td>
					<td class="right"><a href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&read=2">Mark as Unread</a> &nbsp;
					<a href="{S}" class="reply" id="memo{I}">Reply</a> &nbsp;
					<a href="/memoserv/memos?channel={ESCAPED_CHANNEL_NAME}&number={I}&del=1">Delete</a></td>
				{END IF}

				</tr>
				{END FOR}
			</table>
		{ELSE}
			<b>No memos to show.</b>
		{END IF}

		<br/><br/>

		<b>Send a new Memo</b>
		<form method="post" action="/memoserv/memos?channel={ESCAPED_CHANNEL}">
		Receiver: <input type="text" name="receiver" id="receiver" value="">
		Message: <input type="text" name="message">
		<input type="submit" value="Send">
		</form>
{INCLUDE footer.html}
