<{$pmform.javascript}>
<form name="<{$pmform.name}>" id="<{$pmform.name}>" action="<{$pmform.action}>" method="<{$pmform.method}>" <{$pmform.extra}> >
    <table class='outer txtcenter width100'>
        <tr>
            <td class='head width30 txtright'><{$smarty.const._PM_TO}></td>
            <td class='even txtleft'><{if $pmform.elements.to_userid.hidden != 1}><{$pmform.elements.to_userid.body}><{/if}><{$to_username}></td>
        </tr>
        <tr>
            <td class='head width30 txtright'><{$smarty.const._PM_SUBJECTC}></td>
            <td class='even txtleft'><{$pmform.elements.subject.body}></td>
        </tr>
        <tr class='aligntop'>
            <td class='head width30 txtright'><{$smarty.const._PM_MESSAGEC}></td>
            <td class='even txtleft'><{$pmform.elements.message.body}></td>
        </tr>
        <tr class='aligntop'>
            <td class='head width30'><{$smarty.const._PM_SAVEINOUTBOX}></td>
            <td class='even'><{$pmform.elements.savecopy.body}></td>
        </tr>
        <tr>
            <td class='head'>&nbsp;</td>
            <td class='even'>
                <{foreach item=element from=$pmform.elements}>
                    <{if $element.hidden == 1}>
                        <{$element.body}>
                    <{/if}>
                <{/foreach}>
                <{$pmform.elements.submit.body}>&nbsp;
                <{$pmform.elements.reset.body}>&nbsp;
                <{$pmform.elements.cancel.body}>
            </td>
        </tr>
    </table>
</form>