<?php
<form id="newcomment" name="newcomment" action="member.php?action=profile&uid={$uid}&op=send" method="post">
<tr>
<td colspan="2" style="text-align: left;" class="trow2">
<p>
<textarea name="message" id="message" rows="6" cols="60" tabindex="2"></textarea>
</p>
<p>
<input type="hidden" name="reply_to_profile" id="reply_to_profile" value="default" />
<input type="submit" value="{$lang->profile_comments_add_button}" />
</p>
<center>{$editor}</center>
<script type="text/javascript">
Event.observe(window, 'load', function() {
$$("a.reply").each(function(a)
{
a.observe('click', function(c) {
var username = $(this).readAttribute('username');
clickableEditor.performInsert('[b]' + username + '[/b], ', '', true, false);
$('reply_to_profile').value = 'default';
Event.stop(c);
});
});
$$("a.reply_to_profile").each(function(a)
{
a.observe('click', function(c) {
var username = $(this).readAttribute('username');
var uid = $(this).readAttribute('userid');
clickableEditor.performInsert('[b]' + username + '[/b], ', '', true, false);
$('reply_to_profile').value = uid;
Event.stop(c);
});
});
});
</script>
</td>
</tr>
</form>
<?php
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td colspan="2" class="thead">
<div>
<strong>{$lang->profile_comments_editing}</strong>
</div>
</td>
</tr>
</thead>
<tbody style="{$hidecomments}" id="comments_e">
<form id="newcomment" name="newcomment" action="member.php?action=profile&uid={$uid}&op=edit&todo={$todo}" method="post">
<tr>
<td colspan="2" class="trow2">
<p>
<textarea name="message" id="message" rows="6" cols="60" tabindex="2">{$row['text']}</textarea>
</p>
<p>
<input type="submit" value="{$lang->profile_comments_edit_button}" />
</p>
{$editor}
</td>
</tr>
</form>
</tbody>
</table>
<?php
<form id="newcomment" name="newcomment" action="member.php?action=profile&uid={$uid}&op=send" method="post">
<tr>
<td colspan="2" style="text-align: left;" class="trow2">
<p>
<textarea name="message" id="message" rows="6" cols="90" tabindex="2"></textarea>
</p>
<p>
<input type="hidden" name="reply_to_profile" id="reply_to_profile" value="default" />
<input type="submit" value="{$lang->profile_comments_add_button}" />
</p>
<?php
<form id="newcomment" name="newcomment" action="member.php?action=profile&uid={$uid}&op=send" method="post">
<tr>
<td colspan="2" style="text-align: left;" class="trow2">
<p>
<textarea name="message" id="message" rows="6" cols="60" tabindex="2"></textarea>
</p>
<p>
<input type="hidden" name="reply_to_profile" id="reply_to_profile" value="default" />
<input type="submit" value="{$lang->profile_comments_add_button}" />
</p>