        {ERROR}
        {MESSAGE}
        {if:!MESSAGE}
        <table width="400" cellspacing="0" cellpadding="4" border="0">
        <form method="post" enctype="multipart/form-data">
        <tr>
        <td class="td_field">{rs:NAME}:</td>
        <td class="td_val"><input type="text" name="r[name]" value="{name}" class="big"></td>
        </tr>

        <tr>
        <td>{rs:MAIL}:</td>
        <td><input type="text" name="r[mail]" value="{mail}" class="big"></td>
        </tr>

	{if:is_format}
        <tr>
        <td class="td_field">{rs:FORMAT}:</td>
        <td class="td_field">
                <select name="r[receive_format]">
                {row:RECEIVE_FORMAT_SELECT}<option value="{id}" {selected}>{title}</option>{/row}
                </select>
        </td>
        </tr>
	{/if}

	{if:is_encoding}
        <tr>
        <td>{rs:ENCODING}:</td>
        <td>    <select name="r[encoding]">
                {row:ENCODING_SELECT}<option value="{id}" {selected}>{title}</option>{/row}
                </select>
        </td>
        </tr>
	{/if}

        <tr>
        <td class="td_field" valign="top">{rs:MAILING_GROUPS}:</td>
        <td class="td_value">
                <select name="r[group_id][]" multiple size="5" class="big">
                {row:GROUPS_SELECT}<option value="{id}" {selected}>{title}</option>{/row}
                </select>
        </td>
        </tr>

        <tr>
        <td><img src="{global:PATH}img/empty.gif" width="100" height="1" border="0" alt=""></td>
        <td align="right" width="100%">
                <input type="hidden" name="r["is_format"]" value="{is_format}">
                <input type="hidden" name="r["is_encoding"]" value="{is_encoding}">
                <input type="hidden" name="r["group_list"]" value="{group_list}">
                <input type="hidden" name="r["cf_list"]" value="{cf_list}">
                <input type="hidden" name="r["owner_id"]" value="{owner_id}">
                <input type="hidden" name="save" value="1">
                <input type="submit" value="{rs:ACTION_NEXT}" class="submit">
        </td>
        </tr>
        </form>
        </table>
        {/if}
